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. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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, |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
| 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | emulate sh |
| 20 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 32 | # PATH needs CR |
| 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 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | |
| 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 66 | as_nl=' |
| 67 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 71 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 107 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 113 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 114 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 115 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 130 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 135 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 152 | |
| 153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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= |
| 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
| 226 | case $as_dir in |
| 227 | /*) |
| 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 |
| 240 | # Be Bourne compatible |
| 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 |
| 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 250 | fi |
| 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
| 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 260 | # Be Bourne compatible |
| 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 |
| 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 270 | fi |
| 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
| 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 | ( |
| 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
| 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 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" || { |
| 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 |
| 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. |
| 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 463 | |
| 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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 471 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 472 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 473 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 475 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 493 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 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' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 513 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 540 | |
| 541 | exec 7<&0 </dev/null 6>&1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 543 | # Name of the host. |
| 544 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 545 | # so uname gets run too. |
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 547 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 548 | # |
| 549 | # Initializations. |
| 550 | # |
| 551 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 552 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 554 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | cross_compiling=no |
| 556 | subdirs= |
| 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 559 | SHELL=${CONFIG_SHELL-/bin/sh} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 563 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.7svn' |
| 565 | PACKAGE_STRING='llvm 2.7svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 567 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 569 | # Factoring default headers for most tests. |
| 570 | ac_includes_default="\ |
| 571 | #include <stdio.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 572 | #if HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 573 | # include <sys/types.h> |
| 574 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 575 | #if HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> |
| 577 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 578 | #if STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | # include <stdlib.h> |
| 580 | # include <stddef.h> |
| 581 | #else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 582 | # if HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 583 | # include <stdlib.h> |
| 584 | # endif |
| 585 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 586 | #if HAVE_STRING_H |
| 587 | # if !STDC_HEADERS && HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 588 | # include <memory.h> |
| 589 | # endif |
| 590 | # include <string.h> |
| 591 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 592 | #if HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 593 | # include <strings.h> |
| 594 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 595 | #if HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 596 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 597 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 598 | #if HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 599 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 600 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 601 | #if HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 602 | # include <unistd.h> |
| 603 | #endif" |
| 604 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 605 | ac_subst_vars='SHELL |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 606 | PATH_SEPARATOR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 607 | PACKAGE_NAME |
| 608 | PACKAGE_TARNAME |
| 609 | PACKAGE_VERSION |
| 610 | PACKAGE_STRING |
| 611 | PACKAGE_BUGREPORT |
| 612 | exec_prefix |
| 613 | prefix |
| 614 | program_transform_name |
| 615 | bindir |
| 616 | sbindir |
| 617 | libexecdir |
| 618 | datarootdir |
| 619 | datadir |
| 620 | sysconfdir |
| 621 | sharedstatedir |
| 622 | localstatedir |
| 623 | includedir |
| 624 | oldincludedir |
| 625 | docdir |
| 626 | infodir |
| 627 | htmldir |
| 628 | dvidir |
| 629 | pdfdir |
| 630 | psdir |
| 631 | libdir |
| 632 | localedir |
| 633 | mandir |
| 634 | DEFS |
| 635 | ECHO_C |
| 636 | ECHO_N |
| 637 | ECHO_T |
| 638 | LIBS |
| 639 | build_alias |
| 640 | host_alias |
| 641 | target_alias |
| 642 | LLVM_COPYRIGHT |
| 643 | subdirs |
| 644 | build |
| 645 | build_cpu |
| 646 | build_vendor |
| 647 | build_os |
| 648 | host |
| 649 | host_cpu |
| 650 | host_vendor |
| 651 | host_os |
| 652 | target |
| 653 | target_cpu |
| 654 | target_vendor |
| 655 | target_os |
| 656 | OS |
| 657 | HOST_OS |
| 658 | TARGET_OS |
| 659 | LINKALL |
| 660 | NOLINKALL |
| 661 | LLVM_ON_UNIX |
| 662 | LLVM_ON_WIN32 |
| 663 | ARCH |
| 664 | ENDIAN |
| 665 | CC |
| 666 | CFLAGS |
| 667 | LDFLAGS |
| 668 | CPPFLAGS |
| 669 | ac_ct_CC |
| 670 | EXEEXT |
| 671 | OBJEXT |
| 672 | CPP |
| 673 | GREP |
| 674 | EGREP |
| 675 | LLVM_CROSS_COMPILING |
| 676 | BUILD_CC |
| 677 | BUILD_EXEEXT |
| 678 | BUILD_CXX |
| 679 | CVSBUILD |
| 680 | ENABLE_OPTIMIZED |
| 681 | ENABLE_PROFILING |
| 682 | DISABLE_ASSERTIONS |
| 683 | ENABLE_EXPENSIVE_CHECKS |
| 684 | EXPENSIVE_CHECKS |
| 685 | DEBUG_RUNTIME |
| 686 | DEBUG_SYMBOLS |
| 687 | JIT |
| 688 | TARGET_HAS_JIT |
| 689 | ENABLE_DOXYGEN |
| 690 | ENABLE_THREADS |
| 691 | ENABLE_PIC |
| 692 | TARGETS_TO_BUILD |
| 693 | LLVM_ENUM_TARGETS |
| 694 | LLVM_ENUM_ASM_PRINTERS |
| 695 | LLVM_ENUM_ASM_PARSERS |
| 696 | LLVM_ENUM_DISASSEMBLERS |
| 697 | ENABLE_CBE_PRINTF_A |
| 698 | OPTIMIZE_OPTION |
| 699 | EXTRA_OPTIONS |
| 700 | BINUTILS_INCDIR |
| 701 | ENABLE_LLVMC_DYNAMIC |
| 702 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
| 703 | CXX |
| 704 | CXXFLAGS |
| 705 | ac_ct_CXX |
| 706 | NM |
| 707 | ifGNUmake |
| 708 | LN_S |
| 709 | CMP |
| 710 | CP |
| 711 | DATE |
| 712 | FIND |
| 713 | MKDIR |
| 714 | MV |
| 715 | RANLIB |
| 716 | AR |
| 717 | RM |
| 718 | SED |
| 719 | TAR |
| 720 | BINPWD |
| 721 | GRAPHVIZ |
| 722 | DOT |
| 723 | FDP |
| 724 | NEATO |
| 725 | TWOPI |
| 726 | CIRCO |
| 727 | GV |
| 728 | DOTTY |
| 729 | PERL |
| 730 | HAVE_PERL |
| 731 | INSTALL_PROGRAM |
| 732 | INSTALL_SCRIPT |
| 733 | INSTALL_DATA |
| 734 | BZIP2 |
| 735 | DOXYGEN |
| 736 | GROFF |
| 737 | GZIP |
| 738 | POD2HTML |
| 739 | POD2MAN |
| 740 | RUNTEST |
| 741 | TCLSH |
| 742 | ZIP |
| 743 | OCAMLC |
| 744 | OCAMLOPT |
| 745 | OCAMLDEP |
| 746 | OCAMLDOC |
| 747 | GAS |
| 748 | INSTALL_LTDL_TRUE |
| 749 | INSTALL_LTDL_FALSE |
| 750 | CONVENIENCE_LTDL_TRUE |
| 751 | CONVENIENCE_LTDL_FALSE |
| 752 | LIBADD_DL |
| 753 | LLVMGCCCOMMAND |
| 754 | LLVMGXXCOMMAND |
| 755 | LLVMGCC |
| 756 | LLVMGXX |
| 757 | NO_VARIADIC_MACROS |
| 758 | NO_MISSING_FIELD_INITIALIZERS |
| 759 | USE_UDIS86 |
| 760 | USE_OPROFILE |
| 761 | HAVE_PTHREAD |
| 762 | HUGE_VAL_SANITY |
| 763 | MMAP_FILE |
| 764 | LLVMCC1 |
| 765 | LLVMCC1PLUS |
| 766 | LLVMGCCDIR |
| 767 | LLVMGCCLIBEXEC |
| 768 | LLVMGCC_VERSION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 769 | LLVMGCC_LANGS |
| 770 | SHLIBEXT |
| 771 | LLVM_PREFIX |
| 772 | LLVM_BINDIR |
| 773 | LLVM_LIBDIR |
| 774 | LLVM_DATADIR |
| 775 | LLVM_DOCSDIR |
| 776 | LLVM_ETCDIR |
| 777 | LLVM_INCLUDEDIR |
| 778 | LLVM_INFODIR |
| 779 | LLVM_MANDIR |
| 780 | LLVM_CONFIGTIME |
| 781 | BINDINGS_TO_BUILD |
| 782 | ALL_BINDINGS |
| 783 | OCAML_LIBDIR |
| 784 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 785 | RPATH |
| 786 | RDYNAMIC |
| 787 | LIBOBJS |
| 788 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 789 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 790 | ac_precious_vars='build_alias |
| 791 | host_alias |
| 792 | target_alias |
| 793 | CC |
| 794 | CFLAGS |
| 795 | LDFLAGS |
| 796 | CPPFLAGS |
| 797 | CPP |
| 798 | CXX |
| 799 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 800 | CCC' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 801 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 802 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 803 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 804 | projects/llvm-test |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 805 | projects/test-suite |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 806 | projects/llvm-reopt |
| 807 | projects/llvm-gcc |
| 808 | projects/llvm-java |
| 809 | projects/llvm-tv |
| 810 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 811 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 812 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 813 | |
| 814 | # Initialize some variables set by options. |
| 815 | ac_init_help= |
| 816 | ac_init_version=false |
| 817 | # The variables have the same names as the options, with |
| 818 | # dashes changed to underlines. |
| 819 | cache_file=/dev/null |
| 820 | exec_prefix=NONE |
| 821 | no_create= |
| 822 | no_recursion= |
| 823 | prefix=NONE |
| 824 | program_prefix=NONE |
| 825 | program_suffix=NONE |
| 826 | program_transform_name=s,x,x, |
| 827 | silent= |
| 828 | site= |
| 829 | srcdir= |
| 830 | verbose= |
| 831 | x_includes=NONE |
| 832 | x_libraries=NONE |
| 833 | |
| 834 | # Installation directory options. |
| 835 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 836 | # and all the variables that are supposed to be based on exec_prefix |
| 837 | # by default will actually change. |
| 838 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 839 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 840 | bindir='${exec_prefix}/bin' |
| 841 | sbindir='${exec_prefix}/sbin' |
| 842 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 843 | datarootdir='${prefix}/share' |
| 844 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 845 | sysconfdir='${prefix}/etc' |
| 846 | sharedstatedir='${prefix}/com' |
| 847 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 848 | includedir='${prefix}/include' |
| 849 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 851 | infodir='${datarootdir}/info' |
| 852 | htmldir='${docdir}' |
| 853 | dvidir='${docdir}' |
| 854 | pdfdir='${docdir}' |
| 855 | psdir='${docdir}' |
| 856 | libdir='${exec_prefix}/lib' |
| 857 | localedir='${datarootdir}/locale' |
| 858 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 859 | |
| 860 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 861 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 862 | for ac_option |
| 863 | do |
| 864 | # If the previous option needs an argument, assign it. |
| 865 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 866 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 867 | ac_prev= |
| 868 | continue |
| 869 | fi |
| 870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 871 | case $ac_option in |
| 872 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 873 | *) ac_optarg=yes ;; |
| 874 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 875 | |
| 876 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 878 | case $ac_dashdash$ac_option in |
| 879 | --) |
| 880 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 881 | |
| 882 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 883 | ac_prev=bindir ;; |
| 884 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 885 | bindir=$ac_optarg ;; |
| 886 | |
| 887 | -build | --build | --buil | --bui | --bu) |
| 888 | ac_prev=build_alias ;; |
| 889 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 890 | build_alias=$ac_optarg ;; |
| 891 | |
| 892 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 893 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 894 | ac_prev=cache_file ;; |
| 895 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 896 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 897 | cache_file=$ac_optarg ;; |
| 898 | |
| 899 | --config-cache | -C) |
| 900 | cache_file=config.cache ;; |
| 901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 902 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 903 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 904 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 905 | datadir=$ac_optarg ;; |
| 906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 907 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 908 | | --dataroo | --dataro | --datar) |
| 909 | ac_prev=datarootdir ;; |
| 910 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 911 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 912 | datarootdir=$ac_optarg ;; |
| 913 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 914 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 915 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 916 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 917 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 918 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 919 | { (exit 1); exit 1; }; } |
| 920 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 921 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 922 | |
| 923 | -docdir | --docdir | --docdi | --doc | --do) |
| 924 | ac_prev=docdir ;; |
| 925 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 926 | docdir=$ac_optarg ;; |
| 927 | |
| 928 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 929 | ac_prev=dvidir ;; |
| 930 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 931 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 932 | |
| 933 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 934 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 935 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 936 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 937 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 938 | { (exit 1); exit 1; }; } |
| 939 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 940 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 941 | |
| 942 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 943 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 944 | | --exec | --exe | --ex) |
| 945 | ac_prev=exec_prefix ;; |
| 946 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 947 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 948 | | --exec=* | --exe=* | --ex=*) |
| 949 | exec_prefix=$ac_optarg ;; |
| 950 | |
| 951 | -gas | --gas | --ga | --g) |
| 952 | # Obsolete; use --with-gas. |
| 953 | with_gas=yes ;; |
| 954 | |
| 955 | -help | --help | --hel | --he | -h) |
| 956 | ac_init_help=long ;; |
| 957 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 958 | ac_init_help=recursive ;; |
| 959 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 960 | ac_init_help=short ;; |
| 961 | |
| 962 | -host | --host | --hos | --ho) |
| 963 | ac_prev=host_alias ;; |
| 964 | -host=* | --host=* | --hos=* | --ho=*) |
| 965 | host_alias=$ac_optarg ;; |
| 966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 967 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 968 | ac_prev=htmldir ;; |
| 969 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 970 | | --ht=*) |
| 971 | htmldir=$ac_optarg ;; |
| 972 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 973 | -includedir | --includedir | --includedi | --included | --include \ |
| 974 | | --includ | --inclu | --incl | --inc) |
| 975 | ac_prev=includedir ;; |
| 976 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 977 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 978 | includedir=$ac_optarg ;; |
| 979 | |
| 980 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 981 | ac_prev=infodir ;; |
| 982 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 983 | infodir=$ac_optarg ;; |
| 984 | |
| 985 | -libdir | --libdir | --libdi | --libd) |
| 986 | ac_prev=libdir ;; |
| 987 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 988 | libdir=$ac_optarg ;; |
| 989 | |
| 990 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 991 | | --libexe | --libex | --libe) |
| 992 | ac_prev=libexecdir ;; |
| 993 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 994 | | --libexe=* | --libex=* | --libe=*) |
| 995 | libexecdir=$ac_optarg ;; |
| 996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 997 | -localedir | --localedir | --localedi | --localed | --locale) |
| 998 | ac_prev=localedir ;; |
| 999 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1000 | localedir=$ac_optarg ;; |
| 1001 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1002 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1003 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1004 | ac_prev=localstatedir ;; |
| 1005 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1006 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | localstatedir=$ac_optarg ;; |
| 1008 | |
| 1009 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1010 | ac_prev=mandir ;; |
| 1011 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1012 | mandir=$ac_optarg ;; |
| 1013 | |
| 1014 | -nfp | --nfp | --nf) |
| 1015 | # Obsolete; use --without-fp. |
| 1016 | with_fp=no ;; |
| 1017 | |
| 1018 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1019 | | --no-cr | --no-c | -n) |
| 1020 | no_create=yes ;; |
| 1021 | |
| 1022 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1023 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1024 | no_recursion=yes ;; |
| 1025 | |
| 1026 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1027 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1028 | | --oldin | --oldi | --old | --ol | --o) |
| 1029 | ac_prev=oldincludedir ;; |
| 1030 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1031 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1032 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1033 | oldincludedir=$ac_optarg ;; |
| 1034 | |
| 1035 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1036 | ac_prev=prefix ;; |
| 1037 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1038 | prefix=$ac_optarg ;; |
| 1039 | |
| 1040 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1041 | | --program-pre | --program-pr | --program-p) |
| 1042 | ac_prev=program_prefix ;; |
| 1043 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1044 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1045 | program_prefix=$ac_optarg ;; |
| 1046 | |
| 1047 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1048 | | --program-suf | --program-su | --program-s) |
| 1049 | ac_prev=program_suffix ;; |
| 1050 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1051 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1052 | program_suffix=$ac_optarg ;; |
| 1053 | |
| 1054 | -program-transform-name | --program-transform-name \ |
| 1055 | | --program-transform-nam | --program-transform-na \ |
| 1056 | | --program-transform-n | --program-transform- \ |
| 1057 | | --program-transform | --program-transfor \ |
| 1058 | | --program-transfo | --program-transf \ |
| 1059 | | --program-trans | --program-tran \ |
| 1060 | | --progr-tra | --program-tr | --program-t) |
| 1061 | ac_prev=program_transform_name ;; |
| 1062 | -program-transform-name=* | --program-transform-name=* \ |
| 1063 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1064 | | --program-transform-n=* | --program-transform-=* \ |
| 1065 | | --program-transform=* | --program-transfor=* \ |
| 1066 | | --program-transfo=* | --program-transf=* \ |
| 1067 | | --program-trans=* | --program-tran=* \ |
| 1068 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1069 | program_transform_name=$ac_optarg ;; |
| 1070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1071 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1072 | ac_prev=pdfdir ;; |
| 1073 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1074 | pdfdir=$ac_optarg ;; |
| 1075 | |
| 1076 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1077 | ac_prev=psdir ;; |
| 1078 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1079 | psdir=$ac_optarg ;; |
| 1080 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1081 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1082 | | -silent | --silent | --silen | --sile | --sil) |
| 1083 | silent=yes ;; |
| 1084 | |
| 1085 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1086 | ac_prev=sbindir ;; |
| 1087 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1088 | | --sbi=* | --sb=*) |
| 1089 | sbindir=$ac_optarg ;; |
| 1090 | |
| 1091 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1092 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1093 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1094 | | --sha | --sh) |
| 1095 | ac_prev=sharedstatedir ;; |
| 1096 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1097 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1098 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1099 | | --sha=* | --sh=*) |
| 1100 | sharedstatedir=$ac_optarg ;; |
| 1101 | |
| 1102 | -site | --site | --sit) |
| 1103 | ac_prev=site ;; |
| 1104 | -site=* | --site=* | --sit=*) |
| 1105 | site=$ac_optarg ;; |
| 1106 | |
| 1107 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1108 | ac_prev=srcdir ;; |
| 1109 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1110 | srcdir=$ac_optarg ;; |
| 1111 | |
| 1112 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1113 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1114 | ac_prev=sysconfdir ;; |
| 1115 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1116 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1117 | sysconfdir=$ac_optarg ;; |
| 1118 | |
| 1119 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1120 | ac_prev=target_alias ;; |
| 1121 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1122 | target_alias=$ac_optarg ;; |
| 1123 | |
| 1124 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1125 | verbose=yes ;; |
| 1126 | |
| 1127 | -version | --version | --versio | --versi | --vers | -V) |
| 1128 | ac_init_version=: ;; |
| 1129 | |
| 1130 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1131 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1132 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1133 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1134 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1135 | { (exit 1); exit 1; }; } |
| 1136 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1137 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1138 | |
| 1139 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1140 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1141 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1142 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1143 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1144 | { (exit 1); exit 1; }; } |
| 1145 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1146 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1147 | |
| 1148 | --x) |
| 1149 | # Obsolete; use --with-x. |
| 1150 | with_x=yes ;; |
| 1151 | |
| 1152 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1153 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1154 | ac_prev=x_includes ;; |
| 1155 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1156 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1157 | x_includes=$ac_optarg ;; |
| 1158 | |
| 1159 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1160 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1161 | ac_prev=x_libraries ;; |
| 1162 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1163 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1164 | x_libraries=$ac_optarg ;; |
| 1165 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1166 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1167 | Try \`$0 --help' for more information." >&2 |
| 1168 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1169 | ;; |
| 1170 | |
| 1171 | *=*) |
| 1172 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1173 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1174 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1175 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1176 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1177 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1178 | export $ac_envvar ;; |
| 1179 | |
| 1180 | *) |
| 1181 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1182 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1184 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1185 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1186 | ;; |
| 1187 | |
| 1188 | esac |
| 1189 | done |
| 1190 | |
| 1191 | if test -n "$ac_prev"; then |
| 1192 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1193 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1194 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1195 | fi |
| 1196 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1197 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1198 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1199 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1200 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1201 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1202 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1203 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1204 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1205 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1206 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1207 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1208 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1209 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | done |
| 1211 | |
| 1212 | # There might be people who depend on the old broken behavior: `$host' |
| 1213 | # used to hold the argument of --host etc. |
| 1214 | # FIXME: To remove some day. |
| 1215 | build=$build_alias |
| 1216 | host=$host_alias |
| 1217 | target=$target_alias |
| 1218 | |
| 1219 | # FIXME: To remove some day. |
| 1220 | if test "x$host_alias" != x; then |
| 1221 | if test "x$build_alias" = x; then |
| 1222 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1223 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1224 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1225 | elif test "x$build_alias" != "x$host_alias"; then |
| 1226 | cross_compiling=yes |
| 1227 | fi |
| 1228 | fi |
| 1229 | |
| 1230 | ac_tool_prefix= |
| 1231 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1232 | |
| 1233 | test "$silent" = yes && exec 6>/dev/null |
| 1234 | |
| 1235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1236 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1237 | ac_ls_di=`ls -di .` && |
| 1238 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1239 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1240 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1241 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1242 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1243 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1244 | |
| 1245 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1246 | # Find the source files, if location was not specified. |
| 1247 | if test -z "$srcdir"; then |
| 1248 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1249 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1250 | ac_confdir=`$as_dirname -- "$0" || |
| 1251 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1252 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1253 | X"$0" : 'X\(//\)$' \| \ |
| 1254 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1255 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1256 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1257 | s//\1/ |
| 1258 | q |
| 1259 | } |
| 1260 | /^X\(\/\/\)[^/].*/{ |
| 1261 | s//\1/ |
| 1262 | q |
| 1263 | } |
| 1264 | /^X\(\/\/\)$/{ |
| 1265 | s//\1/ |
| 1266 | q |
| 1267 | } |
| 1268 | /^X\(\/\).*/{ |
| 1269 | s//\1/ |
| 1270 | q |
| 1271 | } |
| 1272 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1273 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1274 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1275 | srcdir=.. |
| 1276 | fi |
| 1277 | else |
| 1278 | ac_srcdir_defaulted=no |
| 1279 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1280 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1281 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1282 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1283 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1284 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1285 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1286 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1287 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1288 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1289 | pwd)` |
| 1290 | # When building in place, set srcdir=. |
| 1291 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1292 | srcdir=. |
| 1293 | fi |
| 1294 | # Remove unnecessary trailing slashes from srcdir. |
| 1295 | # Double slashes in file names in object file debugging info |
| 1296 | # mess up M-x gdb in Emacs. |
| 1297 | case $srcdir in |
| 1298 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1299 | esac |
| 1300 | for ac_var in $ac_precious_vars; do |
| 1301 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1302 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1303 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1304 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1305 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1306 | |
| 1307 | # |
| 1308 | # Report the --help message. |
| 1309 | # |
| 1310 | if test "$ac_init_help" = "long"; then |
| 1311 | # Omit some internal or obsolete options to make the list less imposing. |
| 1312 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1313 | cat <<_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1314 | \`configure' configures llvm 2.7svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1315 | |
| 1316 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1317 | |
| 1318 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1319 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1320 | |
| 1321 | Defaults for the options are specified in brackets. |
| 1322 | |
| 1323 | Configuration: |
| 1324 | -h, --help display this help and exit |
| 1325 | --help=short display options specific to this package |
| 1326 | --help=recursive display the short help of all the included packages |
| 1327 | -V, --version display version information and exit |
| 1328 | -q, --quiet, --silent do not print \`checking...' messages |
| 1329 | --cache-file=FILE cache test results in FILE [disabled] |
| 1330 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1331 | -n, --no-create do not create output files |
| 1332 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1333 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1334 | Installation directories: |
| 1335 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1336 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1337 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1338 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1339 | |
| 1340 | By default, \`make install' will install all the files in |
| 1341 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1342 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1343 | for instance \`--prefix=\$HOME'. |
| 1344 | |
| 1345 | For better control, use the options below. |
| 1346 | |
| 1347 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1348 | --bindir=DIR user executables [EPREFIX/bin] |
| 1349 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1350 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1351 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1352 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1353 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1354 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1355 | --includedir=DIR C header files [PREFIX/include] |
| 1356 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1357 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1358 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1359 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1360 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1361 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1362 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1363 | --htmldir=DIR html documentation [DOCDIR] |
| 1364 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1365 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1366 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1367 | _ACEOF |
| 1368 | |
| 1369 | cat <<\_ACEOF |
| 1370 | |
| 1371 | System types: |
| 1372 | --build=BUILD configure for building on BUILD [guessed] |
| 1373 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1374 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1375 | _ACEOF |
| 1376 | fi |
| 1377 | |
| 1378 | if test -n "$ac_init_help"; then |
| 1379 | case $ac_init_help in |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1380 | short | recursive ) echo "Configuration of llvm 2.7svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1381 | esac |
| 1382 | cat <<\_ACEOF |
| 1383 | |
| 1384 | Optional Features: |
| 1385 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1386 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1387 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1388 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1389 | --enable-assertions Compile with assertion checks enabled (default is |
| 1390 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1391 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1392 | Compile with expensive debug checks enabled (default |
| 1393 | is NO) |
| 1394 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1395 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1396 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1397 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1398 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1399 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1400 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1401 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1402 | is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1403 | --enable-targets Build specific host targets: all or |
| 1404 | target1,target2,... Valid targets are: host, x86, |
| 1405 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1406 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1407 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1408 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1409 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1410 | --enable-bindings Build specific language bindings: |
| 1411 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1412 | --enable-libffi Check for the presence of libffi (default is NO) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1413 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1414 | Win32) |
| 1415 | --enable-llvmc-dynamic-plugins |
| 1416 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1417 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1418 | |
| 1419 | Optional Packages: |
| 1420 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1421 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1422 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1423 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1424 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1425 | searches PATH) |
| 1426 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1427 | searches PATH) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1428 | --with-optimize-option Select the compiler options to use for optimized |
| 1429 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1430 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1431 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1432 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1433 | --with-c-include-dirs Colon separated list of directories clang will |
| 1434 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1435 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1436 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1437 | --with-cxx-include-32bit-dir |
| 1438 | 32 bit multilib dir. |
| 1439 | --with-cxx-include-64bit-dir |
| 1440 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1441 | --with-binutils-include Specify path to binutils/include/ containing |
| 1442 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1443 | --with-tclinclude directory where tcl headers are |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1444 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1445 | --with-oprofile=<prefix> |
| 1446 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1447 | |
| 1448 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1449 | CC C compiler command |
| 1450 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1451 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1452 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1453 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1454 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1455 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1456 | CXX C++ compiler command |
| 1457 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1458 | |
| 1459 | Use these variables to override the choices made by `configure' or to help |
| 1460 | it to find libraries and programs with nonstandard names/locations. |
| 1461 | |
| 1462 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1463 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1464 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1465 | fi |
| 1466 | |
| 1467 | if test "$ac_init_help" = "recursive"; then |
| 1468 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1469 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1470 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | ac_builddir=. |
| 1472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1473 | case "$ac_dir" in |
| 1474 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1475 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1476 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1477 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1478 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1479 | case $ac_top_builddir_sub in |
| 1480 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1481 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1482 | esac ;; |
| 1483 | esac |
| 1484 | ac_abs_top_builddir=$ac_pwd |
| 1485 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1486 | # for backward compatibility: |
| 1487 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1488 | |
| 1489 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1491 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1492 | ac_top_srcdir=$ac_top_builddir_sub |
| 1493 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1494 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1495 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1496 | ac_top_srcdir=$srcdir |
| 1497 | ac_abs_top_srcdir=$srcdir ;; |
| 1498 | *) # Relative name. |
| 1499 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1500 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1501 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1502 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1506 | # Check for guested configure. |
| 1507 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1508 | echo && |
| 1509 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1510 | elif test -f "$ac_srcdir/configure"; then |
| 1511 | echo && |
| 1512 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1513 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1514 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1515 | fi || ac_status=$? |
| 1516 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1517 | done |
| 1518 | fi |
| 1519 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1520 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | if $ac_init_version; then |
| 1522 | cat <<\_ACEOF |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1523 | llvm configure 2.7svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1524 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1525 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1526 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1527 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1528 | This configure script is free software; the Free Software Foundation |
| 1529 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1530 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1531 | Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1532 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1534 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1535 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | This file contains any messages produced by compilers while |
| 1537 | running configure, to aid debugging if configure makes a mistake. |
| 1538 | |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1539 | It was created by llvm $as_me 2.7svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1540 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1541 | |
| 1542 | $ $0 $@ |
| 1543 | |
| 1544 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1545 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1546 | { |
| 1547 | cat <<_ASUNAME |
| 1548 | ## --------- ## |
| 1549 | ## Platform. ## |
| 1550 | ## --------- ## |
| 1551 | |
| 1552 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1553 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1554 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1555 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1556 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1557 | |
| 1558 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1559 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1560 | |
| 1561 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1562 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1563 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1564 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1565 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1566 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1567 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1568 | |
| 1569 | _ASUNAME |
| 1570 | |
| 1571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1572 | for as_dir in $PATH |
| 1573 | do |
| 1574 | IFS=$as_save_IFS |
| 1575 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1576 | echo "PATH: $as_dir" |
| 1577 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1578 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1579 | |
| 1580 | } >&5 |
| 1581 | |
| 1582 | cat >&5 <<_ACEOF |
| 1583 | |
| 1584 | |
| 1585 | ## ----------- ## |
| 1586 | ## Core tests. ## |
| 1587 | ## ----------- ## |
| 1588 | |
| 1589 | _ACEOF |
| 1590 | |
| 1591 | |
| 1592 | # Keep a trace of the command line. |
| 1593 | # 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] | 1594 | # 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] | 1595 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1596 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1597 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1598 | ac_configure_args0= |
| 1599 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1600 | ac_must_keep_next=false |
| 1601 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1602 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1603 | for ac_arg |
| 1604 | do |
| 1605 | case $ac_arg in |
| 1606 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1607 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1608 | | -silent | --silent | --silen | --sile | --sil) |
| 1609 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1610 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1611 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1612 | esac |
| 1613 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1614 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1615 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1616 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1617 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1618 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1619 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1620 | case $ac_arg in |
| 1621 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1622 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1623 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1624 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1625 | case "$ac_configure_args0 " in |
| 1626 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1627 | esac |
| 1628 | ;; |
| 1629 | -* ) ac_must_keep_next=true ;; |
| 1630 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1631 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1632 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1633 | ;; |
| 1634 | esac |
| 1635 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1636 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1637 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1638 | $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] | 1639 | |
| 1640 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1641 | # config.log. We remove comments because anyway the quotes in there |
| 1642 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1643 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1644 | # 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] | 1645 | trap 'exit_status=$? |
| 1646 | # Save into config.log some information that might help in debugging. |
| 1647 | { |
| 1648 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1649 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1650 | cat <<\_ASBOX |
| 1651 | ## ---------------- ## |
| 1652 | ## Cache variables. ## |
| 1653 | ## ---------------- ## |
| 1654 | _ASBOX |
| 1655 | echo |
| 1656 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1657 | ( |
| 1658 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1659 | eval ac_val=\$$ac_var |
| 1660 | case $ac_val in #( |
| 1661 | *${as_nl}*) |
| 1662 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1663 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1664 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1665 | esac |
| 1666 | case $ac_var in #( |
| 1667 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1668 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1669 | esac ;; |
| 1670 | esac |
| 1671 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1672 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1674 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1675 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1676 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1677 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1678 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1679 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1680 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1681 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1682 | esac | |
| 1683 | sort |
| 1684 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1686 | |
| 1687 | cat <<\_ASBOX |
| 1688 | ## ----------------- ## |
| 1689 | ## Output variables. ## |
| 1690 | ## ----------------- ## |
| 1691 | _ASBOX |
| 1692 | echo |
| 1693 | for ac_var in $ac_subst_vars |
| 1694 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | eval ac_val=\$$ac_var |
| 1696 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1697 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1698 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1699 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1700 | done | sort |
| 1701 | echo |
| 1702 | |
| 1703 | if test -n "$ac_subst_files"; then |
| 1704 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1705 | ## ------------------- ## |
| 1706 | ## File substitutions. ## |
| 1707 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1708 | _ASBOX |
| 1709 | echo |
| 1710 | for ac_var in $ac_subst_files |
| 1711 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1712 | eval ac_val=\$$ac_var |
| 1713 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1714 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1715 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1716 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1717 | done | sort |
| 1718 | echo |
| 1719 | fi |
| 1720 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1721 | if test -s confdefs.h; then |
| 1722 | cat <<\_ASBOX |
| 1723 | ## ----------- ## |
| 1724 | ## confdefs.h. ## |
| 1725 | ## ----------- ## |
| 1726 | _ASBOX |
| 1727 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1729 | echo |
| 1730 | fi |
| 1731 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1732 | echo "$as_me: caught signal $ac_signal" |
| 1733 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1734 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1735 | rm -f core *.core core.conftest.* && |
| 1736 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1737 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1738 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1739 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1740 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1741 | done |
| 1742 | ac_signal=0 |
| 1743 | |
| 1744 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1745 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1746 | |
| 1747 | # Predefined preprocessor variables. |
| 1748 | |
| 1749 | cat >>confdefs.h <<_ACEOF |
| 1750 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1751 | _ACEOF |
| 1752 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1753 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | cat >>confdefs.h <<_ACEOF |
| 1755 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1756 | _ACEOF |
| 1757 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1758 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | cat >>confdefs.h <<_ACEOF |
| 1760 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1761 | _ACEOF |
| 1762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1763 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1764 | cat >>confdefs.h <<_ACEOF |
| 1765 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1766 | _ACEOF |
| 1767 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1768 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1769 | cat >>confdefs.h <<_ACEOF |
| 1770 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1771 | _ACEOF |
| 1772 | |
| 1773 | |
| 1774 | # Let the site file select an alternate cache file if it wants to. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1775 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1776 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1777 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1778 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1779 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1780 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1781 | set x "$ac_default_prefix/share/config.site" \ |
| 1782 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1783 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1784 | shift |
| 1785 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1786 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1787 | if test -r "$ac_site_file"; then |
| 1788 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1789 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1790 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1791 | . "$ac_site_file" |
| 1792 | fi |
| 1793 | done |
| 1794 | |
| 1795 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1796 | # Some versions of bash will fail to source /dev/null (special |
| 1797 | # files actually), so we avoid doing that. |
| 1798 | if test -f "$cache_file"; then |
| 1799 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1800 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1801 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1802 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1803 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1804 | esac |
| 1805 | fi |
| 1806 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1807 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1808 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1809 | >$cache_file |
| 1810 | fi |
| 1811 | |
| 1812 | # Check that the precious variables saved in the cache have kept the same |
| 1813 | # value. |
| 1814 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1816 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1817 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1818 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1819 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1820 | case $ac_old_set,$ac_new_set in |
| 1821 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1822 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1823 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1824 | ac_cache_corrupted=: ;; |
| 1825 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1826 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1827 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1828 | ac_cache_corrupted=: ;; |
| 1829 | ,);; |
| 1830 | *) |
| 1831 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1832 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1833 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1834 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1835 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1836 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1837 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1838 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1839 | fi;; |
| 1840 | esac |
| 1841 | # Pass precious variables to config.status. |
| 1842 | if test "$ac_new_set" = set; then |
| 1843 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1844 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1845 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1846 | esac |
| 1847 | case " $ac_configure_args " in |
| 1848 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1849 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1850 | esac |
| 1851 | fi |
| 1852 | done |
| 1853 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1854 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1855 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1856 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1857 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1858 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1859 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1860 | |
| 1861 | |
| 1862 | |
| 1863 | |
| 1864 | |
| 1865 | |
| 1866 | |
| 1867 | |
| 1868 | |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1884 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1885 | ac_ext=c |
| 1886 | ac_cpp='$CPP $CPPFLAGS' |
| 1887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1890 | |
| 1891 | |
| 1892 | |
Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1893 | LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1901 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1902 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1903 | if test -f "$ac_dir/install-sh"; then |
| 1904 | ac_aux_dir=$ac_dir |
| 1905 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1906 | break |
| 1907 | elif test -f "$ac_dir/install.sh"; then |
| 1908 | ac_aux_dir=$ac_dir |
| 1909 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1910 | break |
| 1911 | elif test -f "$ac_dir/shtool"; then |
| 1912 | ac_aux_dir=$ac_dir |
| 1913 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1914 | break |
| 1915 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1916 | done |
| 1917 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1918 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1919 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1920 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1921 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1922 | |
| 1923 | # These three variables are undocumented and unsupported, |
| 1924 | # and are intended to be withdrawn in a future Autoconf release. |
| 1925 | # They can cause serious problems if a builder's source tree is in a directory |
| 1926 | # whose full name contains unusual characters. |
| 1927 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1928 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1929 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1930 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1931 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1932 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1933 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1934 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1935 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1936 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1937 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1938 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1939 | fi |
| 1940 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1941 | for i in `ls ${srcdir}/projects` |
| 1942 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1943 | if test -d ${srcdir}/projects/${i} ; then |
| 1944 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1945 | CVS) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1946 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1947 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1948 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1949 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1950 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1951 | ;; |
Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 1952 | # llvm-test is the old name of the test-suite, kept here for backwards |
| 1953 | # compatibility |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 1954 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1955 | ;; |
Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 1956 | test-suite) subdirs="$subdirs projects/test-suite" |
| 1957 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1958 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1959 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1960 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1961 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1962 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1963 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1964 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1965 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1966 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1967 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 1968 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 1969 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1970 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 1971 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1972 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1973 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 1974 | 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] | 1975 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1976 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1977 | fi |
| 1978 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1979 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1980 | |
| 1981 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1982 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1983 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1984 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 1985 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1986 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1987 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1988 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 1989 | if test "${ac_cv_build+set}" = set; then |
| 1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1991 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1992 | ac_build_alias=$build_alias |
| 1993 | test "x$ac_build_alias" = x && |
| 1994 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1995 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1996 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1997 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1998 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1999 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2000 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2001 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2002 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2003 | |
| 2004 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2005 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2006 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2007 | case $ac_cv_build in |
| 2008 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2009 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2010 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2011 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2012 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2013 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2014 | ac_save_IFS=$IFS; IFS='-' |
| 2015 | set x $ac_cv_build |
| 2016 | shift |
| 2017 | build_cpu=$1 |
| 2018 | build_vendor=$2 |
| 2019 | shift; shift |
| 2020 | # Remember, the first character of IFS is used to create $*, |
| 2021 | # except with old shells: |
| 2022 | build_os=$* |
| 2023 | IFS=$ac_save_IFS |
| 2024 | 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] | 2025 | |
| 2026 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2027 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2028 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2029 | if test "${ac_cv_host+set}" = set; then |
| 2030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2031 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2032 | if test "x$host_alias" = x; then |
| 2033 | ac_cv_host=$ac_cv_build |
| 2034 | else |
| 2035 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2036 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2037 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2038 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2039 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2040 | |
| 2041 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2042 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2043 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2044 | case $ac_cv_host in |
| 2045 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2046 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2047 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2048 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2049 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2050 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2051 | ac_save_IFS=$IFS; IFS='-' |
| 2052 | set x $ac_cv_host |
| 2053 | shift |
| 2054 | host_cpu=$1 |
| 2055 | host_vendor=$2 |
| 2056 | shift; shift |
| 2057 | # Remember, the first character of IFS is used to create $*, |
| 2058 | # except with old shells: |
| 2059 | host_os=$* |
| 2060 | IFS=$ac_save_IFS |
| 2061 | 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] | 2062 | |
| 2063 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2064 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2065 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2066 | if test "${ac_cv_target+set}" = set; then |
| 2067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2068 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2069 | if test "x$target_alias" = x; then |
| 2070 | ac_cv_target=$ac_cv_host |
| 2071 | else |
| 2072 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2073 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2074 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2075 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2076 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2077 | |
| 2078 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2079 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2080 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2081 | case $ac_cv_target in |
| 2082 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2083 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2084 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2085 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2086 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2087 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2088 | ac_save_IFS=$IFS; IFS='-' |
| 2089 | set x $ac_cv_target |
| 2090 | shift |
| 2091 | target_cpu=$1 |
| 2092 | target_vendor=$2 |
| 2093 | shift; shift |
| 2094 | # Remember, the first character of IFS is used to create $*, |
| 2095 | # except with old shells: |
| 2096 | target_os=$* |
| 2097 | IFS=$ac_save_IFS |
| 2098 | 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] | 2099 | |
| 2100 | |
| 2101 | # The aliases save the names the user supplied, while $host etc. |
| 2102 | # will get canonicalized. |
| 2103 | test -n "$target_alias" && |
| 2104 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2105 | NONENONEs,x,x, && |
| 2106 | program_prefix=${target_alias}- |
| 2107 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2108 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2109 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2110 | if test "${llvm_cv_os_type+set}" = set; then |
| 2111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2112 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2113 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2114 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2115 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2116 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2117 | llvm_cv_os_type="AIX" |
| 2118 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2119 | *-*-irix*) |
| 2120 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2121 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2122 | llvm_cv_os_type="IRIX" |
| 2123 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2124 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2125 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2126 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2127 | llvm_cv_os_type="Cygwin" |
| 2128 | llvm_cv_platform_type="Unix" ;; |
| 2129 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2130 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2131 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2132 | llvm_cv_os_type="Darwin" |
| 2133 | llvm_cv_platform_type="Unix" ;; |
| 2134 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2135 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2136 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2137 | llvm_cv_os_type="FreeBSD" |
| 2138 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2139 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2140 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2141 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2142 | llvm_cv_os_type="OpenBSD" |
| 2143 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2144 | *-*-netbsd*) |
| 2145 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2146 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2147 | llvm_cv_os_type="NetBSD" |
| 2148 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2149 | *-*-dragonfly*) |
| 2150 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2151 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2152 | llvm_cv_os_type="DragonFly" |
| 2153 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2154 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2155 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2156 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2157 | llvm_cv_os_type="HP-UX" |
| 2158 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2159 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2160 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2161 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2162 | llvm_cv_os_type="Interix" |
| 2163 | llvm_cv_platform_type="Unix" ;; |
| 2164 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2165 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2166 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2167 | llvm_cv_os_type="Linux" |
| 2168 | llvm_cv_platform_type="Unix" ;; |
| 2169 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2170 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2171 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2172 | llvm_cv_os_type="SunOS" |
| 2173 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2174 | *-*-auroraux*) |
| 2175 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2176 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2177 | llvm_cv_os_type="AuroraUX" |
| 2178 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2179 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2180 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2181 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2182 | llvm_cv_os_type="Win32" |
| 2183 | llvm_cv_platform_type="Win32" ;; |
| 2184 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2185 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2186 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2187 | llvm_cv_os_type="MingW" |
| 2188 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2189 | *-*-haiku*) |
| 2190 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2191 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2192 | llvm_cv_os_type="Haiku" |
| 2193 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2194 | *-unknown-eabi*) |
| 2195 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2196 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2197 | llvm_cv_os_type="Freestanding" |
| 2198 | llvm_cv_platform_type="Unix" ;; |
| 2199 | *-unknown-elf*) |
| 2200 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2201 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2202 | llvm_cv_os_type="Freestanding" |
| 2203 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2204 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2205 | llvm_cv_link_all_option="" |
| 2206 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2207 | llvm_cv_os_type="Unknown" |
| 2208 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2209 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2210 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2211 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2212 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2213 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2214 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2215 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2216 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2218 | else |
| 2219 | case $target in |
| 2220 | *-*-aix*) |
| 2221 | llvm_cv_target_os_type="AIX" ;; |
| 2222 | *-*-irix*) |
| 2223 | llvm_cv_target_os_type="IRIX" ;; |
| 2224 | *-*-cygwin*) |
| 2225 | llvm_cv_target_os_type="Cygwin" ;; |
| 2226 | *-*-darwin*) |
| 2227 | llvm_cv_target_os_type="Darwin" ;; |
| 2228 | *-*-freebsd*) |
| 2229 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2230 | *-*-openbsd*) |
| 2231 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2232 | *-*-netbsd*) |
| 2233 | llvm_cv_target_os_type="NetBSD" ;; |
| 2234 | *-*-dragonfly*) |
| 2235 | llvm_cv_target_os_type="DragonFly" ;; |
| 2236 | *-*-hpux*) |
| 2237 | llvm_cv_target_os_type="HP-UX" ;; |
| 2238 | *-*-interix*) |
| 2239 | llvm_cv_target_os_type="Interix" ;; |
| 2240 | *-*-linux*) |
| 2241 | llvm_cv_target_os_type="Linux" ;; |
| 2242 | *-*-solaris*) |
| 2243 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2244 | *-*-auroraux*) |
| 2245 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2246 | *-*-win32*) |
| 2247 | llvm_cv_target_os_type="Win32" ;; |
| 2248 | *-*-mingw*) |
| 2249 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2250 | *-*-haiku*) |
| 2251 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2252 | *-unknown-eabi*) |
| 2253 | llvm_cv_target_os_type="Freestanding" ;; |
| 2254 | *) |
| 2255 | llvm_cv_target_os_type="Unknown" ;; |
| 2256 | esac |
| 2257 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2258 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2259 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2260 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2261 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2262 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2263 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2264 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2265 | fi |
| 2266 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2267 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2268 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2269 | HOST_OS=$llvm_cv_os_type |
| 2270 | |
| 2271 | TARGET_OS=$llvm_cv_target_os_type |
| 2272 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2274 | LINKALL=$llvm_cv_link_all_option |
| 2275 | |
| 2276 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2277 | |
| 2278 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2279 | case $llvm_cv_platform_type in |
| 2280 | Unix) |
| 2281 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2282 | cat >>confdefs.h <<\_ACEOF |
| 2283 | #define LLVM_ON_UNIX 1 |
| 2284 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2285 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2286 | LLVM_ON_UNIX=1 |
| 2287 | |
| 2288 | LLVM_ON_WIN32=0 |
| 2289 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2290 | ;; |
| 2291 | Win32) |
| 2292 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2293 | cat >>confdefs.h <<\_ACEOF |
| 2294 | #define LLVM_ON_WIN32 1 |
| 2295 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2296 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2297 | LLVM_ON_UNIX=0 |
| 2298 | |
| 2299 | LLVM_ON_WIN32=1 |
| 2300 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2301 | ;; |
| 2302 | esac |
| 2303 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2304 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2305 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2306 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2308 | else |
| 2309 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2310 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2311 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2312 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2313 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2314 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2315 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2316 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2317 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2318 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2319 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2320 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2321 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2322 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2323 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2324 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2325 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2326 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2327 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2328 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2329 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2330 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2331 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2332 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2333 | # Determine the LLVM native architecture for the target |
| 2334 | case "$llvm_cv_target_arch" in |
| 2335 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2336 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2337 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2338 | esac |
| 2339 | |
| 2340 | ARCH=$llvm_cv_target_arch |
| 2341 | |
| 2342 | |
| 2343 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2344 | ac_cpp='$CPP $CPPFLAGS' |
| 2345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2348 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2349 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2350 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2353 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2355 | else |
| 2356 | if test -n "$CC"; then |
| 2357 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2358 | else |
| 2359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2360 | for as_dir in $PATH |
| 2361 | do |
| 2362 | IFS=$as_save_IFS |
| 2363 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2364 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2365 | 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] | 2366 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2368 | break 2 |
| 2369 | fi |
| 2370 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2371 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2372 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2373 | |
| 2374 | fi |
| 2375 | fi |
| 2376 | CC=$ac_cv_prog_CC |
| 2377 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2378 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2379 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2380 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2381 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2382 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2383 | fi |
| 2384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2385 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2386 | fi |
| 2387 | if test -z "$ac_cv_prog_CC"; then |
| 2388 | ac_ct_CC=$CC |
| 2389 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2390 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2391 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2393 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2395 | else |
| 2396 | if test -n "$ac_ct_CC"; then |
| 2397 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2398 | else |
| 2399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2400 | for as_dir in $PATH |
| 2401 | do |
| 2402 | IFS=$as_save_IFS |
| 2403 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2405 | 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] | 2406 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2408 | break 2 |
| 2409 | fi |
| 2410 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2411 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2412 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2413 | |
| 2414 | fi |
| 2415 | fi |
| 2416 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2417 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2418 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2419 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2420 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2421 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2422 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2423 | fi |
| 2424 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2425 | if test "x$ac_ct_CC" = x; then |
| 2426 | CC="" |
| 2427 | else |
| 2428 | case $cross_compiling:$ac_tool_warned in |
| 2429 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2430 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2431 | whose name does not start with the host triplet. If you think this |
| 2432 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2433 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2434 | whose name does not start with the host triplet. If you think this |
| 2435 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2436 | ac_tool_warned=yes ;; |
| 2437 | esac |
| 2438 | CC=$ac_ct_CC |
| 2439 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2440 | else |
| 2441 | CC="$ac_cv_prog_CC" |
| 2442 | fi |
| 2443 | |
| 2444 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2445 | if test -n "$ac_tool_prefix"; then |
| 2446 | # 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] | 2447 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2448 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2450 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2452 | else |
| 2453 | if test -n "$CC"; then |
| 2454 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2455 | else |
| 2456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2457 | for as_dir in $PATH |
| 2458 | do |
| 2459 | IFS=$as_save_IFS |
| 2460 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2462 | 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] | 2463 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2465 | break 2 |
| 2466 | fi |
| 2467 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2468 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2469 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2470 | |
| 2471 | fi |
| 2472 | fi |
| 2473 | CC=$ac_cv_prog_CC |
| 2474 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2475 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2476 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2477 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2478 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2479 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2480 | fi |
| 2481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2482 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2483 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2484 | fi |
| 2485 | if test -z "$CC"; then |
| 2486 | # Extract the first word of "cc", so it can be a program name with args. |
| 2487 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2488 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2490 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2492 | else |
| 2493 | if test -n "$CC"; then |
| 2494 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2495 | else |
| 2496 | ac_prog_rejected=no |
| 2497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2498 | for as_dir in $PATH |
| 2499 | do |
| 2500 | IFS=$as_save_IFS |
| 2501 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2502 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2503 | 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] | 2504 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2505 | ac_prog_rejected=yes |
| 2506 | continue |
| 2507 | fi |
| 2508 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2510 | break 2 |
| 2511 | fi |
| 2512 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2513 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2514 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2515 | |
| 2516 | if test $ac_prog_rejected = yes; then |
| 2517 | # We found a bogon in the path, so make sure we never use it. |
| 2518 | set dummy $ac_cv_prog_CC |
| 2519 | shift |
| 2520 | if test $# != 0; then |
| 2521 | # We chose a different compiler from the bogus one. |
| 2522 | # However, it has the same basename, so the bogon will be chosen |
| 2523 | # first if we set CC to just the basename; use the full file name. |
| 2524 | shift |
| 2525 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2526 | fi |
| 2527 | fi |
| 2528 | fi |
| 2529 | fi |
| 2530 | CC=$ac_cv_prog_CC |
| 2531 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2532 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2533 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2534 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2535 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2536 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2537 | fi |
| 2538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2539 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2540 | fi |
| 2541 | if test -z "$CC"; then |
| 2542 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2543 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2544 | do |
| 2545 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2546 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2547 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2548 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2549 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2551 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2552 | if test -n "$CC"; then |
| 2553 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2554 | else |
| 2555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2556 | for as_dir in $PATH |
| 2557 | do |
| 2558 | IFS=$as_save_IFS |
| 2559 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2560 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2561 | 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] | 2562 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2563 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2564 | break 2 |
| 2565 | fi |
| 2566 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2567 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2568 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2569 | |
| 2570 | fi |
| 2571 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2572 | CC=$ac_cv_prog_CC |
| 2573 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2574 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2575 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2576 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2577 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2578 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2579 | fi |
| 2580 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2581 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2582 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2583 | done |
| 2584 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2585 | if test -z "$CC"; then |
| 2586 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2587 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2588 | do |
| 2589 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2590 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2591 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2593 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2595 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2596 | if test -n "$ac_ct_CC"; then |
| 2597 | 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] | 2598 | else |
| 2599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2600 | for as_dir in $PATH |
| 2601 | do |
| 2602 | IFS=$as_save_IFS |
| 2603 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2605 | 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] | 2606 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2608 | break 2 |
| 2609 | fi |
| 2610 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2611 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2612 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2613 | |
| 2614 | fi |
| 2615 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2616 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2617 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2618 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2619 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2620 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2621 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2622 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2623 | fi |
| 2624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2626 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2627 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2629 | if test "x$ac_ct_CC" = x; then |
| 2630 | CC="" |
| 2631 | else |
| 2632 | case $cross_compiling:$ac_tool_warned in |
| 2633 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2634 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2635 | whose name does not start with the host triplet. If you think this |
| 2636 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2637 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2638 | whose name does not start with the host triplet. If you think this |
| 2639 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2640 | ac_tool_warned=yes ;; |
| 2641 | esac |
| 2642 | CC=$ac_ct_CC |
| 2643 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2644 | fi |
| 2645 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2646 | fi |
| 2647 | |
| 2648 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2649 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2650 | See \`config.log' for more details." >&5 |
| 2651 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2652 | See \`config.log' for more details." >&2;} |
| 2653 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2654 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2655 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2656 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2657 | ac_compiler=`set X $ac_compile; echo $2` |
| 2658 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2659 | case "(($ac_try" in |
| 2660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2661 | *) ac_try_echo=$ac_try;; |
| 2662 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2664 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2665 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); } |
| 2668 | { (ac_try="$ac_compiler -v >&5" |
| 2669 | case "(($ac_try" in |
| 2670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2671 | *) ac_try_echo=$ac_try;; |
| 2672 | esac |
| 2673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2674 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2675 | ac_status=$? |
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2677 | (exit $ac_status); } |
| 2678 | { (ac_try="$ac_compiler -V >&5" |
| 2679 | case "(($ac_try" in |
| 2680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2681 | *) ac_try_echo=$ac_try;; |
| 2682 | esac |
| 2683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2684 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2685 | ac_status=$? |
| 2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2687 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2688 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2689 | cat >conftest.$ac_ext <<_ACEOF |
| 2690 | /* confdefs.h. */ |
| 2691 | _ACEOF |
| 2692 | cat confdefs.h >>conftest.$ac_ext |
| 2693 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2694 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2696 | int |
| 2697 | main () |
| 2698 | { |
| 2699 | |
| 2700 | ; |
| 2701 | return 0; |
| 2702 | } |
| 2703 | _ACEOF |
| 2704 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2705 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2706 | # Try to create an executable without -o first, disregard a.out. |
| 2707 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2708 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2709 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2710 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2711 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2712 | # |
| 2713 | # List of possible output files, starting from the most likely. |
| 2714 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2715 | # only as a last resort. b.out is created by i960 compilers. |
| 2716 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2717 | # |
| 2718 | # The IRIX 6 linker writes into existing files which may not be |
| 2719 | # executable, retaining their permissions. Remove them first so a |
| 2720 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2721 | ac_rmfiles= |
| 2722 | for ac_file in $ac_files |
| 2723 | do |
| 2724 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2725 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2726 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2727 | esac |
| 2728 | done |
| 2729 | rm -f $ac_rmfiles |
| 2730 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2731 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2732 | case "(($ac_try" in |
| 2733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2734 | *) ac_try_echo=$ac_try;; |
| 2735 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2737 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2738 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2740 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2741 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2742 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2743 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2744 | # so that the user can short-circuit this test for compilers unknown to |
| 2745 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2746 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2747 | do |
| 2748 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2749 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2750 | *.$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] | 2751 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2752 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2753 | # We found the default executable, but exeext='' is most |
| 2754 | # certainly right. |
| 2755 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2756 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2757 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2758 | then :; else |
| 2759 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2760 | fi |
| 2761 | # We set ac_cv_exeext here because the later test for it is not |
| 2762 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2763 | # argument, so we may need to know it at that point already. |
| 2764 | # Even if this section looks crufty: it has the advantage of |
| 2765 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2766 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2767 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2768 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2769 | esac |
| 2770 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2771 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2772 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2773 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2774 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2776 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2777 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2778 | See \`config.log' for more details." >&5 |
| 2779 | echo "$as_me: error: C compiler cannot create executables |
| 2780 | See \`config.log' for more details." >&2;} |
| 2781 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2782 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2783 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2784 | ac_exeext=$ac_cv_exeext |
| 2785 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2786 | echo "${ECHO_T}$ac_file" >&6; } |
| 2787 | |
| 2788 | # Check that the compiler produces executables we can run. If not, either |
| 2789 | # the compiler is broken, or we cross compile. |
| 2790 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2791 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2792 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2793 | # If not cross compiling, check that we can run a simple program. |
| 2794 | if test "$cross_compiling" != yes; then |
| 2795 | if { ac_try='./$ac_file' |
| 2796 | { (case "(($ac_try" in |
| 2797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2798 | *) ac_try_echo=$ac_try;; |
| 2799 | esac |
| 2800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2801 | (eval "$ac_try") 2>&5 |
| 2802 | ac_status=$? |
| 2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2804 | (exit $ac_status); }; }; then |
| 2805 | cross_compiling=no |
| 2806 | else |
| 2807 | if test "$cross_compiling" = maybe; then |
| 2808 | cross_compiling=yes |
| 2809 | else |
| 2810 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2811 | If you meant to cross compile, use \`--host'. |
| 2812 | See \`config.log' for more details." >&5 |
| 2813 | echo "$as_me: error: cannot run C compiled programs. |
| 2814 | If you meant to cross compile, use \`--host'. |
| 2815 | See \`config.log' for more details." >&2;} |
| 2816 | { (exit 1); exit 1; }; } |
| 2817 | fi |
| 2818 | fi |
| 2819 | fi |
| 2820 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2821 | echo "${ECHO_T}yes" >&6; } |
| 2822 | |
| 2823 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2824 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2825 | # Check that the compiler produces executables we can run. If not, either |
| 2826 | # the compiler is broken, or we cross compile. |
| 2827 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2828 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2829 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2830 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2831 | |
| 2832 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2833 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2834 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2835 | case "(($ac_try" in |
| 2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2837 | *) ac_try_echo=$ac_try;; |
| 2838 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2840 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2841 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2843 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2844 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2845 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2846 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2847 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2848 | for ac_file in conftest.exe conftest conftest.*; do |
| 2849 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2850 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2851 | *.$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] | 2852 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2853 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2854 | * ) break;; |
| 2855 | esac |
| 2856 | done |
| 2857 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2858 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2859 | See \`config.log' for more details." >&5 |
| 2860 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2861 | See \`config.log' for more details." >&2;} |
| 2862 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2863 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2864 | |
| 2865 | rm -f conftest$ac_cv_exeext |
| 2866 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2867 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2868 | |
| 2869 | rm -f conftest.$ac_ext |
| 2870 | EXEEXT=$ac_cv_exeext |
| 2871 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2873 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2874 | if test "${ac_cv_objext+set}" = set; then |
| 2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2876 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2877 | cat >conftest.$ac_ext <<_ACEOF |
| 2878 | /* confdefs.h. */ |
| 2879 | _ACEOF |
| 2880 | cat confdefs.h >>conftest.$ac_ext |
| 2881 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2882 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2883 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2884 | int |
| 2885 | main () |
| 2886 | { |
| 2887 | |
| 2888 | ; |
| 2889 | return 0; |
| 2890 | } |
| 2891 | _ACEOF |
| 2892 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2893 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2894 | case "(($ac_try" in |
| 2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2896 | *) ac_try_echo=$ac_try;; |
| 2897 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2899 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2900 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2902 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2903 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2904 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2905 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2906 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2907 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2908 | break;; |
| 2909 | esac |
| 2910 | done |
| 2911 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2912 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2914 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2915 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2916 | See \`config.log' for more details." >&5 |
| 2917 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2918 | See \`config.log' for more details." >&2;} |
| 2919 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2920 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2921 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2922 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2923 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2924 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2925 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | OBJEXT=$ac_cv_objext |
| 2927 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2928 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2929 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2930 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2932 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2933 | cat >conftest.$ac_ext <<_ACEOF |
| 2934 | /* confdefs.h. */ |
| 2935 | _ACEOF |
| 2936 | cat confdefs.h >>conftest.$ac_ext |
| 2937 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2938 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2939 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2940 | int |
| 2941 | main () |
| 2942 | { |
| 2943 | #ifndef __GNUC__ |
| 2944 | choke me |
| 2945 | #endif |
| 2946 | |
| 2947 | ; |
| 2948 | return 0; |
| 2949 | } |
| 2950 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2951 | rm -f conftest.$ac_objext |
| 2952 | if { (ac_try="$ac_compile" |
| 2953 | case "(($ac_try" in |
| 2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2955 | *) ac_try_echo=$ac_try;; |
| 2956 | esac |
| 2957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2958 | (eval "$ac_compile") 2>conftest.er1 |
| 2959 | ac_status=$? |
| 2960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2961 | rm -f conftest.er1 |
| 2962 | cat conftest.err >&5 |
| 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2964 | (exit $ac_status); } && |
| 2965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2966 | { (case "(($ac_try" in |
| 2967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2968 | *) ac_try_echo=$ac_try;; |
| 2969 | esac |
| 2970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2971 | (eval "$ac_try") 2>&5 |
| 2972 | ac_status=$? |
| 2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2974 | (exit $ac_status); }; } && |
| 2975 | { ac_try='test -s conftest.$ac_objext' |
| 2976 | { (case "(($ac_try" in |
| 2977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2978 | *) ac_try_echo=$ac_try;; |
| 2979 | esac |
| 2980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2981 | (eval "$ac_try") 2>&5 |
| 2982 | ac_status=$? |
| 2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2984 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2985 | ac_compiler_gnu=yes |
| 2986 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2987 | echo "$as_me: failed program was:" >&5 |
| 2988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2989 | |
| 2990 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2991 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2994 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2995 | |
| 2996 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2997 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2998 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2999 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3000 | ac_test_CFLAGS=${CFLAGS+set} |
| 3001 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3002 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3003 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3004 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3006 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3007 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3008 | ac_c_werror_flag=yes |
| 3009 | ac_cv_prog_cc_g=no |
| 3010 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3011 | cat >conftest.$ac_ext <<_ACEOF |
| 3012 | /* confdefs.h. */ |
| 3013 | _ACEOF |
| 3014 | cat confdefs.h >>conftest.$ac_ext |
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3016 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3017 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3018 | int |
| 3019 | main () |
| 3020 | { |
| 3021 | |
| 3022 | ; |
| 3023 | return 0; |
| 3024 | } |
| 3025 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3026 | rm -f conftest.$ac_objext |
| 3027 | if { (ac_try="$ac_compile" |
| 3028 | case "(($ac_try" in |
| 3029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3030 | *) ac_try_echo=$ac_try;; |
| 3031 | esac |
| 3032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3033 | (eval "$ac_compile") 2>conftest.er1 |
| 3034 | ac_status=$? |
| 3035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3036 | rm -f conftest.er1 |
| 3037 | cat conftest.err >&5 |
| 3038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3039 | (exit $ac_status); } && |
| 3040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 3047 | ac_status=$? |
| 3048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3049 | (exit $ac_status); }; } && |
| 3050 | { ac_try='test -s conftest.$ac_objext' |
| 3051 | { (case "(($ac_try" in |
| 3052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3053 | *) ac_try_echo=$ac_try;; |
| 3054 | esac |
| 3055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3056 | (eval "$ac_try") 2>&5 |
| 3057 | ac_status=$? |
| 3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3059 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3060 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3061 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3062 | echo "$as_me: failed program was:" >&5 |
| 3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3064 | |
| 3065 | CFLAGS="" |
| 3066 | cat >conftest.$ac_ext <<_ACEOF |
| 3067 | /* confdefs.h. */ |
| 3068 | _ACEOF |
| 3069 | cat confdefs.h >>conftest.$ac_ext |
| 3070 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3071 | /* end confdefs.h. */ |
| 3072 | |
| 3073 | int |
| 3074 | main () |
| 3075 | { |
| 3076 | |
| 3077 | ; |
| 3078 | return 0; |
| 3079 | } |
| 3080 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3081 | rm -f conftest.$ac_objext |
| 3082 | if { (ac_try="$ac_compile" |
| 3083 | case "(($ac_try" in |
| 3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3085 | *) ac_try_echo=$ac_try;; |
| 3086 | esac |
| 3087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3088 | (eval "$ac_compile") 2>conftest.er1 |
| 3089 | ac_status=$? |
| 3090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3091 | rm -f conftest.er1 |
| 3092 | cat conftest.err >&5 |
| 3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3094 | (exit $ac_status); } && |
| 3095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3096 | { (case "(($ac_try" in |
| 3097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3098 | *) ac_try_echo=$ac_try;; |
| 3099 | esac |
| 3100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3101 | (eval "$ac_try") 2>&5 |
| 3102 | ac_status=$? |
| 3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3104 | (exit $ac_status); }; } && |
| 3105 | { ac_try='test -s conftest.$ac_objext' |
| 3106 | { (case "(($ac_try" in |
| 3107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3108 | *) ac_try_echo=$ac_try;; |
| 3109 | esac |
| 3110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3111 | (eval "$ac_try") 2>&5 |
| 3112 | ac_status=$? |
| 3113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3114 | (exit $ac_status); }; }; then |
| 3115 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3116 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3117 | echo "$as_me: failed program was:" >&5 |
| 3118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3119 | |
| 3120 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3121 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3122 | cat >conftest.$ac_ext <<_ACEOF |
| 3123 | /* confdefs.h. */ |
| 3124 | _ACEOF |
| 3125 | cat confdefs.h >>conftest.$ac_ext |
| 3126 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3127 | /* end confdefs.h. */ |
| 3128 | |
| 3129 | int |
| 3130 | main () |
| 3131 | { |
| 3132 | |
| 3133 | ; |
| 3134 | return 0; |
| 3135 | } |
| 3136 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3137 | rm -f conftest.$ac_objext |
| 3138 | if { (ac_try="$ac_compile" |
| 3139 | case "(($ac_try" in |
| 3140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3141 | *) ac_try_echo=$ac_try;; |
| 3142 | esac |
| 3143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3144 | (eval "$ac_compile") 2>conftest.er1 |
| 3145 | ac_status=$? |
| 3146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3147 | rm -f conftest.er1 |
| 3148 | cat conftest.err >&5 |
| 3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3150 | (exit $ac_status); } && |
| 3151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3152 | { (case "(($ac_try" in |
| 3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3154 | *) ac_try_echo=$ac_try;; |
| 3155 | esac |
| 3156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3157 | (eval "$ac_try") 2>&5 |
| 3158 | ac_status=$? |
| 3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3160 | (exit $ac_status); }; } && |
| 3161 | { ac_try='test -s conftest.$ac_objext' |
| 3162 | { (case "(($ac_try" in |
| 3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3164 | *) ac_try_echo=$ac_try;; |
| 3165 | esac |
| 3166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3167 | (eval "$ac_try") 2>&5 |
| 3168 | ac_status=$? |
| 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3170 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3171 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3172 | else |
| 3173 | echo "$as_me: failed program was:" >&5 |
| 3174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3175 | |
| 3176 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3177 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3180 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3183 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3186 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3187 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3188 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3189 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3190 | if test "$ac_test_CFLAGS" = set; then |
| 3191 | CFLAGS=$ac_save_CFLAGS |
| 3192 | elif test $ac_cv_prog_cc_g = yes; then |
| 3193 | if test "$GCC" = yes; then |
| 3194 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3195 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3196 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3197 | fi |
| 3198 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3199 | if test "$GCC" = yes; then |
| 3200 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3201 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3202 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3203 | fi |
| 3204 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3205 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3206 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3207 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3209 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3210 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3211 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3212 | cat >conftest.$ac_ext <<_ACEOF |
| 3213 | /* confdefs.h. */ |
| 3214 | _ACEOF |
| 3215 | cat confdefs.h >>conftest.$ac_ext |
| 3216 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3217 | /* end confdefs.h. */ |
| 3218 | #include <stdarg.h> |
| 3219 | #include <stdio.h> |
| 3220 | #include <sys/types.h> |
| 3221 | #include <sys/stat.h> |
| 3222 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3223 | struct buf { int x; }; |
| 3224 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3225 | static char *e (p, i) |
| 3226 | char **p; |
| 3227 | int i; |
| 3228 | { |
| 3229 | return p[i]; |
| 3230 | } |
| 3231 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3232 | { |
| 3233 | char *s; |
| 3234 | va_list v; |
| 3235 | va_start (v,p); |
| 3236 | s = g (p, va_arg (v,int)); |
| 3237 | va_end (v); |
| 3238 | return s; |
| 3239 | } |
| 3240 | |
| 3241 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3242 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3243 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3244 | 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] | 3245 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3246 | 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] | 3247 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3248 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3250 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3251 | inside strings and character constants. */ |
| 3252 | #define FOO(x) 'x' |
| 3253 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3254 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3255 | int test (int i, double x); |
| 3256 | struct s1 {int (*f) (int a);}; |
| 3257 | struct s2 {int (*f) (double a);}; |
| 3258 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3259 | int argc; |
| 3260 | char **argv; |
| 3261 | int |
| 3262 | main () |
| 3263 | { |
| 3264 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3265 | ; |
| 3266 | return 0; |
| 3267 | } |
| 3268 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3269 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3270 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3271 | do |
| 3272 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3273 | rm -f conftest.$ac_objext |
| 3274 | if { (ac_try="$ac_compile" |
| 3275 | case "(($ac_try" in |
| 3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3277 | *) ac_try_echo=$ac_try;; |
| 3278 | esac |
| 3279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3280 | (eval "$ac_compile") 2>conftest.er1 |
| 3281 | ac_status=$? |
| 3282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3283 | rm -f conftest.er1 |
| 3284 | cat conftest.err >&5 |
| 3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3286 | (exit $ac_status); } && |
| 3287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3288 | { (case "(($ac_try" in |
| 3289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3290 | *) ac_try_echo=$ac_try;; |
| 3291 | esac |
| 3292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3293 | (eval "$ac_try") 2>&5 |
| 3294 | ac_status=$? |
| 3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3296 | (exit $ac_status); }; } && |
| 3297 | { ac_try='test -s conftest.$ac_objext' |
| 3298 | { (case "(($ac_try" in |
| 3299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3300 | *) ac_try_echo=$ac_try;; |
| 3301 | esac |
| 3302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3303 | (eval "$ac_try") 2>&5 |
| 3304 | ac_status=$? |
| 3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3306 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3307 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3308 | else |
| 3309 | echo "$as_me: failed program was:" >&5 |
| 3310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3311 | |
| 3312 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3313 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3315 | rm -f core conftest.err conftest.$ac_objext |
| 3316 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3317 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3318 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3319 | CC=$ac_save_CC |
| 3320 | |
| 3321 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3322 | # AC_CACHE_VAL |
| 3323 | case "x$ac_cv_prog_cc_c89" in |
| 3324 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3325 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3326 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3327 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3328 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3329 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3330 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3331 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3332 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3333 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3334 | esac |
| 3335 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3336 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3337 | ac_ext=c |
| 3338 | ac_cpp='$CPP $CPPFLAGS' |
| 3339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3342 | |
| 3343 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3344 | ac_ext=c |
| 3345 | ac_cpp='$CPP $CPPFLAGS' |
| 3346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3349 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3350 | 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] | 3351 | # On Suns, sometimes $CPP names a directory. |
| 3352 | if test -n "$CPP" && test -d "$CPP"; then |
| 3353 | CPP= |
| 3354 | fi |
| 3355 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3356 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3358 | else |
| 3359 | # Double quotes because CPP needs to be expanded |
| 3360 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3361 | do |
| 3362 | ac_preproc_ok=false |
| 3363 | for ac_c_preproc_warn_flag in '' yes |
| 3364 | do |
| 3365 | # Use a header file that comes with gcc, so configuring glibc |
| 3366 | # with a fresh cross-compiler works. |
| 3367 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3368 | # <limits.h> exists even on freestanding compilers. |
| 3369 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3370 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3371 | cat >conftest.$ac_ext <<_ACEOF |
| 3372 | /* confdefs.h. */ |
| 3373 | _ACEOF |
| 3374 | cat confdefs.h >>conftest.$ac_ext |
| 3375 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3376 | /* end confdefs.h. */ |
| 3377 | #ifdef __STDC__ |
| 3378 | # include <limits.h> |
| 3379 | #else |
| 3380 | # include <assert.h> |
| 3381 | #endif |
| 3382 | Syntax error |
| 3383 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3384 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3385 | case "(($ac_try" in |
| 3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3387 | *) ac_try_echo=$ac_try;; |
| 3388 | esac |
| 3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3391 | ac_status=$? |
| 3392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3393 | rm -f conftest.er1 |
| 3394 | cat conftest.err >&5 |
| 3395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3396 | (exit $ac_status); } >/dev/null; then |
| 3397 | if test -s conftest.err; then |
| 3398 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3399 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3400 | else |
| 3401 | ac_cpp_err= |
| 3402 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3403 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3404 | ac_cpp_err=yes |
| 3405 | fi |
| 3406 | if test -z "$ac_cpp_err"; then |
| 3407 | : |
| 3408 | else |
| 3409 | echo "$as_me: failed program was:" >&5 |
| 3410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3411 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3412 | # Broken: fails on valid input. |
| 3413 | continue |
| 3414 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3415 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3416 | rm -f conftest.err conftest.$ac_ext |
| 3417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3418 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3419 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3420 | cat >conftest.$ac_ext <<_ACEOF |
| 3421 | /* confdefs.h. */ |
| 3422 | _ACEOF |
| 3423 | cat confdefs.h >>conftest.$ac_ext |
| 3424 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3425 | /* end confdefs.h. */ |
| 3426 | #include <ac_nonexistent.h> |
| 3427 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3428 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3429 | case "(($ac_try" in |
| 3430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3431 | *) ac_try_echo=$ac_try;; |
| 3432 | esac |
| 3433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3435 | ac_status=$? |
| 3436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3437 | rm -f conftest.er1 |
| 3438 | cat conftest.err >&5 |
| 3439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3440 | (exit $ac_status); } >/dev/null; then |
| 3441 | if test -s conftest.err; then |
| 3442 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3443 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3444 | else |
| 3445 | ac_cpp_err= |
| 3446 | fi |
| 3447 | else |
| 3448 | ac_cpp_err=yes |
| 3449 | fi |
| 3450 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3451 | # Broken: success on invalid input. |
| 3452 | continue |
| 3453 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3454 | echo "$as_me: failed program was:" >&5 |
| 3455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3456 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3457 | # Passes both tests. |
| 3458 | ac_preproc_ok=: |
| 3459 | break |
| 3460 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3461 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3462 | rm -f conftest.err conftest.$ac_ext |
| 3463 | |
| 3464 | done |
| 3465 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3466 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3467 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3468 | break |
| 3469 | fi |
| 3470 | |
| 3471 | done |
| 3472 | ac_cv_prog_CPP=$CPP |
| 3473 | |
| 3474 | fi |
| 3475 | CPP=$ac_cv_prog_CPP |
| 3476 | else |
| 3477 | ac_cv_prog_CPP=$CPP |
| 3478 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3479 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3480 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3481 | ac_preproc_ok=false |
| 3482 | for ac_c_preproc_warn_flag in '' yes |
| 3483 | do |
| 3484 | # Use a header file that comes with gcc, so configuring glibc |
| 3485 | # with a fresh cross-compiler works. |
| 3486 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3487 | # <limits.h> exists even on freestanding compilers. |
| 3488 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3489 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3490 | cat >conftest.$ac_ext <<_ACEOF |
| 3491 | /* confdefs.h. */ |
| 3492 | _ACEOF |
| 3493 | cat confdefs.h >>conftest.$ac_ext |
| 3494 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3495 | /* end confdefs.h. */ |
| 3496 | #ifdef __STDC__ |
| 3497 | # include <limits.h> |
| 3498 | #else |
| 3499 | # include <assert.h> |
| 3500 | #endif |
| 3501 | Syntax error |
| 3502 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3503 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3504 | case "(($ac_try" in |
| 3505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3506 | *) ac_try_echo=$ac_try;; |
| 3507 | esac |
| 3508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3509 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3510 | ac_status=$? |
| 3511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3512 | rm -f conftest.er1 |
| 3513 | cat conftest.err >&5 |
| 3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3515 | (exit $ac_status); } >/dev/null; then |
| 3516 | if test -s conftest.err; then |
| 3517 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3518 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3519 | else |
| 3520 | ac_cpp_err= |
| 3521 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3522 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3523 | ac_cpp_err=yes |
| 3524 | fi |
| 3525 | if test -z "$ac_cpp_err"; then |
| 3526 | : |
| 3527 | else |
| 3528 | echo "$as_me: failed program was:" >&5 |
| 3529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3530 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3531 | # Broken: fails on valid input. |
| 3532 | continue |
| 3533 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3534 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3535 | rm -f conftest.err conftest.$ac_ext |
| 3536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3537 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3538 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3539 | cat >conftest.$ac_ext <<_ACEOF |
| 3540 | /* confdefs.h. */ |
| 3541 | _ACEOF |
| 3542 | cat confdefs.h >>conftest.$ac_ext |
| 3543 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3544 | /* end confdefs.h. */ |
| 3545 | #include <ac_nonexistent.h> |
| 3546 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3547 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3548 | case "(($ac_try" in |
| 3549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3550 | *) ac_try_echo=$ac_try;; |
| 3551 | esac |
| 3552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3553 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3554 | ac_status=$? |
| 3555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3556 | rm -f conftest.er1 |
| 3557 | cat conftest.err >&5 |
| 3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3559 | (exit $ac_status); } >/dev/null; then |
| 3560 | if test -s conftest.err; then |
| 3561 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3562 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3563 | else |
| 3564 | ac_cpp_err= |
| 3565 | fi |
| 3566 | else |
| 3567 | ac_cpp_err=yes |
| 3568 | fi |
| 3569 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3570 | # Broken: success on invalid input. |
| 3571 | continue |
| 3572 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3573 | echo "$as_me: failed program was:" >&5 |
| 3574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3575 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3576 | # Passes both tests. |
| 3577 | ac_preproc_ok=: |
| 3578 | break |
| 3579 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3580 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3581 | rm -f conftest.err conftest.$ac_ext |
| 3582 | |
| 3583 | done |
| 3584 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3585 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3586 | if $ac_preproc_ok; then |
| 3587 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3588 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3589 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3590 | See \`config.log' for more details." >&5 |
| 3591 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3592 | See \`config.log' for more details." >&2;} |
| 3593 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3594 | fi |
| 3595 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3596 | ac_ext=c |
| 3597 | ac_cpp='$CPP $CPPFLAGS' |
| 3598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3601 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3602 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3603 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3604 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3605 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3607 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3608 | # Extract the first word of "grep ggrep" to use in msg output |
| 3609 | if test -z "$GREP"; then |
| 3610 | set dummy grep ggrep; ac_prog_name=$2 |
| 3611 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3613 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3614 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3615 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3617 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3618 | do |
| 3619 | IFS=$as_save_IFS |
| 3620 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3621 | for ac_prog in grep ggrep; do |
| 3622 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3623 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3624 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3625 | # Check for GNU ac_path_GREP and select it if it is found. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3626 | # Check for GNU $ac_path_GREP |
| 3627 | case `"$ac_path_GREP" --version 2>&1` in |
| 3628 | *GNU*) |
| 3629 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3630 | *) |
| 3631 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3632 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3633 | while : |
| 3634 | do |
| 3635 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3636 | mv "conftest.tmp" "conftest.in" |
| 3637 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3638 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3639 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3640 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3641 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3642 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3643 | # Best one so far, save it but keep looking for a better one |
| 3644 | ac_cv_path_GREP="$ac_path_GREP" |
| 3645 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3646 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3647 | # 10*(2^10) chars as input seems more than enough |
| 3648 | test $ac_count -gt 10 && break |
| 3649 | done |
| 3650 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3651 | esac |
| 3652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3653 | |
| 3654 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3655 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3656 | done |
| 3657 | |
| 3658 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3659 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3660 | |
| 3661 | |
| 3662 | fi |
| 3663 | |
| 3664 | GREP="$ac_cv_path_GREP" |
| 3665 | if test -z "$GREP"; then |
| 3666 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3667 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3668 | { (exit 1); exit 1; }; } |
| 3669 | fi |
| 3670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3671 | else |
| 3672 | ac_cv_path_GREP=$GREP |
| 3673 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3674 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3675 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3676 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3677 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3678 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3679 | GREP="$ac_cv_path_GREP" |
| 3680 | |
| 3681 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3682 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3683 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3684 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3686 | else |
| 3687 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3688 | then ac_cv_path_EGREP="$GREP -E" |
| 3689 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3690 | # Extract the first word of "egrep" to use in msg output |
| 3691 | if test -z "$EGREP"; then |
| 3692 | set dummy egrep; ac_prog_name=$2 |
| 3693 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3695 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3696 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3697 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3699 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3700 | do |
| 3701 | IFS=$as_save_IFS |
| 3702 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3703 | for ac_prog in egrep; do |
| 3704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3705 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3706 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3707 | # Check for GNU ac_path_EGREP and select it if it is found. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3708 | # Check for GNU $ac_path_EGREP |
| 3709 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3710 | *GNU*) |
| 3711 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3712 | *) |
| 3713 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3714 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3715 | while : |
| 3716 | do |
| 3717 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3718 | mv "conftest.tmp" "conftest.in" |
| 3719 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3720 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3721 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3722 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3723 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3724 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3725 | # Best one so far, save it but keep looking for a better one |
| 3726 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3727 | ac_path_EGREP_max=$ac_count |
| 3728 | fi |
| 3729 | # 10*(2^10) chars as input seems more than enough |
| 3730 | test $ac_count -gt 10 && break |
| 3731 | done |
| 3732 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3733 | esac |
| 3734 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3735 | |
| 3736 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3737 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3738 | done |
| 3739 | |
| 3740 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3741 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3742 | |
| 3743 | |
| 3744 | fi |
| 3745 | |
| 3746 | EGREP="$ac_cv_path_EGREP" |
| 3747 | if test -z "$EGREP"; then |
| 3748 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3749 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3750 | { (exit 1); exit 1; }; } |
| 3751 | fi |
| 3752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3753 | else |
| 3754 | ac_cv_path_EGREP=$EGREP |
| 3755 | fi |
| 3756 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3758 | fi |
| 3759 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3760 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3761 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3762 | EGREP="$ac_cv_path_EGREP" |
| 3763 | |
| 3764 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3765 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3766 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3767 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3769 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3770 | cat >conftest.$ac_ext <<_ACEOF |
| 3771 | /* confdefs.h. */ |
| 3772 | _ACEOF |
| 3773 | cat confdefs.h >>conftest.$ac_ext |
| 3774 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3775 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3776 | #include <stdlib.h> |
| 3777 | #include <stdarg.h> |
| 3778 | #include <string.h> |
| 3779 | #include <float.h> |
| 3780 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3781 | int |
| 3782 | main () |
| 3783 | { |
| 3784 | |
| 3785 | ; |
| 3786 | return 0; |
| 3787 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3788 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3789 | rm -f conftest.$ac_objext |
| 3790 | if { (ac_try="$ac_compile" |
| 3791 | case "(($ac_try" in |
| 3792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3793 | *) ac_try_echo=$ac_try;; |
| 3794 | esac |
| 3795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3796 | (eval "$ac_compile") 2>conftest.er1 |
| 3797 | ac_status=$? |
| 3798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3799 | rm -f conftest.er1 |
| 3800 | cat conftest.err >&5 |
| 3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3802 | (exit $ac_status); } && |
| 3803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3804 | { (case "(($ac_try" in |
| 3805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3806 | *) ac_try_echo=$ac_try;; |
| 3807 | esac |
| 3808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3809 | (eval "$ac_try") 2>&5 |
| 3810 | ac_status=$? |
| 3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3812 | (exit $ac_status); }; } && |
| 3813 | { ac_try='test -s conftest.$ac_objext' |
| 3814 | { (case "(($ac_try" in |
| 3815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3816 | *) ac_try_echo=$ac_try;; |
| 3817 | esac |
| 3818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3819 | (eval "$ac_try") 2>&5 |
| 3820 | ac_status=$? |
| 3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3822 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3823 | ac_cv_header_stdc=yes |
| 3824 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3825 | echo "$as_me: failed program was:" >&5 |
| 3826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3827 | |
| 3828 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3829 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3830 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3832 | |
| 3833 | if test $ac_cv_header_stdc = yes; then |
| 3834 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3835 | cat >conftest.$ac_ext <<_ACEOF |
| 3836 | /* confdefs.h. */ |
| 3837 | _ACEOF |
| 3838 | cat confdefs.h >>conftest.$ac_ext |
| 3839 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3840 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3841 | #include <string.h> |
| 3842 | |
| 3843 | _ACEOF |
| 3844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3845 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3846 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3847 | else |
| 3848 | ac_cv_header_stdc=no |
| 3849 | fi |
| 3850 | rm -f conftest* |
| 3851 | |
| 3852 | fi |
| 3853 | |
| 3854 | if test $ac_cv_header_stdc = yes; then |
| 3855 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3856 | cat >conftest.$ac_ext <<_ACEOF |
| 3857 | /* confdefs.h. */ |
| 3858 | _ACEOF |
| 3859 | cat confdefs.h >>conftest.$ac_ext |
| 3860 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3861 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3862 | #include <stdlib.h> |
| 3863 | |
| 3864 | _ACEOF |
| 3865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3866 | $EGREP "free" >/dev/null 2>&1; then |
| 3867 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3868 | else |
| 3869 | ac_cv_header_stdc=no |
| 3870 | fi |
| 3871 | rm -f conftest* |
| 3872 | |
| 3873 | fi |
| 3874 | |
| 3875 | if test $ac_cv_header_stdc = yes; then |
| 3876 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3877 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3878 | : |
| 3879 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3880 | cat >conftest.$ac_ext <<_ACEOF |
| 3881 | /* confdefs.h. */ |
| 3882 | _ACEOF |
| 3883 | cat confdefs.h >>conftest.$ac_ext |
| 3884 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3885 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3886 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3887 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3888 | #if ((' ' & 0x0FF) == 0x020) |
| 3889 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3890 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3891 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3892 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3893 | (('a' <= (c) && (c) <= 'i') \ |
| 3894 | || ('j' <= (c) && (c) <= 'r') \ |
| 3895 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3896 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3897 | #endif |
| 3898 | |
| 3899 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3900 | int |
| 3901 | main () |
| 3902 | { |
| 3903 | int i; |
| 3904 | for (i = 0; i < 256; i++) |
| 3905 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3906 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3907 | return 2; |
| 3908 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3909 | } |
| 3910 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3911 | rm -f conftest$ac_exeext |
| 3912 | if { (ac_try="$ac_link" |
| 3913 | case "(($ac_try" in |
| 3914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3915 | *) ac_try_echo=$ac_try;; |
| 3916 | esac |
| 3917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3918 | (eval "$ac_link") 2>&5 |
| 3919 | ac_status=$? |
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3921 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3922 | { (case "(($ac_try" in |
| 3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3924 | *) ac_try_echo=$ac_try;; |
| 3925 | esac |
| 3926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3927 | (eval "$ac_try") 2>&5 |
| 3928 | ac_status=$? |
| 3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3930 | (exit $ac_status); }; }; then |
| 3931 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3932 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3933 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3934 | echo "$as_me: failed program was:" >&5 |
| 3935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3936 | |
| 3937 | ( exit $ac_status ) |
| 3938 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3939 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3940 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3941 | fi |
| 3942 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3943 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3944 | fi |
| 3945 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3946 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3947 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3948 | if test $ac_cv_header_stdc = yes; then |
| 3949 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3950 | cat >>confdefs.h <<\_ACEOF |
| 3951 | #define STDC_HEADERS 1 |
| 3952 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3953 | |
| 3954 | fi |
| 3955 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3956 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3957 | |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3966 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3967 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3968 | do |
| 3969 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3970 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3971 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3974 | else |
| 3975 | cat >conftest.$ac_ext <<_ACEOF |
| 3976 | /* confdefs.h. */ |
| 3977 | _ACEOF |
| 3978 | cat confdefs.h >>conftest.$ac_ext |
| 3979 | cat >>conftest.$ac_ext <<_ACEOF |
| 3980 | /* end confdefs.h. */ |
| 3981 | $ac_includes_default |
| 3982 | |
| 3983 | #include <$ac_header> |
| 3984 | _ACEOF |
| 3985 | rm -f conftest.$ac_objext |
| 3986 | if { (ac_try="$ac_compile" |
| 3987 | case "(($ac_try" in |
| 3988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3989 | *) ac_try_echo=$ac_try;; |
| 3990 | esac |
| 3991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3992 | (eval "$ac_compile") 2>conftest.er1 |
| 3993 | ac_status=$? |
| 3994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3995 | rm -f conftest.er1 |
| 3996 | cat conftest.err >&5 |
| 3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3998 | (exit $ac_status); } && |
| 3999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4000 | { (case "(($ac_try" in |
| 4001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4002 | *) ac_try_echo=$ac_try;; |
| 4003 | esac |
| 4004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4005 | (eval "$ac_try") 2>&5 |
| 4006 | ac_status=$? |
| 4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4008 | (exit $ac_status); }; } && |
| 4009 | { ac_try='test -s conftest.$ac_objext' |
| 4010 | { (case "(($ac_try" in |
| 4011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4012 | *) ac_try_echo=$ac_try;; |
| 4013 | esac |
| 4014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4015 | (eval "$ac_try") 2>&5 |
| 4016 | ac_status=$? |
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); }; }; then |
| 4019 | eval "$as_ac_Header=yes" |
| 4020 | else |
| 4021 | echo "$as_me: failed program was:" >&5 |
| 4022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4023 | |
| 4024 | eval "$as_ac_Header=no" |
| 4025 | fi |
| 4026 | |
| 4027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4028 | fi |
| 4029 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4030 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4031 | echo "${ECHO_T}$ac_res" >&6; } |
| 4032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4033 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4035 | _ACEOF |
| 4036 | |
| 4037 | fi |
| 4038 | |
| 4039 | done |
| 4040 | |
| 4041 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4042 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4043 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4044 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4046 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4047 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4048 | cat >conftest.$ac_ext <<_ACEOF |
| 4049 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4050 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4051 | cat confdefs.h >>conftest.$ac_ext |
| 4052 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4053 | /* end confdefs.h. */ |
| 4054 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4055 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4056 | |
| 4057 | int |
| 4058 | main () |
| 4059 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4060 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4061 | bogus endian macros |
| 4062 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4063 | |
| 4064 | ; |
| 4065 | return 0; |
| 4066 | } |
| 4067 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4068 | rm -f conftest.$ac_objext |
| 4069 | if { (ac_try="$ac_compile" |
| 4070 | case "(($ac_try" in |
| 4071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4072 | *) ac_try_echo=$ac_try;; |
| 4073 | esac |
| 4074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4075 | (eval "$ac_compile") 2>conftest.er1 |
| 4076 | ac_status=$? |
| 4077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4078 | rm -f conftest.er1 |
| 4079 | cat conftest.err >&5 |
| 4080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4081 | (exit $ac_status); } && |
| 4082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4083 | { (case "(($ac_try" in |
| 4084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4085 | *) ac_try_echo=$ac_try;; |
| 4086 | esac |
| 4087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4088 | (eval "$ac_try") 2>&5 |
| 4089 | ac_status=$? |
| 4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4091 | (exit $ac_status); }; } && |
| 4092 | { ac_try='test -s conftest.$ac_objext' |
| 4093 | { (case "(($ac_try" in |
| 4094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4095 | *) ac_try_echo=$ac_try;; |
| 4096 | esac |
| 4097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4098 | (eval "$ac_try") 2>&5 |
| 4099 | ac_status=$? |
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4101 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4102 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4103 | cat >conftest.$ac_ext <<_ACEOF |
| 4104 | /* confdefs.h. */ |
| 4105 | _ACEOF |
| 4106 | cat confdefs.h >>conftest.$ac_ext |
| 4107 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4108 | /* end confdefs.h. */ |
| 4109 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4110 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4111 | |
| 4112 | int |
| 4113 | main () |
| 4114 | { |
| 4115 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4116 | not big endian |
| 4117 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4118 | |
| 4119 | ; |
| 4120 | return 0; |
| 4121 | } |
| 4122 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4123 | rm -f conftest.$ac_objext |
| 4124 | if { (ac_try="$ac_compile" |
| 4125 | case "(($ac_try" in |
| 4126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4127 | *) ac_try_echo=$ac_try;; |
| 4128 | esac |
| 4129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4130 | (eval "$ac_compile") 2>conftest.er1 |
| 4131 | ac_status=$? |
| 4132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4133 | rm -f conftest.er1 |
| 4134 | cat conftest.err >&5 |
| 4135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4136 | (exit $ac_status); } && |
| 4137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4138 | { (case "(($ac_try" in |
| 4139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4140 | *) ac_try_echo=$ac_try;; |
| 4141 | esac |
| 4142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4143 | (eval "$ac_try") 2>&5 |
| 4144 | ac_status=$? |
| 4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4146 | (exit $ac_status); }; } && |
| 4147 | { ac_try='test -s conftest.$ac_objext' |
| 4148 | { (case "(($ac_try" in |
| 4149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4150 | *) ac_try_echo=$ac_try;; |
| 4151 | esac |
| 4152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4153 | (eval "$ac_try") 2>&5 |
| 4154 | ac_status=$? |
| 4155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4156 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4157 | ac_cv_c_bigendian=yes |
| 4158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4159 | echo "$as_me: failed program was:" >&5 |
| 4160 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4161 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4162 | ac_cv_c_bigendian=no |
| 4163 | fi |
| 4164 | |
| 4165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4166 | else |
| 4167 | echo "$as_me: failed program was:" >&5 |
| 4168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4169 | |
| 4170 | # It does not; compile a test program. |
| 4171 | if test "$cross_compiling" = yes; then |
| 4172 | # try to guess the endianness by grepping values into an object file |
| 4173 | ac_cv_c_bigendian=unknown |
| 4174 | cat >conftest.$ac_ext <<_ACEOF |
| 4175 | /* confdefs.h. */ |
| 4176 | _ACEOF |
| 4177 | cat confdefs.h >>conftest.$ac_ext |
| 4178 | cat >>conftest.$ac_ext <<_ACEOF |
| 4179 | /* end confdefs.h. */ |
| 4180 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4181 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4182 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4183 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4184 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4185 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4186 | int |
| 4187 | main () |
| 4188 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4189 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4190 | ; |
| 4191 | return 0; |
| 4192 | } |
| 4193 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4194 | rm -f conftest.$ac_objext |
| 4195 | if { (ac_try="$ac_compile" |
| 4196 | case "(($ac_try" in |
| 4197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4198 | *) ac_try_echo=$ac_try;; |
| 4199 | esac |
| 4200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4201 | (eval "$ac_compile") 2>conftest.er1 |
| 4202 | ac_status=$? |
| 4203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4204 | rm -f conftest.er1 |
| 4205 | cat conftest.err >&5 |
| 4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4207 | (exit $ac_status); } && |
| 4208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4209 | { (case "(($ac_try" in |
| 4210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4211 | *) ac_try_echo=$ac_try;; |
| 4212 | esac |
| 4213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4214 | (eval "$ac_try") 2>&5 |
| 4215 | ac_status=$? |
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4217 | (exit $ac_status); }; } && |
| 4218 | { ac_try='test -s conftest.$ac_objext' |
| 4219 | { (case "(($ac_try" in |
| 4220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4221 | *) ac_try_echo=$ac_try;; |
| 4222 | esac |
| 4223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4224 | (eval "$ac_try") 2>&5 |
| 4225 | ac_status=$? |
| 4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4227 | (exit $ac_status); }; }; then |
| 4228 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4229 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4230 | fi |
| 4231 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4232 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4233 | ac_cv_c_bigendian=no |
| 4234 | else |
| 4235 | # finding both strings is unlikely to happen, but who knows? |
| 4236 | ac_cv_c_bigendian=unknown |
| 4237 | fi |
| 4238 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4239 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4240 | echo "$as_me: failed program was:" >&5 |
| 4241 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4242 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4243 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4244 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4247 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4248 | cat >conftest.$ac_ext <<_ACEOF |
| 4249 | /* confdefs.h. */ |
| 4250 | _ACEOF |
| 4251 | cat confdefs.h >>conftest.$ac_ext |
| 4252 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4253 | /* end confdefs.h. */ |
| 4254 | $ac_includes_default |
| 4255 | int |
| 4256 | main () |
| 4257 | { |
| 4258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4259 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4260 | union |
| 4261 | { |
| 4262 | long int l; |
| 4263 | char c[sizeof (long int)]; |
| 4264 | } u; |
| 4265 | u.l = 1; |
| 4266 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4267 | |
| 4268 | ; |
| 4269 | return 0; |
| 4270 | } |
| 4271 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4272 | rm -f conftest$ac_exeext |
| 4273 | if { (ac_try="$ac_link" |
| 4274 | case "(($ac_try" in |
| 4275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4276 | *) ac_try_echo=$ac_try;; |
| 4277 | esac |
| 4278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4279 | (eval "$ac_link") 2>&5 |
| 4280 | ac_status=$? |
| 4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4282 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4283 | { (case "(($ac_try" in |
| 4284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4285 | *) ac_try_echo=$ac_try;; |
| 4286 | esac |
| 4287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4288 | (eval "$ac_try") 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4292 | ac_cv_c_bigendian=no |
| 4293 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4294 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4295 | echo "$as_me: failed program was:" >&5 |
| 4296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4297 | |
| 4298 | ( exit $ac_status ) |
| 4299 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4300 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4301 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4302 | fi |
| 4303 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4304 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4305 | fi |
| 4306 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4308 | fi |
| 4309 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4310 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4311 | case $ac_cv_c_bigendian in |
| 4312 | yes) |
| 4313 | ENDIAN=big |
| 4314 | ;; |
| 4315 | no) |
| 4316 | ENDIAN=little |
| 4317 | ;; |
| 4318 | *) |
| 4319 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4320 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4321 | echo "$as_me: error: unknown endianness |
| 4322 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4323 | { (exit 1); exit 1; }; } ;; |
| 4324 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4325 | |
| 4326 | |
| 4327 | if test "$cross_compiling" = yes; then |
| 4328 | LLVM_CROSS_COMPILING=1 |
| 4329 | |
| 4330 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4331 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4332 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4333 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4335 | else |
| 4336 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4337 | ac_cv_build_exeext=.exe |
| 4338 | else |
| 4339 | ac_build_prefix=${build_alias}- |
| 4340 | |
| 4341 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4342 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4343 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4345 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4347 | else |
| 4348 | if test -n "$BUILD_CC"; then |
| 4349 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4350 | else |
| 4351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4352 | for as_dir in $PATH |
| 4353 | do |
| 4354 | IFS=$as_save_IFS |
| 4355 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4356 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4357 | 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] | 4358 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4360 | break 2 |
| 4361 | fi |
| 4362 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4363 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4364 | IFS=$as_save_IFS |
| 4365 | |
| 4366 | fi |
| 4367 | fi |
| 4368 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4369 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4370 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4371 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4372 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4373 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4374 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4375 | fi |
| 4376 | |
| 4377 | |
| 4378 | if test -z "$BUILD_CC"; then |
| 4379 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4380 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4383 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4385 | else |
| 4386 | if test -n "$BUILD_CC"; then |
| 4387 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4388 | else |
| 4389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4390 | for as_dir in $PATH |
| 4391 | do |
| 4392 | IFS=$as_save_IFS |
| 4393 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4394 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4395 | 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] | 4396 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4398 | break 2 |
| 4399 | fi |
| 4400 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4401 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4402 | IFS=$as_save_IFS |
| 4403 | |
| 4404 | fi |
| 4405 | fi |
| 4406 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4407 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4408 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4409 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4412 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4413 | fi |
| 4414 | |
| 4415 | |
| 4416 | if test -z "$BUILD_CC"; then |
| 4417 | # Extract the first word of "cc", so it can be a program name with args. |
| 4418 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4419 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4421 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4423 | else |
| 4424 | if test -n "$BUILD_CC"; then |
| 4425 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4426 | else |
| 4427 | ac_prog_rejected=no |
| 4428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4429 | for as_dir in $PATH |
| 4430 | do |
| 4431 | IFS=$as_save_IFS |
| 4432 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4434 | 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] | 4435 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4436 | ac_prog_rejected=yes |
| 4437 | continue |
| 4438 | fi |
| 4439 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4441 | break 2 |
| 4442 | fi |
| 4443 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4444 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4445 | IFS=$as_save_IFS |
| 4446 | |
| 4447 | if test $ac_prog_rejected = yes; then |
| 4448 | # We found a bogon in the path, so make sure we never use it. |
| 4449 | set dummy $ac_cv_prog_BUILD_CC |
| 4450 | shift |
| 4451 | if test $# != 0; then |
| 4452 | # We chose a different compiler from the bogus one. |
| 4453 | # However, it has the same basename, so the bogon will be chosen |
| 4454 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4455 | shift |
| 4456 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4457 | fi |
| 4458 | fi |
| 4459 | fi |
| 4460 | fi |
| 4461 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4462 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4463 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4464 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4465 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4466 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4467 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4468 | fi |
| 4469 | |
| 4470 | |
| 4471 | fi |
| 4472 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4473 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4474 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4475 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4476 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4477 | rm -f conftest* |
| 4478 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4479 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4480 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4481 | (eval $ac_build_link) 2>&5 |
| 4482 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4484 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4485 | for file in conftest.*; do |
| 4486 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4487 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4488 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4489 | esac |
| 4490 | done |
| 4491 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4492 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4493 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4494 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4495 | fi |
| 4496 | rm -f conftest* |
| 4497 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4498 | fi |
| 4499 | fi |
| 4500 | |
| 4501 | BUILD_EXEEXT="" |
| 4502 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4503 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4504 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4505 | ac_build_exeext=$BUILD_EXEEXT |
| 4506 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4507 | ac_build_prefix=${build_alias}- |
| 4508 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4509 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4510 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4512 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4514 | else |
| 4515 | if test -n "$BUILD_CXX"; then |
| 4516 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4517 | else |
| 4518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4519 | for as_dir in $PATH |
| 4520 | do |
| 4521 | IFS=$as_save_IFS |
| 4522 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4524 | 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] | 4525 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4527 | break 2 |
| 4528 | fi |
| 4529 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4530 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4531 | IFS=$as_save_IFS |
| 4532 | |
| 4533 | fi |
| 4534 | fi |
| 4535 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4536 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4537 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4538 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4539 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4540 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4541 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4542 | fi |
| 4543 | |
| 4544 | |
| 4545 | if test -z "$BUILD_CXX"; then |
| 4546 | # Extract the first word of "g++", so it can be a program name with args. |
| 4547 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4548 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4550 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4552 | else |
| 4553 | if test -n "$BUILD_CXX"; then |
| 4554 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4555 | else |
| 4556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4557 | for as_dir in $PATH |
| 4558 | do |
| 4559 | IFS=$as_save_IFS |
| 4560 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4561 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4562 | 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] | 4563 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4565 | break 2 |
| 4566 | fi |
| 4567 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4568 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4569 | IFS=$as_save_IFS |
| 4570 | |
| 4571 | fi |
| 4572 | fi |
| 4573 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4574 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4575 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4576 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4577 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4578 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4579 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4580 | fi |
| 4581 | |
| 4582 | |
| 4583 | if test -z "$BUILD_CXX"; then |
| 4584 | # Extract the first word of "c++", so it can be a program name with args. |
| 4585 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4586 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4588 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4590 | else |
| 4591 | if test -n "$BUILD_CXX"; then |
| 4592 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4593 | else |
| 4594 | ac_prog_rejected=no |
| 4595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4596 | for as_dir in $PATH |
| 4597 | do |
| 4598 | IFS=$as_save_IFS |
| 4599 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4601 | 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] | 4602 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4603 | ac_prog_rejected=yes |
| 4604 | continue |
| 4605 | fi |
| 4606 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4608 | break 2 |
| 4609 | fi |
| 4610 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4611 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4612 | IFS=$as_save_IFS |
| 4613 | |
| 4614 | if test $ac_prog_rejected = yes; then |
| 4615 | # We found a bogon in the path, so make sure we never use it. |
| 4616 | set dummy $ac_cv_prog_BUILD_CXX |
| 4617 | shift |
| 4618 | if test $# != 0; then |
| 4619 | # We chose a different compiler from the bogus one. |
| 4620 | # However, it has the same basename, so the bogon will be chosen |
| 4621 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4622 | shift |
| 4623 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4624 | fi |
| 4625 | fi |
| 4626 | fi |
| 4627 | fi |
| 4628 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4629 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4630 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4631 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4632 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4634 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4635 | fi |
| 4636 | |
| 4637 | |
| 4638 | fi |
| 4639 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4640 | else |
| 4641 | LLVM_CROSS_COMPILING=0 |
| 4642 | |
| 4643 | fi |
| 4644 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4645 | 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] | 4646 | cvsbuild="yes" |
| 4647 | optimize="no" |
| 4648 | CVSBUILD=CVSBUILD=1 |
| 4649 | |
| 4650 | else |
| 4651 | cvsbuild="no" |
| 4652 | optimize="yes" |
| 4653 | fi |
| 4654 | |
| 4655 | |
| 4656 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4657 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4658 | enableval=$enable_optimized; |
| 4659 | else |
| 4660 | enableval=$optimize |
| 4661 | fi |
| 4662 | |
| 4663 | if test ${enableval} = "no" ; then |
| 4664 | ENABLE_OPTIMIZED= |
| 4665 | |
| 4666 | else |
| 4667 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4668 | |
| 4669 | fi |
| 4670 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4671 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4672 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4673 | enableval=$enable_profiling; |
| 4674 | else |
| 4675 | enableval="no" |
| 4676 | fi |
| 4677 | |
| 4678 | if test ${enableval} = "no" ; then |
| 4679 | ENABLE_PROFILING= |
| 4680 | |
| 4681 | else |
| 4682 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4683 | |
| 4684 | fi |
| 4685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4686 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4687 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4688 | enableval=$enable_assertions; |
| 4689 | else |
| 4690 | enableval="yes" |
| 4691 | fi |
| 4692 | |
| 4693 | if test ${enableval} = "yes" ; then |
| 4694 | DISABLE_ASSERTIONS= |
| 4695 | |
| 4696 | else |
| 4697 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4698 | |
| 4699 | fi |
| 4700 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4701 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4702 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4703 | enableval=$enable_expensive_checks; |
| 4704 | else |
| 4705 | enableval="no" |
| 4706 | fi |
| 4707 | |
| 4708 | if test ${enableval} = "yes" ; then |
| 4709 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4710 | |
| 4711 | EXPENSIVE_CHECKS=yes |
| 4712 | |
| 4713 | else |
| 4714 | ENABLE_EXPENSIVE_CHECKS= |
| 4715 | |
| 4716 | EXPENSIVE_CHECKS=no |
| 4717 | |
| 4718 | fi |
| 4719 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4720 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4721 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4722 | enableval=$enable_debug_runtime; |
| 4723 | else |
| 4724 | enableval=no |
| 4725 | fi |
| 4726 | |
| 4727 | if test ${enableval} = "no" ; then |
| 4728 | DEBUG_RUNTIME= |
| 4729 | |
| 4730 | else |
| 4731 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4732 | |
| 4733 | fi |
| 4734 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4735 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4736 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4737 | enableval=$enable_debug_symbols; |
| 4738 | else |
| 4739 | enableval=no |
| 4740 | fi |
| 4741 | |
| 4742 | if test ${enableval} = "no" ; then |
| 4743 | DEBUG_SYMBOLS= |
| 4744 | |
| 4745 | else |
| 4746 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4747 | |
| 4748 | fi |
| 4749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4750 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4751 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4752 | enableval=$enable_jit; |
| 4753 | else |
| 4754 | enableval=default |
| 4755 | fi |
| 4756 | |
| 4757 | if test ${enableval} = "no" |
| 4758 | then |
| 4759 | JIT= |
| 4760 | |
| 4761 | else |
| 4762 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4763 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4764 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4765 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4766 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4767 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4768 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4769 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4770 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4771 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4772 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4773 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4774 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4775 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4776 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4777 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4778 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4779 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4780 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4781 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4782 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4783 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4784 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4785 | Blackfin) TARGET_HAS_JIT=0 |
| 4786 | ;; |
| 4787 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4788 | ;; |
| 4789 | esac |
| 4790 | fi |
| 4791 | |
| 4792 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4793 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4794 | enableval=$enable_doxygen; |
| 4795 | else |
| 4796 | enableval=default |
| 4797 | fi |
| 4798 | |
| 4799 | case "$enableval" in |
| 4800 | yes) ENABLE_DOXYGEN=1 |
| 4801 | ;; |
| 4802 | no) ENABLE_DOXYGEN=0 |
| 4803 | ;; |
| 4804 | default) ENABLE_DOXYGEN=0 |
| 4805 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4806 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4807 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4808 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4809 | esac |
| 4810 | |
| 4811 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4812 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4813 | enableval=$enable_threads; |
| 4814 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4815 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4816 | fi |
| 4817 | |
| 4818 | case "$enableval" in |
| 4819 | yes) ENABLE_THREADS=1 |
| 4820 | ;; |
| 4821 | no) ENABLE_THREADS=0 |
| 4822 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4823 | default) ENABLE_THREADS=1 |
| 4824 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4825 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4826 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4827 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4828 | esac |
| 4829 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4830 | cat >>confdefs.h <<_ACEOF |
| 4831 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4832 | _ACEOF |
| 4833 | |
| 4834 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4835 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4836 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4837 | enableval=$enable_pic; |
| 4838 | else |
| 4839 | enableval=default |
| 4840 | fi |
| 4841 | |
| 4842 | case "$enableval" in |
| 4843 | yes) ENABLE_PIC=1 |
| 4844 | ;; |
| 4845 | no) ENABLE_PIC=0 |
| 4846 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4847 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4848 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4849 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4850 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4851 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4852 | esac |
| 4853 | |
| 4854 | cat >>confdefs.h <<_ACEOF |
| 4855 | #define ENABLE_PIC $ENABLE_PIC |
| 4856 | _ACEOF |
| 4857 | |
| 4858 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4859 | TARGETS_TO_BUILD="" |
| 4860 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4861 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4862 | enableval=$enable_targets; |
| 4863 | else |
| 4864 | enableval=all |
| 4865 | fi |
| 4866 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4867 | if test "$enableval" = host-only ; then |
| 4868 | enableval=host |
| 4869 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4870 | case "$enableval" in |
Jakob Stoklund Olesen | 73b7bb7 | 2009-08-02 17:32:37 +0000 | [diff] [blame] | 4871 | 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] | 4872 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4873 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4874 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4875 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4876 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4877 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4878 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4879 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4880 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4881 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4882 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4883 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4884 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4885 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4886 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4887 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4888 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4889 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4890 | host) case "$llvm_cv_target_arch" in |
| 4891 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4892 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4893 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4894 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4895 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4896 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4897 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4898 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4899 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4900 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4901 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4902 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4903 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4904 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4905 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4906 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4907 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4908 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4909 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4910 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4911 | esac |
| 4912 | done |
| 4913 | ;; |
| 4914 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4915 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4916 | |
| 4917 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4918 | # Determine whether we are building LLVM support for the native architecture. |
| 4919 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4920 | for a_target in $TARGETS_TO_BUILD; do |
| 4921 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4922 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4923 | |
| 4924 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4925 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4926 | _ACEOF |
| 4927 | |
| 4928 | fi |
| 4929 | done |
| 4930 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4931 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 4932 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4933 | LLVM_ENUM_TARGETS="" |
| 4934 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4935 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4936 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4937 | for target_to_build in $TARGETS_TO_BUILD; do |
| 4938 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 4939 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 4940 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 4941 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4942 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 4943 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 4944 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4945 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 4946 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 4947 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4948 | done |
| 4949 | |
| 4950 | |
| 4951 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4952 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4953 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4954 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4955 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4956 | enableval=$enable_cbe_printf_a; |
| 4957 | else |
| 4958 | enableval=default |
| 4959 | fi |
| 4960 | |
| 4961 | case "$enableval" in |
| 4962 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4963 | ;; |
| 4964 | no) ENABLE_CBE_PRINTF_A=0 |
| 4965 | ;; |
| 4966 | default) ENABLE_CBE_PRINTF_A=1 |
| 4967 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4968 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4969 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4970 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4971 | esac |
| 4972 | |
| 4973 | cat >>confdefs.h <<_ACEOF |
| 4974 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4975 | _ACEOF |
| 4976 | |
| 4977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4978 | |
| 4979 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4980 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4981 | withval=$with_llvmgccdir; |
| 4982 | else |
| 4983 | withval=default |
| 4984 | fi |
| 4985 | |
| 4986 | case "$withval" in |
| 4987 | default) WITH_LLVMGCCDIR=default ;; |
| 4988 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4989 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4990 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4991 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4992 | esac |
| 4993 | |
| 4994 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4995 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4996 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4997 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 4998 | WITH_LLVMGCCDIR="" |
| 4999 | fi |
| 5000 | |
| 5001 | |
| 5002 | |
| 5003 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5004 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5005 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5006 | WITH_LLVMGCCDIR="" |
| 5007 | fi |
| 5008 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5009 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5010 | if test -n "$LLVMGCC"; then |
| 5011 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5012 | fi |
| 5013 | |
| 5014 | if test -n "$LLVMGXX"; then |
| 5015 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5016 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5017 | |
| 5018 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5019 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5020 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5021 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5022 | fi |
| 5023 | |
| 5024 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5025 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5026 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5027 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5028 | fi |
| 5029 | |
| 5030 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5031 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5032 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5033 | withval=$with_optimize_option; |
| 5034 | else |
| 5035 | withval=default |
| 5036 | fi |
| 5037 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5038 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5039 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5040 | case "$withval" in |
| 5041 | default) |
| 5042 | case "$llvm_cv_os_type" in |
| 5043 | MingW) optimize_option=-O3 ;; |
| 5044 | *) optimize_option=-O2 ;; |
| 5045 | esac ;; |
| 5046 | *) optimize_option="$withval" ;; |
| 5047 | esac |
| 5048 | OPTIMIZE_OPTION=$optimize_option |
| 5049 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5050 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5051 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5052 | |
| 5053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5054 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5055 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5056 | withval=$with_extra_options; |
| 5057 | else |
| 5058 | withval=default |
| 5059 | fi |
| 5060 | |
| 5061 | case "$withval" in |
| 5062 | default) EXTRA_OPTIONS= ;; |
| 5063 | *) EXTRA_OPTIONS=$withval ;; |
| 5064 | esac |
| 5065 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5066 | |
| 5067 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5068 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5069 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5070 | enableval=$enable_bindings; |
| 5071 | else |
| 5072 | enableval=default |
| 5073 | fi |
| 5074 | |
| 5075 | BINDINGS_TO_BUILD="" |
| 5076 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5077 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5078 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5079 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5080 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5081 | case "$a_binding" in |
| 5082 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5083 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5084 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5085 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5086 | esac |
| 5087 | done |
| 5088 | ;; |
| 5089 | esac |
| 5090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5091 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5092 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5093 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5094 | withval=$with_ocaml_libdir; |
| 5095 | else |
| 5096 | withval=auto |
| 5097 | fi |
| 5098 | |
| 5099 | case "$withval" in |
| 5100 | auto) with_ocaml_libdir="$withval" ;; |
| 5101 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5102 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5103 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5104 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5105 | esac |
| 5106 | |
| 5107 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5108 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5109 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5110 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5111 | else |
| 5112 | withval="" |
| 5113 | fi |
| 5114 | |
| 5115 | |
| 5116 | cat >>confdefs.h <<_ACEOF |
| 5117 | #define C_INCLUDE_DIRS "$withval" |
| 5118 | _ACEOF |
| 5119 | |
| 5120 | |
| 5121 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5122 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5123 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5124 | withval=$with_cxx_include_root; |
| 5125 | else |
| 5126 | withval="" |
| 5127 | fi |
| 5128 | |
| 5129 | |
| 5130 | cat >>confdefs.h <<_ACEOF |
| 5131 | #define CXX_INCLUDE_ROOT "$withval" |
| 5132 | _ACEOF |
| 5133 | |
| 5134 | |
| 5135 | |
| 5136 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5137 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5138 | withval=$with_cxx_include_arch; |
| 5139 | else |
| 5140 | withval="" |
| 5141 | fi |
| 5142 | |
| 5143 | |
| 5144 | cat >>confdefs.h <<_ACEOF |
| 5145 | #define CXX_INCLUDE_ARCH "$withval" |
| 5146 | _ACEOF |
| 5147 | |
| 5148 | |
| 5149 | |
| 5150 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5151 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5152 | withval=$with_cxx_include_32bit_dir; |
| 5153 | else |
| 5154 | withval="" |
| 5155 | fi |
| 5156 | |
| 5157 | |
| 5158 | cat >>confdefs.h <<_ACEOF |
| 5159 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5160 | _ACEOF |
| 5161 | |
| 5162 | |
| 5163 | |
| 5164 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5165 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5166 | withval=$with_cxx_include_64bit_dir; |
| 5167 | else |
| 5168 | withval="" |
| 5169 | fi |
| 5170 | |
| 5171 | |
| 5172 | cat >>confdefs.h <<_ACEOF |
| 5173 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5174 | _ACEOF |
| 5175 | |
| 5176 | |
| 5177 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5178 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5179 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5180 | withval=$with_binutils_include; |
| 5181 | else |
| 5182 | withval=default |
| 5183 | fi |
| 5184 | |
| 5185 | case "$withval" in |
| 5186 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5187 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5188 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5189 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5190 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5191 | esac |
| 5192 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5193 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5194 | |
| 5195 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5196 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5197 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5198 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5199 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5200 | fi |
| 5201 | fi |
| 5202 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5203 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5204 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5205 | enableval=$enable_libffi; case "$enableval" in |
| 5206 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5207 | no) llvm_cv_enable_libffi="no" ;; |
| 5208 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5209 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5210 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5211 | esac |
| 5212 | else |
| 5213 | llvm_cv_enable_libffi=no |
| 5214 | fi |
| 5215 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5216 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5217 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5218 | llvmc_dynamic="yes" |
| 5219 | else |
| 5220 | llvmc_dynamic="no" |
| 5221 | fi |
| 5222 | |
| 5223 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5224 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5225 | enableval=$enable_llvmc_dynamic; |
| 5226 | else |
| 5227 | enableval=$llvmc_dynamic |
| 5228 | fi |
| 5229 | |
| 5230 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5231 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5232 | |
| 5233 | else |
| 5234 | ENABLE_LLVMC_DYNAMIC= |
| 5235 | |
| 5236 | fi |
| 5237 | |
| 5238 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5239 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5240 | enableval=$enable_llvmc_dynamic_plugins; |
| 5241 | else |
| 5242 | enableval=yes |
| 5243 | fi |
| 5244 | |
| 5245 | if test ${enableval} = "yes" ; then |
| 5246 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5247 | |
| 5248 | else |
| 5249 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5250 | |
| 5251 | fi |
| 5252 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5254 | ac_ext=c |
| 5255 | ac_cpp='$CPP $CPPFLAGS' |
| 5256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5259 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5260 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5261 | # On Suns, sometimes $CPP names a directory. |
| 5262 | if test -n "$CPP" && test -d "$CPP"; then |
| 5263 | CPP= |
| 5264 | fi |
| 5265 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5266 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5268 | else |
| 5269 | # Double quotes because CPP needs to be expanded |
| 5270 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5271 | do |
| 5272 | ac_preproc_ok=false |
| 5273 | for ac_c_preproc_warn_flag in '' yes |
| 5274 | do |
| 5275 | # Use a header file that comes with gcc, so configuring glibc |
| 5276 | # with a fresh cross-compiler works. |
| 5277 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5278 | # <limits.h> exists even on freestanding compilers. |
| 5279 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5280 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5281 | cat >conftest.$ac_ext <<_ACEOF |
| 5282 | /* confdefs.h. */ |
| 5283 | _ACEOF |
| 5284 | cat confdefs.h >>conftest.$ac_ext |
| 5285 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5286 | /* end confdefs.h. */ |
| 5287 | #ifdef __STDC__ |
| 5288 | # include <limits.h> |
| 5289 | #else |
| 5290 | # include <assert.h> |
| 5291 | #endif |
| 5292 | Syntax error |
| 5293 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5294 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5295 | case "(($ac_try" in |
| 5296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5297 | *) ac_try_echo=$ac_try;; |
| 5298 | esac |
| 5299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5300 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5301 | ac_status=$? |
| 5302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5303 | rm -f conftest.er1 |
| 5304 | cat conftest.err >&5 |
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5306 | (exit $ac_status); } >/dev/null; then |
| 5307 | if test -s conftest.err; then |
| 5308 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5310 | else |
| 5311 | ac_cpp_err= |
| 5312 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5313 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5314 | ac_cpp_err=yes |
| 5315 | fi |
| 5316 | if test -z "$ac_cpp_err"; then |
| 5317 | : |
| 5318 | else |
| 5319 | echo "$as_me: failed program was:" >&5 |
| 5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5322 | # Broken: fails on valid input. |
| 5323 | continue |
| 5324 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5326 | rm -f conftest.err conftest.$ac_ext |
| 5327 | |
| 5328 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5329 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5330 | cat >conftest.$ac_ext <<_ACEOF |
| 5331 | /* confdefs.h. */ |
| 5332 | _ACEOF |
| 5333 | cat confdefs.h >>conftest.$ac_ext |
| 5334 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5335 | /* end confdefs.h. */ |
| 5336 | #include <ac_nonexistent.h> |
| 5337 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5338 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5339 | case "(($ac_try" in |
| 5340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5341 | *) ac_try_echo=$ac_try;; |
| 5342 | esac |
| 5343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5344 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5345 | ac_status=$? |
| 5346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5347 | rm -f conftest.er1 |
| 5348 | cat conftest.err >&5 |
| 5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5350 | (exit $ac_status); } >/dev/null; then |
| 5351 | if test -s conftest.err; then |
| 5352 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5353 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5354 | else |
| 5355 | ac_cpp_err= |
| 5356 | fi |
| 5357 | else |
| 5358 | ac_cpp_err=yes |
| 5359 | fi |
| 5360 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5361 | # Broken: success on invalid input. |
| 5362 | continue |
| 5363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5364 | echo "$as_me: failed program was:" >&5 |
| 5365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5366 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5367 | # Passes both tests. |
| 5368 | ac_preproc_ok=: |
| 5369 | break |
| 5370 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5372 | rm -f conftest.err conftest.$ac_ext |
| 5373 | |
| 5374 | done |
| 5375 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5376 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5377 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5378 | break |
| 5379 | fi |
| 5380 | |
| 5381 | done |
| 5382 | ac_cv_prog_CPP=$CPP |
| 5383 | |
| 5384 | fi |
| 5385 | CPP=$ac_cv_prog_CPP |
| 5386 | else |
| 5387 | ac_cv_prog_CPP=$CPP |
| 5388 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5389 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5390 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5391 | ac_preproc_ok=false |
| 5392 | for ac_c_preproc_warn_flag in '' yes |
| 5393 | do |
| 5394 | # Use a header file that comes with gcc, so configuring glibc |
| 5395 | # with a fresh cross-compiler works. |
| 5396 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5397 | # <limits.h> exists even on freestanding compilers. |
| 5398 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5399 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5400 | cat >conftest.$ac_ext <<_ACEOF |
| 5401 | /* confdefs.h. */ |
| 5402 | _ACEOF |
| 5403 | cat confdefs.h >>conftest.$ac_ext |
| 5404 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5405 | /* end confdefs.h. */ |
| 5406 | #ifdef __STDC__ |
| 5407 | # include <limits.h> |
| 5408 | #else |
| 5409 | # include <assert.h> |
| 5410 | #endif |
| 5411 | Syntax error |
| 5412 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5413 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5414 | case "(($ac_try" in |
| 5415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5416 | *) ac_try_echo=$ac_try;; |
| 5417 | esac |
| 5418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5420 | ac_status=$? |
| 5421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5422 | rm -f conftest.er1 |
| 5423 | cat conftest.err >&5 |
| 5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5425 | (exit $ac_status); } >/dev/null; then |
| 5426 | if test -s conftest.err; then |
| 5427 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5429 | else |
| 5430 | ac_cpp_err= |
| 5431 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5432 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5433 | ac_cpp_err=yes |
| 5434 | fi |
| 5435 | if test -z "$ac_cpp_err"; then |
| 5436 | : |
| 5437 | else |
| 5438 | echo "$as_me: failed program was:" >&5 |
| 5439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5441 | # Broken: fails on valid input. |
| 5442 | continue |
| 5443 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5445 | rm -f conftest.err conftest.$ac_ext |
| 5446 | |
| 5447 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5448 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5449 | cat >conftest.$ac_ext <<_ACEOF |
| 5450 | /* confdefs.h. */ |
| 5451 | _ACEOF |
| 5452 | cat confdefs.h >>conftest.$ac_ext |
| 5453 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5454 | /* end confdefs.h. */ |
| 5455 | #include <ac_nonexistent.h> |
| 5456 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5457 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5458 | case "(($ac_try" in |
| 5459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5460 | *) ac_try_echo=$ac_try;; |
| 5461 | esac |
| 5462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5463 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5464 | ac_status=$? |
| 5465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5466 | rm -f conftest.er1 |
| 5467 | cat conftest.err >&5 |
| 5468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5469 | (exit $ac_status); } >/dev/null; then |
| 5470 | if test -s conftest.err; then |
| 5471 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5473 | else |
| 5474 | ac_cpp_err= |
| 5475 | fi |
| 5476 | else |
| 5477 | ac_cpp_err=yes |
| 5478 | fi |
| 5479 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5480 | # Broken: success on invalid input. |
| 5481 | continue |
| 5482 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5483 | echo "$as_me: failed program was:" >&5 |
| 5484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5486 | # Passes both tests. |
| 5487 | ac_preproc_ok=: |
| 5488 | break |
| 5489 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5491 | rm -f conftest.err conftest.$ac_ext |
| 5492 | |
| 5493 | done |
| 5494 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5495 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5496 | if $ac_preproc_ok; then |
| 5497 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5498 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5499 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5500 | See \`config.log' for more details." >&5 |
| 5501 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5502 | See \`config.log' for more details." >&2;} |
| 5503 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5504 | fi |
| 5505 | |
| 5506 | ac_ext=c |
| 5507 | ac_cpp='$CPP $CPPFLAGS' |
| 5508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5511 | |
| 5512 | ac_ext=c |
| 5513 | ac_cpp='$CPP $CPPFLAGS' |
| 5514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5517 | if test -n "$ac_tool_prefix"; then |
| 5518 | for ac_prog in gcc |
| 5519 | do |
| 5520 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5521 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5522 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5524 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5526 | else |
| 5527 | if test -n "$CC"; then |
| 5528 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5529 | else |
| 5530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5531 | for as_dir in $PATH |
| 5532 | do |
| 5533 | IFS=$as_save_IFS |
| 5534 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5535 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5536 | 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] | 5537 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5539 | break 2 |
| 5540 | fi |
| 5541 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5542 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5543 | IFS=$as_save_IFS |
| 5544 | |
| 5545 | fi |
| 5546 | fi |
| 5547 | CC=$ac_cv_prog_CC |
| 5548 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5549 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5550 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5551 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5552 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5553 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5554 | fi |
| 5555 | |
| 5556 | |
| 5557 | test -n "$CC" && break |
| 5558 | done |
| 5559 | fi |
| 5560 | if test -z "$CC"; then |
| 5561 | ac_ct_CC=$CC |
| 5562 | for ac_prog in gcc |
| 5563 | do |
| 5564 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5565 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5566 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5568 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5570 | else |
| 5571 | if test -n "$ac_ct_CC"; then |
| 5572 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5573 | else |
| 5574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5575 | for as_dir in $PATH |
| 5576 | do |
| 5577 | IFS=$as_save_IFS |
| 5578 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5580 | 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] | 5581 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5583 | break 2 |
| 5584 | fi |
| 5585 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5586 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5587 | IFS=$as_save_IFS |
| 5588 | |
| 5589 | fi |
| 5590 | fi |
| 5591 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5592 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5593 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5594 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5595 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5596 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5597 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5598 | fi |
| 5599 | |
| 5600 | |
| 5601 | test -n "$ac_ct_CC" && break |
| 5602 | done |
| 5603 | |
| 5604 | if test "x$ac_ct_CC" = x; then |
| 5605 | CC="" |
| 5606 | else |
| 5607 | case $cross_compiling:$ac_tool_warned in |
| 5608 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5609 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5610 | whose name does not start with the host triplet. If you think this |
| 5611 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5612 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5613 | whose name does not start with the host triplet. If you think this |
| 5614 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5615 | ac_tool_warned=yes ;; |
| 5616 | esac |
| 5617 | CC=$ac_ct_CC |
| 5618 | fi |
| 5619 | fi |
| 5620 | |
| 5621 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5622 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5623 | See \`config.log' for more details." >&5 |
| 5624 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5625 | See \`config.log' for more details." >&2;} |
| 5626 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5627 | |
| 5628 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5629 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5630 | ac_compiler=`set X $ac_compile; echo $2` |
| 5631 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5632 | case "(($ac_try" in |
| 5633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5634 | *) ac_try_echo=$ac_try;; |
| 5635 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5637 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5638 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5640 | (exit $ac_status); } |
| 5641 | { (ac_try="$ac_compiler -v >&5" |
| 5642 | case "(($ac_try" in |
| 5643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5644 | *) ac_try_echo=$ac_try;; |
| 5645 | esac |
| 5646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5647 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5648 | ac_status=$? |
| 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5650 | (exit $ac_status); } |
| 5651 | { (ac_try="$ac_compiler -V >&5" |
| 5652 | case "(($ac_try" in |
| 5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5654 | *) ac_try_echo=$ac_try;; |
| 5655 | esac |
| 5656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5657 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5658 | ac_status=$? |
| 5659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5660 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5661 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5662 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5663 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5664 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5666 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5667 | cat >conftest.$ac_ext <<_ACEOF |
| 5668 | /* confdefs.h. */ |
| 5669 | _ACEOF |
| 5670 | cat confdefs.h >>conftest.$ac_ext |
| 5671 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5672 | /* end confdefs.h. */ |
| 5673 | |
| 5674 | int |
| 5675 | main () |
| 5676 | { |
| 5677 | #ifndef __GNUC__ |
| 5678 | choke me |
| 5679 | #endif |
| 5680 | |
| 5681 | ; |
| 5682 | return 0; |
| 5683 | } |
| 5684 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5685 | rm -f conftest.$ac_objext |
| 5686 | if { (ac_try="$ac_compile" |
| 5687 | case "(($ac_try" in |
| 5688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5689 | *) ac_try_echo=$ac_try;; |
| 5690 | esac |
| 5691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5692 | (eval "$ac_compile") 2>conftest.er1 |
| 5693 | ac_status=$? |
| 5694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5695 | rm -f conftest.er1 |
| 5696 | cat conftest.err >&5 |
| 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5698 | (exit $ac_status); } && |
| 5699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5700 | { (case "(($ac_try" in |
| 5701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5702 | *) ac_try_echo=$ac_try;; |
| 5703 | esac |
| 5704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5705 | (eval "$ac_try") 2>&5 |
| 5706 | ac_status=$? |
| 5707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5708 | (exit $ac_status); }; } && |
| 5709 | { ac_try='test -s conftest.$ac_objext' |
| 5710 | { (case "(($ac_try" in |
| 5711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5712 | *) ac_try_echo=$ac_try;; |
| 5713 | esac |
| 5714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5715 | (eval "$ac_try") 2>&5 |
| 5716 | ac_status=$? |
| 5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5718 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5719 | ac_compiler_gnu=yes |
| 5720 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5721 | echo "$as_me: failed program was:" >&5 |
| 5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5723 | |
| 5724 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5725 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5726 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5728 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5729 | |
| 5730 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5731 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5732 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5733 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5734 | ac_test_CFLAGS=${CFLAGS+set} |
| 5735 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5736 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5737 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5738 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5740 | else |
| 5741 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5742 | ac_c_werror_flag=yes |
| 5743 | ac_cv_prog_cc_g=no |
| 5744 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5745 | cat >conftest.$ac_ext <<_ACEOF |
| 5746 | /* confdefs.h. */ |
| 5747 | _ACEOF |
| 5748 | cat confdefs.h >>conftest.$ac_ext |
| 5749 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5750 | /* end confdefs.h. */ |
| 5751 | |
| 5752 | int |
| 5753 | main () |
| 5754 | { |
| 5755 | |
| 5756 | ; |
| 5757 | return 0; |
| 5758 | } |
| 5759 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5760 | rm -f conftest.$ac_objext |
| 5761 | if { (ac_try="$ac_compile" |
| 5762 | case "(($ac_try" in |
| 5763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5764 | *) ac_try_echo=$ac_try;; |
| 5765 | esac |
| 5766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5767 | (eval "$ac_compile") 2>conftest.er1 |
| 5768 | ac_status=$? |
| 5769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5770 | rm -f conftest.er1 |
| 5771 | cat conftest.err >&5 |
| 5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5773 | (exit $ac_status); } && |
| 5774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5775 | { (case "(($ac_try" in |
| 5776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5777 | *) ac_try_echo=$ac_try;; |
| 5778 | esac |
| 5779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5780 | (eval "$ac_try") 2>&5 |
| 5781 | ac_status=$? |
| 5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5783 | (exit $ac_status); }; } && |
| 5784 | { ac_try='test -s conftest.$ac_objext' |
| 5785 | { (case "(($ac_try" in |
| 5786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5787 | *) ac_try_echo=$ac_try;; |
| 5788 | esac |
| 5789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5790 | (eval "$ac_try") 2>&5 |
| 5791 | ac_status=$? |
| 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5793 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5794 | ac_cv_prog_cc_g=yes |
| 5795 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5796 | echo "$as_me: failed program was:" >&5 |
| 5797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5798 | |
| 5799 | CFLAGS="" |
| 5800 | cat >conftest.$ac_ext <<_ACEOF |
| 5801 | /* confdefs.h. */ |
| 5802 | _ACEOF |
| 5803 | cat confdefs.h >>conftest.$ac_ext |
| 5804 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5805 | /* end confdefs.h. */ |
| 5806 | |
| 5807 | int |
| 5808 | main () |
| 5809 | { |
| 5810 | |
| 5811 | ; |
| 5812 | return 0; |
| 5813 | } |
| 5814 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5815 | rm -f conftest.$ac_objext |
| 5816 | if { (ac_try="$ac_compile" |
| 5817 | case "(($ac_try" in |
| 5818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5819 | *) ac_try_echo=$ac_try;; |
| 5820 | esac |
| 5821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5822 | (eval "$ac_compile") 2>conftest.er1 |
| 5823 | ac_status=$? |
| 5824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5825 | rm -f conftest.er1 |
| 5826 | cat conftest.err >&5 |
| 5827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5828 | (exit $ac_status); } && |
| 5829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5830 | { (case "(($ac_try" in |
| 5831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5832 | *) ac_try_echo=$ac_try;; |
| 5833 | esac |
| 5834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5835 | (eval "$ac_try") 2>&5 |
| 5836 | ac_status=$? |
| 5837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5838 | (exit $ac_status); }; } && |
| 5839 | { ac_try='test -s conftest.$ac_objext' |
| 5840 | { (case "(($ac_try" in |
| 5841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5842 | *) ac_try_echo=$ac_try;; |
| 5843 | esac |
| 5844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5845 | (eval "$ac_try") 2>&5 |
| 5846 | ac_status=$? |
| 5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5848 | (exit $ac_status); }; }; then |
| 5849 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5850 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5851 | echo "$as_me: failed program was:" >&5 |
| 5852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5853 | |
| 5854 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5855 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5856 | cat >conftest.$ac_ext <<_ACEOF |
| 5857 | /* confdefs.h. */ |
| 5858 | _ACEOF |
| 5859 | cat confdefs.h >>conftest.$ac_ext |
| 5860 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5861 | /* end confdefs.h. */ |
| 5862 | |
| 5863 | int |
| 5864 | main () |
| 5865 | { |
| 5866 | |
| 5867 | ; |
| 5868 | return 0; |
| 5869 | } |
| 5870 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5871 | rm -f conftest.$ac_objext |
| 5872 | if { (ac_try="$ac_compile" |
| 5873 | case "(($ac_try" in |
| 5874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5875 | *) ac_try_echo=$ac_try;; |
| 5876 | esac |
| 5877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5878 | (eval "$ac_compile") 2>conftest.er1 |
| 5879 | ac_status=$? |
| 5880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5881 | rm -f conftest.er1 |
| 5882 | cat conftest.err >&5 |
| 5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5884 | (exit $ac_status); } && |
| 5885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5886 | { (case "(($ac_try" in |
| 5887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5888 | *) ac_try_echo=$ac_try;; |
| 5889 | esac |
| 5890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5891 | (eval "$ac_try") 2>&5 |
| 5892 | ac_status=$? |
| 5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5894 | (exit $ac_status); }; } && |
| 5895 | { ac_try='test -s conftest.$ac_objext' |
| 5896 | { (case "(($ac_try" in |
| 5897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5898 | *) ac_try_echo=$ac_try;; |
| 5899 | esac |
| 5900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5901 | (eval "$ac_try") 2>&5 |
| 5902 | ac_status=$? |
| 5903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5904 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5905 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5906 | else |
| 5907 | echo "$as_me: failed program was:" >&5 |
| 5908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5909 | |
| 5910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5911 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5914 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5917 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5918 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5920 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5921 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5922 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5923 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5924 | if test "$ac_test_CFLAGS" = set; then |
| 5925 | CFLAGS=$ac_save_CFLAGS |
| 5926 | elif test $ac_cv_prog_cc_g = yes; then |
| 5927 | if test "$GCC" = yes; then |
| 5928 | CFLAGS="-g -O2" |
| 5929 | else |
| 5930 | CFLAGS="-g" |
| 5931 | fi |
| 5932 | else |
| 5933 | if test "$GCC" = yes; then |
| 5934 | CFLAGS="-O2" |
| 5935 | else |
| 5936 | CFLAGS= |
| 5937 | fi |
| 5938 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5939 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5940 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5941 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5943 | else |
| 5944 | ac_cv_prog_cc_c89=no |
| 5945 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5946 | cat >conftest.$ac_ext <<_ACEOF |
| 5947 | /* confdefs.h. */ |
| 5948 | _ACEOF |
| 5949 | cat confdefs.h >>conftest.$ac_ext |
| 5950 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5951 | /* end confdefs.h. */ |
| 5952 | #include <stdarg.h> |
| 5953 | #include <stdio.h> |
| 5954 | #include <sys/types.h> |
| 5955 | #include <sys/stat.h> |
| 5956 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5957 | struct buf { int x; }; |
| 5958 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5959 | static char *e (p, i) |
| 5960 | char **p; |
| 5961 | int i; |
| 5962 | { |
| 5963 | return p[i]; |
| 5964 | } |
| 5965 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5966 | { |
| 5967 | char *s; |
| 5968 | va_list v; |
| 5969 | va_start (v,p); |
| 5970 | s = g (p, va_arg (v,int)); |
| 5971 | va_end (v); |
| 5972 | return s; |
| 5973 | } |
| 5974 | |
| 5975 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5976 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5977 | These don't provoke an error unfortunately, instead are silently treated |
| 5978 | as 'x'. The following induces an error, until -std is added to get |
| 5979 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5980 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5981 | that's true only with -std. */ |
| 5982 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5983 | |
| 5984 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5985 | inside strings and character constants. */ |
| 5986 | #define FOO(x) 'x' |
| 5987 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5988 | |
| 5989 | int test (int i, double x); |
| 5990 | struct s1 {int (*f) (int a);}; |
| 5991 | struct s2 {int (*f) (double a);}; |
| 5992 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5993 | int argc; |
| 5994 | char **argv; |
| 5995 | int |
| 5996 | main () |
| 5997 | { |
| 5998 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5999 | ; |
| 6000 | return 0; |
| 6001 | } |
| 6002 | _ACEOF |
| 6003 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6004 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6005 | do |
| 6006 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6007 | rm -f conftest.$ac_objext |
| 6008 | if { (ac_try="$ac_compile" |
| 6009 | case "(($ac_try" in |
| 6010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6011 | *) ac_try_echo=$ac_try;; |
| 6012 | esac |
| 6013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6014 | (eval "$ac_compile") 2>conftest.er1 |
| 6015 | ac_status=$? |
| 6016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6017 | rm -f conftest.er1 |
| 6018 | cat conftest.err >&5 |
| 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6020 | (exit $ac_status); } && |
| 6021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6022 | { (case "(($ac_try" in |
| 6023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6024 | *) ac_try_echo=$ac_try;; |
| 6025 | esac |
| 6026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6027 | (eval "$ac_try") 2>&5 |
| 6028 | ac_status=$? |
| 6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6030 | (exit $ac_status); }; } && |
| 6031 | { ac_try='test -s conftest.$ac_objext' |
| 6032 | { (case "(($ac_try" in |
| 6033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6034 | *) ac_try_echo=$ac_try;; |
| 6035 | esac |
| 6036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6037 | (eval "$ac_try") 2>&5 |
| 6038 | ac_status=$? |
| 6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6040 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6041 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6042 | else |
| 6043 | echo "$as_me: failed program was:" >&5 |
| 6044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6045 | |
| 6046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6047 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6048 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6049 | rm -f core conftest.err conftest.$ac_objext |
| 6050 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6051 | done |
| 6052 | rm -f conftest.$ac_ext |
| 6053 | CC=$ac_save_CC |
| 6054 | |
| 6055 | fi |
| 6056 | # AC_CACHE_VAL |
| 6057 | case "x$ac_cv_prog_cc_c89" in |
| 6058 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6059 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6060 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6061 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6062 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6063 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6064 | *) |
| 6065 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6066 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6067 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6068 | esac |
| 6069 | |
| 6070 | |
| 6071 | ac_ext=c |
| 6072 | ac_cpp='$CPP $CPPFLAGS' |
| 6073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6076 | |
| 6077 | ac_ext=cpp |
| 6078 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6079 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6080 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6081 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6082 | if test -z "$CXX"; then |
| 6083 | if test -n "$CCC"; then |
| 6084 | CXX=$CCC |
| 6085 | else |
| 6086 | if test -n "$ac_tool_prefix"; then |
| 6087 | for ac_prog in g++ |
| 6088 | do |
| 6089 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6090 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6091 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6093 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6095 | else |
| 6096 | if test -n "$CXX"; then |
| 6097 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6098 | else |
| 6099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6100 | for as_dir in $PATH |
| 6101 | do |
| 6102 | IFS=$as_save_IFS |
| 6103 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6104 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6105 | 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] | 6106 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6108 | break 2 |
| 6109 | fi |
| 6110 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6111 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6112 | IFS=$as_save_IFS |
| 6113 | |
| 6114 | fi |
| 6115 | fi |
| 6116 | CXX=$ac_cv_prog_CXX |
| 6117 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6118 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6119 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6120 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6121 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6122 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6123 | fi |
| 6124 | |
| 6125 | |
| 6126 | test -n "$CXX" && break |
| 6127 | done |
| 6128 | fi |
| 6129 | if test -z "$CXX"; then |
| 6130 | ac_ct_CXX=$CXX |
| 6131 | for ac_prog in g++ |
| 6132 | do |
| 6133 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6134 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6135 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6137 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6139 | else |
| 6140 | if test -n "$ac_ct_CXX"; then |
| 6141 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6142 | else |
| 6143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6144 | for as_dir in $PATH |
| 6145 | do |
| 6146 | IFS=$as_save_IFS |
| 6147 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6148 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6149 | 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] | 6150 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6152 | break 2 |
| 6153 | fi |
| 6154 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6155 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6156 | IFS=$as_save_IFS |
| 6157 | |
| 6158 | fi |
| 6159 | fi |
| 6160 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6161 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6162 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6163 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6164 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6165 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6166 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6167 | fi |
| 6168 | |
| 6169 | |
| 6170 | test -n "$ac_ct_CXX" && break |
| 6171 | done |
| 6172 | |
| 6173 | if test "x$ac_ct_CXX" = x; then |
| 6174 | CXX="g++" |
| 6175 | else |
| 6176 | case $cross_compiling:$ac_tool_warned in |
| 6177 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6178 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6179 | whose name does not start with the host triplet. If you think this |
| 6180 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6181 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6182 | whose name does not start with the host triplet. If you think this |
| 6183 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6184 | ac_tool_warned=yes ;; |
| 6185 | esac |
| 6186 | CXX=$ac_ct_CXX |
| 6187 | fi |
| 6188 | fi |
| 6189 | |
| 6190 | fi |
| 6191 | fi |
| 6192 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6193 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6194 | ac_compiler=`set X $ac_compile; echo $2` |
| 6195 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6196 | case "(($ac_try" in |
| 6197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6198 | *) ac_try_echo=$ac_try;; |
| 6199 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6201 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6202 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6204 | (exit $ac_status); } |
| 6205 | { (ac_try="$ac_compiler -v >&5" |
| 6206 | case "(($ac_try" in |
| 6207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6208 | *) ac_try_echo=$ac_try;; |
| 6209 | esac |
| 6210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6211 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6212 | ac_status=$? |
| 6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6214 | (exit $ac_status); } |
| 6215 | { (ac_try="$ac_compiler -V >&5" |
| 6216 | case "(($ac_try" in |
| 6217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6218 | *) ac_try_echo=$ac_try;; |
| 6219 | esac |
| 6220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6221 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6222 | ac_status=$? |
| 6223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6224 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6225 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6226 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6227 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6228 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6230 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6231 | cat >conftest.$ac_ext <<_ACEOF |
| 6232 | /* confdefs.h. */ |
| 6233 | _ACEOF |
| 6234 | cat confdefs.h >>conftest.$ac_ext |
| 6235 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6236 | /* end confdefs.h. */ |
| 6237 | |
| 6238 | int |
| 6239 | main () |
| 6240 | { |
| 6241 | #ifndef __GNUC__ |
| 6242 | choke me |
| 6243 | #endif |
| 6244 | |
| 6245 | ; |
| 6246 | return 0; |
| 6247 | } |
| 6248 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6249 | rm -f conftest.$ac_objext |
| 6250 | if { (ac_try="$ac_compile" |
| 6251 | case "(($ac_try" in |
| 6252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6253 | *) ac_try_echo=$ac_try;; |
| 6254 | esac |
| 6255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6256 | (eval "$ac_compile") 2>conftest.er1 |
| 6257 | ac_status=$? |
| 6258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6259 | rm -f conftest.er1 |
| 6260 | cat conftest.err >&5 |
| 6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6262 | (exit $ac_status); } && |
| 6263 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6264 | { (case "(($ac_try" in |
| 6265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6266 | *) ac_try_echo=$ac_try;; |
| 6267 | esac |
| 6268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6269 | (eval "$ac_try") 2>&5 |
| 6270 | ac_status=$? |
| 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6272 | (exit $ac_status); }; } && |
| 6273 | { ac_try='test -s conftest.$ac_objext' |
| 6274 | { (case "(($ac_try" in |
| 6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6276 | *) ac_try_echo=$ac_try;; |
| 6277 | esac |
| 6278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6279 | (eval "$ac_try") 2>&5 |
| 6280 | ac_status=$? |
| 6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6282 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6283 | ac_compiler_gnu=yes |
| 6284 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6285 | echo "$as_me: failed program was:" >&5 |
| 6286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6287 | |
| 6288 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6289 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6292 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6293 | |
| 6294 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6295 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6296 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6297 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6298 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6299 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6300 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6301 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6302 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6304 | else |
| 6305 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6306 | ac_cxx_werror_flag=yes |
| 6307 | ac_cv_prog_cxx_g=no |
| 6308 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6309 | cat >conftest.$ac_ext <<_ACEOF |
| 6310 | /* confdefs.h. */ |
| 6311 | _ACEOF |
| 6312 | cat confdefs.h >>conftest.$ac_ext |
| 6313 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6314 | /* end confdefs.h. */ |
| 6315 | |
| 6316 | int |
| 6317 | main () |
| 6318 | { |
| 6319 | |
| 6320 | ; |
| 6321 | return 0; |
| 6322 | } |
| 6323 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6324 | rm -f conftest.$ac_objext |
| 6325 | if { (ac_try="$ac_compile" |
| 6326 | case "(($ac_try" in |
| 6327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6328 | *) ac_try_echo=$ac_try;; |
| 6329 | esac |
| 6330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6331 | (eval "$ac_compile") 2>conftest.er1 |
| 6332 | ac_status=$? |
| 6333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6334 | rm -f conftest.er1 |
| 6335 | cat conftest.err >&5 |
| 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6337 | (exit $ac_status); } && |
| 6338 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6339 | { (case "(($ac_try" in |
| 6340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6341 | *) ac_try_echo=$ac_try;; |
| 6342 | esac |
| 6343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6344 | (eval "$ac_try") 2>&5 |
| 6345 | ac_status=$? |
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6347 | (exit $ac_status); }; } && |
| 6348 | { ac_try='test -s conftest.$ac_objext' |
| 6349 | { (case "(($ac_try" in |
| 6350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6351 | *) ac_try_echo=$ac_try;; |
| 6352 | esac |
| 6353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6354 | (eval "$ac_try") 2>&5 |
| 6355 | ac_status=$? |
| 6356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6357 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6358 | ac_cv_prog_cxx_g=yes |
| 6359 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6360 | echo "$as_me: failed program was:" >&5 |
| 6361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6362 | |
| 6363 | CXXFLAGS="" |
| 6364 | cat >conftest.$ac_ext <<_ACEOF |
| 6365 | /* confdefs.h. */ |
| 6366 | _ACEOF |
| 6367 | cat confdefs.h >>conftest.$ac_ext |
| 6368 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6369 | /* end confdefs.h. */ |
| 6370 | |
| 6371 | int |
| 6372 | main () |
| 6373 | { |
| 6374 | |
| 6375 | ; |
| 6376 | return 0; |
| 6377 | } |
| 6378 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6379 | rm -f conftest.$ac_objext |
| 6380 | if { (ac_try="$ac_compile" |
| 6381 | case "(($ac_try" in |
| 6382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6383 | *) ac_try_echo=$ac_try;; |
| 6384 | esac |
| 6385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6386 | (eval "$ac_compile") 2>conftest.er1 |
| 6387 | ac_status=$? |
| 6388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6389 | rm -f conftest.er1 |
| 6390 | cat conftest.err >&5 |
| 6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6392 | (exit $ac_status); } && |
| 6393 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6394 | { (case "(($ac_try" in |
| 6395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6396 | *) ac_try_echo=$ac_try;; |
| 6397 | esac |
| 6398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6399 | (eval "$ac_try") 2>&5 |
| 6400 | ac_status=$? |
| 6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6402 | (exit $ac_status); }; } && |
| 6403 | { ac_try='test -s conftest.$ac_objext' |
| 6404 | { (case "(($ac_try" in |
| 6405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6406 | *) ac_try_echo=$ac_try;; |
| 6407 | esac |
| 6408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6409 | (eval "$ac_try") 2>&5 |
| 6410 | ac_status=$? |
| 6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6412 | (exit $ac_status); }; }; then |
| 6413 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6415 | echo "$as_me: failed program was:" >&5 |
| 6416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6417 | |
| 6418 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6419 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6420 | cat >conftest.$ac_ext <<_ACEOF |
| 6421 | /* confdefs.h. */ |
| 6422 | _ACEOF |
| 6423 | cat confdefs.h >>conftest.$ac_ext |
| 6424 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6425 | /* end confdefs.h. */ |
| 6426 | |
| 6427 | int |
| 6428 | main () |
| 6429 | { |
| 6430 | |
| 6431 | ; |
| 6432 | return 0; |
| 6433 | } |
| 6434 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6435 | rm -f conftest.$ac_objext |
| 6436 | if { (ac_try="$ac_compile" |
| 6437 | case "(($ac_try" in |
| 6438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6439 | *) ac_try_echo=$ac_try;; |
| 6440 | esac |
| 6441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6442 | (eval "$ac_compile") 2>conftest.er1 |
| 6443 | ac_status=$? |
| 6444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6445 | rm -f conftest.er1 |
| 6446 | cat conftest.err >&5 |
| 6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6448 | (exit $ac_status); } && |
| 6449 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6450 | { (case "(($ac_try" in |
| 6451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6452 | *) ac_try_echo=$ac_try;; |
| 6453 | esac |
| 6454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6455 | (eval "$ac_try") 2>&5 |
| 6456 | ac_status=$? |
| 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6458 | (exit $ac_status); }; } && |
| 6459 | { ac_try='test -s conftest.$ac_objext' |
| 6460 | { (case "(($ac_try" in |
| 6461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6462 | *) ac_try_echo=$ac_try;; |
| 6463 | esac |
| 6464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6465 | (eval "$ac_try") 2>&5 |
| 6466 | ac_status=$? |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6469 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6470 | else |
| 6471 | echo "$as_me: failed program was:" >&5 |
| 6472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6473 | |
| 6474 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6475 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6478 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6479 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6481 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6484 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6485 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6486 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6487 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6488 | if test "$ac_test_CXXFLAGS" = set; then |
| 6489 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6490 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6491 | if test "$GXX" = yes; then |
| 6492 | CXXFLAGS="-g -O2" |
| 6493 | else |
| 6494 | CXXFLAGS="-g" |
| 6495 | fi |
| 6496 | else |
| 6497 | if test "$GXX" = yes; then |
| 6498 | CXXFLAGS="-O2" |
| 6499 | else |
| 6500 | CXXFLAGS= |
| 6501 | fi |
| 6502 | fi |
| 6503 | ac_ext=c |
| 6504 | ac_cpp='$CPP $CPPFLAGS' |
| 6505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6509 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6510 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6511 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6512 | if test "${lt_cv_path_NM+set}" = set; then |
| 6513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6514 | else |
| 6515 | if test -n "$NM"; then |
| 6516 | # Let the user override the test. |
| 6517 | lt_cv_path_NM="$NM" |
| 6518 | else |
| 6519 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6520 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6521 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6522 | fi |
| 6523 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6524 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6525 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6526 | IFS="$lt_save_ifs" |
| 6527 | test -z "$ac_dir" && ac_dir=. |
| 6528 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6529 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6530 | # Check to see if the nm accepts a BSD-compat flag. |
| 6531 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6532 | # nm: unknown option "B" ignored |
| 6533 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6534 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6535 | */dev/null* | *'Invalid file or object type'*) |
| 6536 | lt_cv_path_NM="$tmp_nm -B" |
| 6537 | break |
| 6538 | ;; |
| 6539 | *) |
| 6540 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6541 | */dev/null*) |
| 6542 | lt_cv_path_NM="$tmp_nm -p" |
| 6543 | break |
| 6544 | ;; |
| 6545 | *) |
| 6546 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6547 | continue # so that we can try to find one that supports BSD flags |
| 6548 | ;; |
| 6549 | esac |
| 6550 | ;; |
| 6551 | esac |
| 6552 | fi |
| 6553 | done |
| 6554 | IFS="$lt_save_ifs" |
| 6555 | done |
| 6556 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6557 | fi |
| 6558 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6559 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6560 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6561 | NM="$lt_cv_path_NM" |
| 6562 | |
| 6563 | |
| 6564 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6565 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6566 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6567 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6569 | else |
| 6570 | llvm_cv_gnu_make_command='' |
| 6571 | for a in "$MAKE" make gmake gnumake ; do |
| 6572 | if test -z "$a" ; then continue ; fi ; |
| 6573 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6574 | then |
| 6575 | llvm_cv_gnu_make_command=$a ; |
| 6576 | break; |
| 6577 | fi |
| 6578 | done |
| 6579 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6580 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6581 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6582 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6583 | ifGNUmake='' ; |
| 6584 | else |
| 6585 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6586 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6587 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6588 | fi |
| 6589 | |
| 6590 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6591 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6592 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6593 | LN_S=$as_ln_s |
| 6594 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6595 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6596 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6597 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6598 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6599 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6600 | fi |
| 6601 | |
| 6602 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6603 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6604 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6606 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6608 | else |
| 6609 | case $CMP in |
| 6610 | [\\/]* | ?:[\\/]*) |
| 6611 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6612 | ;; |
| 6613 | *) |
| 6614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6615 | for as_dir in $PATH |
| 6616 | do |
| 6617 | IFS=$as_save_IFS |
| 6618 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6619 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6620 | 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] | 6621 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6623 | break 2 |
| 6624 | fi |
| 6625 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6626 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6627 | IFS=$as_save_IFS |
| 6628 | |
| 6629 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6630 | ;; |
| 6631 | esac |
| 6632 | fi |
| 6633 | CMP=$ac_cv_path_CMP |
| 6634 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6635 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6636 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6637 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6638 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6639 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6640 | fi |
| 6641 | |
| 6642 | |
| 6643 | # Extract the first word of "cp", so it can be a program name with args. |
| 6644 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6645 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6647 | if test "${ac_cv_path_CP+set}" = set; then |
| 6648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6649 | else |
| 6650 | case $CP in |
| 6651 | [\\/]* | ?:[\\/]*) |
| 6652 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6653 | ;; |
| 6654 | *) |
| 6655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6656 | for as_dir in $PATH |
| 6657 | do |
| 6658 | IFS=$as_save_IFS |
| 6659 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6661 | 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] | 6662 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6664 | break 2 |
| 6665 | fi |
| 6666 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6667 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6668 | IFS=$as_save_IFS |
| 6669 | |
| 6670 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6671 | ;; |
| 6672 | esac |
| 6673 | fi |
| 6674 | CP=$ac_cv_path_CP |
| 6675 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6676 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6677 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6678 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6679 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6680 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6681 | fi |
| 6682 | |
| 6683 | |
| 6684 | # Extract the first word of "date", so it can be a program name with args. |
| 6685 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6686 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6688 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6690 | else |
| 6691 | case $DATE in |
| 6692 | [\\/]* | ?:[\\/]*) |
| 6693 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6694 | ;; |
| 6695 | *) |
| 6696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6697 | for as_dir in $PATH |
| 6698 | do |
| 6699 | IFS=$as_save_IFS |
| 6700 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6701 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6702 | 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] | 6703 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6704 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6705 | break 2 |
| 6706 | fi |
| 6707 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6708 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6709 | IFS=$as_save_IFS |
| 6710 | |
| 6711 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6712 | ;; |
| 6713 | esac |
| 6714 | fi |
| 6715 | DATE=$ac_cv_path_DATE |
| 6716 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6717 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6718 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6719 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6720 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6721 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6722 | fi |
| 6723 | |
| 6724 | |
| 6725 | # Extract the first word of "find", so it can be a program name with args. |
| 6726 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6729 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6731 | else |
| 6732 | case $FIND in |
| 6733 | [\\/]* | ?:[\\/]*) |
| 6734 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6735 | ;; |
| 6736 | *) |
| 6737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6738 | for as_dir in $PATH |
| 6739 | do |
| 6740 | IFS=$as_save_IFS |
| 6741 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6742 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6743 | 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] | 6744 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6746 | break 2 |
| 6747 | fi |
| 6748 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6749 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6750 | IFS=$as_save_IFS |
| 6751 | |
| 6752 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6753 | ;; |
| 6754 | esac |
| 6755 | fi |
| 6756 | FIND=$ac_cv_path_FIND |
| 6757 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6758 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6759 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6760 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6761 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6762 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6763 | fi |
| 6764 | |
| 6765 | |
| 6766 | # Extract the first word of "grep", so it can be a program name with args. |
| 6767 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6768 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6770 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6772 | else |
| 6773 | case $GREP in |
| 6774 | [\\/]* | ?:[\\/]*) |
| 6775 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6776 | ;; |
| 6777 | *) |
| 6778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6779 | for as_dir in $PATH |
| 6780 | do |
| 6781 | IFS=$as_save_IFS |
| 6782 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6783 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6784 | 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] | 6785 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6787 | break 2 |
| 6788 | fi |
| 6789 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6790 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6791 | IFS=$as_save_IFS |
| 6792 | |
| 6793 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6794 | ;; |
| 6795 | esac |
| 6796 | fi |
| 6797 | GREP=$ac_cv_path_GREP |
| 6798 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6799 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6800 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6801 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6803 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6804 | fi |
| 6805 | |
| 6806 | |
| 6807 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6808 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6809 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6811 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6813 | else |
| 6814 | case $MKDIR in |
| 6815 | [\\/]* | ?:[\\/]*) |
| 6816 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6817 | ;; |
| 6818 | *) |
| 6819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6820 | for as_dir in $PATH |
| 6821 | do |
| 6822 | IFS=$as_save_IFS |
| 6823 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6824 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6825 | 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] | 6826 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6828 | break 2 |
| 6829 | fi |
| 6830 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6831 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6832 | IFS=$as_save_IFS |
| 6833 | |
| 6834 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6835 | ;; |
| 6836 | esac |
| 6837 | fi |
| 6838 | MKDIR=$ac_cv_path_MKDIR |
| 6839 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6840 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6841 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6842 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6843 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6844 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6845 | fi |
| 6846 | |
| 6847 | |
| 6848 | # Extract the first word of "mv", so it can be a program name with args. |
| 6849 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6850 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6852 | if test "${ac_cv_path_MV+set}" = set; then |
| 6853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6854 | else |
| 6855 | case $MV in |
| 6856 | [\\/]* | ?:[\\/]*) |
| 6857 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6858 | ;; |
| 6859 | *) |
| 6860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6861 | for as_dir in $PATH |
| 6862 | do |
| 6863 | IFS=$as_save_IFS |
| 6864 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6866 | 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] | 6867 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6869 | break 2 |
| 6870 | fi |
| 6871 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6872 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6873 | IFS=$as_save_IFS |
| 6874 | |
| 6875 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6876 | ;; |
| 6877 | esac |
| 6878 | fi |
| 6879 | MV=$ac_cv_path_MV |
| 6880 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6881 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6882 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6883 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6884 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6885 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6886 | fi |
| 6887 | |
| 6888 | |
| 6889 | if test -n "$ac_tool_prefix"; then |
| 6890 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6891 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6892 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6894 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6896 | else |
| 6897 | if test -n "$RANLIB"; then |
| 6898 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6899 | else |
| 6900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6901 | for as_dir in $PATH |
| 6902 | do |
| 6903 | IFS=$as_save_IFS |
| 6904 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6905 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6906 | 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] | 6907 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6909 | break 2 |
| 6910 | fi |
| 6911 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6912 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6913 | IFS=$as_save_IFS |
| 6914 | |
| 6915 | fi |
| 6916 | fi |
| 6917 | RANLIB=$ac_cv_prog_RANLIB |
| 6918 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6919 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6920 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6921 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6922 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6923 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6924 | fi |
| 6925 | |
| 6926 | |
| 6927 | fi |
| 6928 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6929 | ac_ct_RANLIB=$RANLIB |
| 6930 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6931 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6932 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6934 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6936 | else |
| 6937 | if test -n "$ac_ct_RANLIB"; then |
| 6938 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6939 | else |
| 6940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6941 | for as_dir in $PATH |
| 6942 | do |
| 6943 | IFS=$as_save_IFS |
| 6944 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6945 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6946 | 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] | 6947 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6949 | break 2 |
| 6950 | fi |
| 6951 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6952 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6953 | IFS=$as_save_IFS |
| 6954 | |
| 6955 | fi |
| 6956 | fi |
| 6957 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6958 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6959 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6960 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6961 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6962 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6963 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6964 | fi |
| 6965 | |
| 6966 | if test "x$ac_ct_RANLIB" = x; then |
| 6967 | RANLIB=":" |
| 6968 | else |
| 6969 | case $cross_compiling:$ac_tool_warned in |
| 6970 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6971 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6972 | whose name does not start with the host triplet. If you think this |
| 6973 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6974 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6975 | whose name does not start with the host triplet. If you think this |
| 6976 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6977 | ac_tool_warned=yes ;; |
| 6978 | esac |
| 6979 | RANLIB=$ac_ct_RANLIB |
| 6980 | fi |
| 6981 | else |
| 6982 | RANLIB="$ac_cv_prog_RANLIB" |
| 6983 | fi |
| 6984 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6985 | if test -n "$ac_tool_prefix"; then |
| 6986 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6987 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6988 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6990 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6992 | else |
| 6993 | if test -n "$AR"; then |
| 6994 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6995 | else |
| 6996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6997 | for as_dir in $PATH |
| 6998 | do |
| 6999 | IFS=$as_save_IFS |
| 7000 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7001 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7003 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7004 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7005 | break 2 |
| 7006 | fi |
| 7007 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7008 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7009 | IFS=$as_save_IFS |
| 7010 | |
| 7011 | fi |
| 7012 | fi |
| 7013 | AR=$ac_cv_prog_AR |
| 7014 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7015 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7016 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7017 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7018 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7019 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7020 | fi |
| 7021 | |
| 7022 | |
| 7023 | fi |
| 7024 | if test -z "$ac_cv_prog_AR"; then |
| 7025 | ac_ct_AR=$AR |
| 7026 | # Extract the first word of "ar", so it can be a program name with args. |
| 7027 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7028 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7030 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7032 | else |
| 7033 | if test -n "$ac_ct_AR"; then |
| 7034 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7035 | else |
| 7036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7037 | for as_dir in $PATH |
| 7038 | do |
| 7039 | IFS=$as_save_IFS |
| 7040 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7043 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7045 | break 2 |
| 7046 | fi |
| 7047 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7048 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7049 | IFS=$as_save_IFS |
| 7050 | |
| 7051 | fi |
| 7052 | fi |
| 7053 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7054 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7055 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7056 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7057 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7058 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7059 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7060 | fi |
| 7061 | |
| 7062 | if test "x$ac_ct_AR" = x; then |
| 7063 | AR="false" |
| 7064 | else |
| 7065 | case $cross_compiling:$ac_tool_warned in |
| 7066 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7067 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7068 | whose name does not start with the host triplet. If you think this |
| 7069 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7070 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7071 | whose name does not start with the host triplet. If you think this |
| 7072 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7073 | ac_tool_warned=yes ;; |
| 7074 | esac |
| 7075 | AR=$ac_ct_AR |
| 7076 | fi |
| 7077 | else |
| 7078 | AR="$ac_cv_prog_AR" |
| 7079 | fi |
| 7080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7081 | # Extract the first word of "rm", so it can be a program name with args. |
| 7082 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7083 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7085 | if test "${ac_cv_path_RM+set}" = set; then |
| 7086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7087 | else |
| 7088 | case $RM in |
| 7089 | [\\/]* | ?:[\\/]*) |
| 7090 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7091 | ;; |
| 7092 | *) |
| 7093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7094 | for as_dir in $PATH |
| 7095 | do |
| 7096 | IFS=$as_save_IFS |
| 7097 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7098 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7099 | 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] | 7100 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7102 | break 2 |
| 7103 | fi |
| 7104 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7105 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7106 | IFS=$as_save_IFS |
| 7107 | |
| 7108 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7109 | ;; |
| 7110 | esac |
| 7111 | fi |
| 7112 | RM=$ac_cv_path_RM |
| 7113 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7114 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7115 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7116 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7117 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7118 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7119 | fi |
| 7120 | |
| 7121 | |
| 7122 | # Extract the first word of "sed", so it can be a program name with args. |
| 7123 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7124 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7126 | if test "${ac_cv_path_SED+set}" = set; then |
| 7127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7128 | else |
| 7129 | case $SED in |
| 7130 | [\\/]* | ?:[\\/]*) |
| 7131 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7132 | ;; |
| 7133 | *) |
| 7134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7135 | for as_dir in $PATH |
| 7136 | do |
| 7137 | IFS=$as_save_IFS |
| 7138 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7139 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7140 | 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] | 7141 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7143 | break 2 |
| 7144 | fi |
| 7145 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7146 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7147 | IFS=$as_save_IFS |
| 7148 | |
| 7149 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7150 | ;; |
| 7151 | esac |
| 7152 | fi |
| 7153 | SED=$ac_cv_path_SED |
| 7154 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7155 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7156 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7157 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7158 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7159 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7160 | fi |
| 7161 | |
| 7162 | |
| 7163 | # Extract the first word of "tar", so it can be a program name with args. |
| 7164 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7165 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7167 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7169 | else |
| 7170 | case $TAR in |
| 7171 | [\\/]* | ?:[\\/]*) |
| 7172 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7173 | ;; |
| 7174 | *) |
| 7175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7176 | for as_dir in $PATH |
| 7177 | do |
| 7178 | IFS=$as_save_IFS |
| 7179 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7181 | 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] | 7182 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7184 | break 2 |
| 7185 | fi |
| 7186 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7187 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7188 | IFS=$as_save_IFS |
| 7189 | |
| 7190 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7191 | ;; |
| 7192 | esac |
| 7193 | fi |
| 7194 | TAR=$ac_cv_path_TAR |
| 7195 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7196 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7197 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7198 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7199 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7200 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7201 | fi |
| 7202 | |
| 7203 | |
| 7204 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7205 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7206 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7208 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7210 | else |
| 7211 | case $BINPWD in |
| 7212 | [\\/]* | ?:[\\/]*) |
| 7213 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7214 | ;; |
| 7215 | *) |
| 7216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7217 | for as_dir in $PATH |
| 7218 | do |
| 7219 | IFS=$as_save_IFS |
| 7220 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7221 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7222 | 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] | 7223 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7225 | break 2 |
| 7226 | fi |
| 7227 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7228 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7229 | IFS=$as_save_IFS |
| 7230 | |
| 7231 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7232 | ;; |
| 7233 | esac |
| 7234 | fi |
| 7235 | BINPWD=$ac_cv_path_BINPWD |
| 7236 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7237 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7238 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7239 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7240 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7241 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7242 | fi |
| 7243 | |
| 7244 | |
| 7245 | |
| 7246 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7247 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7248 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7250 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7252 | else |
| 7253 | case $GRAPHVIZ in |
| 7254 | [\\/]* | ?:[\\/]*) |
| 7255 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7256 | ;; |
| 7257 | *) |
| 7258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7259 | for as_dir in $PATH |
| 7260 | do |
| 7261 | IFS=$as_save_IFS |
| 7262 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7263 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7264 | 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] | 7265 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7267 | break 2 |
| 7268 | fi |
| 7269 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7270 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7271 | IFS=$as_save_IFS |
| 7272 | |
| 7273 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7274 | ;; |
| 7275 | esac |
| 7276 | fi |
| 7277 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7278 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7279 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7280 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7281 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7282 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7283 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7284 | fi |
| 7285 | |
| 7286 | |
| 7287 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7288 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7289 | cat >>confdefs.h <<\_ACEOF |
| 7290 | #define HAVE_GRAPHVIZ 1 |
| 7291 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7292 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7293 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7294 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7295 | fi |
| 7296 | |
| 7297 | cat >>confdefs.h <<_ACEOF |
| 7298 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7299 | _ACEOF |
| 7300 | |
| 7301 | fi |
| 7302 | # Extract the first word of "dot", so it can be a program name with args. |
| 7303 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7304 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7306 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7308 | else |
| 7309 | case $DOT in |
| 7310 | [\\/]* | ?:[\\/]*) |
| 7311 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7312 | ;; |
| 7313 | *) |
| 7314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7315 | for as_dir in $PATH |
| 7316 | do |
| 7317 | IFS=$as_save_IFS |
| 7318 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7319 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7320 | 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] | 7321 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7323 | break 2 |
| 7324 | fi |
| 7325 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7326 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7327 | IFS=$as_save_IFS |
| 7328 | |
| 7329 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7330 | ;; |
| 7331 | esac |
| 7332 | fi |
| 7333 | DOT=$ac_cv_path_DOT |
| 7334 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7335 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7336 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7337 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7338 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7339 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7340 | fi |
| 7341 | |
| 7342 | |
| 7343 | if test "$DOT" != "echo dot" ; then |
| 7344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7345 | cat >>confdefs.h <<\_ACEOF |
| 7346 | #define HAVE_DOT 1 |
| 7347 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7348 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7349 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7350 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7351 | fi |
| 7352 | |
| 7353 | cat >>confdefs.h <<_ACEOF |
| 7354 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7355 | _ACEOF |
| 7356 | |
| 7357 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7358 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7359 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7360 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7362 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7364 | else |
| 7365 | case $FDP in |
| 7366 | [\\/]* | ?:[\\/]*) |
| 7367 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7368 | ;; |
| 7369 | *) |
| 7370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7371 | for as_dir in $PATH |
| 7372 | do |
| 7373 | IFS=$as_save_IFS |
| 7374 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7375 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7377 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7379 | break 2 |
| 7380 | fi |
| 7381 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7382 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7383 | IFS=$as_save_IFS |
| 7384 | |
| 7385 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7386 | ;; |
| 7387 | esac |
| 7388 | fi |
| 7389 | FDP=$ac_cv_path_FDP |
| 7390 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7391 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7392 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7394 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7395 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7396 | fi |
| 7397 | |
| 7398 | |
| 7399 | if test "$FDP" != "echo fdp" ; then |
| 7400 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7401 | cat >>confdefs.h <<\_ACEOF |
| 7402 | #define HAVE_FDP 1 |
| 7403 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7404 | |
| 7405 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7406 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7407 | fi |
| 7408 | |
| 7409 | cat >>confdefs.h <<_ACEOF |
| 7410 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7411 | _ACEOF |
| 7412 | |
| 7413 | fi |
| 7414 | # Extract the first word of "neato", so it can be a program name with args. |
| 7415 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7416 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7418 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7420 | else |
| 7421 | case $NEATO in |
| 7422 | [\\/]* | ?:[\\/]*) |
| 7423 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7424 | ;; |
| 7425 | *) |
| 7426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7427 | for as_dir in $PATH |
| 7428 | do |
| 7429 | IFS=$as_save_IFS |
| 7430 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7431 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7433 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7435 | break 2 |
| 7436 | fi |
| 7437 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7438 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7439 | IFS=$as_save_IFS |
| 7440 | |
| 7441 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7442 | ;; |
| 7443 | esac |
| 7444 | fi |
| 7445 | NEATO=$ac_cv_path_NEATO |
| 7446 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7447 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7448 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7449 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7450 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7451 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7452 | fi |
| 7453 | |
| 7454 | |
| 7455 | if test "$NEATO" != "echo neato" ; then |
| 7456 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7457 | cat >>confdefs.h <<\_ACEOF |
| 7458 | #define HAVE_NEATO 1 |
| 7459 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7460 | |
| 7461 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7462 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7463 | fi |
| 7464 | |
| 7465 | cat >>confdefs.h <<_ACEOF |
| 7466 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7467 | _ACEOF |
| 7468 | |
| 7469 | fi |
| 7470 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7471 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7472 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7474 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7476 | else |
| 7477 | case $TWOPI in |
| 7478 | [\\/]* | ?:[\\/]*) |
| 7479 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7480 | ;; |
| 7481 | *) |
| 7482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7483 | for as_dir in $PATH |
| 7484 | do |
| 7485 | IFS=$as_save_IFS |
| 7486 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7487 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7489 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7491 | break 2 |
| 7492 | fi |
| 7493 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7494 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7495 | IFS=$as_save_IFS |
| 7496 | |
| 7497 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7498 | ;; |
| 7499 | esac |
| 7500 | fi |
| 7501 | TWOPI=$ac_cv_path_TWOPI |
| 7502 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7503 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7504 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7505 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7506 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7507 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7508 | fi |
| 7509 | |
| 7510 | |
| 7511 | if test "$TWOPI" != "echo twopi" ; then |
| 7512 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7513 | cat >>confdefs.h <<\_ACEOF |
| 7514 | #define HAVE_TWOPI 1 |
| 7515 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7516 | |
| 7517 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7518 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7519 | fi |
| 7520 | |
| 7521 | cat >>confdefs.h <<_ACEOF |
| 7522 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7523 | _ACEOF |
| 7524 | |
| 7525 | fi |
| 7526 | # Extract the first word of "circo", so it can be a program name with args. |
| 7527 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7530 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7532 | else |
| 7533 | case $CIRCO in |
| 7534 | [\\/]* | ?:[\\/]*) |
| 7535 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7536 | ;; |
| 7537 | *) |
| 7538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7539 | for as_dir in $PATH |
| 7540 | do |
| 7541 | IFS=$as_save_IFS |
| 7542 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7543 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7544 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7545 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7547 | break 2 |
| 7548 | fi |
| 7549 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7550 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7551 | IFS=$as_save_IFS |
| 7552 | |
| 7553 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7554 | ;; |
| 7555 | esac |
| 7556 | fi |
| 7557 | CIRCO=$ac_cv_path_CIRCO |
| 7558 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7559 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7560 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7561 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7562 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7563 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7564 | fi |
| 7565 | |
| 7566 | |
| 7567 | if test "$CIRCO" != "echo circo" ; then |
| 7568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7569 | cat >>confdefs.h <<\_ACEOF |
| 7570 | #define HAVE_CIRCO 1 |
| 7571 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7572 | |
| 7573 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7574 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7575 | fi |
| 7576 | |
| 7577 | cat >>confdefs.h <<_ACEOF |
| 7578 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7579 | _ACEOF |
| 7580 | |
| 7581 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7582 | for ac_prog in gv gsview32 |
| 7583 | do |
| 7584 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7585 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7586 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7588 | if test "${ac_cv_path_GV+set}" = set; then |
| 7589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7590 | else |
| 7591 | case $GV in |
| 7592 | [\\/]* | ?:[\\/]*) |
| 7593 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7594 | ;; |
| 7595 | *) |
| 7596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7597 | for as_dir in $PATH |
| 7598 | do |
| 7599 | IFS=$as_save_IFS |
| 7600 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7601 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7602 | 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] | 7603 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7605 | break 2 |
| 7606 | fi |
| 7607 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7608 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7609 | IFS=$as_save_IFS |
| 7610 | |
| 7611 | ;; |
| 7612 | esac |
| 7613 | fi |
| 7614 | GV=$ac_cv_path_GV |
| 7615 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7616 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7617 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7618 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7619 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7620 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7621 | fi |
| 7622 | |
| 7623 | |
| 7624 | test -n "$GV" && break |
| 7625 | done |
| 7626 | test -n "$GV" || GV="echo gv" |
| 7627 | |
| 7628 | if test "$GV" != "echo gv" ; then |
| 7629 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7630 | cat >>confdefs.h <<\_ACEOF |
| 7631 | #define HAVE_GV 1 |
| 7632 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7633 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7634 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7635 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7636 | fi |
| 7637 | |
| 7638 | cat >>confdefs.h <<_ACEOF |
| 7639 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7640 | _ACEOF |
| 7641 | |
| 7642 | fi |
| 7643 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7644 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7645 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7647 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7649 | else |
| 7650 | case $DOTTY in |
| 7651 | [\\/]* | ?:[\\/]*) |
| 7652 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7653 | ;; |
| 7654 | *) |
| 7655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7656 | for as_dir in $PATH |
| 7657 | do |
| 7658 | IFS=$as_save_IFS |
| 7659 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7662 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7664 | break 2 |
| 7665 | fi |
| 7666 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7667 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7668 | IFS=$as_save_IFS |
| 7669 | |
| 7670 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7671 | ;; |
| 7672 | esac |
| 7673 | fi |
| 7674 | DOTTY=$ac_cv_path_DOTTY |
| 7675 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7676 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7677 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7678 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7679 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7680 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7681 | fi |
| 7682 | |
| 7683 | |
| 7684 | if test "$DOTTY" != "echo dotty" ; then |
| 7685 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7686 | cat >>confdefs.h <<\_ACEOF |
| 7687 | #define HAVE_DOTTY 1 |
| 7688 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7689 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7690 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7691 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7692 | fi |
| 7693 | |
| 7694 | cat >>confdefs.h <<_ACEOF |
| 7695 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7696 | _ACEOF |
| 7697 | |
| 7698 | fi |
| 7699 | |
| 7700 | |
| 7701 | # Extract the first word of "perl", so it can be a program name with args. |
| 7702 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7703 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7705 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7707 | else |
| 7708 | case $PERL in |
| 7709 | [\\/]* | ?:[\\/]*) |
| 7710 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7711 | ;; |
| 7712 | *) |
| 7713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7714 | for as_dir in $PATH |
| 7715 | do |
| 7716 | IFS=$as_save_IFS |
| 7717 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7718 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7719 | 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] | 7720 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7722 | break 2 |
| 7723 | fi |
| 7724 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7725 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7726 | IFS=$as_save_IFS |
| 7727 | |
| 7728 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7729 | ;; |
| 7730 | esac |
| 7731 | fi |
| 7732 | PERL=$ac_cv_path_PERL |
| 7733 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7734 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7735 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7736 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7737 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7738 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7739 | fi |
| 7740 | |
| 7741 | |
| 7742 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7743 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7744 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7745 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7746 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7747 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7748 | else |
| 7749 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7750 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7751 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7752 | fi |
| 7753 | fi |
| 7754 | |
| 7755 | |
| 7756 | if test x"$PERL" = xnone; then |
| 7757 | HAVE_PERL=0 |
| 7758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7759 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7760 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7761 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7762 | else |
| 7763 | HAVE_PERL=1 |
| 7764 | |
| 7765 | fi |
| 7766 | |
| 7767 | # Find a good install program. We prefer a C program (faster), |
| 7768 | # so one script is as good as another. But avoid the broken or |
| 7769 | # incompatible versions: |
| 7770 | # SysV /etc/install, /usr/sbin/install |
| 7771 | # SunOS /usr/etc/install |
| 7772 | # IRIX /sbin/install |
| 7773 | # AIX /bin/install |
| 7774 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7775 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7776 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7777 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7778 | # OS/2's system install, which has a completely different semantic |
| 7779 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7780 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7781 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7782 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7783 | if test "${ac_cv_path_install+set}" = set; then |
| 7784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7785 | else |
| 7786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7787 | for as_dir in $PATH |
| 7788 | do |
| 7789 | IFS=$as_save_IFS |
| 7790 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7791 | # Account for people who put trailing slashes in PATH elements. |
| 7792 | case $as_dir/ in |
| 7793 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7794 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7795 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7796 | /usr/ucb/* ) ;; |
| 7797 | *) |
| 7798 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7799 | # Don't use installbsd from OSF since it installs stuff as root |
| 7800 | # by default. |
| 7801 | for ac_prog in ginstall scoinst install; do |
| 7802 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7803 | 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] | 7804 | if test $ac_prog = install && |
| 7805 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7806 | # AIX install. It has an incompatible calling convention. |
| 7807 | : |
| 7808 | elif test $ac_prog = install && |
| 7809 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7810 | # program-specific install script used by HP pwplus--don't use. |
| 7811 | : |
| 7812 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7813 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7814 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7815 | fi |
| 7816 | fi |
| 7817 | done |
| 7818 | done |
| 7819 | ;; |
| 7820 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7821 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7822 | IFS=$as_save_IFS |
| 7823 | |
| 7824 | |
| 7825 | fi |
| 7826 | if test "${ac_cv_path_install+set}" = set; then |
| 7827 | INSTALL=$ac_cv_path_install |
| 7828 | else |
| 7829 | # As a last resort, use the slow shell script. Don't cache a |
| 7830 | # value for INSTALL within a source directory, because that will |
| 7831 | # break other packages using the cache if that directory is |
| 7832 | # removed, or if the value is a relative name. |
| 7833 | INSTALL=$ac_install_sh |
| 7834 | fi |
| 7835 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7836 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7837 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7838 | |
| 7839 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7840 | # It thinks the first close brace ends the variable substitution. |
| 7841 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7842 | |
| 7843 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7844 | |
| 7845 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7846 | |
| 7847 | |
| 7848 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7849 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7850 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7852 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7854 | else |
| 7855 | case $BZIP2 in |
| 7856 | [\\/]* | ?:[\\/]*) |
| 7857 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7858 | ;; |
| 7859 | *) |
| 7860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7861 | for as_dir in $PATH |
| 7862 | do |
| 7863 | IFS=$as_save_IFS |
| 7864 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7866 | 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] | 7867 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7869 | break 2 |
| 7870 | fi |
| 7871 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7872 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7873 | IFS=$as_save_IFS |
| 7874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7875 | ;; |
| 7876 | esac |
| 7877 | fi |
| 7878 | BZIP2=$ac_cv_path_BZIP2 |
| 7879 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7880 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7881 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7882 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7883 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7884 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7885 | fi |
| 7886 | |
| 7887 | |
| 7888 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7889 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7890 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7892 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7894 | else |
| 7895 | case $DOXYGEN in |
| 7896 | [\\/]* | ?:[\\/]*) |
| 7897 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7898 | ;; |
| 7899 | *) |
| 7900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7901 | for as_dir in $PATH |
| 7902 | do |
| 7903 | IFS=$as_save_IFS |
| 7904 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7905 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7906 | 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] | 7907 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7909 | break 2 |
| 7910 | fi |
| 7911 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7912 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7913 | IFS=$as_save_IFS |
| 7914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7915 | ;; |
| 7916 | esac |
| 7917 | fi |
| 7918 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7919 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7920 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7921 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7922 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7923 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7924 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7925 | fi |
| 7926 | |
| 7927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7928 | # Extract the first word of "groff", so it can be a program name with args. |
| 7929 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7930 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7932 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7934 | else |
| 7935 | case $GROFF in |
| 7936 | [\\/]* | ?:[\\/]*) |
| 7937 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7938 | ;; |
| 7939 | *) |
| 7940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7941 | for as_dir in $PATH |
| 7942 | do |
| 7943 | IFS=$as_save_IFS |
| 7944 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7945 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7946 | 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] | 7947 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7949 | break 2 |
| 7950 | fi |
| 7951 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7952 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7953 | IFS=$as_save_IFS |
| 7954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7955 | ;; |
| 7956 | esac |
| 7957 | fi |
| 7958 | GROFF=$ac_cv_path_GROFF |
| 7959 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7960 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7961 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7962 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7963 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7964 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7965 | fi |
| 7966 | |
| 7967 | |
| 7968 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7969 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7970 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7972 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7974 | else |
| 7975 | case $GZIP in |
| 7976 | [\\/]* | ?:[\\/]*) |
| 7977 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7978 | ;; |
| 7979 | *) |
| 7980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7981 | for as_dir in $PATH |
| 7982 | do |
| 7983 | IFS=$as_save_IFS |
| 7984 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7985 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7986 | 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] | 7987 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7989 | break 2 |
| 7990 | fi |
| 7991 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7992 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7993 | IFS=$as_save_IFS |
| 7994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7995 | ;; |
| 7996 | esac |
| 7997 | fi |
| 7998 | GZIP=$ac_cv_path_GZIP |
| 7999 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8000 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8001 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8002 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8003 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8004 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8005 | fi |
| 8006 | |
| 8007 | |
| 8008 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8009 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8012 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8014 | else |
| 8015 | case $POD2HTML in |
| 8016 | [\\/]* | ?:[\\/]*) |
| 8017 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8018 | ;; |
| 8019 | *) |
| 8020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8021 | for as_dir in $PATH |
| 8022 | do |
| 8023 | IFS=$as_save_IFS |
| 8024 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8025 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8026 | 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] | 8027 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8029 | break 2 |
| 8030 | fi |
| 8031 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8032 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8033 | IFS=$as_save_IFS |
| 8034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8035 | ;; |
| 8036 | esac |
| 8037 | fi |
| 8038 | POD2HTML=$ac_cv_path_POD2HTML |
| 8039 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8040 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8041 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8042 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8043 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8044 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8045 | fi |
| 8046 | |
| 8047 | |
| 8048 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8049 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8050 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8052 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8054 | else |
| 8055 | case $POD2MAN in |
| 8056 | [\\/]* | ?:[\\/]*) |
| 8057 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8058 | ;; |
| 8059 | *) |
| 8060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8061 | for as_dir in $PATH |
| 8062 | do |
| 8063 | IFS=$as_save_IFS |
| 8064 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8065 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8066 | 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] | 8067 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8069 | break 2 |
| 8070 | fi |
| 8071 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8072 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8073 | IFS=$as_save_IFS |
| 8074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8075 | ;; |
| 8076 | esac |
| 8077 | fi |
| 8078 | POD2MAN=$ac_cv_path_POD2MAN |
| 8079 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8080 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8081 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8082 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8083 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8084 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8085 | fi |
| 8086 | |
| 8087 | |
| 8088 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8089 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8090 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8092 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8094 | else |
| 8095 | case $RUNTEST in |
| 8096 | [\\/]* | ?:[\\/]*) |
| 8097 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8098 | ;; |
| 8099 | *) |
| 8100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8101 | for as_dir in $PATH |
| 8102 | do |
| 8103 | IFS=$as_save_IFS |
| 8104 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8105 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8106 | 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] | 8107 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8109 | break 2 |
| 8110 | fi |
| 8111 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8112 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8113 | IFS=$as_save_IFS |
| 8114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8115 | ;; |
| 8116 | esac |
| 8117 | fi |
| 8118 | RUNTEST=$ac_cv_path_RUNTEST |
| 8119 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8120 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8121 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8122 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8123 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8124 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8125 | fi |
| 8126 | |
| 8127 | |
| 8128 | |
| 8129 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8130 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8131 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8132 | |
| 8133 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8134 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8135 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8136 | else |
| 8137 | with_tclinclude='' |
| 8138 | fi |
| 8139 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8140 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8142 | else |
| 8143 | |
| 8144 | if test x"${with_tclinclude}" != x ; then |
| 8145 | if test -f ${with_tclinclude}/tclsh ; then |
| 8146 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8147 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8148 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8149 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8150 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8151 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8152 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8153 | fi |
| 8154 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8155 | fi |
| 8156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8157 | |
| 8158 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8159 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8160 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8161 | 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 |
| 8162 | do |
| 8163 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8164 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8165 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8167 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8169 | else |
| 8170 | case $TCLSH in |
| 8171 | [\\/]* | ?:[\\/]*) |
| 8172 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8173 | ;; |
| 8174 | *) |
| 8175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8176 | for as_dir in $PATH |
| 8177 | do |
| 8178 | IFS=$as_save_IFS |
| 8179 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8181 | 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] | 8182 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8184 | break 2 |
| 8185 | fi |
| 8186 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8187 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8188 | IFS=$as_save_IFS |
| 8189 | |
| 8190 | ;; |
| 8191 | esac |
| 8192 | fi |
| 8193 | TCLSH=$ac_cv_path_TCLSH |
| 8194 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8195 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8196 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8197 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8198 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8199 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8200 | fi |
| 8201 | |
| 8202 | |
| 8203 | test -n "$TCLSH" && break |
| 8204 | done |
| 8205 | |
| 8206 | if test x"${TCLSH}" = x ; then |
| 8207 | ac_cv_path_tclsh=''; |
| 8208 | else |
| 8209 | ac_cv_path_tclsh="${TCLSH}"; |
| 8210 | fi |
| 8211 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8212 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8213 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8214 | TCLSH="${ac_cv_path_tclsh}" |
| 8215 | |
| 8216 | fi |
| 8217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8218 | # Extract the first word of "zip", so it can be a program name with args. |
| 8219 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8222 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8224 | else |
| 8225 | case $ZIP in |
| 8226 | [\\/]* | ?:[\\/]*) |
| 8227 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8228 | ;; |
| 8229 | *) |
| 8230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8231 | for as_dir in $PATH |
| 8232 | do |
| 8233 | IFS=$as_save_IFS |
| 8234 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8235 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8236 | 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] | 8237 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8239 | break 2 |
| 8240 | fi |
| 8241 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8242 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8243 | IFS=$as_save_IFS |
| 8244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8245 | ;; |
| 8246 | esac |
| 8247 | fi |
| 8248 | ZIP=$ac_cv_path_ZIP |
| 8249 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8250 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8251 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8252 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8253 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8254 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8255 | fi |
| 8256 | |
| 8257 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8258 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8259 | do |
| 8260 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8261 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8262 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8264 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8266 | else |
| 8267 | case $OCAMLC in |
| 8268 | [\\/]* | ?:[\\/]*) |
| 8269 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8270 | ;; |
| 8271 | *) |
| 8272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8273 | for as_dir in $PATH |
| 8274 | do |
| 8275 | IFS=$as_save_IFS |
| 8276 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8278 | 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] | 8279 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8281 | break 2 |
| 8282 | fi |
| 8283 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8284 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8285 | IFS=$as_save_IFS |
| 8286 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8287 | ;; |
| 8288 | esac |
| 8289 | fi |
| 8290 | OCAMLC=$ac_cv_path_OCAMLC |
| 8291 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8292 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8293 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8294 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8295 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8296 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8297 | fi |
| 8298 | |
| 8299 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8300 | test -n "$OCAMLC" && break |
| 8301 | done |
| 8302 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8303 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8304 | do |
| 8305 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8306 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8307 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8309 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8311 | else |
| 8312 | case $OCAMLOPT in |
| 8313 | [\\/]* | ?:[\\/]*) |
| 8314 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8315 | ;; |
| 8316 | *) |
| 8317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8318 | for as_dir in $PATH |
| 8319 | do |
| 8320 | IFS=$as_save_IFS |
| 8321 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8322 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8323 | 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] | 8324 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8326 | break 2 |
| 8327 | fi |
| 8328 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8329 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8330 | IFS=$as_save_IFS |
| 8331 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8332 | ;; |
| 8333 | esac |
| 8334 | fi |
| 8335 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8336 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8337 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8338 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8339 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8340 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8341 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8342 | fi |
| 8343 | |
| 8344 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8345 | test -n "$OCAMLOPT" && break |
| 8346 | done |
| 8347 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8348 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8349 | do |
| 8350 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8351 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8352 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8354 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8356 | else |
| 8357 | case $OCAMLDEP in |
| 8358 | [\\/]* | ?:[\\/]*) |
| 8359 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8360 | ;; |
| 8361 | *) |
| 8362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8363 | for as_dir in $PATH |
| 8364 | do |
| 8365 | IFS=$as_save_IFS |
| 8366 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8367 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8368 | 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] | 8369 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8371 | break 2 |
| 8372 | fi |
| 8373 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8374 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8375 | IFS=$as_save_IFS |
| 8376 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8377 | ;; |
| 8378 | esac |
| 8379 | fi |
| 8380 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8381 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8382 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8383 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8384 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8385 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8386 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8387 | fi |
| 8388 | |
| 8389 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8390 | test -n "$OCAMLDEP" && break |
| 8391 | done |
| 8392 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8393 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8394 | do |
| 8395 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8396 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8397 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8399 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8401 | else |
| 8402 | case $OCAMLDOC in |
| 8403 | [\\/]* | ?:[\\/]*) |
| 8404 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8405 | ;; |
| 8406 | *) |
| 8407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8408 | for as_dir in $PATH |
| 8409 | do |
| 8410 | IFS=$as_save_IFS |
| 8411 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8412 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8413 | 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] | 8414 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8416 | break 2 |
| 8417 | fi |
| 8418 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8419 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8420 | IFS=$as_save_IFS |
| 8421 | |
| 8422 | ;; |
| 8423 | esac |
| 8424 | fi |
| 8425 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8426 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8427 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8428 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8429 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8430 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8431 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8432 | fi |
| 8433 | |
| 8434 | |
| 8435 | test -n "$OCAMLDOC" && break |
| 8436 | done |
| 8437 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8438 | for ac_prog in gas as |
| 8439 | do |
| 8440 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8441 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8442 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8444 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8446 | else |
| 8447 | case $GAS in |
| 8448 | [\\/]* | ?:[\\/]*) |
| 8449 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8450 | ;; |
| 8451 | *) |
| 8452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8453 | for as_dir in $PATH |
| 8454 | do |
| 8455 | IFS=$as_save_IFS |
| 8456 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8458 | 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] | 8459 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8461 | break 2 |
| 8462 | fi |
| 8463 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8464 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8465 | IFS=$as_save_IFS |
| 8466 | |
| 8467 | ;; |
| 8468 | esac |
| 8469 | fi |
| 8470 | GAS=$ac_cv_path_GAS |
| 8471 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8472 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8473 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8474 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8475 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8476 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8477 | fi |
| 8478 | |
| 8479 | |
| 8480 | test -n "$GAS" && break |
| 8481 | done |
| 8482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8483 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8484 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8485 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8486 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8488 | else |
| 8489 | ac_ext=c |
| 8490 | ac_cpp='$CPP $CPPFLAGS' |
| 8491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8494 | |
| 8495 | oldcflags="$CFLAGS" |
| 8496 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8497 | cat >conftest.$ac_ext <<_ACEOF |
| 8498 | /* confdefs.h. */ |
| 8499 | _ACEOF |
| 8500 | cat confdefs.h >>conftest.$ac_ext |
| 8501 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8502 | /* end confdefs.h. */ |
| 8503 | |
| 8504 | int |
| 8505 | main () |
| 8506 | { |
| 8507 | int main() { return 0; } |
| 8508 | ; |
| 8509 | return 0; |
| 8510 | } |
| 8511 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8513 | if { (ac_try="$ac_link" |
| 8514 | case "(($ac_try" in |
| 8515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8516 | *) ac_try_echo=$ac_try;; |
| 8517 | esac |
| 8518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8519 | (eval "$ac_link") 2>conftest.er1 |
| 8520 | ac_status=$? |
| 8521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8522 | rm -f conftest.er1 |
| 8523 | cat conftest.err >&5 |
| 8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8525 | (exit $ac_status); } && |
| 8526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8527 | { (case "(($ac_try" in |
| 8528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8529 | *) ac_try_echo=$ac_try;; |
| 8530 | esac |
| 8531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8532 | (eval "$ac_try") 2>&5 |
| 8533 | ac_status=$? |
| 8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8535 | (exit $ac_status); }; } && |
| 8536 | { ac_try='test -s conftest$ac_exeext' |
| 8537 | { (case "(($ac_try" in |
| 8538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8539 | *) ac_try_echo=$ac_try;; |
| 8540 | esac |
| 8541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8542 | (eval "$ac_try") 2>&5 |
| 8543 | ac_status=$? |
| 8544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8545 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8546 | llvm_cv_link_use_r=yes |
| 8547 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8548 | echo "$as_me: failed program was:" >&5 |
| 8549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8550 | |
| 8551 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8552 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8553 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8554 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8555 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8556 | CFLAGS="$oldcflags" |
| 8557 | ac_ext=c |
| 8558 | ac_cpp='$CPP $CPPFLAGS' |
| 8559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8562 | |
| 8563 | |
| 8564 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8565 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8566 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8567 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8569 | cat >>confdefs.h <<\_ACEOF |
| 8570 | #define HAVE_LINK_R 1 |
| 8571 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8572 | |
| 8573 | fi |
| 8574 | |
| 8575 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8576 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8577 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8578 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8580 | else |
| 8581 | ac_ext=c |
| 8582 | ac_cpp='$CPP $CPPFLAGS' |
| 8583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8586 | |
| 8587 | oldcflags="$CFLAGS" |
| 8588 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8589 | cat >conftest.$ac_ext <<_ACEOF |
| 8590 | /* confdefs.h. */ |
| 8591 | _ACEOF |
| 8592 | cat confdefs.h >>conftest.$ac_ext |
| 8593 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8594 | /* end confdefs.h. */ |
| 8595 | |
| 8596 | int |
| 8597 | main () |
| 8598 | { |
| 8599 | int main() { return 0; } |
| 8600 | ; |
| 8601 | return 0; |
| 8602 | } |
| 8603 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8605 | if { (ac_try="$ac_link" |
| 8606 | case "(($ac_try" in |
| 8607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8608 | *) ac_try_echo=$ac_try;; |
| 8609 | esac |
| 8610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8611 | (eval "$ac_link") 2>conftest.er1 |
| 8612 | ac_status=$? |
| 8613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8614 | rm -f conftest.er1 |
| 8615 | cat conftest.err >&5 |
| 8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8617 | (exit $ac_status); } && |
| 8618 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8619 | { (case "(($ac_try" in |
| 8620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8621 | *) ac_try_echo=$ac_try;; |
| 8622 | esac |
| 8623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8624 | (eval "$ac_try") 2>&5 |
| 8625 | ac_status=$? |
| 8626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8627 | (exit $ac_status); }; } && |
| 8628 | { ac_try='test -s conftest$ac_exeext' |
| 8629 | { (case "(($ac_try" in |
| 8630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8631 | *) ac_try_echo=$ac_try;; |
| 8632 | esac |
| 8633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8634 | (eval "$ac_try") 2>&5 |
| 8635 | ac_status=$? |
| 8636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8637 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8638 | llvm_cv_link_use_export_dynamic=yes |
| 8639 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8640 | echo "$as_me: failed program was:" >&5 |
| 8641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8642 | |
| 8643 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8644 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8645 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8646 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8647 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8648 | CFLAGS="$oldcflags" |
| 8649 | ac_ext=c |
| 8650 | ac_cpp='$CPP $CPPFLAGS' |
| 8651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8654 | |
| 8655 | |
| 8656 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8657 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8658 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8659 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8660 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8661 | cat >>confdefs.h <<\_ACEOF |
| 8662 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8663 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8664 | |
| 8665 | fi |
| 8666 | |
| 8667 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8668 | |
| 8669 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8670 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8671 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8672 | if test "${ac_cv_c_const+set}" = set; then |
| 8673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8674 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8675 | cat >conftest.$ac_ext <<_ACEOF |
| 8676 | /* confdefs.h. */ |
| 8677 | _ACEOF |
| 8678 | cat confdefs.h >>conftest.$ac_ext |
| 8679 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8680 | /* end confdefs.h. */ |
| 8681 | |
| 8682 | int |
| 8683 | main () |
| 8684 | { |
| 8685 | /* FIXME: Include the comments suggested by Paul. */ |
| 8686 | #ifndef __cplusplus |
| 8687 | /* Ultrix mips cc rejects this. */ |
| 8688 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8689 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8690 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8691 | char const *const *ccp; |
| 8692 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8693 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8694 | struct point {int x, y;}; |
| 8695 | static struct point const zero = {0,0}; |
| 8696 | /* AIX XL C 1.02.0.0 rejects this. |
| 8697 | It does not let you subtract one const X* pointer from another in |
| 8698 | an arm of an if-expression whose if-part is not a constant |
| 8699 | expression */ |
| 8700 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8701 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8702 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8703 | ++ccp; |
| 8704 | p = (char**) ccp; |
| 8705 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8706 | { /* SCO 3.2v4 cc rejects this. */ |
| 8707 | char *t; |
| 8708 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8709 | |
| 8710 | *t++ = 0; |
| 8711 | if (s) return 0; |
| 8712 | } |
| 8713 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8714 | int x[] = {25, 17}; |
| 8715 | const int *foo = &x[0]; |
| 8716 | ++foo; |
| 8717 | } |
| 8718 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8719 | typedef const int *iptr; |
| 8720 | iptr p = 0; |
| 8721 | ++p; |
| 8722 | } |
| 8723 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8724 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8725 | struct s { int j; const int *ap[3]; }; |
| 8726 | struct s *b; b->j = 5; |
| 8727 | } |
| 8728 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8729 | const int foo = 10; |
| 8730 | if (!foo) return 0; |
| 8731 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8732 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8733 | #endif |
| 8734 | |
| 8735 | ; |
| 8736 | return 0; |
| 8737 | } |
| 8738 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8739 | rm -f conftest.$ac_objext |
| 8740 | if { (ac_try="$ac_compile" |
| 8741 | case "(($ac_try" in |
| 8742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8743 | *) ac_try_echo=$ac_try;; |
| 8744 | esac |
| 8745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8746 | (eval "$ac_compile") 2>conftest.er1 |
| 8747 | ac_status=$? |
| 8748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8749 | rm -f conftest.er1 |
| 8750 | cat conftest.err >&5 |
| 8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8752 | (exit $ac_status); } && |
| 8753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8754 | { (case "(($ac_try" in |
| 8755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8756 | *) ac_try_echo=$ac_try;; |
| 8757 | esac |
| 8758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8759 | (eval "$ac_try") 2>&5 |
| 8760 | ac_status=$? |
| 8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8762 | (exit $ac_status); }; } && |
| 8763 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 8770 | ac_status=$? |
| 8771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8772 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8773 | ac_cv_c_const=yes |
| 8774 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8775 | echo "$as_me: failed program was:" >&5 |
| 8776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8777 | |
| 8778 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8779 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8782 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8783 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8784 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8785 | if test $ac_cv_c_const = no; then |
| 8786 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8787 | cat >>confdefs.h <<\_ACEOF |
| 8788 | #define const |
| 8789 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8790 | |
| 8791 | fi |
| 8792 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8793 | |
| 8794 | |
| 8795 | |
| 8796 | |
| 8797 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8798 | ac_header_dirent=no |
| 8799 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8800 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8801 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8802 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8803 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8805 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8806 | cat >conftest.$ac_ext <<_ACEOF |
| 8807 | /* confdefs.h. */ |
| 8808 | _ACEOF |
| 8809 | cat confdefs.h >>conftest.$ac_ext |
| 8810 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8811 | /* end confdefs.h. */ |
| 8812 | #include <sys/types.h> |
| 8813 | #include <$ac_hdr> |
| 8814 | |
| 8815 | int |
| 8816 | main () |
| 8817 | { |
| 8818 | if ((DIR *) 0) |
| 8819 | return 0; |
| 8820 | ; |
| 8821 | return 0; |
| 8822 | } |
| 8823 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8824 | rm -f conftest.$ac_objext |
| 8825 | if { (ac_try="$ac_compile" |
| 8826 | case "(($ac_try" in |
| 8827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8828 | *) ac_try_echo=$ac_try;; |
| 8829 | esac |
| 8830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8831 | (eval "$ac_compile") 2>conftest.er1 |
| 8832 | ac_status=$? |
| 8833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8834 | rm -f conftest.er1 |
| 8835 | cat conftest.err >&5 |
| 8836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8837 | (exit $ac_status); } && |
| 8838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8839 | { (case "(($ac_try" in |
| 8840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8841 | *) ac_try_echo=$ac_try;; |
| 8842 | esac |
| 8843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8844 | (eval "$ac_try") 2>&5 |
| 8845 | ac_status=$? |
| 8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8847 | (exit $ac_status); }; } && |
| 8848 | { ac_try='test -s conftest.$ac_objext' |
| 8849 | { (case "(($ac_try" in |
| 8850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8851 | *) ac_try_echo=$ac_try;; |
| 8852 | esac |
| 8853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8854 | (eval "$ac_try") 2>&5 |
| 8855 | ac_status=$? |
| 8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8857 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8858 | eval "$as_ac_Header=yes" |
| 8859 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8860 | echo "$as_me: failed program was:" >&5 |
| 8861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8862 | |
| 8863 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8864 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8867 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8868 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8869 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8870 | echo "${ECHO_T}$ac_res" >&6; } |
| 8871 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8872 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8873 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8874 | _ACEOF |
| 8875 | |
| 8876 | ac_header_dirent=$ac_hdr; break |
| 8877 | fi |
| 8878 | |
| 8879 | done |
| 8880 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8881 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8882 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8883 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8884 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8886 | else |
| 8887 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8888 | cat >conftest.$ac_ext <<_ACEOF |
| 8889 | /* confdefs.h. */ |
| 8890 | _ACEOF |
| 8891 | cat confdefs.h >>conftest.$ac_ext |
| 8892 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8893 | /* end confdefs.h. */ |
| 8894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8895 | /* Override any GCC internal prototype to avoid an error. |
| 8896 | Use char because int might match the return type of a GCC |
| 8897 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8898 | #ifdef __cplusplus |
| 8899 | extern "C" |
| 8900 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8901 | char opendir (); |
| 8902 | int |
| 8903 | main () |
| 8904 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8905 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8906 | ; |
| 8907 | return 0; |
| 8908 | } |
| 8909 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8910 | for ac_lib in '' dir; do |
| 8911 | if test -z "$ac_lib"; then |
| 8912 | ac_res="none required" |
| 8913 | else |
| 8914 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8915 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8916 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8917 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8918 | if { (ac_try="$ac_link" |
| 8919 | case "(($ac_try" in |
| 8920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8921 | *) ac_try_echo=$ac_try;; |
| 8922 | esac |
| 8923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8924 | (eval "$ac_link") 2>conftest.er1 |
| 8925 | ac_status=$? |
| 8926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8927 | rm -f conftest.er1 |
| 8928 | cat conftest.err >&5 |
| 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8930 | (exit $ac_status); } && |
| 8931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8932 | { (case "(($ac_try" in |
| 8933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8934 | *) ac_try_echo=$ac_try;; |
| 8935 | esac |
| 8936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8937 | (eval "$ac_try") 2>&5 |
| 8938 | ac_status=$? |
| 8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8940 | (exit $ac_status); }; } && |
| 8941 | { ac_try='test -s conftest$ac_exeext' |
| 8942 | { (case "(($ac_try" in |
| 8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8944 | *) ac_try_echo=$ac_try;; |
| 8945 | esac |
| 8946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8947 | (eval "$ac_try") 2>&5 |
| 8948 | ac_status=$? |
| 8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8950 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8951 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8952 | else |
| 8953 | echo "$as_me: failed program was:" >&5 |
| 8954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8955 | |
| 8956 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8957 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8958 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8959 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8960 | conftest$ac_exeext |
| 8961 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8962 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8963 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8964 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8965 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8966 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8967 | else |
| 8968 | ac_cv_search_opendir=no |
| 8969 | fi |
| 8970 | rm conftest.$ac_ext |
| 8971 | LIBS=$ac_func_search_save_LIBS |
| 8972 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8973 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8974 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8975 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8976 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8977 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8979 | fi |
| 8980 | |
| 8981 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8982 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8983 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8984 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8986 | else |
| 8987 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8988 | cat >conftest.$ac_ext <<_ACEOF |
| 8989 | /* confdefs.h. */ |
| 8990 | _ACEOF |
| 8991 | cat confdefs.h >>conftest.$ac_ext |
| 8992 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8993 | /* end confdefs.h. */ |
| 8994 | |
| 8995 | /* Override any GCC internal prototype to avoid an error. |
| 8996 | Use char because int might match the return type of a GCC |
| 8997 | builtin and then its argument prototype would still apply. */ |
| 8998 | #ifdef __cplusplus |
| 8999 | extern "C" |
| 9000 | #endif |
| 9001 | char opendir (); |
| 9002 | int |
| 9003 | main () |
| 9004 | { |
| 9005 | return opendir (); |
| 9006 | ; |
| 9007 | return 0; |
| 9008 | } |
| 9009 | _ACEOF |
| 9010 | for ac_lib in '' x; do |
| 9011 | if test -z "$ac_lib"; then |
| 9012 | ac_res="none required" |
| 9013 | else |
| 9014 | ac_res=-l$ac_lib |
| 9015 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9016 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9017 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9018 | if { (ac_try="$ac_link" |
| 9019 | case "(($ac_try" in |
| 9020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9021 | *) ac_try_echo=$ac_try;; |
| 9022 | esac |
| 9023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9024 | (eval "$ac_link") 2>conftest.er1 |
| 9025 | ac_status=$? |
| 9026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9027 | rm -f conftest.er1 |
| 9028 | cat conftest.err >&5 |
| 9029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9030 | (exit $ac_status); } && |
| 9031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9032 | { (case "(($ac_try" in |
| 9033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9034 | *) ac_try_echo=$ac_try;; |
| 9035 | esac |
| 9036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9037 | (eval "$ac_try") 2>&5 |
| 9038 | ac_status=$? |
| 9039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9040 | (exit $ac_status); }; } && |
| 9041 | { ac_try='test -s conftest$ac_exeext' |
| 9042 | { (case "(($ac_try" in |
| 9043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9044 | *) ac_try_echo=$ac_try;; |
| 9045 | esac |
| 9046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9047 | (eval "$ac_try") 2>&5 |
| 9048 | ac_status=$? |
| 9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9050 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9051 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9052 | else |
| 9053 | echo "$as_me: failed program was:" >&5 |
| 9054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9055 | |
| 9056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9057 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9058 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9059 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9060 | conftest$ac_exeext |
| 9061 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9062 | break |
| 9063 | fi |
| 9064 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9065 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9066 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9067 | else |
| 9068 | ac_cv_search_opendir=no |
| 9069 | fi |
| 9070 | rm conftest.$ac_ext |
| 9071 | LIBS=$ac_func_search_save_LIBS |
| 9072 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9073 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9074 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9075 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9076 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9077 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9078 | |
| 9079 | fi |
| 9080 | |
| 9081 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9082 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9084 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9085 | do |
| 9086 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9087 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9088 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9090 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9092 | fi |
| 9093 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9094 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9095 | echo "${ECHO_T}$ac_res" >&6; } |
| 9096 | else |
| 9097 | # Is the header compilable? |
| 9098 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9099 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9100 | cat >conftest.$ac_ext <<_ACEOF |
| 9101 | /* confdefs.h. */ |
| 9102 | _ACEOF |
| 9103 | cat confdefs.h >>conftest.$ac_ext |
| 9104 | cat >>conftest.$ac_ext <<_ACEOF |
| 9105 | /* end confdefs.h. */ |
| 9106 | $ac_includes_default |
| 9107 | #include <$ac_header> |
| 9108 | _ACEOF |
| 9109 | rm -f conftest.$ac_objext |
| 9110 | if { (ac_try="$ac_compile" |
| 9111 | case "(($ac_try" in |
| 9112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9113 | *) ac_try_echo=$ac_try;; |
| 9114 | esac |
| 9115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9116 | (eval "$ac_compile") 2>conftest.er1 |
| 9117 | ac_status=$? |
| 9118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9119 | rm -f conftest.er1 |
| 9120 | cat conftest.err >&5 |
| 9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9122 | (exit $ac_status); } && |
| 9123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9124 | { (case "(($ac_try" in |
| 9125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9126 | *) ac_try_echo=$ac_try;; |
| 9127 | esac |
| 9128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9129 | (eval "$ac_try") 2>&5 |
| 9130 | ac_status=$? |
| 9131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9132 | (exit $ac_status); }; } && |
| 9133 | { ac_try='test -s conftest.$ac_objext' |
| 9134 | { (case "(($ac_try" in |
| 9135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9136 | *) ac_try_echo=$ac_try;; |
| 9137 | esac |
| 9138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9139 | (eval "$ac_try") 2>&5 |
| 9140 | ac_status=$? |
| 9141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9142 | (exit $ac_status); }; }; then |
| 9143 | ac_header_compiler=yes |
| 9144 | else |
| 9145 | echo "$as_me: failed program was:" >&5 |
| 9146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9147 | |
| 9148 | ac_header_compiler=no |
| 9149 | fi |
| 9150 | |
| 9151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9152 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9153 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9154 | |
| 9155 | # Is the header present? |
| 9156 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9157 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9158 | cat >conftest.$ac_ext <<_ACEOF |
| 9159 | /* confdefs.h. */ |
| 9160 | _ACEOF |
| 9161 | cat confdefs.h >>conftest.$ac_ext |
| 9162 | cat >>conftest.$ac_ext <<_ACEOF |
| 9163 | /* end confdefs.h. */ |
| 9164 | #include <$ac_header> |
| 9165 | _ACEOF |
| 9166 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9167 | case "(($ac_try" in |
| 9168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9169 | *) ac_try_echo=$ac_try;; |
| 9170 | esac |
| 9171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9172 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9173 | ac_status=$? |
| 9174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9175 | rm -f conftest.er1 |
| 9176 | cat conftest.err >&5 |
| 9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9178 | (exit $ac_status); } >/dev/null; then |
| 9179 | if test -s conftest.err; then |
| 9180 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9181 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9182 | else |
| 9183 | ac_cpp_err= |
| 9184 | fi |
| 9185 | else |
| 9186 | ac_cpp_err=yes |
| 9187 | fi |
| 9188 | if test -z "$ac_cpp_err"; then |
| 9189 | ac_header_preproc=yes |
| 9190 | else |
| 9191 | echo "$as_me: failed program was:" >&5 |
| 9192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9193 | |
| 9194 | ac_header_preproc=no |
| 9195 | fi |
| 9196 | |
| 9197 | rm -f conftest.err conftest.$ac_ext |
| 9198 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9199 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9200 | |
| 9201 | # So? What about this header? |
| 9202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9203 | yes:no: ) |
| 9204 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9205 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9207 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9208 | ac_header_preproc=yes |
| 9209 | ;; |
| 9210 | no:yes:* ) |
| 9211 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9212 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9213 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9214 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9215 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9216 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9217 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9218 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9219 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9220 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9221 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9222 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9223 | ( cat <<\_ASBOX |
| 9224 | ## ----------------------------------- ## |
| 9225 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9226 | ## ----------------------------------- ## |
| 9227 | _ASBOX |
| 9228 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9229 | ;; |
| 9230 | esac |
| 9231 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9235 | else |
| 9236 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9237 | fi |
| 9238 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9239 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9240 | echo "${ECHO_T}$ac_res" >&6; } |
| 9241 | |
| 9242 | fi |
| 9243 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9244 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9245 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9246 | _ACEOF |
| 9247 | |
| 9248 | fi |
| 9249 | |
| 9250 | done |
| 9251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9252 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9253 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9254 | enableval=$enable_ltdl_install; |
| 9255 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9256 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9258 | |
| 9259 | |
| 9260 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9261 | INSTALL_LTDL_TRUE= |
| 9262 | INSTALL_LTDL_FALSE='#' |
| 9263 | else |
| 9264 | INSTALL_LTDL_TRUE='#' |
| 9265 | INSTALL_LTDL_FALSE= |
| 9266 | fi |
| 9267 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9268 | |
| 9269 | |
| 9270 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9271 | CONVENIENCE_LTDL_TRUE= |
| 9272 | CONVENIENCE_LTDL_FALSE='#' |
| 9273 | else |
| 9274 | CONVENIENCE_LTDL_TRUE='#' |
| 9275 | CONVENIENCE_LTDL_FALSE= |
| 9276 | fi |
| 9277 | |
| 9278 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9279 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9280 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9281 | library_names_spec= |
| 9282 | libname_spec='lib$name' |
| 9283 | soname_spec= |
| 9284 | shrext_cmds=".so" |
| 9285 | postinstall_cmds= |
| 9286 | postuninstall_cmds= |
| 9287 | finish_cmds= |
| 9288 | finish_eval= |
| 9289 | shlibpath_var= |
| 9290 | shlibpath_overrides_runpath=unknown |
| 9291 | version_type=none |
| 9292 | dynamic_linker="$host_os ld.so" |
| 9293 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9294 | if test "$GCC" = yes; then |
| 9295 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9296 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9297 | # if the path contains ";" then we assume it to be the separator |
| 9298 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9299 | # assumed that no part of a normal pathname contains ";" but that should |
| 9300 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9301 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9302 | else |
| 9303 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9304 | fi |
| 9305 | else |
| 9306 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9307 | fi |
| 9308 | need_lib_prefix=unknown |
| 9309 | hardcode_into_libs=no |
| 9310 | |
| 9311 | # when you set need_version to no, make sure it does not cause -set_version |
| 9312 | # flags to be left without arguments |
| 9313 | need_version=unknown |
| 9314 | |
| 9315 | case $host_os in |
| 9316 | aix3*) |
| 9317 | version_type=linux |
| 9318 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9319 | shlibpath_var=LIBPATH |
| 9320 | |
| 9321 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9322 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9323 | ;; |
| 9324 | |
| 9325 | aix4* | aix5*) |
| 9326 | version_type=linux |
| 9327 | need_lib_prefix=no |
| 9328 | need_version=no |
| 9329 | hardcode_into_libs=yes |
| 9330 | if test "$host_cpu" = ia64; then |
| 9331 | # AIX 5 supports IA64 |
| 9332 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9333 | shlibpath_var=LD_LIBRARY_PATH |
| 9334 | else |
| 9335 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9336 | # for dependence libraries. The import file would start with |
| 9337 | # the line `#! .'. This would cause the generated library to |
| 9338 | # depend on `.', always an invalid library. This was fixed in |
| 9339 | # development snapshots of GCC prior to 3.0. |
| 9340 | case $host_os in |
| 9341 | aix4 | aix4.[01] | aix4.[01].*) |
| 9342 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9343 | echo ' yes ' |
| 9344 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9345 | : |
| 9346 | else |
| 9347 | can_build_shared=no |
| 9348 | fi |
| 9349 | ;; |
| 9350 | esac |
| 9351 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9352 | # soname into executable. Probably we can add versioning support to |
| 9353 | # collect2, so additional links can be useful in future. |
| 9354 | if test "$aix_use_runtimelinking" = yes; then |
| 9355 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9356 | # instead of lib<name>.a to let people know that these are not |
| 9357 | # typical AIX shared libraries. |
| 9358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9359 | else |
| 9360 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9361 | # and later when we are not doing run time linking. |
| 9362 | library_names_spec='${libname}${release}.a $libname.a' |
| 9363 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9364 | fi |
| 9365 | shlibpath_var=LIBPATH |
| 9366 | fi |
| 9367 | ;; |
| 9368 | |
| 9369 | amigaos*) |
| 9370 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9371 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9372 | 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' |
| 9373 | ;; |
| 9374 | |
| 9375 | beos*) |
| 9376 | library_names_spec='${libname}${shared_ext}' |
| 9377 | dynamic_linker="$host_os ld.so" |
| 9378 | shlibpath_var=LIBRARY_PATH |
| 9379 | ;; |
| 9380 | |
| 9381 | bsdi[45]*) |
| 9382 | version_type=linux |
| 9383 | need_version=no |
| 9384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9385 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9386 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9387 | shlibpath_var=LD_LIBRARY_PATH |
| 9388 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9389 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9390 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9391 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9392 | # libtool to hard-code these into programs |
| 9393 | ;; |
| 9394 | |
| 9395 | cygwin* | mingw* | pw32*) |
| 9396 | version_type=windows |
| 9397 | shrext_cmds=".dll" |
| 9398 | need_version=no |
| 9399 | need_lib_prefix=no |
| 9400 | |
| 9401 | case $GCC,$host_os in |
| 9402 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9403 | library_names_spec='$libname.dll.a' |
| 9404 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9405 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9406 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9407 | dldir=$destdir/`dirname \$dlpath`~ |
| 9408 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9409 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9410 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9411 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9412 | dlpath=$dir/\$dldll~ |
| 9413 | $rm \$dlpath' |
| 9414 | shlibpath_overrides_runpath=yes |
| 9415 | |
| 9416 | case $host_os in |
| 9417 | cygwin*) |
| 9418 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9419 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9420 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9421 | ;; |
| 9422 | mingw*) |
| 9423 | # MinGW DLLs use traditional 'lib' prefix |
| 9424 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9425 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9426 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9427 | # It is most probably a Windows format PATH printed by |
| 9428 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9429 | # path with ; separators, and with drive letters. We can handle the |
| 9430 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9431 | # especially as we might pass files found there to a mingw objdump, |
| 9432 | # which wouldn't understand a cygwinified path. Ahh. |
| 9433 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9434 | else |
| 9435 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9436 | fi |
| 9437 | ;; |
| 9438 | pw32*) |
| 9439 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9440 | 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] | 9441 | ;; |
| 9442 | esac |
| 9443 | ;; |
| 9444 | |
| 9445 | *) |
| 9446 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9447 | ;; |
| 9448 | esac |
| 9449 | dynamic_linker='Win32 ld.exe' |
| 9450 | # FIXME: first we should search . and the directory the executable is in |
| 9451 | shlibpath_var=PATH |
| 9452 | ;; |
| 9453 | |
| 9454 | darwin* | rhapsody*) |
| 9455 | dynamic_linker="$host_os dyld" |
| 9456 | version_type=darwin |
| 9457 | need_lib_prefix=no |
| 9458 | need_version=no |
| 9459 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9460 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9461 | shlibpath_overrides_runpath=yes |
| 9462 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9463 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9464 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9465 | if test "$GCC" = yes; then |
| 9466 | 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"` |
| 9467 | else |
| 9468 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9469 | fi |
| 9470 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9471 | ;; |
| 9472 | |
| 9473 | dgux*) |
| 9474 | version_type=linux |
| 9475 | need_lib_prefix=no |
| 9476 | need_version=no |
| 9477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9478 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9479 | shlibpath_var=LD_LIBRARY_PATH |
| 9480 | ;; |
| 9481 | |
| 9482 | freebsd1*) |
| 9483 | dynamic_linker=no |
| 9484 | ;; |
| 9485 | |
| 9486 | kfreebsd*-gnu) |
| 9487 | version_type=linux |
| 9488 | need_lib_prefix=no |
| 9489 | need_version=no |
| 9490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9491 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9492 | shlibpath_var=LD_LIBRARY_PATH |
| 9493 | shlibpath_overrides_runpath=no |
| 9494 | hardcode_into_libs=yes |
| 9495 | dynamic_linker='GNU ld.so' |
| 9496 | ;; |
| 9497 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9498 | freebsd* | dragonfly*) |
| 9499 | # DragonFly does not have aout. When/if they implement a new |
| 9500 | # versioning mechanism, adjust this. |
| 9501 | if test -x /usr/bin/objformat; then |
| 9502 | objformat=`/usr/bin/objformat` |
| 9503 | else |
| 9504 | case $host_os in |
| 9505 | freebsd[123]*) objformat=aout ;; |
| 9506 | *) objformat=elf ;; |
| 9507 | esac |
| 9508 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9509 | version_type=freebsd-$objformat |
| 9510 | case $version_type in |
| 9511 | freebsd-elf*) |
| 9512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9513 | need_version=no |
| 9514 | need_lib_prefix=no |
| 9515 | ;; |
| 9516 | freebsd-*) |
| 9517 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9518 | need_version=yes |
| 9519 | ;; |
| 9520 | esac |
| 9521 | shlibpath_var=LD_LIBRARY_PATH |
| 9522 | case $host_os in |
| 9523 | freebsd2*) |
| 9524 | shlibpath_overrides_runpath=yes |
| 9525 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9526 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9527 | shlibpath_overrides_runpath=yes |
| 9528 | hardcode_into_libs=yes |
| 9529 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9530 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9531 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9532 | shlibpath_overrides_runpath=no |
| 9533 | hardcode_into_libs=yes |
| 9534 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9535 | freebsd*) # from 4.6 on |
| 9536 | shlibpath_overrides_runpath=yes |
| 9537 | hardcode_into_libs=yes |
| 9538 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9539 | esac |
| 9540 | ;; |
| 9541 | |
| 9542 | gnu*) |
| 9543 | version_type=linux |
| 9544 | need_lib_prefix=no |
| 9545 | need_version=no |
| 9546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9547 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9548 | shlibpath_var=LD_LIBRARY_PATH |
| 9549 | hardcode_into_libs=yes |
| 9550 | ;; |
| 9551 | |
| 9552 | hpux9* | hpux10* | hpux11*) |
| 9553 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9554 | # link against other versions. |
| 9555 | version_type=sunos |
| 9556 | need_lib_prefix=no |
| 9557 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9558 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9559 | ia64*) |
| 9560 | shrext_cmds='.so' |
| 9561 | hardcode_into_libs=yes |
| 9562 | dynamic_linker="$host_os dld.so" |
| 9563 | shlibpath_var=LD_LIBRARY_PATH |
| 9564 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9567 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9568 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9569 | else |
| 9570 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9571 | fi |
| 9572 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9573 | ;; |
| 9574 | hppa*64*) |
| 9575 | shrext_cmds='.sl' |
| 9576 | hardcode_into_libs=yes |
| 9577 | dynamic_linker="$host_os dld.sl" |
| 9578 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9579 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9581 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9582 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9583 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9584 | ;; |
| 9585 | *) |
| 9586 | shrext_cmds='.sl' |
| 9587 | dynamic_linker="$host_os dld.sl" |
| 9588 | shlibpath_var=SHLIB_PATH |
| 9589 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9591 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9592 | ;; |
| 9593 | esac |
| 9594 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9595 | postinstall_cmds='chmod 555 $lib' |
| 9596 | ;; |
| 9597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9598 | interix3*) |
| 9599 | version_type=linux |
| 9600 | need_lib_prefix=no |
| 9601 | need_version=no |
| 9602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9603 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9604 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9605 | shlibpath_var=LD_LIBRARY_PATH |
| 9606 | shlibpath_overrides_runpath=no |
| 9607 | hardcode_into_libs=yes |
| 9608 | ;; |
| 9609 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9610 | irix5* | irix6* | nonstopux*) |
| 9611 | case $host_os in |
| 9612 | nonstopux*) version_type=nonstopux ;; |
| 9613 | *) |
| 9614 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9615 | version_type=linux |
| 9616 | else |
| 9617 | version_type=irix |
| 9618 | fi ;; |
| 9619 | esac |
| 9620 | need_lib_prefix=no |
| 9621 | need_version=no |
| 9622 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9624 | case $host_os in |
| 9625 | irix5* | nonstopux*) |
| 9626 | libsuff= shlibsuff= |
| 9627 | ;; |
| 9628 | *) |
| 9629 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9630 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9631 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9632 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9633 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9634 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9635 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9636 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9637 | esac |
| 9638 | ;; |
| 9639 | esac |
| 9640 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9641 | shlibpath_overrides_runpath=no |
| 9642 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9643 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9644 | hardcode_into_libs=yes |
| 9645 | ;; |
| 9646 | |
| 9647 | # No shared lib support for Linux oldld, aout, or coff. |
| 9648 | linux*oldld* | linux*aout* | linux*coff*) |
| 9649 | dynamic_linker=no |
| 9650 | ;; |
| 9651 | |
| 9652 | # This must be Linux ELF. |
| 9653 | linux*) |
| 9654 | version_type=linux |
| 9655 | need_lib_prefix=no |
| 9656 | need_version=no |
| 9657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9658 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9659 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9660 | shlibpath_var=LD_LIBRARY_PATH |
| 9661 | shlibpath_overrides_runpath=no |
| 9662 | # This implies no fast_install, which is unacceptable. |
| 9663 | # Some rework will be needed to allow for fast_install |
| 9664 | # before this can be enabled. |
| 9665 | hardcode_into_libs=yes |
| 9666 | |
| 9667 | # Append ld.so.conf contents to the search path |
| 9668 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9669 | 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] | 9670 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9671 | fi |
| 9672 | |
| 9673 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9674 | # powerpc, because MkLinux only supported shared libraries with the |
| 9675 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9676 | # most powerpc-linux boxes support dynamic linking these days and |
| 9677 | # people can always --disable-shared, the test was removed, and we |
| 9678 | # assume the GNU/Linux dynamic linker is in use. |
| 9679 | dynamic_linker='GNU/Linux ld.so' |
| 9680 | ;; |
| 9681 | |
| 9682 | knetbsd*-gnu) |
| 9683 | version_type=linux |
| 9684 | need_lib_prefix=no |
| 9685 | need_version=no |
| 9686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9687 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9688 | shlibpath_var=LD_LIBRARY_PATH |
| 9689 | shlibpath_overrides_runpath=no |
| 9690 | hardcode_into_libs=yes |
| 9691 | dynamic_linker='GNU ld.so' |
| 9692 | ;; |
| 9693 | |
| 9694 | netbsd*) |
| 9695 | version_type=sunos |
| 9696 | need_lib_prefix=no |
| 9697 | need_version=no |
| 9698 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9700 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9701 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9702 | else |
| 9703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9704 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9705 | dynamic_linker='NetBSD ld.elf_so' |
| 9706 | fi |
| 9707 | shlibpath_var=LD_LIBRARY_PATH |
| 9708 | shlibpath_overrides_runpath=yes |
| 9709 | hardcode_into_libs=yes |
| 9710 | ;; |
| 9711 | |
| 9712 | newsos6) |
| 9713 | version_type=linux |
| 9714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9715 | shlibpath_var=LD_LIBRARY_PATH |
| 9716 | shlibpath_overrides_runpath=yes |
| 9717 | ;; |
| 9718 | |
| 9719 | nto-qnx*) |
| 9720 | version_type=linux |
| 9721 | need_lib_prefix=no |
| 9722 | need_version=no |
| 9723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9724 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9725 | shlibpath_var=LD_LIBRARY_PATH |
| 9726 | shlibpath_overrides_runpath=yes |
| 9727 | ;; |
| 9728 | |
| 9729 | openbsd*) |
| 9730 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9731 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9732 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9733 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9734 | case $host_os in |
| 9735 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9736 | *) need_version=no ;; |
| 9737 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9739 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9740 | shlibpath_var=LD_LIBRARY_PATH |
| 9741 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9742 | case $host_os in |
| 9743 | openbsd2.[89] | openbsd2.[89].*) |
| 9744 | shlibpath_overrides_runpath=no |
| 9745 | ;; |
| 9746 | *) |
| 9747 | shlibpath_overrides_runpath=yes |
| 9748 | ;; |
| 9749 | esac |
| 9750 | else |
| 9751 | shlibpath_overrides_runpath=yes |
| 9752 | fi |
| 9753 | ;; |
| 9754 | |
| 9755 | os2*) |
| 9756 | libname_spec='$name' |
| 9757 | shrext_cmds=".dll" |
| 9758 | need_lib_prefix=no |
| 9759 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9760 | dynamic_linker='OS/2 ld.exe' |
| 9761 | shlibpath_var=LIBPATH |
| 9762 | ;; |
| 9763 | |
| 9764 | osf3* | osf4* | osf5*) |
| 9765 | version_type=osf |
| 9766 | need_lib_prefix=no |
| 9767 | need_version=no |
| 9768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9770 | shlibpath_var=LD_LIBRARY_PATH |
| 9771 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9772 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9773 | ;; |
| 9774 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9775 | solaris*) |
| 9776 | version_type=linux |
| 9777 | need_lib_prefix=no |
| 9778 | need_version=no |
| 9779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9781 | shlibpath_var=LD_LIBRARY_PATH |
| 9782 | shlibpath_overrides_runpath=yes |
| 9783 | hardcode_into_libs=yes |
| 9784 | # ldd complains unless libraries are executable |
| 9785 | postinstall_cmds='chmod +x $lib' |
| 9786 | ;; |
| 9787 | |
| 9788 | sunos4*) |
| 9789 | version_type=sunos |
| 9790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9791 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9792 | shlibpath_var=LD_LIBRARY_PATH |
| 9793 | shlibpath_overrides_runpath=yes |
| 9794 | if test "$with_gnu_ld" = yes; then |
| 9795 | need_lib_prefix=no |
| 9796 | fi |
| 9797 | need_version=yes |
| 9798 | ;; |
| 9799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9800 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9801 | version_type=linux |
| 9802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9803 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9804 | shlibpath_var=LD_LIBRARY_PATH |
| 9805 | case $host_vendor in |
| 9806 | sni) |
| 9807 | shlibpath_overrides_runpath=no |
| 9808 | need_lib_prefix=no |
| 9809 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9810 | runpath_var=LD_RUN_PATH |
| 9811 | ;; |
| 9812 | siemens) |
| 9813 | need_lib_prefix=no |
| 9814 | ;; |
| 9815 | motorola) |
| 9816 | need_lib_prefix=no |
| 9817 | need_version=no |
| 9818 | shlibpath_overrides_runpath=no |
| 9819 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9820 | ;; |
| 9821 | esac |
| 9822 | ;; |
| 9823 | |
| 9824 | sysv4*MP*) |
| 9825 | if test -d /usr/nec ;then |
| 9826 | version_type=linux |
| 9827 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9828 | soname_spec='$libname${shared_ext}.$major' |
| 9829 | shlibpath_var=LD_LIBRARY_PATH |
| 9830 | fi |
| 9831 | ;; |
| 9832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9833 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9834 | version_type=freebsd-elf |
| 9835 | need_lib_prefix=no |
| 9836 | need_version=no |
| 9837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9838 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9839 | shlibpath_var=LD_LIBRARY_PATH |
| 9840 | hardcode_into_libs=yes |
| 9841 | if test "$with_gnu_ld" = yes; then |
| 9842 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9843 | shlibpath_overrides_runpath=no |
| 9844 | else |
| 9845 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9846 | shlibpath_overrides_runpath=yes |
| 9847 | case $host_os in |
| 9848 | sco3.2v5*) |
| 9849 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9850 | ;; |
| 9851 | esac |
| 9852 | fi |
| 9853 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9854 | ;; |
| 9855 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9856 | uts4*) |
| 9857 | version_type=linux |
| 9858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9859 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9860 | shlibpath_var=LD_LIBRARY_PATH |
| 9861 | ;; |
| 9862 | |
| 9863 | *) |
| 9864 | dynamic_linker=no |
| 9865 | ;; |
| 9866 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9867 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9868 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9869 | test "$dynamic_linker" = no && can_build_shared=no |
| 9870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9871 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9872 | if test "$GCC" = yes; then |
| 9873 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9874 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9877 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9878 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9879 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9881 | else |
| 9882 | |
| 9883 | module=yes |
| 9884 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9885 | |
| 9886 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9887 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9888 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9889 | if test -n "$libltdl_cv_shlibext"; then |
| 9890 | |
| 9891 | cat >>confdefs.h <<_ACEOF |
| 9892 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9893 | _ACEOF |
| 9894 | |
| 9895 | fi |
| 9896 | |
| 9897 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9898 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9899 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9900 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9902 | else |
| 9903 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9904 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9905 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9906 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9907 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9908 | |
| 9909 | cat >>confdefs.h <<_ACEOF |
| 9910 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9911 | _ACEOF |
| 9912 | |
| 9913 | fi |
| 9914 | |
| 9915 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9916 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9917 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9918 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9920 | else |
| 9921 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9922 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9923 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9924 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9925 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9926 | sys_search_path= |
| 9927 | for dir in $libltdl_cv_sys_search_path; do |
| 9928 | if test -z "$sys_search_path"; then |
| 9929 | sys_search_path="$dir" |
| 9930 | else |
| 9931 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9932 | fi |
| 9933 | done |
| 9934 | |
| 9935 | cat >>confdefs.h <<_ACEOF |
| 9936 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9937 | _ACEOF |
| 9938 | |
| 9939 | fi |
| 9940 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9941 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9942 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9943 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9945 | else |
| 9946 | libltdl_cv_objdir="$objdir" |
| 9947 | if test -n "$objdir"; then |
| 9948 | : |
| 9949 | else |
| 9950 | rm -f .libs 2>/dev/null |
| 9951 | mkdir .libs 2>/dev/null |
| 9952 | if test -d .libs; then |
| 9953 | libltdl_cv_objdir=.libs |
| 9954 | else |
| 9955 | # MS-DOS does not allow filenames that begin with a dot. |
| 9956 | libltdl_cv_objdir=_libs |
| 9957 | fi |
| 9958 | rmdir .libs 2>/dev/null |
| 9959 | fi |
| 9960 | |
| 9961 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9962 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9963 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9964 | |
| 9965 | cat >>confdefs.h <<_ACEOF |
| 9966 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9967 | _ACEOF |
| 9968 | |
| 9969 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9970 | |
| 9971 | |
| 9972 | |
| 9973 | |
| 9974 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9975 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9976 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 9977 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9979 | else |
| 9980 | |
| 9981 | # These are sane defaults that work on at least a few old systems. |
| 9982 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9983 | |
| 9984 | # Character class describing NM global symbol codes. |
| 9985 | symcode='[BCDEGRST]' |
| 9986 | |
| 9987 | # Regexp to match symbols that can be accessed directly from C. |
| 9988 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9989 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9990 | # Transform an extracted symbol line into a proper C declaration |
| 9991 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9992 | |
| 9993 | # Transform an extracted symbol line into symbol name and symbol address |
| 9994 | 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'" |
| 9995 | |
| 9996 | # Define system-specific variables. |
| 9997 | case $host_os in |
| 9998 | aix*) |
| 9999 | symcode='[BCDT]' |
| 10000 | ;; |
| 10001 | cygwin* | mingw* | pw32*) |
| 10002 | symcode='[ABCDGISTW]' |
| 10003 | ;; |
| 10004 | hpux*) # Its linker distinguishes data from code symbols |
| 10005 | if test "$host_cpu" = ia64; then |
| 10006 | symcode='[ABCDEGRST]' |
| 10007 | fi |
| 10008 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10009 | 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'" |
| 10010 | ;; |
| 10011 | linux*) |
| 10012 | if test "$host_cpu" = ia64; then |
| 10013 | symcode='[ABCDGIRSTW]' |
| 10014 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10015 | 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'" |
| 10016 | fi |
| 10017 | ;; |
| 10018 | irix* | nonstopux*) |
| 10019 | symcode='[BCDEGRST]' |
| 10020 | ;; |
| 10021 | osf*) |
| 10022 | symcode='[BCDEGQRST]' |
| 10023 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10024 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10025 | symcode='[BDRT]' |
| 10026 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10027 | sco3.2v5*) |
| 10028 | symcode='[DT]' |
| 10029 | ;; |
| 10030 | sysv4.2uw2*) |
| 10031 | symcode='[DT]' |
| 10032 | ;; |
| 10033 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10034 | symcode='[ABDT]' |
| 10035 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10036 | sysv4) |
| 10037 | symcode='[DFNSTU]' |
| 10038 | ;; |
| 10039 | esac |
| 10040 | |
| 10041 | # Handle CRLF in mingw tool chain |
| 10042 | opt_cr= |
| 10043 | case $build_os in |
| 10044 | mingw*) |
| 10045 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10046 | ;; |
| 10047 | esac |
| 10048 | |
| 10049 | # If we're using GNU nm, then use its standard symbol codes. |
| 10050 | case `$NM -V 2>&1` in |
| 10051 | *GNU* | *'with BFD'*) |
| 10052 | symcode='[ABCDGIRSTW]' ;; |
| 10053 | esac |
| 10054 | |
| 10055 | # Try without a prefix undercore, then with it. |
| 10056 | for ac_symprfx in "" "_"; do |
| 10057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10058 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10059 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10060 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10061 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10062 | 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] | 10063 | |
| 10064 | # Check to see that the pipe works correctly. |
| 10065 | pipe_works=no |
| 10066 | |
| 10067 | rm -f conftest* |
| 10068 | cat > conftest.$ac_ext <<EOF |
| 10069 | #ifdef __cplusplus |
| 10070 | extern "C" { |
| 10071 | #endif |
| 10072 | char nm_test_var; |
| 10073 | void nm_test_func(){} |
| 10074 | #ifdef __cplusplus |
| 10075 | } |
| 10076 | #endif |
| 10077 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10078 | EOF |
| 10079 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10081 | (eval $ac_compile) 2>&5 |
| 10082 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10084 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10085 | # Now try to grab the symbols. |
| 10086 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10087 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10088 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10089 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10091 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10092 | # Try sorting and uniquifying the output. |
| 10093 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10094 | mv -f "$nlist"T "$nlist" |
| 10095 | else |
| 10096 | rm -f "$nlist"T |
| 10097 | fi |
| 10098 | |
| 10099 | # Make sure that we snagged all the symbols we need. |
| 10100 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10101 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10102 | cat <<EOF > conftest.$ac_ext |
| 10103 | #ifdef __cplusplus |
| 10104 | extern "C" { |
| 10105 | #endif |
| 10106 | |
| 10107 | EOF |
| 10108 | # Now generate the symbol file. |
| 10109 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10110 | |
| 10111 | cat <<EOF >> conftest.$ac_ext |
| 10112 | #if defined (__STDC__) && __STDC__ |
| 10113 | # define lt_ptr_t void * |
| 10114 | #else |
| 10115 | # define lt_ptr_t char * |
| 10116 | # define const |
| 10117 | #endif |
| 10118 | |
| 10119 | /* The mapping between symbol names and symbols. */ |
| 10120 | const struct { |
| 10121 | const char *name; |
| 10122 | lt_ptr_t address; |
| 10123 | } |
| 10124 | lt_preloaded_symbols[] = |
| 10125 | { |
| 10126 | EOF |
| 10127 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10128 | cat <<\EOF >> conftest.$ac_ext |
| 10129 | {0, (lt_ptr_t) 0} |
| 10130 | }; |
| 10131 | |
| 10132 | #ifdef __cplusplus |
| 10133 | } |
| 10134 | #endif |
| 10135 | EOF |
| 10136 | # Now try linking the two files. |
| 10137 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10138 | lt_save_LIBS="$LIBS" |
| 10139 | lt_save_CFLAGS="$CFLAGS" |
| 10140 | LIBS="conftstm.$ac_objext" |
| 10141 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10143 | (eval $ac_link) 2>&5 |
| 10144 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10146 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10147 | pipe_works=yes |
| 10148 | fi |
| 10149 | LIBS="$lt_save_LIBS" |
| 10150 | CFLAGS="$lt_save_CFLAGS" |
| 10151 | else |
| 10152 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10153 | fi |
| 10154 | else |
| 10155 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10156 | fi |
| 10157 | else |
| 10158 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10159 | fi |
| 10160 | else |
| 10161 | echo "$progname: failed program was:" >&5 |
| 10162 | cat conftest.$ac_ext >&5 |
| 10163 | fi |
| 10164 | rm -f conftest* conftst* |
| 10165 | |
| 10166 | # Do not use the global_symbol_pipe unless it works. |
| 10167 | if test "$pipe_works" = yes; then |
| 10168 | break |
| 10169 | else |
| 10170 | lt_cv_sys_global_symbol_pipe= |
| 10171 | fi |
| 10172 | done |
| 10173 | |
| 10174 | fi |
| 10175 | |
| 10176 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10177 | lt_cv_sys_global_symbol_to_cdecl= |
| 10178 | fi |
| 10179 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10180 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10181 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10182 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10183 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10184 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10185 | fi |
| 10186 | |
| 10187 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10188 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10189 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10190 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10192 | else |
| 10193 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10194 | libltdl_cv_preloaded_symbols=yes |
| 10195 | else |
| 10196 | libltdl_cv_preloaded_symbols=no |
| 10197 | fi |
| 10198 | |
| 10199 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10200 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10201 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10202 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10203 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10204 | cat >>confdefs.h <<\_ACEOF |
| 10205 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10206 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10207 | |
| 10208 | fi |
| 10209 | |
| 10210 | LIBADD_DL= |
| 10211 | |
| 10212 | ac_ext=c |
| 10213 | ac_cpp='$CPP $CPPFLAGS' |
| 10214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10217 | |
| 10218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10219 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10220 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10221 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10223 | else |
| 10224 | cat >conftest.$ac_ext <<_ACEOF |
| 10225 | /* confdefs.h. */ |
| 10226 | _ACEOF |
| 10227 | cat confdefs.h >>conftest.$ac_ext |
| 10228 | cat >>conftest.$ac_ext <<_ACEOF |
| 10229 | /* end confdefs.h. */ |
| 10230 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10231 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10232 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10233 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10234 | /* System header to define __stub macros and hopefully few prototypes, |
| 10235 | which can conflict with char shl_load (); below. |
| 10236 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10237 | <limits.h> exists even on freestanding compilers. */ |
| 10238 | |
| 10239 | #ifdef __STDC__ |
| 10240 | # include <limits.h> |
| 10241 | #else |
| 10242 | # include <assert.h> |
| 10243 | #endif |
| 10244 | |
| 10245 | #undef shl_load |
| 10246 | |
| 10247 | /* Override any GCC internal prototype to avoid an error. |
| 10248 | Use char because int might match the return type of a GCC |
| 10249 | builtin and then its argument prototype would still apply. */ |
| 10250 | #ifdef __cplusplus |
| 10251 | extern "C" |
| 10252 | #endif |
| 10253 | char shl_load (); |
| 10254 | /* The GNU C library defines this for functions which it implements |
| 10255 | to always fail with ENOSYS. Some functions are actually named |
| 10256 | something starting with __ and the normal name is an alias. */ |
| 10257 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10258 | choke me |
| 10259 | #endif |
| 10260 | |
| 10261 | int |
| 10262 | main () |
| 10263 | { |
| 10264 | return shl_load (); |
| 10265 | ; |
| 10266 | return 0; |
| 10267 | } |
| 10268 | _ACEOF |
| 10269 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10270 | if { (ac_try="$ac_link" |
| 10271 | case "(($ac_try" in |
| 10272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10273 | *) ac_try_echo=$ac_try;; |
| 10274 | esac |
| 10275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10276 | (eval "$ac_link") 2>conftest.er1 |
| 10277 | ac_status=$? |
| 10278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10279 | rm -f conftest.er1 |
| 10280 | cat conftest.err >&5 |
| 10281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10282 | (exit $ac_status); } && |
| 10283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10284 | { (case "(($ac_try" in |
| 10285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10286 | *) ac_try_echo=$ac_try;; |
| 10287 | esac |
| 10288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10289 | (eval "$ac_try") 2>&5 |
| 10290 | ac_status=$? |
| 10291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10292 | (exit $ac_status); }; } && |
| 10293 | { ac_try='test -s conftest$ac_exeext' |
| 10294 | { (case "(($ac_try" in |
| 10295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10296 | *) ac_try_echo=$ac_try;; |
| 10297 | esac |
| 10298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10299 | (eval "$ac_try") 2>&5 |
| 10300 | ac_status=$? |
| 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10302 | (exit $ac_status); }; }; then |
| 10303 | ac_cv_func_shl_load=yes |
| 10304 | else |
| 10305 | echo "$as_me: failed program was:" >&5 |
| 10306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10307 | |
| 10308 | ac_cv_func_shl_load=no |
| 10309 | fi |
| 10310 | |
| 10311 | rm -f core conftest.err conftest.$ac_objext \ |
| 10312 | conftest$ac_exeext conftest.$ac_ext |
| 10313 | fi |
| 10314 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10315 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10316 | if test $ac_cv_func_shl_load = yes; then |
| 10317 | |
| 10318 | cat >>confdefs.h <<\_ACEOF |
| 10319 | #define HAVE_SHL_LOAD 1 |
| 10320 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10321 | |
| 10322 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10323 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10324 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10325 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10327 | else |
| 10328 | ac_check_lib_save_LIBS=$LIBS |
| 10329 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10330 | cat >conftest.$ac_ext <<_ACEOF |
| 10331 | /* confdefs.h. */ |
| 10332 | _ACEOF |
| 10333 | cat confdefs.h >>conftest.$ac_ext |
| 10334 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10335 | /* end confdefs.h. */ |
| 10336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10337 | /* Override any GCC internal prototype to avoid an error. |
| 10338 | Use char because int might match the return type of a GCC |
| 10339 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10340 | #ifdef __cplusplus |
| 10341 | extern "C" |
| 10342 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10343 | char shl_load (); |
| 10344 | int |
| 10345 | main () |
| 10346 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10347 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10348 | ; |
| 10349 | return 0; |
| 10350 | } |
| 10351 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10352 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10353 | if { (ac_try="$ac_link" |
| 10354 | case "(($ac_try" in |
| 10355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10356 | *) ac_try_echo=$ac_try;; |
| 10357 | esac |
| 10358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10359 | (eval "$ac_link") 2>conftest.er1 |
| 10360 | ac_status=$? |
| 10361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10362 | rm -f conftest.er1 |
| 10363 | cat conftest.err >&5 |
| 10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10365 | (exit $ac_status); } && |
| 10366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10367 | { (case "(($ac_try" in |
| 10368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10369 | *) ac_try_echo=$ac_try;; |
| 10370 | esac |
| 10371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10372 | (eval "$ac_try") 2>&5 |
| 10373 | ac_status=$? |
| 10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10375 | (exit $ac_status); }; } && |
| 10376 | { ac_try='test -s conftest$ac_exeext' |
| 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_try") 2>&5 |
| 10383 | ac_status=$? |
| 10384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10385 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10386 | ac_cv_lib_dld_shl_load=yes |
| 10387 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10388 | echo "$as_me: failed program was:" >&5 |
| 10389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10390 | |
| 10391 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10392 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10393 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10394 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10395 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10396 | LIBS=$ac_check_lib_save_LIBS |
| 10397 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10398 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10399 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10400 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10402 | cat >>confdefs.h <<\_ACEOF |
| 10403 | #define HAVE_SHL_LOAD 1 |
| 10404 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10405 | |
| 10406 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10407 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10408 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10409 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10410 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10412 | else |
| 10413 | ac_check_lib_save_LIBS=$LIBS |
| 10414 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10415 | cat >conftest.$ac_ext <<_ACEOF |
| 10416 | /* confdefs.h. */ |
| 10417 | _ACEOF |
| 10418 | cat confdefs.h >>conftest.$ac_ext |
| 10419 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10420 | /* end confdefs.h. */ |
| 10421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10422 | /* Override any GCC internal prototype to avoid an error. |
| 10423 | Use char because int might match the return type of a GCC |
| 10424 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10425 | #ifdef __cplusplus |
| 10426 | extern "C" |
| 10427 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10428 | char dlopen (); |
| 10429 | int |
| 10430 | main () |
| 10431 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10432 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10433 | ; |
| 10434 | return 0; |
| 10435 | } |
| 10436 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10437 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10438 | if { (ac_try="$ac_link" |
| 10439 | case "(($ac_try" in |
| 10440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10441 | *) ac_try_echo=$ac_try;; |
| 10442 | esac |
| 10443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10444 | (eval "$ac_link") 2>conftest.er1 |
| 10445 | ac_status=$? |
| 10446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10447 | rm -f conftest.er1 |
| 10448 | cat conftest.err >&5 |
| 10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10450 | (exit $ac_status); } && |
| 10451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10452 | { (case "(($ac_try" in |
| 10453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10454 | *) ac_try_echo=$ac_try;; |
| 10455 | esac |
| 10456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10457 | (eval "$ac_try") 2>&5 |
| 10458 | ac_status=$? |
| 10459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10460 | (exit $ac_status); }; } && |
| 10461 | { ac_try='test -s conftest$ac_exeext' |
| 10462 | { (case "(($ac_try" in |
| 10463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10464 | *) ac_try_echo=$ac_try;; |
| 10465 | esac |
| 10466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10467 | (eval "$ac_try") 2>&5 |
| 10468 | ac_status=$? |
| 10469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10470 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10471 | ac_cv_lib_dl_dlopen=yes |
| 10472 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10473 | echo "$as_me: failed program was:" >&5 |
| 10474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10475 | |
| 10476 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10477 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10478 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10479 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10480 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10481 | LIBS=$ac_check_lib_save_LIBS |
| 10482 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10483 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10484 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10485 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10486 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10487 | cat >>confdefs.h <<\_ACEOF |
| 10488 | #define HAVE_LIBDL 1 |
| 10489 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10490 | |
| 10491 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10492 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10493 | cat >conftest.$ac_ext <<_ACEOF |
| 10494 | /* confdefs.h. */ |
| 10495 | _ACEOF |
| 10496 | cat confdefs.h >>conftest.$ac_ext |
| 10497 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10498 | /* end confdefs.h. */ |
| 10499 | #if HAVE_DLFCN_H |
| 10500 | # include <dlfcn.h> |
| 10501 | #endif |
| 10502 | |
| 10503 | int |
| 10504 | main () |
| 10505 | { |
| 10506 | dlopen(0, 0); |
| 10507 | ; |
| 10508 | return 0; |
| 10509 | } |
| 10510 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10511 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10512 | if { (ac_try="$ac_link" |
| 10513 | case "(($ac_try" in |
| 10514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10515 | *) ac_try_echo=$ac_try;; |
| 10516 | esac |
| 10517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10518 | (eval "$ac_link") 2>conftest.er1 |
| 10519 | ac_status=$? |
| 10520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10521 | rm -f conftest.er1 |
| 10522 | cat conftest.err >&5 |
| 10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10524 | (exit $ac_status); } && |
| 10525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10526 | { (case "(($ac_try" in |
| 10527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10528 | *) ac_try_echo=$ac_try;; |
| 10529 | esac |
| 10530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10531 | (eval "$ac_try") 2>&5 |
| 10532 | ac_status=$? |
| 10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10534 | (exit $ac_status); }; } && |
| 10535 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10545 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10546 | cat >>confdefs.h <<\_ACEOF |
| 10547 | #define HAVE_LIBDL 1 |
| 10548 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10549 | libltdl_cv_func_dlopen="yes" |
| 10550 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10551 | echo "$as_me: failed program was:" >&5 |
| 10552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10553 | |
| 10554 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10555 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10556 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10558 | else |
| 10559 | ac_check_lib_save_LIBS=$LIBS |
| 10560 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10561 | cat >conftest.$ac_ext <<_ACEOF |
| 10562 | /* confdefs.h. */ |
| 10563 | _ACEOF |
| 10564 | cat confdefs.h >>conftest.$ac_ext |
| 10565 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10566 | /* end confdefs.h. */ |
| 10567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10568 | /* Override any GCC internal prototype to avoid an error. |
| 10569 | Use char because int might match the return type of a GCC |
| 10570 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10571 | #ifdef __cplusplus |
| 10572 | extern "C" |
| 10573 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10574 | char dlopen (); |
| 10575 | int |
| 10576 | main () |
| 10577 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10578 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10579 | ; |
| 10580 | return 0; |
| 10581 | } |
| 10582 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10584 | if { (ac_try="$ac_link" |
| 10585 | case "(($ac_try" in |
| 10586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10587 | *) ac_try_echo=$ac_try;; |
| 10588 | esac |
| 10589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10590 | (eval "$ac_link") 2>conftest.er1 |
| 10591 | ac_status=$? |
| 10592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10593 | rm -f conftest.er1 |
| 10594 | cat conftest.err >&5 |
| 10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10596 | (exit $ac_status); } && |
| 10597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10598 | { (case "(($ac_try" in |
| 10599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10600 | *) ac_try_echo=$ac_try;; |
| 10601 | esac |
| 10602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10603 | (eval "$ac_try") 2>&5 |
| 10604 | ac_status=$? |
| 10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10606 | (exit $ac_status); }; } && |
| 10607 | { ac_try='test -s conftest$ac_exeext' |
| 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_try") 2>&5 |
| 10614 | ac_status=$? |
| 10615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10616 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10617 | ac_cv_lib_svld_dlopen=yes |
| 10618 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10619 | echo "$as_me: failed program was:" >&5 |
| 10620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10621 | |
| 10622 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10623 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10624 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10625 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10626 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10627 | LIBS=$ac_check_lib_save_LIBS |
| 10628 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10629 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10630 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10631 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10632 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10633 | cat >>confdefs.h <<\_ACEOF |
| 10634 | #define HAVE_LIBDL 1 |
| 10635 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10636 | |
| 10637 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10638 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10639 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10640 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10641 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10643 | else |
| 10644 | ac_check_lib_save_LIBS=$LIBS |
| 10645 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10646 | cat >conftest.$ac_ext <<_ACEOF |
| 10647 | /* confdefs.h. */ |
| 10648 | _ACEOF |
| 10649 | cat confdefs.h >>conftest.$ac_ext |
| 10650 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10651 | /* end confdefs.h. */ |
| 10652 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10653 | /* Override any GCC internal prototype to avoid an error. |
| 10654 | Use char because int might match the return type of a GCC |
| 10655 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10656 | #ifdef __cplusplus |
| 10657 | extern "C" |
| 10658 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10659 | char dld_link (); |
| 10660 | int |
| 10661 | main () |
| 10662 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10663 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10664 | ; |
| 10665 | return 0; |
| 10666 | } |
| 10667 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10668 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10669 | if { (ac_try="$ac_link" |
| 10670 | case "(($ac_try" in |
| 10671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10672 | *) ac_try_echo=$ac_try;; |
| 10673 | esac |
| 10674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10675 | (eval "$ac_link") 2>conftest.er1 |
| 10676 | ac_status=$? |
| 10677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10678 | rm -f conftest.er1 |
| 10679 | cat conftest.err >&5 |
| 10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10681 | (exit $ac_status); } && |
| 10682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10683 | { (case "(($ac_try" in |
| 10684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10685 | *) ac_try_echo=$ac_try;; |
| 10686 | esac |
| 10687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10688 | (eval "$ac_try") 2>&5 |
| 10689 | ac_status=$? |
| 10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10691 | (exit $ac_status); }; } && |
| 10692 | { ac_try='test -s conftest$ac_exeext' |
| 10693 | { (case "(($ac_try" in |
| 10694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10695 | *) ac_try_echo=$ac_try;; |
| 10696 | esac |
| 10697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10698 | (eval "$ac_try") 2>&5 |
| 10699 | ac_status=$? |
| 10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10701 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10702 | ac_cv_lib_dld_dld_link=yes |
| 10703 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10704 | echo "$as_me: failed program was:" >&5 |
| 10705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10706 | |
| 10707 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10708 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10709 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10710 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10711 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10712 | LIBS=$ac_check_lib_save_LIBS |
| 10713 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10714 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10715 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10716 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10717 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10718 | cat >>confdefs.h <<\_ACEOF |
| 10719 | #define HAVE_DLD 1 |
| 10720 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10721 | |
| 10722 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10723 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10724 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10725 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10726 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10728 | else |
| 10729 | cat >conftest.$ac_ext <<_ACEOF |
| 10730 | /* confdefs.h. */ |
| 10731 | _ACEOF |
| 10732 | cat confdefs.h >>conftest.$ac_ext |
| 10733 | cat >>conftest.$ac_ext <<_ACEOF |
| 10734 | /* end confdefs.h. */ |
| 10735 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10736 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10737 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10738 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10739 | /* System header to define __stub macros and hopefully few prototypes, |
| 10740 | which can conflict with char _dyld_func_lookup (); below. |
| 10741 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10742 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10743 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10744 | #ifdef __STDC__ |
| 10745 | # include <limits.h> |
| 10746 | #else |
| 10747 | # include <assert.h> |
| 10748 | #endif |
| 10749 | |
| 10750 | #undef _dyld_func_lookup |
| 10751 | |
| 10752 | /* Override any GCC internal prototype to avoid an error. |
| 10753 | Use char because int might match the return type of a GCC |
| 10754 | builtin and then its argument prototype would still apply. */ |
| 10755 | #ifdef __cplusplus |
| 10756 | extern "C" |
| 10757 | #endif |
| 10758 | char _dyld_func_lookup (); |
| 10759 | /* The GNU C library defines this for functions which it implements |
| 10760 | to always fail with ENOSYS. Some functions are actually named |
| 10761 | something starting with __ and the normal name is an alias. */ |
| 10762 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10763 | choke me |
| 10764 | #endif |
| 10765 | |
| 10766 | int |
| 10767 | main () |
| 10768 | { |
| 10769 | return _dyld_func_lookup (); |
| 10770 | ; |
| 10771 | return 0; |
| 10772 | } |
| 10773 | _ACEOF |
| 10774 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10775 | if { (ac_try="$ac_link" |
| 10776 | case "(($ac_try" in |
| 10777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10778 | *) ac_try_echo=$ac_try;; |
| 10779 | esac |
| 10780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10781 | (eval "$ac_link") 2>conftest.er1 |
| 10782 | ac_status=$? |
| 10783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10784 | rm -f conftest.er1 |
| 10785 | cat conftest.err >&5 |
| 10786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10787 | (exit $ac_status); } && |
| 10788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10789 | { (case "(($ac_try" in |
| 10790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10791 | *) ac_try_echo=$ac_try;; |
| 10792 | esac |
| 10793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10794 | (eval "$ac_try") 2>&5 |
| 10795 | ac_status=$? |
| 10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10797 | (exit $ac_status); }; } && |
| 10798 | { ac_try='test -s conftest$ac_exeext' |
| 10799 | { (case "(($ac_try" in |
| 10800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10801 | *) ac_try_echo=$ac_try;; |
| 10802 | esac |
| 10803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10804 | (eval "$ac_try") 2>&5 |
| 10805 | ac_status=$? |
| 10806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10807 | (exit $ac_status); }; }; then |
| 10808 | ac_cv_func__dyld_func_lookup=yes |
| 10809 | else |
| 10810 | echo "$as_me: failed program was:" >&5 |
| 10811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10812 | |
| 10813 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10814 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10815 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10816 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10817 | conftest$ac_exeext conftest.$ac_ext |
| 10818 | fi |
| 10819 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10820 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10821 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10822 | |
| 10823 | cat >>confdefs.h <<\_ACEOF |
| 10824 | #define HAVE_DYLD 1 |
| 10825 | _ACEOF |
| 10826 | |
| 10827 | fi |
| 10828 | |
| 10829 | |
| 10830 | fi |
| 10831 | |
| 10832 | |
| 10833 | fi |
| 10834 | |
| 10835 | |
| 10836 | fi |
| 10837 | |
| 10838 | rm -f core conftest.err conftest.$ac_objext \ |
| 10839 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10840 | |
| 10841 | fi |
| 10842 | |
| 10843 | |
| 10844 | fi |
| 10845 | |
| 10846 | |
| 10847 | fi |
| 10848 | |
| 10849 | |
| 10850 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10851 | then |
| 10852 | lt_save_LIBS="$LIBS" |
| 10853 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10854 | |
| 10855 | for ac_func in dlerror |
| 10856 | do |
| 10857 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10858 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10859 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10860 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10862 | else |
| 10863 | cat >conftest.$ac_ext <<_ACEOF |
| 10864 | /* confdefs.h. */ |
| 10865 | _ACEOF |
| 10866 | cat confdefs.h >>conftest.$ac_ext |
| 10867 | cat >>conftest.$ac_ext <<_ACEOF |
| 10868 | /* end confdefs.h. */ |
| 10869 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10870 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10871 | #define $ac_func innocuous_$ac_func |
| 10872 | |
| 10873 | /* System header to define __stub macros and hopefully few prototypes, |
| 10874 | which can conflict with char $ac_func (); below. |
| 10875 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10876 | <limits.h> exists even on freestanding compilers. */ |
| 10877 | |
| 10878 | #ifdef __STDC__ |
| 10879 | # include <limits.h> |
| 10880 | #else |
| 10881 | # include <assert.h> |
| 10882 | #endif |
| 10883 | |
| 10884 | #undef $ac_func |
| 10885 | |
| 10886 | /* Override any GCC internal prototype to avoid an error. |
| 10887 | Use char because int might match the return type of a GCC |
| 10888 | builtin and then its argument prototype would still apply. */ |
| 10889 | #ifdef __cplusplus |
| 10890 | extern "C" |
| 10891 | #endif |
| 10892 | char $ac_func (); |
| 10893 | /* The GNU C library defines this for functions which it implements |
| 10894 | to always fail with ENOSYS. Some functions are actually named |
| 10895 | something starting with __ and the normal name is an alias. */ |
| 10896 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10897 | choke me |
| 10898 | #endif |
| 10899 | |
| 10900 | int |
| 10901 | main () |
| 10902 | { |
| 10903 | return $ac_func (); |
| 10904 | ; |
| 10905 | return 0; |
| 10906 | } |
| 10907 | _ACEOF |
| 10908 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10909 | if { (ac_try="$ac_link" |
| 10910 | case "(($ac_try" in |
| 10911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10912 | *) ac_try_echo=$ac_try;; |
| 10913 | esac |
| 10914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10915 | (eval "$ac_link") 2>conftest.er1 |
| 10916 | ac_status=$? |
| 10917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10918 | rm -f conftest.er1 |
| 10919 | cat conftest.err >&5 |
| 10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10921 | (exit $ac_status); } && |
| 10922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10923 | { (case "(($ac_try" in |
| 10924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10925 | *) ac_try_echo=$ac_try;; |
| 10926 | esac |
| 10927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10928 | (eval "$ac_try") 2>&5 |
| 10929 | ac_status=$? |
| 10930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10931 | (exit $ac_status); }; } && |
| 10932 | { ac_try='test -s conftest$ac_exeext' |
| 10933 | { (case "(($ac_try" in |
| 10934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10935 | *) ac_try_echo=$ac_try;; |
| 10936 | esac |
| 10937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10938 | (eval "$ac_try") 2>&5 |
| 10939 | ac_status=$? |
| 10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10941 | (exit $ac_status); }; }; then |
| 10942 | eval "$as_ac_var=yes" |
| 10943 | else |
| 10944 | echo "$as_me: failed program was:" >&5 |
| 10945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10946 | |
| 10947 | eval "$as_ac_var=no" |
| 10948 | fi |
| 10949 | |
| 10950 | rm -f core conftest.err conftest.$ac_objext \ |
| 10951 | conftest$ac_exeext conftest.$ac_ext |
| 10952 | fi |
| 10953 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10954 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10955 | echo "${ECHO_T}$ac_res" >&6; } |
| 10956 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10957 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10958 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10959 | _ACEOF |
| 10960 | |
| 10961 | fi |
| 10962 | done |
| 10963 | |
| 10964 | LIBS="$lt_save_LIBS" |
| 10965 | fi |
| 10966 | ac_ext=c |
| 10967 | ac_cpp='$CPP $CPPFLAGS' |
| 10968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10971 | |
| 10972 | |
| 10973 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10974 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10975 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10976 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10978 | else |
| 10979 | ac_cv_sys_symbol_underscore=no |
| 10980 | cat > conftest.$ac_ext <<EOF |
| 10981 | void nm_test_func(){} |
| 10982 | int main(){nm_test_func;return 0;} |
| 10983 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10985 | (eval $ac_compile) 2>&5 |
| 10986 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10988 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10989 | # Now try to grab the symbols. |
| 10990 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10991 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10992 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10993 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10995 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10996 | # See whether the symbols have a leading underscore. |
| 10997 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10998 | ac_cv_sys_symbol_underscore=yes |
| 10999 | else |
| 11000 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11001 | : |
| 11002 | else |
| 11003 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11004 | fi |
| 11005 | fi |
| 11006 | else |
| 11007 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11008 | fi |
| 11009 | else |
| 11010 | echo "configure: failed program was:" >&5 |
| 11011 | cat conftest.c >&5 |
| 11012 | fi |
| 11013 | rm -rf conftest* |
| 11014 | |
| 11015 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11016 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11017 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11018 | |
| 11019 | |
| 11020 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11021 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11022 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11023 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11024 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11025 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11027 | else |
| 11028 | libltdl_cv_need_uscore=unknown |
| 11029 | save_LIBS="$LIBS" |
| 11030 | LIBS="$LIBS $LIBADD_DL" |
| 11031 | if test "$cross_compiling" = yes; then : |
| 11032 | libltdl_cv_need_uscore=cross |
| 11033 | else |
| 11034 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11035 | lt_status=$lt_dlunknown |
| 11036 | cat > conftest.$ac_ext <<EOF |
Daniel Dunbar | 99d9863 | 2010-02-23 07:56:22 +0000 | [diff] [blame^] | 11037 | #line 11037 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11038 | #include "confdefs.h" |
| 11039 | |
| 11040 | #if HAVE_DLFCN_H |
| 11041 | #include <dlfcn.h> |
| 11042 | #endif |
| 11043 | |
| 11044 | #include <stdio.h> |
| 11045 | |
| 11046 | #ifdef RTLD_GLOBAL |
| 11047 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11048 | #else |
| 11049 | # ifdef DL_GLOBAL |
| 11050 | # define LT_DLGLOBAL DL_GLOBAL |
| 11051 | # else |
| 11052 | # define LT_DLGLOBAL 0 |
| 11053 | # endif |
| 11054 | #endif |
| 11055 | |
| 11056 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11057 | find out it does not work in some platform. */ |
| 11058 | #ifndef LT_DLLAZY_OR_NOW |
| 11059 | # ifdef RTLD_LAZY |
| 11060 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11061 | # else |
| 11062 | # ifdef DL_LAZY |
| 11063 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11064 | # else |
| 11065 | # ifdef RTLD_NOW |
| 11066 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11067 | # else |
| 11068 | # ifdef DL_NOW |
| 11069 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11070 | # else |
| 11071 | # define LT_DLLAZY_OR_NOW 0 |
| 11072 | # endif |
| 11073 | # endif |
| 11074 | # endif |
| 11075 | # endif |
| 11076 | #endif |
| 11077 | |
| 11078 | #ifdef __cplusplus |
| 11079 | extern "C" void exit (int); |
| 11080 | #endif |
| 11081 | |
| 11082 | void fnord() { int i=42;} |
| 11083 | int main () |
| 11084 | { |
| 11085 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11086 | int status = $lt_dlunknown; |
| 11087 | |
| 11088 | if (self) |
| 11089 | { |
| 11090 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11091 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11092 | /* dlclose (self); */ |
| 11093 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11094 | else |
| 11095 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11096 | |
| 11097 | exit (status); |
| 11098 | } |
| 11099 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11101 | (eval $ac_link) 2>&5 |
| 11102 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11104 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11105 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11106 | lt_status=$? |
| 11107 | case x$lt_status in |
| 11108 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11109 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11110 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11111 | esac |
| 11112 | else : |
| 11113 | # compilation failed |
| 11114 | |
| 11115 | fi |
| 11116 | fi |
| 11117 | rm -fr conftest* |
| 11118 | |
| 11119 | LIBS="$save_LIBS" |
| 11120 | |
| 11121 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11122 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11123 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11124 | fi |
| 11125 | fi |
| 11126 | |
| 11127 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11128 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11129 | cat >>confdefs.h <<\_ACEOF |
| 11130 | #define NEED_USCORE 1 |
| 11131 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11132 | |
| 11133 | fi |
| 11134 | |
| 11135 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11136 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11137 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11138 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11140 | else |
| 11141 | # PORTME does your system automatically load deplibs for dlopen? |
| 11142 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11143 | # For now, we just catch OSes we know something about -- in the |
| 11144 | # future, we'll try test this programmatically. |
| 11145 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11146 | case "$host_os" in |
| 11147 | aix3*|aix4.1.*|aix4.2.*) |
| 11148 | # Unknown whether this is true for these versions of AIX, but |
| 11149 | # we want this `case' here to explicitly catch those versions. |
| 11150 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11151 | ;; |
| 11152 | aix[45]*) |
| 11153 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11154 | ;; |
| 11155 | darwin*) |
| 11156 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11157 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11158 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11159 | ;; |
| 11160 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11161 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11162 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11163 | ;; |
| 11164 | hpux10*|hpux11*) |
| 11165 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11166 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11167 | interix*) |
| 11168 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11169 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11170 | irix[12345]*|irix6.[01]*) |
| 11171 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11172 | # know how it worked for any of those versions. |
| 11173 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11174 | ;; |
| 11175 | irix*) |
| 11176 | # The case above catches anything before 6.2, and it's known that |
| 11177 | # at 6.2 and later dlopen does load deplibs. |
| 11178 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11179 | ;; |
| 11180 | netbsd*) |
| 11181 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11182 | ;; |
| 11183 | openbsd*) |
| 11184 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11185 | ;; |
| 11186 | osf[1234]*) |
| 11187 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11188 | # it did *not* use an RPATH in a shared library to find objects the |
| 11189 | # library depends on, so we explictly say `no'. |
| 11190 | libltdl_cv_sys_dlopen_deplibs=no |
| 11191 | ;; |
| 11192 | osf5.0|osf5.0a|osf5.1) |
| 11193 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11194 | # it even uses RPATH in a shared library to search for shared objects |
| 11195 | # that the library depends on, but there's no easy way to know if that |
| 11196 | # patch is installed. Since this is the case, all we can really |
| 11197 | # say is unknown -- it depends on the patch being installed. If |
| 11198 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11199 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11200 | ;; |
| 11201 | osf*) |
| 11202 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11203 | # the comments above for what we know about them. |
| 11204 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11205 | # is used to find them so we can finally say `yes'. |
| 11206 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11207 | ;; |
| 11208 | solaris*) |
| 11209 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11210 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11211 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11212 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11213 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11214 | esac |
| 11215 | |
| 11216 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11217 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11218 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11219 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11220 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11221 | cat >>confdefs.h <<\_ACEOF |
| 11222 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11223 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11224 | |
| 11225 | fi |
| 11226 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11227 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11228 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11229 | do |
| 11230 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11232 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11233 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11234 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11236 | fi |
| 11237 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11238 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11239 | echo "${ECHO_T}$ac_res" >&6; } |
| 11240 | else |
| 11241 | # Is the header compilable? |
| 11242 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11243 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11244 | cat >conftest.$ac_ext <<_ACEOF |
| 11245 | /* confdefs.h. */ |
| 11246 | _ACEOF |
| 11247 | cat confdefs.h >>conftest.$ac_ext |
| 11248 | cat >>conftest.$ac_ext <<_ACEOF |
| 11249 | /* end confdefs.h. */ |
| 11250 | $ac_includes_default |
| 11251 | #include <$ac_header> |
| 11252 | _ACEOF |
| 11253 | rm -f conftest.$ac_objext |
| 11254 | if { (ac_try="$ac_compile" |
| 11255 | case "(($ac_try" in |
| 11256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11257 | *) ac_try_echo=$ac_try;; |
| 11258 | esac |
| 11259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11260 | (eval "$ac_compile") 2>conftest.er1 |
| 11261 | ac_status=$? |
| 11262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11263 | rm -f conftest.er1 |
| 11264 | cat conftest.err >&5 |
| 11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11266 | (exit $ac_status); } && |
| 11267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11268 | { (case "(($ac_try" in |
| 11269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11270 | *) ac_try_echo=$ac_try;; |
| 11271 | esac |
| 11272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11273 | (eval "$ac_try") 2>&5 |
| 11274 | ac_status=$? |
| 11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11276 | (exit $ac_status); }; } && |
| 11277 | { ac_try='test -s conftest.$ac_objext' |
| 11278 | { (case "(($ac_try" in |
| 11279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11280 | *) ac_try_echo=$ac_try;; |
| 11281 | esac |
| 11282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11283 | (eval "$ac_try") 2>&5 |
| 11284 | ac_status=$? |
| 11285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11286 | (exit $ac_status); }; }; then |
| 11287 | ac_header_compiler=yes |
| 11288 | else |
| 11289 | echo "$as_me: failed program was:" >&5 |
| 11290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11291 | |
| 11292 | ac_header_compiler=no |
| 11293 | fi |
| 11294 | |
| 11295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11296 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11297 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11298 | |
| 11299 | # Is the header present? |
| 11300 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11301 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11302 | cat >conftest.$ac_ext <<_ACEOF |
| 11303 | /* confdefs.h. */ |
| 11304 | _ACEOF |
| 11305 | cat confdefs.h >>conftest.$ac_ext |
| 11306 | cat >>conftest.$ac_ext <<_ACEOF |
| 11307 | /* end confdefs.h. */ |
| 11308 | #include <$ac_header> |
| 11309 | _ACEOF |
| 11310 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11311 | case "(($ac_try" in |
| 11312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11313 | *) ac_try_echo=$ac_try;; |
| 11314 | esac |
| 11315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11316 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11317 | ac_status=$? |
| 11318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11319 | rm -f conftest.er1 |
| 11320 | cat conftest.err >&5 |
| 11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11322 | (exit $ac_status); } >/dev/null; then |
| 11323 | if test -s conftest.err; then |
| 11324 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11325 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11326 | else |
| 11327 | ac_cpp_err= |
| 11328 | fi |
| 11329 | else |
| 11330 | ac_cpp_err=yes |
| 11331 | fi |
| 11332 | if test -z "$ac_cpp_err"; then |
| 11333 | ac_header_preproc=yes |
| 11334 | else |
| 11335 | echo "$as_me: failed program was:" >&5 |
| 11336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11337 | |
| 11338 | ac_header_preproc=no |
| 11339 | fi |
| 11340 | |
| 11341 | rm -f conftest.err conftest.$ac_ext |
| 11342 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11343 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11344 | |
| 11345 | # So? What about this header? |
| 11346 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11347 | yes:no: ) |
| 11348 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11349 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11350 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11351 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11352 | ac_header_preproc=yes |
| 11353 | ;; |
| 11354 | no:yes:* ) |
| 11355 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11356 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11358 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11359 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11360 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11361 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11362 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11364 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11365 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11366 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11367 | ( cat <<\_ASBOX |
| 11368 | ## ----------------------------------- ## |
| 11369 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11370 | ## ----------------------------------- ## |
| 11371 | _ASBOX |
| 11372 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11373 | ;; |
| 11374 | esac |
| 11375 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11376 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11377 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11379 | else |
| 11380 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11381 | fi |
| 11382 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11383 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11384 | echo "${ECHO_T}$ac_res" >&6; } |
| 11385 | |
| 11386 | fi |
| 11387 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11388 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11389 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11390 | _ACEOF |
| 11391 | |
| 11392 | fi |
| 11393 | |
| 11394 | done |
| 11395 | |
| 11396 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11397 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11398 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11399 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11401 | else |
| 11402 | cat >conftest.$ac_ext <<_ACEOF |
| 11403 | /* confdefs.h. */ |
| 11404 | _ACEOF |
| 11405 | cat confdefs.h >>conftest.$ac_ext |
| 11406 | cat >>conftest.$ac_ext <<_ACEOF |
| 11407 | /* end confdefs.h. */ |
| 11408 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11409 | # include <argz.h> |
| 11410 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11411 | |
| 11412 | typedef error_t ac__type_new_; |
| 11413 | int |
| 11414 | main () |
| 11415 | { |
| 11416 | if ((ac__type_new_ *) 0) |
| 11417 | return 0; |
| 11418 | if (sizeof (ac__type_new_)) |
| 11419 | return 0; |
| 11420 | ; |
| 11421 | return 0; |
| 11422 | } |
| 11423 | _ACEOF |
| 11424 | rm -f conftest.$ac_objext |
| 11425 | if { (ac_try="$ac_compile" |
| 11426 | case "(($ac_try" in |
| 11427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11428 | *) ac_try_echo=$ac_try;; |
| 11429 | esac |
| 11430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11431 | (eval "$ac_compile") 2>conftest.er1 |
| 11432 | ac_status=$? |
| 11433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11434 | rm -f conftest.er1 |
| 11435 | cat conftest.err >&5 |
| 11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11437 | (exit $ac_status); } && |
| 11438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11439 | { (case "(($ac_try" in |
| 11440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11441 | *) ac_try_echo=$ac_try;; |
| 11442 | esac |
| 11443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11444 | (eval "$ac_try") 2>&5 |
| 11445 | ac_status=$? |
| 11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11447 | (exit $ac_status); }; } && |
| 11448 | { ac_try='test -s conftest.$ac_objext' |
| 11449 | { (case "(($ac_try" in |
| 11450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11451 | *) ac_try_echo=$ac_try;; |
| 11452 | esac |
| 11453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11454 | (eval "$ac_try") 2>&5 |
| 11455 | ac_status=$? |
| 11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11457 | (exit $ac_status); }; }; then |
| 11458 | ac_cv_type_error_t=yes |
| 11459 | else |
| 11460 | echo "$as_me: failed program was:" >&5 |
| 11461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11462 | |
| 11463 | ac_cv_type_error_t=no |
| 11464 | fi |
| 11465 | |
| 11466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11467 | fi |
| 11468 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11469 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11470 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11471 | |
| 11472 | cat >>confdefs.h <<_ACEOF |
| 11473 | #define HAVE_ERROR_T 1 |
| 11474 | _ACEOF |
| 11475 | |
| 11476 | |
| 11477 | else |
| 11478 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11479 | cat >>confdefs.h <<\_ACEOF |
| 11480 | #define error_t int |
| 11481 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11482 | |
| 11483 | fi |
| 11484 | |
| 11485 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11486 | |
| 11487 | |
| 11488 | |
| 11489 | |
| 11490 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11491 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11492 | do |
| 11493 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11494 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11495 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11496 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11498 | else |
| 11499 | cat >conftest.$ac_ext <<_ACEOF |
| 11500 | /* confdefs.h. */ |
| 11501 | _ACEOF |
| 11502 | cat confdefs.h >>conftest.$ac_ext |
| 11503 | cat >>conftest.$ac_ext <<_ACEOF |
| 11504 | /* end confdefs.h. */ |
| 11505 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11506 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11507 | #define $ac_func innocuous_$ac_func |
| 11508 | |
| 11509 | /* System header to define __stub macros and hopefully few prototypes, |
| 11510 | which can conflict with char $ac_func (); below. |
| 11511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11512 | <limits.h> exists even on freestanding compilers. */ |
| 11513 | |
| 11514 | #ifdef __STDC__ |
| 11515 | # include <limits.h> |
| 11516 | #else |
| 11517 | # include <assert.h> |
| 11518 | #endif |
| 11519 | |
| 11520 | #undef $ac_func |
| 11521 | |
| 11522 | /* Override any GCC internal prototype to avoid an error. |
| 11523 | Use char because int might match the return type of a GCC |
| 11524 | builtin and then its argument prototype would still apply. */ |
| 11525 | #ifdef __cplusplus |
| 11526 | extern "C" |
| 11527 | #endif |
| 11528 | char $ac_func (); |
| 11529 | /* The GNU C library defines this for functions which it implements |
| 11530 | to always fail with ENOSYS. Some functions are actually named |
| 11531 | something starting with __ and the normal name is an alias. */ |
| 11532 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11533 | choke me |
| 11534 | #endif |
| 11535 | |
| 11536 | int |
| 11537 | main () |
| 11538 | { |
| 11539 | return $ac_func (); |
| 11540 | ; |
| 11541 | return 0; |
| 11542 | } |
| 11543 | _ACEOF |
| 11544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11545 | if { (ac_try="$ac_link" |
| 11546 | case "(($ac_try" in |
| 11547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11548 | *) ac_try_echo=$ac_try;; |
| 11549 | esac |
| 11550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11551 | (eval "$ac_link") 2>conftest.er1 |
| 11552 | ac_status=$? |
| 11553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11554 | rm -f conftest.er1 |
| 11555 | cat conftest.err >&5 |
| 11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11557 | (exit $ac_status); } && |
| 11558 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11559 | { (case "(($ac_try" in |
| 11560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11561 | *) ac_try_echo=$ac_try;; |
| 11562 | esac |
| 11563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11564 | (eval "$ac_try") 2>&5 |
| 11565 | ac_status=$? |
| 11566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11567 | (exit $ac_status); }; } && |
| 11568 | { ac_try='test -s conftest$ac_exeext' |
| 11569 | { (case "(($ac_try" in |
| 11570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11571 | *) ac_try_echo=$ac_try;; |
| 11572 | esac |
| 11573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11574 | (eval "$ac_try") 2>&5 |
| 11575 | ac_status=$? |
| 11576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11577 | (exit $ac_status); }; }; then |
| 11578 | eval "$as_ac_var=yes" |
| 11579 | else |
| 11580 | echo "$as_me: failed program was:" >&5 |
| 11581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11582 | |
| 11583 | eval "$as_ac_var=no" |
| 11584 | fi |
| 11585 | |
| 11586 | rm -f core conftest.err conftest.$ac_objext \ |
| 11587 | conftest$ac_exeext conftest.$ac_ext |
| 11588 | fi |
| 11589 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11590 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11591 | echo "${ECHO_T}$ac_res" >&6; } |
| 11592 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11593 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11594 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11595 | _ACEOF |
| 11596 | |
| 11597 | fi |
| 11598 | done |
| 11599 | |
| 11600 | |
| 11601 | |
| 11602 | |
| 11603 | |
| 11604 | |
| 11605 | |
| 11606 | |
| 11607 | |
| 11608 | |
| 11609 | |
| 11610 | |
| 11611 | |
| 11612 | |
| 11613 | |
| 11614 | |
| 11615 | |
| 11616 | |
| 11617 | |
| 11618 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11619 | |
| 11620 | |
| 11621 | |
| 11622 | |
| 11623 | |
| 11624 | |
| 11625 | |
| 11626 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11627 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11628 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11629 | do |
| 11630 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11631 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11632 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11634 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11636 | fi |
| 11637 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11638 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11639 | echo "${ECHO_T}$ac_res" >&6; } |
| 11640 | else |
| 11641 | # Is the header compilable? |
| 11642 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11643 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11644 | cat >conftest.$ac_ext <<_ACEOF |
| 11645 | /* confdefs.h. */ |
| 11646 | _ACEOF |
| 11647 | cat confdefs.h >>conftest.$ac_ext |
| 11648 | cat >>conftest.$ac_ext <<_ACEOF |
| 11649 | /* end confdefs.h. */ |
| 11650 | $ac_includes_default |
| 11651 | #include <$ac_header> |
| 11652 | _ACEOF |
| 11653 | rm -f conftest.$ac_objext |
| 11654 | if { (ac_try="$ac_compile" |
| 11655 | case "(($ac_try" in |
| 11656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11657 | *) ac_try_echo=$ac_try;; |
| 11658 | esac |
| 11659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11660 | (eval "$ac_compile") 2>conftest.er1 |
| 11661 | ac_status=$? |
| 11662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11663 | rm -f conftest.er1 |
| 11664 | cat conftest.err >&5 |
| 11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11666 | (exit $ac_status); } && |
| 11667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11668 | { (case "(($ac_try" in |
| 11669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11670 | *) ac_try_echo=$ac_try;; |
| 11671 | esac |
| 11672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11673 | (eval "$ac_try") 2>&5 |
| 11674 | ac_status=$? |
| 11675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11676 | (exit $ac_status); }; } && |
| 11677 | { ac_try='test -s conftest.$ac_objext' |
| 11678 | { (case "(($ac_try" in |
| 11679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11680 | *) ac_try_echo=$ac_try;; |
| 11681 | esac |
| 11682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11683 | (eval "$ac_try") 2>&5 |
| 11684 | ac_status=$? |
| 11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11686 | (exit $ac_status); }; }; then |
| 11687 | ac_header_compiler=yes |
| 11688 | else |
| 11689 | echo "$as_me: failed program was:" >&5 |
| 11690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11691 | |
| 11692 | ac_header_compiler=no |
| 11693 | fi |
| 11694 | |
| 11695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11696 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11697 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11698 | |
| 11699 | # Is the header present? |
| 11700 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11701 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11702 | cat >conftest.$ac_ext <<_ACEOF |
| 11703 | /* confdefs.h. */ |
| 11704 | _ACEOF |
| 11705 | cat confdefs.h >>conftest.$ac_ext |
| 11706 | cat >>conftest.$ac_ext <<_ACEOF |
| 11707 | /* end confdefs.h. */ |
| 11708 | #include <$ac_header> |
| 11709 | _ACEOF |
| 11710 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11711 | case "(($ac_try" in |
| 11712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11713 | *) ac_try_echo=$ac_try;; |
| 11714 | esac |
| 11715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11716 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11717 | ac_status=$? |
| 11718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11719 | rm -f conftest.er1 |
| 11720 | cat conftest.err >&5 |
| 11721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11722 | (exit $ac_status); } >/dev/null; then |
| 11723 | if test -s conftest.err; then |
| 11724 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11725 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11726 | else |
| 11727 | ac_cpp_err= |
| 11728 | fi |
| 11729 | else |
| 11730 | ac_cpp_err=yes |
| 11731 | fi |
| 11732 | if test -z "$ac_cpp_err"; then |
| 11733 | ac_header_preproc=yes |
| 11734 | else |
| 11735 | echo "$as_me: failed program was:" >&5 |
| 11736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11737 | |
| 11738 | ac_header_preproc=no |
| 11739 | fi |
| 11740 | |
| 11741 | rm -f conftest.err conftest.$ac_ext |
| 11742 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11743 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11744 | |
| 11745 | # So? What about this header? |
| 11746 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11747 | yes:no: ) |
| 11748 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11749 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11751 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11752 | ac_header_preproc=yes |
| 11753 | ;; |
| 11754 | no:yes:* ) |
| 11755 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11756 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11757 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11758 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11759 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11760 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11761 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11762 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11763 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11764 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11765 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11766 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11767 | ( cat <<\_ASBOX |
| 11768 | ## ----------------------------------- ## |
| 11769 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11770 | ## ----------------------------------- ## |
| 11771 | _ASBOX |
| 11772 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11773 | ;; |
| 11774 | esac |
| 11775 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11776 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11777 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11779 | else |
| 11780 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11781 | fi |
| 11782 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11783 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11784 | echo "${ECHO_T}$ac_res" >&6; } |
| 11785 | |
| 11786 | fi |
| 11787 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11788 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11789 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11790 | _ACEOF |
| 11791 | |
| 11792 | fi |
| 11793 | |
| 11794 | done |
| 11795 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11796 | |
| 11797 | |
| 11798 | |
| 11799 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11800 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11801 | do |
| 11802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11803 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11804 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11806 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11808 | fi |
| 11809 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11810 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11811 | echo "${ECHO_T}$ac_res" >&6; } |
| 11812 | else |
| 11813 | # Is the header compilable? |
| 11814 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11815 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11816 | cat >conftest.$ac_ext <<_ACEOF |
| 11817 | /* confdefs.h. */ |
| 11818 | _ACEOF |
| 11819 | cat confdefs.h >>conftest.$ac_ext |
| 11820 | cat >>conftest.$ac_ext <<_ACEOF |
| 11821 | /* end confdefs.h. */ |
| 11822 | $ac_includes_default |
| 11823 | #include <$ac_header> |
| 11824 | _ACEOF |
| 11825 | rm -f conftest.$ac_objext |
| 11826 | if { (ac_try="$ac_compile" |
| 11827 | case "(($ac_try" in |
| 11828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11829 | *) ac_try_echo=$ac_try;; |
| 11830 | esac |
| 11831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11832 | (eval "$ac_compile") 2>conftest.er1 |
| 11833 | ac_status=$? |
| 11834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11835 | rm -f conftest.er1 |
| 11836 | cat conftest.err >&5 |
| 11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11838 | (exit $ac_status); } && |
| 11839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11840 | { (case "(($ac_try" in |
| 11841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11842 | *) ac_try_echo=$ac_try;; |
| 11843 | esac |
| 11844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11845 | (eval "$ac_try") 2>&5 |
| 11846 | ac_status=$? |
| 11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11848 | (exit $ac_status); }; } && |
| 11849 | { ac_try='test -s conftest.$ac_objext' |
| 11850 | { (case "(($ac_try" in |
| 11851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11852 | *) ac_try_echo=$ac_try;; |
| 11853 | esac |
| 11854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11855 | (eval "$ac_try") 2>&5 |
| 11856 | ac_status=$? |
| 11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11858 | (exit $ac_status); }; }; then |
| 11859 | ac_header_compiler=yes |
| 11860 | else |
| 11861 | echo "$as_me: failed program was:" >&5 |
| 11862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11863 | |
| 11864 | ac_header_compiler=no |
| 11865 | fi |
| 11866 | |
| 11867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11868 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11869 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11870 | |
| 11871 | # Is the header present? |
| 11872 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11873 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11874 | cat >conftest.$ac_ext <<_ACEOF |
| 11875 | /* confdefs.h. */ |
| 11876 | _ACEOF |
| 11877 | cat confdefs.h >>conftest.$ac_ext |
| 11878 | cat >>conftest.$ac_ext <<_ACEOF |
| 11879 | /* end confdefs.h. */ |
| 11880 | #include <$ac_header> |
| 11881 | _ACEOF |
| 11882 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11883 | case "(($ac_try" in |
| 11884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11885 | *) ac_try_echo=$ac_try;; |
| 11886 | esac |
| 11887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11888 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11889 | ac_status=$? |
| 11890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11891 | rm -f conftest.er1 |
| 11892 | cat conftest.err >&5 |
| 11893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11894 | (exit $ac_status); } >/dev/null; then |
| 11895 | if test -s conftest.err; then |
| 11896 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11897 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11898 | else |
| 11899 | ac_cpp_err= |
| 11900 | fi |
| 11901 | else |
| 11902 | ac_cpp_err=yes |
| 11903 | fi |
| 11904 | if test -z "$ac_cpp_err"; then |
| 11905 | ac_header_preproc=yes |
| 11906 | else |
| 11907 | echo "$as_me: failed program was:" >&5 |
| 11908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11909 | |
| 11910 | ac_header_preproc=no |
| 11911 | fi |
| 11912 | |
| 11913 | rm -f conftest.err conftest.$ac_ext |
| 11914 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11915 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11916 | |
| 11917 | # So? What about this header? |
| 11918 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11919 | yes:no: ) |
| 11920 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11921 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11922 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11923 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11924 | ac_header_preproc=yes |
| 11925 | ;; |
| 11926 | no:yes:* ) |
| 11927 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11928 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11929 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11930 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11931 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11932 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11933 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11934 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11935 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11936 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11937 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11938 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11939 | ( cat <<\_ASBOX |
| 11940 | ## ----------------------------------- ## |
| 11941 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11942 | ## ----------------------------------- ## |
| 11943 | _ASBOX |
| 11944 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11945 | ;; |
| 11946 | esac |
| 11947 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11949 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11951 | else |
| 11952 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11953 | fi |
| 11954 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11955 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11956 | echo "${ECHO_T}$ac_res" >&6; } |
| 11957 | |
| 11958 | fi |
| 11959 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11960 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11961 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11962 | _ACEOF |
| 11963 | |
| 11964 | fi |
| 11965 | |
| 11966 | done |
| 11967 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11968 | |
| 11969 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11970 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11971 | do |
| 11972 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11973 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11974 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11975 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11976 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11978 | fi |
| 11979 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11980 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11981 | echo "${ECHO_T}$ac_res" >&6; } |
| 11982 | else |
| 11983 | # Is the header compilable? |
| 11984 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11986 | cat >conftest.$ac_ext <<_ACEOF |
| 11987 | /* confdefs.h. */ |
| 11988 | _ACEOF |
| 11989 | cat confdefs.h >>conftest.$ac_ext |
| 11990 | cat >>conftest.$ac_ext <<_ACEOF |
| 11991 | /* end confdefs.h. */ |
| 11992 | $ac_includes_default |
| 11993 | #include <$ac_header> |
| 11994 | _ACEOF |
| 11995 | rm -f conftest.$ac_objext |
| 11996 | if { (ac_try="$ac_compile" |
| 11997 | case "(($ac_try" in |
| 11998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11999 | *) ac_try_echo=$ac_try;; |
| 12000 | esac |
| 12001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12002 | (eval "$ac_compile") 2>conftest.er1 |
| 12003 | ac_status=$? |
| 12004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12005 | rm -f conftest.er1 |
| 12006 | cat conftest.err >&5 |
| 12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12008 | (exit $ac_status); } && |
| 12009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12010 | { (case "(($ac_try" in |
| 12011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12012 | *) ac_try_echo=$ac_try;; |
| 12013 | esac |
| 12014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12015 | (eval "$ac_try") 2>&5 |
| 12016 | ac_status=$? |
| 12017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12018 | (exit $ac_status); }; } && |
| 12019 | { ac_try='test -s conftest.$ac_objext' |
| 12020 | { (case "(($ac_try" in |
| 12021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12022 | *) ac_try_echo=$ac_try;; |
| 12023 | esac |
| 12024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12025 | (eval "$ac_try") 2>&5 |
| 12026 | ac_status=$? |
| 12027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12028 | (exit $ac_status); }; }; then |
| 12029 | ac_header_compiler=yes |
| 12030 | else |
| 12031 | echo "$as_me: failed program was:" >&5 |
| 12032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12033 | |
| 12034 | ac_header_compiler=no |
| 12035 | fi |
| 12036 | |
| 12037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12038 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12039 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12040 | |
| 12041 | # Is the header present? |
| 12042 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12043 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12044 | cat >conftest.$ac_ext <<_ACEOF |
| 12045 | /* confdefs.h. */ |
| 12046 | _ACEOF |
| 12047 | cat confdefs.h >>conftest.$ac_ext |
| 12048 | cat >>conftest.$ac_ext <<_ACEOF |
| 12049 | /* end confdefs.h. */ |
| 12050 | #include <$ac_header> |
| 12051 | _ACEOF |
| 12052 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12053 | case "(($ac_try" in |
| 12054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12055 | *) ac_try_echo=$ac_try;; |
| 12056 | esac |
| 12057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12058 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12059 | ac_status=$? |
| 12060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12061 | rm -f conftest.er1 |
| 12062 | cat conftest.err >&5 |
| 12063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12064 | (exit $ac_status); } >/dev/null; then |
| 12065 | if test -s conftest.err; then |
| 12066 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12067 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12068 | else |
| 12069 | ac_cpp_err= |
| 12070 | fi |
| 12071 | else |
| 12072 | ac_cpp_err=yes |
| 12073 | fi |
| 12074 | if test -z "$ac_cpp_err"; then |
| 12075 | ac_header_preproc=yes |
| 12076 | else |
| 12077 | echo "$as_me: failed program was:" >&5 |
| 12078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12079 | |
| 12080 | ac_header_preproc=no |
| 12081 | fi |
| 12082 | |
| 12083 | rm -f conftest.err conftest.$ac_ext |
| 12084 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12085 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12086 | |
| 12087 | # So? What about this header? |
| 12088 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12089 | yes:no: ) |
| 12090 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12091 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12093 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12094 | ac_header_preproc=yes |
| 12095 | ;; |
| 12096 | no:yes:* ) |
| 12097 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12098 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12099 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12100 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12101 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12102 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12103 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12104 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12105 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12106 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12107 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12108 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12109 | ( cat <<\_ASBOX |
| 12110 | ## ----------------------------------- ## |
| 12111 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12112 | ## ----------------------------------- ## |
| 12113 | _ASBOX |
| 12114 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12115 | ;; |
| 12116 | esac |
| 12117 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12118 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12119 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12121 | else |
| 12122 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12123 | fi |
| 12124 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12125 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12126 | echo "${ECHO_T}$ac_res" >&6; } |
| 12127 | |
| 12128 | fi |
| 12129 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12130 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12131 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12132 | _ACEOF |
| 12133 | break |
| 12134 | fi |
| 12135 | |
| 12136 | done |
| 12137 | |
| 12138 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12139 | |
| 12140 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12141 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12142 | do |
| 12143 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12144 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12145 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12146 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12148 | else |
| 12149 | cat >conftest.$ac_ext <<_ACEOF |
| 12150 | /* confdefs.h. */ |
| 12151 | _ACEOF |
| 12152 | cat confdefs.h >>conftest.$ac_ext |
| 12153 | cat >>conftest.$ac_ext <<_ACEOF |
| 12154 | /* end confdefs.h. */ |
| 12155 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12157 | #define $ac_func innocuous_$ac_func |
| 12158 | |
| 12159 | /* System header to define __stub macros and hopefully few prototypes, |
| 12160 | which can conflict with char $ac_func (); below. |
| 12161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12162 | <limits.h> exists even on freestanding compilers. */ |
| 12163 | |
| 12164 | #ifdef __STDC__ |
| 12165 | # include <limits.h> |
| 12166 | #else |
| 12167 | # include <assert.h> |
| 12168 | #endif |
| 12169 | |
| 12170 | #undef $ac_func |
| 12171 | |
| 12172 | /* Override any GCC internal prototype to avoid an error. |
| 12173 | Use char because int might match the return type of a GCC |
| 12174 | builtin and then its argument prototype would still apply. */ |
| 12175 | #ifdef __cplusplus |
| 12176 | extern "C" |
| 12177 | #endif |
| 12178 | char $ac_func (); |
| 12179 | /* The GNU C library defines this for functions which it implements |
| 12180 | to always fail with ENOSYS. Some functions are actually named |
| 12181 | something starting with __ and the normal name is an alias. */ |
| 12182 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12183 | choke me |
| 12184 | #endif |
| 12185 | |
| 12186 | int |
| 12187 | main () |
| 12188 | { |
| 12189 | return $ac_func (); |
| 12190 | ; |
| 12191 | return 0; |
| 12192 | } |
| 12193 | _ACEOF |
| 12194 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12195 | if { (ac_try="$ac_link" |
| 12196 | case "(($ac_try" in |
| 12197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12198 | *) ac_try_echo=$ac_try;; |
| 12199 | esac |
| 12200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12201 | (eval "$ac_link") 2>conftest.er1 |
| 12202 | ac_status=$? |
| 12203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12204 | rm -f conftest.er1 |
| 12205 | cat conftest.err >&5 |
| 12206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12207 | (exit $ac_status); } && |
| 12208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12209 | { (case "(($ac_try" in |
| 12210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12211 | *) ac_try_echo=$ac_try;; |
| 12212 | esac |
| 12213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12214 | (eval "$ac_try") 2>&5 |
| 12215 | ac_status=$? |
| 12216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12217 | (exit $ac_status); }; } && |
| 12218 | { ac_try='test -s conftest$ac_exeext' |
| 12219 | { (case "(($ac_try" in |
| 12220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12221 | *) ac_try_echo=$ac_try;; |
| 12222 | esac |
| 12223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12224 | (eval "$ac_try") 2>&5 |
| 12225 | ac_status=$? |
| 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12227 | (exit $ac_status); }; }; then |
| 12228 | eval "$as_ac_var=yes" |
| 12229 | else |
| 12230 | echo "$as_me: failed program was:" >&5 |
| 12231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12232 | |
| 12233 | eval "$as_ac_var=no" |
| 12234 | fi |
| 12235 | |
| 12236 | rm -f core conftest.err conftest.$ac_objext \ |
| 12237 | conftest$ac_exeext conftest.$ac_ext |
| 12238 | fi |
| 12239 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12240 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12241 | echo "${ECHO_T}$ac_res" >&6; } |
| 12242 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12243 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12244 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12245 | _ACEOF |
| 12246 | break |
| 12247 | fi |
| 12248 | done |
| 12249 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12250 | |
| 12251 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12252 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12253 | do |
| 12254 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12255 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12256 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12257 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12259 | else |
| 12260 | cat >conftest.$ac_ext <<_ACEOF |
| 12261 | /* confdefs.h. */ |
| 12262 | _ACEOF |
| 12263 | cat confdefs.h >>conftest.$ac_ext |
| 12264 | cat >>conftest.$ac_ext <<_ACEOF |
| 12265 | /* end confdefs.h. */ |
| 12266 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12267 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12268 | #define $ac_func innocuous_$ac_func |
| 12269 | |
| 12270 | /* System header to define __stub macros and hopefully few prototypes, |
| 12271 | which can conflict with char $ac_func (); below. |
| 12272 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12273 | <limits.h> exists even on freestanding compilers. */ |
| 12274 | |
| 12275 | #ifdef __STDC__ |
| 12276 | # include <limits.h> |
| 12277 | #else |
| 12278 | # include <assert.h> |
| 12279 | #endif |
| 12280 | |
| 12281 | #undef $ac_func |
| 12282 | |
| 12283 | /* Override any GCC internal prototype to avoid an error. |
| 12284 | Use char because int might match the return type of a GCC |
| 12285 | builtin and then its argument prototype would still apply. */ |
| 12286 | #ifdef __cplusplus |
| 12287 | extern "C" |
| 12288 | #endif |
| 12289 | char $ac_func (); |
| 12290 | /* The GNU C library defines this for functions which it implements |
| 12291 | to always fail with ENOSYS. Some functions are actually named |
| 12292 | something starting with __ and the normal name is an alias. */ |
| 12293 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12294 | choke me |
| 12295 | #endif |
| 12296 | |
| 12297 | int |
| 12298 | main () |
| 12299 | { |
| 12300 | return $ac_func (); |
| 12301 | ; |
| 12302 | return 0; |
| 12303 | } |
| 12304 | _ACEOF |
| 12305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12306 | if { (ac_try="$ac_link" |
| 12307 | case "(($ac_try" in |
| 12308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12309 | *) ac_try_echo=$ac_try;; |
| 12310 | esac |
| 12311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12312 | (eval "$ac_link") 2>conftest.er1 |
| 12313 | ac_status=$? |
| 12314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12315 | rm -f conftest.er1 |
| 12316 | cat conftest.err >&5 |
| 12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12318 | (exit $ac_status); } && |
| 12319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12320 | { (case "(($ac_try" in |
| 12321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12322 | *) ac_try_echo=$ac_try;; |
| 12323 | esac |
| 12324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12325 | (eval "$ac_try") 2>&5 |
| 12326 | ac_status=$? |
| 12327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12328 | (exit $ac_status); }; } && |
| 12329 | { ac_try='test -s conftest$ac_exeext' |
| 12330 | { (case "(($ac_try" in |
| 12331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12332 | *) ac_try_echo=$ac_try;; |
| 12333 | esac |
| 12334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12335 | (eval "$ac_try") 2>&5 |
| 12336 | ac_status=$? |
| 12337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12338 | (exit $ac_status); }; }; then |
| 12339 | eval "$as_ac_var=yes" |
| 12340 | else |
| 12341 | echo "$as_me: failed program was:" >&5 |
| 12342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12343 | |
| 12344 | eval "$as_ac_var=no" |
| 12345 | fi |
| 12346 | |
| 12347 | rm -f core conftest.err conftest.$ac_objext \ |
| 12348 | conftest$ac_exeext conftest.$ac_ext |
| 12349 | fi |
| 12350 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12351 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12352 | echo "${ECHO_T}$ac_res" >&6; } |
| 12353 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12354 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12355 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12356 | _ACEOF |
| 12357 | break |
| 12358 | fi |
| 12359 | done |
| 12360 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12361 | |
| 12362 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12363 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12364 | do |
| 12365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12366 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12368 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12370 | else |
| 12371 | cat >conftest.$ac_ext <<_ACEOF |
| 12372 | /* confdefs.h. */ |
| 12373 | _ACEOF |
| 12374 | cat confdefs.h >>conftest.$ac_ext |
| 12375 | cat >>conftest.$ac_ext <<_ACEOF |
| 12376 | /* end confdefs.h. */ |
| 12377 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12378 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12379 | #define $ac_func innocuous_$ac_func |
| 12380 | |
| 12381 | /* System header to define __stub macros and hopefully few prototypes, |
| 12382 | which can conflict with char $ac_func (); below. |
| 12383 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12384 | <limits.h> exists even on freestanding compilers. */ |
| 12385 | |
| 12386 | #ifdef __STDC__ |
| 12387 | # include <limits.h> |
| 12388 | #else |
| 12389 | # include <assert.h> |
| 12390 | #endif |
| 12391 | |
| 12392 | #undef $ac_func |
| 12393 | |
| 12394 | /* Override any GCC internal prototype to avoid an error. |
| 12395 | Use char because int might match the return type of a GCC |
| 12396 | builtin and then its argument prototype would still apply. */ |
| 12397 | #ifdef __cplusplus |
| 12398 | extern "C" |
| 12399 | #endif |
| 12400 | char $ac_func (); |
| 12401 | /* The GNU C library defines this for functions which it implements |
| 12402 | to always fail with ENOSYS. Some functions are actually named |
| 12403 | something starting with __ and the normal name is an alias. */ |
| 12404 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12405 | choke me |
| 12406 | #endif |
| 12407 | |
| 12408 | int |
| 12409 | main () |
| 12410 | { |
| 12411 | return $ac_func (); |
| 12412 | ; |
| 12413 | return 0; |
| 12414 | } |
| 12415 | _ACEOF |
| 12416 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12417 | if { (ac_try="$ac_link" |
| 12418 | case "(($ac_try" in |
| 12419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12420 | *) ac_try_echo=$ac_try;; |
| 12421 | esac |
| 12422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12423 | (eval "$ac_link") 2>conftest.er1 |
| 12424 | ac_status=$? |
| 12425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12426 | rm -f conftest.er1 |
| 12427 | cat conftest.err >&5 |
| 12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12429 | (exit $ac_status); } && |
| 12430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12431 | { (case "(($ac_try" in |
| 12432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12433 | *) ac_try_echo=$ac_try;; |
| 12434 | esac |
| 12435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12436 | (eval "$ac_try") 2>&5 |
| 12437 | ac_status=$? |
| 12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12439 | (exit $ac_status); }; } && |
| 12440 | { ac_try='test -s conftest$ac_exeext' |
| 12441 | { (case "(($ac_try" in |
| 12442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12443 | *) ac_try_echo=$ac_try;; |
| 12444 | esac |
| 12445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12446 | (eval "$ac_try") 2>&5 |
| 12447 | ac_status=$? |
| 12448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12449 | (exit $ac_status); }; }; then |
| 12450 | eval "$as_ac_var=yes" |
| 12451 | else |
| 12452 | echo "$as_me: failed program was:" >&5 |
| 12453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12454 | |
| 12455 | eval "$as_ac_var=no" |
| 12456 | fi |
| 12457 | |
| 12458 | rm -f core conftest.err conftest.$ac_objext \ |
| 12459 | conftest$ac_exeext conftest.$ac_ext |
| 12460 | fi |
| 12461 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12462 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12463 | echo "${ECHO_T}$ac_res" >&6; } |
| 12464 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12465 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12466 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12467 | _ACEOF |
| 12468 | break |
| 12469 | fi |
| 12470 | done |
| 12471 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12472 | |
| 12473 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12474 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12475 | do |
| 12476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12477 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12479 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12481 | else |
| 12482 | cat >conftest.$ac_ext <<_ACEOF |
| 12483 | /* confdefs.h. */ |
| 12484 | _ACEOF |
| 12485 | cat confdefs.h >>conftest.$ac_ext |
| 12486 | cat >>conftest.$ac_ext <<_ACEOF |
| 12487 | /* end confdefs.h. */ |
| 12488 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12490 | #define $ac_func innocuous_$ac_func |
| 12491 | |
| 12492 | /* System header to define __stub macros and hopefully few prototypes, |
| 12493 | which can conflict with char $ac_func (); below. |
| 12494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12495 | <limits.h> exists even on freestanding compilers. */ |
| 12496 | |
| 12497 | #ifdef __STDC__ |
| 12498 | # include <limits.h> |
| 12499 | #else |
| 12500 | # include <assert.h> |
| 12501 | #endif |
| 12502 | |
| 12503 | #undef $ac_func |
| 12504 | |
| 12505 | /* Override any GCC internal prototype to avoid an error. |
| 12506 | Use char because int might match the return type of a GCC |
| 12507 | builtin and then its argument prototype would still apply. */ |
| 12508 | #ifdef __cplusplus |
| 12509 | extern "C" |
| 12510 | #endif |
| 12511 | char $ac_func (); |
| 12512 | /* The GNU C library defines this for functions which it implements |
| 12513 | to always fail with ENOSYS. Some functions are actually named |
| 12514 | something starting with __ and the normal name is an alias. */ |
| 12515 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12516 | choke me |
| 12517 | #endif |
| 12518 | |
| 12519 | int |
| 12520 | main () |
| 12521 | { |
| 12522 | return $ac_func (); |
| 12523 | ; |
| 12524 | return 0; |
| 12525 | } |
| 12526 | _ACEOF |
| 12527 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12528 | if { (ac_try="$ac_link" |
| 12529 | case "(($ac_try" in |
| 12530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12531 | *) ac_try_echo=$ac_try;; |
| 12532 | esac |
| 12533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12534 | (eval "$ac_link") 2>conftest.er1 |
| 12535 | ac_status=$? |
| 12536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12537 | rm -f conftest.er1 |
| 12538 | cat conftest.err >&5 |
| 12539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12540 | (exit $ac_status); } && |
| 12541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12542 | { (case "(($ac_try" in |
| 12543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12544 | *) ac_try_echo=$ac_try;; |
| 12545 | esac |
| 12546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12547 | (eval "$ac_try") 2>&5 |
| 12548 | ac_status=$? |
| 12549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12550 | (exit $ac_status); }; } && |
| 12551 | { ac_try='test -s conftest$ac_exeext' |
| 12552 | { (case "(($ac_try" in |
| 12553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12554 | *) ac_try_echo=$ac_try;; |
| 12555 | esac |
| 12556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12557 | (eval "$ac_try") 2>&5 |
| 12558 | ac_status=$? |
| 12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12560 | (exit $ac_status); }; }; then |
| 12561 | eval "$as_ac_var=yes" |
| 12562 | else |
| 12563 | echo "$as_me: failed program was:" >&5 |
| 12564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12565 | |
| 12566 | eval "$as_ac_var=no" |
| 12567 | fi |
| 12568 | |
| 12569 | rm -f core conftest.err conftest.$ac_objext \ |
| 12570 | conftest$ac_exeext conftest.$ac_ext |
| 12571 | fi |
| 12572 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12573 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12574 | echo "${ECHO_T}$ac_res" >&6; } |
| 12575 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12576 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12577 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12578 | _ACEOF |
| 12579 | |
| 12580 | fi |
| 12581 | done |
| 12582 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12583 | |
| 12584 | |
| 12585 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12586 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12587 | do |
| 12588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12589 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12591 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12593 | else |
| 12594 | cat >conftest.$ac_ext <<_ACEOF |
| 12595 | /* confdefs.h. */ |
| 12596 | _ACEOF |
| 12597 | cat confdefs.h >>conftest.$ac_ext |
| 12598 | cat >>conftest.$ac_ext <<_ACEOF |
| 12599 | /* end confdefs.h. */ |
| 12600 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12602 | #define $ac_func innocuous_$ac_func |
| 12603 | |
| 12604 | /* System header to define __stub macros and hopefully few prototypes, |
| 12605 | which can conflict with char $ac_func (); below. |
| 12606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12607 | <limits.h> exists even on freestanding compilers. */ |
| 12608 | |
| 12609 | #ifdef __STDC__ |
| 12610 | # include <limits.h> |
| 12611 | #else |
| 12612 | # include <assert.h> |
| 12613 | #endif |
| 12614 | |
| 12615 | #undef $ac_func |
| 12616 | |
| 12617 | /* Override any GCC internal prototype to avoid an error. |
| 12618 | Use char because int might match the return type of a GCC |
| 12619 | builtin and then its argument prototype would still apply. */ |
| 12620 | #ifdef __cplusplus |
| 12621 | extern "C" |
| 12622 | #endif |
| 12623 | char $ac_func (); |
| 12624 | /* The GNU C library defines this for functions which it implements |
| 12625 | to always fail with ENOSYS. Some functions are actually named |
| 12626 | something starting with __ and the normal name is an alias. */ |
| 12627 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12628 | choke me |
| 12629 | #endif |
| 12630 | |
| 12631 | int |
| 12632 | main () |
| 12633 | { |
| 12634 | return $ac_func (); |
| 12635 | ; |
| 12636 | return 0; |
| 12637 | } |
| 12638 | _ACEOF |
| 12639 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12640 | if { (ac_try="$ac_link" |
| 12641 | case "(($ac_try" in |
| 12642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12643 | *) ac_try_echo=$ac_try;; |
| 12644 | esac |
| 12645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12646 | (eval "$ac_link") 2>conftest.er1 |
| 12647 | ac_status=$? |
| 12648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12649 | rm -f conftest.er1 |
| 12650 | cat conftest.err >&5 |
| 12651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12652 | (exit $ac_status); } && |
| 12653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12654 | { (case "(($ac_try" in |
| 12655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12656 | *) ac_try_echo=$ac_try;; |
| 12657 | esac |
| 12658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12659 | (eval "$ac_try") 2>&5 |
| 12660 | ac_status=$? |
| 12661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12662 | (exit $ac_status); }; } && |
| 12663 | { ac_try='test -s conftest$ac_exeext' |
| 12664 | { (case "(($ac_try" in |
| 12665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12666 | *) ac_try_echo=$ac_try;; |
| 12667 | esac |
| 12668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12669 | (eval "$ac_try") 2>&5 |
| 12670 | ac_status=$? |
| 12671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12672 | (exit $ac_status); }; }; then |
| 12673 | eval "$as_ac_var=yes" |
| 12674 | else |
| 12675 | echo "$as_me: failed program was:" >&5 |
| 12676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12677 | |
| 12678 | eval "$as_ac_var=no" |
| 12679 | fi |
| 12680 | |
| 12681 | rm -f core conftest.err conftest.$ac_objext \ |
| 12682 | conftest$ac_exeext conftest.$ac_ext |
| 12683 | fi |
| 12684 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12685 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12686 | echo "${ECHO_T}$ac_res" >&6; } |
| 12687 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12688 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12689 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12690 | _ACEOF |
| 12691 | |
| 12692 | fi |
| 12693 | done |
| 12694 | |
| 12695 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12696 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12697 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12698 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 12699 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12700 | LLVMGCCCOMMAND="$LLVMGCC" |
| 12701 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12702 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12703 | |
| 12704 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12705 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12706 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 12707 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12708 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12710 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 12711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12712 | else |
| 12713 | case $LLVMGCC in |
| 12714 | [\\/]* | ?:[\\/]*) |
| 12715 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 12716 | ;; |
| 12717 | *) |
| 12718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12719 | for as_dir in $PATH |
| 12720 | do |
| 12721 | IFS=$as_save_IFS |
| 12722 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12724 | 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] | 12725 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12727 | break 2 |
| 12728 | fi |
| 12729 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12730 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12731 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12732 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12733 | ;; |
| 12734 | esac |
| 12735 | fi |
| 12736 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12737 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12738 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 12739 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12740 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12741 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12742 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12743 | fi |
| 12744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12745 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12746 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 12747 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12748 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12750 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12752 | else |
| 12753 | case $LLVMGXX in |
| 12754 | [\\/]* | ?:[\\/]*) |
| 12755 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 12756 | ;; |
| 12757 | *) |
| 12758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12759 | for as_dir in $PATH |
| 12760 | do |
| 12761 | IFS=$as_save_IFS |
| 12762 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12764 | 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] | 12765 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12767 | break 2 |
| 12768 | fi |
| 12769 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12770 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12771 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12772 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12773 | ;; |
| 12774 | esac |
| 12775 | fi |
| 12776 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12777 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12778 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 12779 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12780 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12781 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12782 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12783 | fi |
| 12784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12785 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12786 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12787 | if test -z "$LLVMGCC"; then |
| 12788 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12789 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12790 | fi |
| 12791 | if test -z "$LLVMGXX"; then |
| 12792 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12793 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12794 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12795 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12796 | LLVMGCC=$LLVMGCC |
| 12797 | |
| 12798 | LLVMGXX=$LLVMGXX |
| 12799 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12800 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12801 | |
| 12802 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12803 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12804 | fi |
| 12805 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12806 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12807 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12808 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12809 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12810 | ICC=no |
| 12811 | IXX=no |
| 12812 | case $CC in |
| 12813 | icc*|icpc*) |
| 12814 | ICC=yes |
| 12815 | IXX=yes |
| 12816 | ;; |
| 12817 | *) |
| 12818 | ;; |
| 12819 | esac |
| 12820 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12821 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12822 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12823 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12824 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12825 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12826 | fi |
| 12827 | |
| 12828 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12829 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12830 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 12831 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 12832 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12833 | fi |
| 12834 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12835 | if test "$GCC" = "yes" |
| 12836 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12837 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12838 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12839 | #error Unsupported GCC version |
| 12840 | #endif |
| 12841 | |
| 12842 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12843 | rm -f conftest.$ac_objext |
| 12844 | if { (ac_try="$ac_compile" |
| 12845 | case "(($ac_try" in |
| 12846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12847 | *) ac_try_echo=$ac_try;; |
| 12848 | esac |
| 12849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12850 | (eval "$ac_compile") 2>conftest.er1 |
| 12851 | ac_status=$? |
| 12852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12853 | rm -f conftest.er1 |
| 12854 | cat conftest.err >&5 |
| 12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12856 | (exit $ac_status); } && |
| 12857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12858 | { (case "(($ac_try" in |
| 12859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12860 | *) ac_try_echo=$ac_try;; |
| 12861 | esac |
| 12862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12863 | (eval "$ac_try") 2>&5 |
| 12864 | ac_status=$? |
| 12865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12866 | (exit $ac_status); }; } && |
| 12867 | { ac_try='test -s conftest.$ac_objext' |
| 12868 | { (case "(($ac_try" in |
| 12869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12870 | *) ac_try_echo=$ac_try;; |
| 12871 | esac |
| 12872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12873 | (eval "$ac_try") 2>&5 |
| 12874 | ac_status=$? |
| 12875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12876 | (exit $ac_status); }; }; then |
| 12877 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12878 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12879 | echo "$as_me: failed program was:" >&5 |
| 12880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12881 | |
| 12882 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12883 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12884 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12885 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12886 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12888 | fi |
| 12889 | |
| 12890 | if test -z "$llvm_cv_gnu_make_command" |
| 12891 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12892 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12893 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12894 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12895 | fi |
| 12896 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12897 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12898 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12899 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12900 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12901 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12902 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 12903 | |
| 12904 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 12905 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12906 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 12907 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12908 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12909 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12910 | |
| 12911 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12912 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12913 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12915 | else |
| 12916 | ac_check_lib_save_LIBS=$LIBS |
| 12917 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12918 | cat >conftest.$ac_ext <<_ACEOF |
| 12919 | /* confdefs.h. */ |
| 12920 | _ACEOF |
| 12921 | cat confdefs.h >>conftest.$ac_ext |
| 12922 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12923 | /* end confdefs.h. */ |
| 12924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12925 | /* Override any GCC internal prototype to avoid an error. |
| 12926 | Use char because int might match the return type of a GCC |
| 12927 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12928 | #ifdef __cplusplus |
| 12929 | extern "C" |
| 12930 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12931 | char sin (); |
| 12932 | int |
| 12933 | main () |
| 12934 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12935 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12936 | ; |
| 12937 | return 0; |
| 12938 | } |
| 12939 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12941 | if { (ac_try="$ac_link" |
| 12942 | case "(($ac_try" in |
| 12943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12944 | *) ac_try_echo=$ac_try;; |
| 12945 | esac |
| 12946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12947 | (eval "$ac_link") 2>conftest.er1 |
| 12948 | ac_status=$? |
| 12949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12950 | rm -f conftest.er1 |
| 12951 | cat conftest.err >&5 |
| 12952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12953 | (exit $ac_status); } && |
| 12954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12955 | { (case "(($ac_try" in |
| 12956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12957 | *) ac_try_echo=$ac_try;; |
| 12958 | esac |
| 12959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12960 | (eval "$ac_try") 2>&5 |
| 12961 | ac_status=$? |
| 12962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12963 | (exit $ac_status); }; } && |
| 12964 | { ac_try='test -s conftest$ac_exeext' |
| 12965 | { (case "(($ac_try" in |
| 12966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12967 | *) ac_try_echo=$ac_try;; |
| 12968 | esac |
| 12969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12970 | (eval "$ac_try") 2>&5 |
| 12971 | ac_status=$? |
| 12972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12973 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12974 | ac_cv_lib_m_sin=yes |
| 12975 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12976 | echo "$as_me: failed program was:" >&5 |
| 12977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12978 | |
| 12979 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12980 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12981 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12982 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12983 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12984 | LIBS=$ac_check_lib_save_LIBS |
| 12985 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12986 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 12987 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 12988 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12989 | cat >>confdefs.h <<_ACEOF |
| 12990 | #define HAVE_LIBM 1 |
| 12991 | _ACEOF |
| 12992 | |
| 12993 | LIBS="-lm $LIBS" |
| 12994 | |
| 12995 | fi |
| 12996 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12997 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12998 | |
| 12999 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13000 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13001 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13003 | else |
| 13004 | ac_check_lib_save_LIBS=$LIBS |
| 13005 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13006 | cat >conftest.$ac_ext <<_ACEOF |
| 13007 | /* confdefs.h. */ |
| 13008 | _ACEOF |
| 13009 | cat confdefs.h >>conftest.$ac_ext |
| 13010 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13011 | /* end confdefs.h. */ |
| 13012 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13013 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13014 | int |
| 13015 | main () |
| 13016 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13017 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13018 | ; |
| 13019 | return 0; |
| 13020 | } |
| 13021 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13022 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13023 | if { (ac_try="$ac_link" |
| 13024 | case "(($ac_try" in |
| 13025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13026 | *) ac_try_echo=$ac_try;; |
| 13027 | esac |
| 13028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13029 | (eval "$ac_link") 2>conftest.er1 |
| 13030 | ac_status=$? |
| 13031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13032 | rm -f conftest.er1 |
| 13033 | cat conftest.err >&5 |
| 13034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13035 | (exit $ac_status); } && |
| 13036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13037 | { (case "(($ac_try" in |
| 13038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13039 | *) ac_try_echo=$ac_try;; |
| 13040 | esac |
| 13041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13042 | (eval "$ac_try") 2>&5 |
| 13043 | ac_status=$? |
| 13044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13045 | (exit $ac_status); }; } && |
| 13046 | { ac_try='test -s conftest$ac_exeext' |
| 13047 | { (case "(($ac_try" in |
| 13048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13049 | *) ac_try_echo=$ac_try;; |
| 13050 | esac |
| 13051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13052 | (eval "$ac_try") 2>&5 |
| 13053 | ac_status=$? |
| 13054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13055 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13056 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13057 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13058 | echo "$as_me: failed program was:" >&5 |
| 13059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13060 | |
| 13061 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13062 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13063 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13064 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13065 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13066 | LIBS=$ac_check_lib_save_LIBS |
| 13067 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13068 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13069 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13070 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13071 | cat >>confdefs.h <<_ACEOF |
| 13072 | #define HAVE_LIBIMAGEHLP 1 |
| 13073 | _ACEOF |
| 13074 | |
| 13075 | LIBS="-limagehlp $LIBS" |
| 13076 | |
| 13077 | fi |
| 13078 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13079 | |
| 13080 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13081 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13082 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13084 | else |
| 13085 | ac_check_lib_save_LIBS=$LIBS |
| 13086 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13087 | cat >conftest.$ac_ext <<_ACEOF |
| 13088 | /* confdefs.h. */ |
| 13089 | _ACEOF |
| 13090 | cat confdefs.h >>conftest.$ac_ext |
| 13091 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13092 | /* end confdefs.h. */ |
| 13093 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13094 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13095 | int |
| 13096 | main () |
| 13097 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13098 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13099 | ; |
| 13100 | return 0; |
| 13101 | } |
| 13102 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13103 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13104 | if { (ac_try="$ac_link" |
| 13105 | case "(($ac_try" in |
| 13106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13107 | *) ac_try_echo=$ac_try;; |
| 13108 | esac |
| 13109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13110 | (eval "$ac_link") 2>conftest.er1 |
| 13111 | ac_status=$? |
| 13112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13113 | rm -f conftest.er1 |
| 13114 | cat conftest.err >&5 |
| 13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13116 | (exit $ac_status); } && |
| 13117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13118 | { (case "(($ac_try" in |
| 13119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13120 | *) ac_try_echo=$ac_try;; |
| 13121 | esac |
| 13122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13123 | (eval "$ac_try") 2>&5 |
| 13124 | ac_status=$? |
| 13125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13126 | (exit $ac_status); }; } && |
| 13127 | { ac_try='test -s conftest$ac_exeext' |
| 13128 | { (case "(($ac_try" in |
| 13129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13130 | *) ac_try_echo=$ac_try;; |
| 13131 | esac |
| 13132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13133 | (eval "$ac_try") 2>&5 |
| 13134 | ac_status=$? |
| 13135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13136 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13137 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13138 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13139 | echo "$as_me: failed program was:" >&5 |
| 13140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13141 | |
| 13142 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13143 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13144 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13145 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13146 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13147 | LIBS=$ac_check_lib_save_LIBS |
| 13148 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13149 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13150 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13151 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13152 | cat >>confdefs.h <<_ACEOF |
| 13153 | #define HAVE_LIBPSAPI 1 |
| 13154 | _ACEOF |
| 13155 | |
| 13156 | LIBS="-lpsapi $LIBS" |
| 13157 | |
| 13158 | fi |
| 13159 | |
| 13160 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13161 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13162 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13163 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13164 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13166 | else |
| 13167 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13168 | cat >conftest.$ac_ext <<_ACEOF |
| 13169 | /* confdefs.h. */ |
| 13170 | _ACEOF |
| 13171 | cat confdefs.h >>conftest.$ac_ext |
| 13172 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13173 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13175 | /* Override any GCC internal prototype to avoid an error. |
| 13176 | Use char because int might match the return type of a GCC |
| 13177 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13178 | #ifdef __cplusplus |
| 13179 | extern "C" |
| 13180 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13181 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13182 | int |
| 13183 | main () |
| 13184 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13185 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13186 | ; |
| 13187 | return 0; |
| 13188 | } |
| 13189 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13190 | for ac_lib in '' dl; do |
| 13191 | if test -z "$ac_lib"; then |
| 13192 | ac_res="none required" |
| 13193 | else |
| 13194 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13195 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13196 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13197 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13198 | if { (ac_try="$ac_link" |
| 13199 | case "(($ac_try" in |
| 13200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13201 | *) ac_try_echo=$ac_try;; |
| 13202 | esac |
| 13203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13204 | (eval "$ac_link") 2>conftest.er1 |
| 13205 | ac_status=$? |
| 13206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13207 | rm -f conftest.er1 |
| 13208 | cat conftest.err >&5 |
| 13209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13210 | (exit $ac_status); } && |
| 13211 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13212 | { (case "(($ac_try" in |
| 13213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13214 | *) ac_try_echo=$ac_try;; |
| 13215 | esac |
| 13216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13217 | (eval "$ac_try") 2>&5 |
| 13218 | ac_status=$? |
| 13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13220 | (exit $ac_status); }; } && |
| 13221 | { ac_try='test -s conftest$ac_exeext' |
| 13222 | { (case "(($ac_try" in |
| 13223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13224 | *) ac_try_echo=$ac_try;; |
| 13225 | esac |
| 13226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13227 | (eval "$ac_try") 2>&5 |
| 13228 | ac_status=$? |
| 13229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13230 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13231 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13232 | else |
| 13233 | echo "$as_me: failed program was:" >&5 |
| 13234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13235 | |
| 13236 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13237 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13238 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13239 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13240 | conftest$ac_exeext |
| 13241 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13242 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13244 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13245 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13246 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13247 | else |
| 13248 | ac_cv_search_dlopen=no |
| 13249 | fi |
| 13250 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13251 | LIBS=$ac_func_search_save_LIBS |
| 13252 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13253 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13254 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13255 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13256 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13257 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13259 | cat >>confdefs.h <<\_ACEOF |
| 13260 | #define HAVE_DLOPEN 1 |
| 13261 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13262 | |
| 13263 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13264 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13265 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13266 | fi |
| 13267 | |
| 13268 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13269 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13270 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13271 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13272 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13274 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13275 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13276 | cat >conftest.$ac_ext <<_ACEOF |
| 13277 | /* confdefs.h. */ |
| 13278 | _ACEOF |
| 13279 | cat confdefs.h >>conftest.$ac_ext |
| 13280 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13281 | /* end confdefs.h. */ |
| 13282 | |
| 13283 | /* Override any GCC internal prototype to avoid an error. |
| 13284 | Use char because int might match the return type of a GCC |
| 13285 | builtin and then its argument prototype would still apply. */ |
| 13286 | #ifdef __cplusplus |
| 13287 | extern "C" |
| 13288 | #endif |
| 13289 | char ffi_call (); |
| 13290 | int |
| 13291 | main () |
| 13292 | { |
| 13293 | return ffi_call (); |
| 13294 | ; |
| 13295 | return 0; |
| 13296 | } |
| 13297 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13298 | for ac_lib in '' ffi; do |
| 13299 | if test -z "$ac_lib"; then |
| 13300 | ac_res="none required" |
| 13301 | else |
| 13302 | ac_res=-l$ac_lib |
| 13303 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13304 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13306 | if { (ac_try="$ac_link" |
| 13307 | case "(($ac_try" in |
| 13308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13309 | *) ac_try_echo=$ac_try;; |
| 13310 | esac |
| 13311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13312 | (eval "$ac_link") 2>conftest.er1 |
| 13313 | ac_status=$? |
| 13314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13315 | rm -f conftest.er1 |
| 13316 | cat conftest.err >&5 |
| 13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13318 | (exit $ac_status); } && |
| 13319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13320 | { (case "(($ac_try" in |
| 13321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13322 | *) ac_try_echo=$ac_try;; |
| 13323 | esac |
| 13324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13325 | (eval "$ac_try") 2>&5 |
| 13326 | ac_status=$? |
| 13327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13328 | (exit $ac_status); }; } && |
| 13329 | { ac_try='test -s conftest$ac_exeext' |
| 13330 | { (case "(($ac_try" in |
| 13331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13332 | *) ac_try_echo=$ac_try;; |
| 13333 | esac |
| 13334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13335 | (eval "$ac_try") 2>&5 |
| 13336 | ac_status=$? |
| 13337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13338 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13339 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13340 | else |
| 13341 | echo "$as_me: failed program was:" >&5 |
| 13342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13343 | |
| 13344 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13345 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13346 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13347 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13348 | conftest$ac_exeext |
| 13349 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13350 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13351 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13352 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13353 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13354 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13355 | else |
| 13356 | ac_cv_search_ffi_call=no |
| 13357 | fi |
| 13358 | rm conftest.$ac_ext |
| 13359 | LIBS=$ac_func_search_save_LIBS |
| 13360 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13361 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13362 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13363 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13364 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13365 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13366 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13367 | cat >>confdefs.h <<\_ACEOF |
| 13368 | #define HAVE_FFI_CALL 1 |
| 13369 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13370 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13371 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13372 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13373 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13374 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13375 | fi |
| 13376 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13377 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13378 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13379 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13380 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13381 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13383 | else |
| 13384 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13385 | cat >conftest.$ac_ext <<_ACEOF |
| 13386 | /* confdefs.h. */ |
| 13387 | _ACEOF |
| 13388 | cat confdefs.h >>conftest.$ac_ext |
| 13389 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13390 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13392 | /* Override any GCC internal prototype to avoid an error. |
| 13393 | Use char because int might match the return type of a GCC |
| 13394 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13395 | #ifdef __cplusplus |
| 13396 | extern "C" |
| 13397 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13398 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13399 | int |
| 13400 | main () |
| 13401 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13402 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13403 | ; |
| 13404 | return 0; |
| 13405 | } |
| 13406 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13407 | for ac_lib in '' malloc; do |
| 13408 | if test -z "$ac_lib"; then |
| 13409 | ac_res="none required" |
| 13410 | else |
| 13411 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13412 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13413 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13415 | if { (ac_try="$ac_link" |
| 13416 | case "(($ac_try" in |
| 13417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13418 | *) ac_try_echo=$ac_try;; |
| 13419 | esac |
| 13420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13421 | (eval "$ac_link") 2>conftest.er1 |
| 13422 | ac_status=$? |
| 13423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13424 | rm -f conftest.er1 |
| 13425 | cat conftest.err >&5 |
| 13426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13427 | (exit $ac_status); } && |
| 13428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13429 | { (case "(($ac_try" in |
| 13430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13431 | *) ac_try_echo=$ac_try;; |
| 13432 | esac |
| 13433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13434 | (eval "$ac_try") 2>&5 |
| 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); }; } && |
| 13438 | { ac_try='test -s conftest$ac_exeext' |
| 13439 | { (case "(($ac_try" in |
| 13440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13441 | *) ac_try_echo=$ac_try;; |
| 13442 | esac |
| 13443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13444 | (eval "$ac_try") 2>&5 |
| 13445 | ac_status=$? |
| 13446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13447 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13448 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13449 | else |
| 13450 | echo "$as_me: failed program was:" >&5 |
| 13451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13452 | |
| 13453 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13454 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13455 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13456 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13457 | conftest$ac_exeext |
| 13458 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13459 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13460 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13461 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13462 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13463 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13464 | else |
| 13465 | ac_cv_search_mallinfo=no |
| 13466 | fi |
| 13467 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13468 | LIBS=$ac_func_search_save_LIBS |
| 13469 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13470 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13471 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13472 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13473 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13474 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13475 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13476 | cat >>confdefs.h <<\_ACEOF |
| 13477 | #define HAVE_MALLINFO 1 |
| 13478 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13479 | |
| 13480 | fi |
| 13481 | |
| 13482 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13483 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13484 | |
| 13485 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13486 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13487 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13489 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13490 | ac_check_lib_save_LIBS=$LIBS |
| 13491 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13492 | cat >conftest.$ac_ext <<_ACEOF |
| 13493 | /* confdefs.h. */ |
| 13494 | _ACEOF |
| 13495 | cat confdefs.h >>conftest.$ac_ext |
| 13496 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13497 | /* end confdefs.h. */ |
| 13498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13499 | /* Override any GCC internal prototype to avoid an error. |
| 13500 | Use char because int might match the return type of a GCC |
| 13501 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13502 | #ifdef __cplusplus |
| 13503 | extern "C" |
| 13504 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13505 | char pthread_mutex_init (); |
| 13506 | int |
| 13507 | main () |
| 13508 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13509 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13510 | ; |
| 13511 | return 0; |
| 13512 | } |
| 13513 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13514 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13515 | if { (ac_try="$ac_link" |
| 13516 | case "(($ac_try" in |
| 13517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13518 | *) ac_try_echo=$ac_try;; |
| 13519 | esac |
| 13520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13521 | (eval "$ac_link") 2>conftest.er1 |
| 13522 | ac_status=$? |
| 13523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13524 | rm -f conftest.er1 |
| 13525 | cat conftest.err >&5 |
| 13526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13527 | (exit $ac_status); } && |
| 13528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13529 | { (case "(($ac_try" in |
| 13530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13531 | *) ac_try_echo=$ac_try;; |
| 13532 | esac |
| 13533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13534 | (eval "$ac_try") 2>&5 |
| 13535 | ac_status=$? |
| 13536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13537 | (exit $ac_status); }; } && |
| 13538 | { ac_try='test -s conftest$ac_exeext' |
| 13539 | { (case "(($ac_try" in |
| 13540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13541 | *) ac_try_echo=$ac_try;; |
| 13542 | esac |
| 13543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13544 | (eval "$ac_try") 2>&5 |
| 13545 | ac_status=$? |
| 13546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13547 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13548 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13549 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13550 | echo "$as_me: failed program was:" >&5 |
| 13551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13552 | |
| 13553 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13554 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13555 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13556 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13557 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13558 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13560 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13561 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13562 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13563 | cat >>confdefs.h <<_ACEOF |
| 13564 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13565 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13566 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13567 | LIBS="-lpthread $LIBS" |
| 13568 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13569 | fi |
| 13570 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13571 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13572 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13573 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13575 | else |
| 13576 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13577 | cat >conftest.$ac_ext <<_ACEOF |
| 13578 | /* confdefs.h. */ |
| 13579 | _ACEOF |
| 13580 | cat confdefs.h >>conftest.$ac_ext |
| 13581 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13582 | /* end confdefs.h. */ |
| 13583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13584 | /* Override any GCC internal prototype to avoid an error. |
| 13585 | Use char because int might match the return type of a GCC |
| 13586 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13587 | #ifdef __cplusplus |
| 13588 | extern "C" |
| 13589 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13590 | char pthread_mutex_lock (); |
| 13591 | int |
| 13592 | main () |
| 13593 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13594 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13595 | ; |
| 13596 | return 0; |
| 13597 | } |
| 13598 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13599 | for ac_lib in '' pthread; do |
| 13600 | if test -z "$ac_lib"; then |
| 13601 | ac_res="none required" |
| 13602 | else |
| 13603 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13604 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13605 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13606 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13607 | if { (ac_try="$ac_link" |
| 13608 | case "(($ac_try" in |
| 13609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13610 | *) ac_try_echo=$ac_try;; |
| 13611 | esac |
| 13612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13613 | (eval "$ac_link") 2>conftest.er1 |
| 13614 | ac_status=$? |
| 13615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13616 | rm -f conftest.er1 |
| 13617 | cat conftest.err >&5 |
| 13618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13619 | (exit $ac_status); } && |
| 13620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13621 | { (case "(($ac_try" in |
| 13622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13623 | *) ac_try_echo=$ac_try;; |
| 13624 | esac |
| 13625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13626 | (eval "$ac_try") 2>&5 |
| 13627 | ac_status=$? |
| 13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13629 | (exit $ac_status); }; } && |
| 13630 | { ac_try='test -s conftest$ac_exeext' |
| 13631 | { (case "(($ac_try" in |
| 13632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13633 | *) ac_try_echo=$ac_try;; |
| 13634 | esac |
| 13635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13636 | (eval "$ac_try") 2>&5 |
| 13637 | ac_status=$? |
| 13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13639 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13640 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13641 | else |
| 13642 | echo "$as_me: failed program was:" >&5 |
| 13643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13644 | |
| 13645 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13646 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13647 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13648 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13649 | conftest$ac_exeext |
| 13650 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13651 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13652 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13653 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13654 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13655 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13656 | else |
| 13657 | ac_cv_search_pthread_mutex_lock=no |
| 13658 | fi |
| 13659 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13660 | LIBS=$ac_func_search_save_LIBS |
| 13661 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13662 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 13663 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13664 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13665 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13666 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13668 | cat >>confdefs.h <<\_ACEOF |
| 13669 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 13670 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13671 | |
| 13672 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13673 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13674 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 13675 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 13676 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13678 | else |
| 13679 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13680 | cat >conftest.$ac_ext <<_ACEOF |
| 13681 | /* confdefs.h. */ |
| 13682 | _ACEOF |
| 13683 | cat confdefs.h >>conftest.$ac_ext |
| 13684 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13685 | /* end confdefs.h. */ |
| 13686 | |
| 13687 | /* Override any GCC internal prototype to avoid an error. |
| 13688 | Use char because int might match the return type of a GCC |
| 13689 | builtin and then its argument prototype would still apply. */ |
| 13690 | #ifdef __cplusplus |
| 13691 | extern "C" |
| 13692 | #endif |
| 13693 | char pthread_rwlock_init (); |
| 13694 | int |
| 13695 | main () |
| 13696 | { |
| 13697 | return pthread_rwlock_init (); |
| 13698 | ; |
| 13699 | return 0; |
| 13700 | } |
| 13701 | _ACEOF |
| 13702 | for ac_lib in '' pthread; do |
| 13703 | if test -z "$ac_lib"; then |
| 13704 | ac_res="none required" |
| 13705 | else |
| 13706 | ac_res=-l$ac_lib |
| 13707 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13708 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13709 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13710 | if { (ac_try="$ac_link" |
| 13711 | case "(($ac_try" in |
| 13712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13713 | *) ac_try_echo=$ac_try;; |
| 13714 | esac |
| 13715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13716 | (eval "$ac_link") 2>conftest.er1 |
| 13717 | ac_status=$? |
| 13718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13719 | rm -f conftest.er1 |
| 13720 | cat conftest.err >&5 |
| 13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13722 | (exit $ac_status); } && |
| 13723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13724 | { (case "(($ac_try" in |
| 13725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13726 | *) ac_try_echo=$ac_try;; |
| 13727 | esac |
| 13728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13729 | (eval "$ac_try") 2>&5 |
| 13730 | ac_status=$? |
| 13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13732 | (exit $ac_status); }; } && |
| 13733 | { ac_try='test -s conftest$ac_exeext' |
| 13734 | { (case "(($ac_try" in |
| 13735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13736 | *) ac_try_echo=$ac_try;; |
| 13737 | esac |
| 13738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13739 | (eval "$ac_try") 2>&5 |
| 13740 | ac_status=$? |
| 13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13742 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13743 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13744 | else |
| 13745 | echo "$as_me: failed program was:" >&5 |
| 13746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13747 | |
| 13748 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13749 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13750 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13751 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13752 | conftest$ac_exeext |
| 13753 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13754 | break |
| 13755 | fi |
| 13756 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13757 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13758 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13759 | else |
| 13760 | ac_cv_search_pthread_rwlock_init=no |
| 13761 | fi |
| 13762 | rm conftest.$ac_ext |
| 13763 | LIBS=$ac_func_search_save_LIBS |
| 13764 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13765 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13766 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13767 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13768 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13769 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13771 | cat >>confdefs.h <<\_ACEOF |
| 13772 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13773 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13774 | |
| 13775 | fi |
| 13776 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13777 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13778 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13779 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13781 | else |
| 13782 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13783 | cat >conftest.$ac_ext <<_ACEOF |
| 13784 | /* confdefs.h. */ |
| 13785 | _ACEOF |
| 13786 | cat confdefs.h >>conftest.$ac_ext |
| 13787 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13788 | /* end confdefs.h. */ |
| 13789 | |
| 13790 | /* Override any GCC internal prototype to avoid an error. |
| 13791 | Use char because int might match the return type of a GCC |
| 13792 | builtin and then its argument prototype would still apply. */ |
| 13793 | #ifdef __cplusplus |
| 13794 | extern "C" |
| 13795 | #endif |
| 13796 | char pthread_getspecific (); |
| 13797 | int |
| 13798 | main () |
| 13799 | { |
| 13800 | return pthread_getspecific (); |
| 13801 | ; |
| 13802 | return 0; |
| 13803 | } |
| 13804 | _ACEOF |
| 13805 | for ac_lib in '' pthread; do |
| 13806 | if test -z "$ac_lib"; then |
| 13807 | ac_res="none required" |
| 13808 | else |
| 13809 | ac_res=-l$ac_lib |
| 13810 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13811 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13812 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13813 | if { (ac_try="$ac_link" |
| 13814 | case "(($ac_try" in |
| 13815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13816 | *) ac_try_echo=$ac_try;; |
| 13817 | esac |
| 13818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13819 | (eval "$ac_link") 2>conftest.er1 |
| 13820 | ac_status=$? |
| 13821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13822 | rm -f conftest.er1 |
| 13823 | cat conftest.err >&5 |
| 13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13825 | (exit $ac_status); } && |
| 13826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13827 | { (case "(($ac_try" in |
| 13828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13829 | *) ac_try_echo=$ac_try;; |
| 13830 | esac |
| 13831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13832 | (eval "$ac_try") 2>&5 |
| 13833 | ac_status=$? |
| 13834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13835 | (exit $ac_status); }; } && |
| 13836 | { ac_try='test -s conftest$ac_exeext' |
| 13837 | { (case "(($ac_try" in |
| 13838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13839 | *) ac_try_echo=$ac_try;; |
| 13840 | esac |
| 13841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13842 | (eval "$ac_try") 2>&5 |
| 13843 | ac_status=$? |
| 13844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13845 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13846 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13847 | else |
| 13848 | echo "$as_me: failed program was:" >&5 |
| 13849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13850 | |
| 13851 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13852 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13853 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13854 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13855 | conftest$ac_exeext |
| 13856 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13857 | break |
| 13858 | fi |
| 13859 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13860 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13861 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13862 | else |
| 13863 | ac_cv_search_pthread_getspecific=no |
| 13864 | fi |
| 13865 | rm conftest.$ac_ext |
| 13866 | LIBS=$ac_func_search_save_LIBS |
| 13867 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13868 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13869 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13870 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13871 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13872 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13873 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13874 | cat >>confdefs.h <<\_ACEOF |
| 13875 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13876 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13877 | |
| 13878 | fi |
| 13879 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13880 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13881 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13882 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13883 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13884 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13885 | withval=$with_udis86; |
| 13886 | USE_UDIS86=1 |
| 13887 | |
| 13888 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13889 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13890 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13891 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13892 | |
| 13893 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13894 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13895 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13897 | else |
| 13898 | ac_check_lib_save_LIBS=$LIBS |
| 13899 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13900 | cat >conftest.$ac_ext <<_ACEOF |
| 13901 | /* confdefs.h. */ |
| 13902 | _ACEOF |
| 13903 | cat confdefs.h >>conftest.$ac_ext |
| 13904 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13905 | /* end confdefs.h. */ |
| 13906 | |
| 13907 | /* Override any GCC internal prototype to avoid an error. |
| 13908 | Use char because int might match the return type of a GCC |
| 13909 | builtin and then its argument prototype would still apply. */ |
| 13910 | #ifdef __cplusplus |
| 13911 | extern "C" |
| 13912 | #endif |
| 13913 | char ud_init (); |
| 13914 | int |
| 13915 | main () |
| 13916 | { |
| 13917 | return ud_init (); |
| 13918 | ; |
| 13919 | return 0; |
| 13920 | } |
| 13921 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13922 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13923 | if { (ac_try="$ac_link" |
| 13924 | case "(($ac_try" in |
| 13925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13926 | *) ac_try_echo=$ac_try;; |
| 13927 | esac |
| 13928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13929 | (eval "$ac_link") 2>conftest.er1 |
| 13930 | ac_status=$? |
| 13931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13932 | rm -f conftest.er1 |
| 13933 | cat conftest.err >&5 |
| 13934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13935 | (exit $ac_status); } && |
| 13936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13937 | { (case "(($ac_try" in |
| 13938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13939 | *) ac_try_echo=$ac_try;; |
| 13940 | esac |
| 13941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13942 | (eval "$ac_try") 2>&5 |
| 13943 | ac_status=$? |
| 13944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13945 | (exit $ac_status); }; } && |
| 13946 | { ac_try='test -s conftest$ac_exeext' |
| 13947 | { (case "(($ac_try" in |
| 13948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13949 | *) ac_try_echo=$ac_try;; |
| 13950 | esac |
| 13951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13952 | (eval "$ac_try") 2>&5 |
| 13953 | ac_status=$? |
| 13954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13955 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13956 | ac_cv_lib_udis86_ud_init=yes |
| 13957 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13958 | echo "$as_me: failed program was:" >&5 |
| 13959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13960 | |
| 13961 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13962 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13963 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13964 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13965 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13966 | LIBS=$ac_check_lib_save_LIBS |
| 13967 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13968 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13969 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13970 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13971 | cat >>confdefs.h <<_ACEOF |
| 13972 | #define HAVE_LIBUDIS86 1 |
| 13973 | _ACEOF |
| 13974 | |
| 13975 | LIBS="-ludis86 $LIBS" |
| 13976 | |
| 13977 | else |
| 13978 | |
| 13979 | echo "Error! You need to have libudis86 around." |
| 13980 | exit -1 |
| 13981 | |
| 13982 | fi |
| 13983 | |
| 13984 | |
| 13985 | else |
| 13986 | USE_UDIS86=0 |
| 13987 | |
| 13988 | fi |
| 13989 | |
| 13990 | |
| 13991 | cat >>confdefs.h <<_ACEOF |
| 13992 | #define USE_UDIS86 $USE_UDIS86 |
| 13993 | _ACEOF |
| 13994 | |
| 13995 | |
| 13996 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13997 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13998 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13999 | withval=$with_oprofile; |
| 14000 | USE_OPROFILE=1 |
| 14001 | |
| 14002 | case "$withval" in |
| 14003 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14004 | no) llvm_cv_oppath= |
| 14005 | USE_OPROFILE=0 |
| 14006 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14007 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14008 | CPPFLAGS="-I${withval}/include";; |
| 14009 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14010 | if test -n "$llvm_cv_oppath" ; then |
| 14011 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14012 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14013 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14014 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14016 | else |
| 14017 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14018 | cat >conftest.$ac_ext <<_ACEOF |
| 14019 | /* confdefs.h. */ |
| 14020 | _ACEOF |
| 14021 | cat confdefs.h >>conftest.$ac_ext |
| 14022 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14023 | /* end confdefs.h. */ |
| 14024 | |
| 14025 | /* Override any GCC internal prototype to avoid an error. |
| 14026 | Use char because int might match the return type of a GCC |
| 14027 | builtin and then its argument prototype would still apply. */ |
| 14028 | #ifdef __cplusplus |
| 14029 | extern "C" |
| 14030 | #endif |
| 14031 | char bfd_init (); |
| 14032 | int |
| 14033 | main () |
| 14034 | { |
| 14035 | return bfd_init (); |
| 14036 | ; |
| 14037 | return 0; |
| 14038 | } |
| 14039 | _ACEOF |
| 14040 | for ac_lib in '' bfd; do |
| 14041 | if test -z "$ac_lib"; then |
| 14042 | ac_res="none required" |
| 14043 | else |
| 14044 | ac_res=-l$ac_lib |
| 14045 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14046 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14047 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14048 | if { (ac_try="$ac_link" |
| 14049 | case "(($ac_try" in |
| 14050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14051 | *) ac_try_echo=$ac_try;; |
| 14052 | esac |
| 14053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14054 | (eval "$ac_link") 2>conftest.er1 |
| 14055 | ac_status=$? |
| 14056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14057 | rm -f conftest.er1 |
| 14058 | cat conftest.err >&5 |
| 14059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14060 | (exit $ac_status); } && |
| 14061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14062 | { (case "(($ac_try" in |
| 14063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14064 | *) ac_try_echo=$ac_try;; |
| 14065 | esac |
| 14066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14067 | (eval "$ac_try") 2>&5 |
| 14068 | ac_status=$? |
| 14069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14070 | (exit $ac_status); }; } && |
| 14071 | { ac_try='test -s conftest$ac_exeext' |
| 14072 | { (case "(($ac_try" in |
| 14073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14074 | *) ac_try_echo=$ac_try;; |
| 14075 | esac |
| 14076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14077 | (eval "$ac_try") 2>&5 |
| 14078 | ac_status=$? |
| 14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14080 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14081 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14082 | else |
| 14083 | echo "$as_me: failed program was:" >&5 |
| 14084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14085 | |
| 14086 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14087 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14088 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14089 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14090 | conftest$ac_exeext |
| 14091 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14092 | break |
| 14093 | fi |
| 14094 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14095 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14096 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14097 | else |
| 14098 | ac_cv_search_bfd_init=no |
| 14099 | fi |
| 14100 | rm conftest.$ac_ext |
| 14101 | LIBS=$ac_func_search_save_LIBS |
| 14102 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14103 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14104 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14105 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14106 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14107 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14108 | |
| 14109 | fi |
| 14110 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14111 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14112 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14113 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14115 | else |
| 14116 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14117 | cat >conftest.$ac_ext <<_ACEOF |
| 14118 | /* confdefs.h. */ |
| 14119 | _ACEOF |
| 14120 | cat confdefs.h >>conftest.$ac_ext |
| 14121 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14122 | /* end confdefs.h. */ |
| 14123 | |
| 14124 | /* Override any GCC internal prototype to avoid an error. |
| 14125 | Use char because int might match the return type of a GCC |
| 14126 | builtin and then its argument prototype would still apply. */ |
| 14127 | #ifdef __cplusplus |
| 14128 | extern "C" |
| 14129 | #endif |
| 14130 | char op_open_agent (); |
| 14131 | int |
| 14132 | main () |
| 14133 | { |
| 14134 | return op_open_agent (); |
| 14135 | ; |
| 14136 | return 0; |
| 14137 | } |
| 14138 | _ACEOF |
| 14139 | for ac_lib in '' opagent; do |
| 14140 | if test -z "$ac_lib"; then |
| 14141 | ac_res="none required" |
| 14142 | else |
| 14143 | ac_res=-l$ac_lib |
| 14144 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14145 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14146 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14147 | if { (ac_try="$ac_link" |
| 14148 | case "(($ac_try" in |
| 14149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14150 | *) ac_try_echo=$ac_try;; |
| 14151 | esac |
| 14152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14153 | (eval "$ac_link") 2>conftest.er1 |
| 14154 | ac_status=$? |
| 14155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14156 | rm -f conftest.er1 |
| 14157 | cat conftest.err >&5 |
| 14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14159 | (exit $ac_status); } && |
| 14160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14161 | { (case "(($ac_try" in |
| 14162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14163 | *) ac_try_echo=$ac_try;; |
| 14164 | esac |
| 14165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14166 | (eval "$ac_try") 2>&5 |
| 14167 | ac_status=$? |
| 14168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14169 | (exit $ac_status); }; } && |
| 14170 | { ac_try='test -s conftest$ac_exeext' |
| 14171 | { (case "(($ac_try" in |
| 14172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14173 | *) ac_try_echo=$ac_try;; |
| 14174 | esac |
| 14175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14176 | (eval "$ac_try") 2>&5 |
| 14177 | ac_status=$? |
| 14178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14179 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14180 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14181 | else |
| 14182 | echo "$as_me: failed program was:" >&5 |
| 14183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14184 | |
| 14185 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14186 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14187 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14188 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14189 | conftest$ac_exeext |
| 14190 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14191 | break |
| 14192 | fi |
| 14193 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14194 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14195 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14196 | else |
| 14197 | ac_cv_search_op_open_agent=no |
| 14198 | fi |
| 14199 | rm conftest.$ac_ext |
| 14200 | LIBS=$ac_func_search_save_LIBS |
| 14201 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14202 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14203 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14204 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14205 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14206 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14207 | |
| 14208 | else |
| 14209 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14210 | echo "Error! You need to have libopagent around." |
| 14211 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14212 | |
| 14213 | fi |
| 14214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14215 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14216 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14217 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14218 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14220 | fi |
| 14221 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14222 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14223 | else |
| 14224 | # Is the header compilable? |
| 14225 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14226 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14227 | cat >conftest.$ac_ext <<_ACEOF |
| 14228 | /* confdefs.h. */ |
| 14229 | _ACEOF |
| 14230 | cat confdefs.h >>conftest.$ac_ext |
| 14231 | cat >>conftest.$ac_ext <<_ACEOF |
| 14232 | /* end confdefs.h. */ |
| 14233 | $ac_includes_default |
| 14234 | #include <opagent.h> |
| 14235 | _ACEOF |
| 14236 | rm -f conftest.$ac_objext |
| 14237 | if { (ac_try="$ac_compile" |
| 14238 | case "(($ac_try" in |
| 14239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14240 | *) ac_try_echo=$ac_try;; |
| 14241 | esac |
| 14242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14243 | (eval "$ac_compile") 2>conftest.er1 |
| 14244 | ac_status=$? |
| 14245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14246 | rm -f conftest.er1 |
| 14247 | cat conftest.err >&5 |
| 14248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14249 | (exit $ac_status); } && |
| 14250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14251 | { (case "(($ac_try" in |
| 14252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14253 | *) ac_try_echo=$ac_try;; |
| 14254 | esac |
| 14255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14256 | (eval "$ac_try") 2>&5 |
| 14257 | ac_status=$? |
| 14258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14259 | (exit $ac_status); }; } && |
| 14260 | { ac_try='test -s conftest.$ac_objext' |
| 14261 | { (case "(($ac_try" in |
| 14262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14263 | *) ac_try_echo=$ac_try;; |
| 14264 | esac |
| 14265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14266 | (eval "$ac_try") 2>&5 |
| 14267 | ac_status=$? |
| 14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14269 | (exit $ac_status); }; }; then |
| 14270 | ac_header_compiler=yes |
| 14271 | else |
| 14272 | echo "$as_me: failed program was:" >&5 |
| 14273 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14274 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14275 | ac_header_compiler=no |
| 14276 | fi |
| 14277 | |
| 14278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14279 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14280 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14281 | |
| 14282 | # Is the header present? |
| 14283 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14284 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14285 | cat >conftest.$ac_ext <<_ACEOF |
| 14286 | /* confdefs.h. */ |
| 14287 | _ACEOF |
| 14288 | cat confdefs.h >>conftest.$ac_ext |
| 14289 | cat >>conftest.$ac_ext <<_ACEOF |
| 14290 | /* end confdefs.h. */ |
| 14291 | #include <opagent.h> |
| 14292 | _ACEOF |
| 14293 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14294 | case "(($ac_try" in |
| 14295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14296 | *) ac_try_echo=$ac_try;; |
| 14297 | esac |
| 14298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14299 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14300 | ac_status=$? |
| 14301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14302 | rm -f conftest.er1 |
| 14303 | cat conftest.err >&5 |
| 14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14305 | (exit $ac_status); } >/dev/null; then |
| 14306 | if test -s conftest.err; then |
| 14307 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14308 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14309 | else |
| 14310 | ac_cpp_err= |
| 14311 | fi |
| 14312 | else |
| 14313 | ac_cpp_err=yes |
| 14314 | fi |
| 14315 | if test -z "$ac_cpp_err"; then |
| 14316 | ac_header_preproc=yes |
| 14317 | else |
| 14318 | echo "$as_me: failed program was:" >&5 |
| 14319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14320 | |
| 14321 | ac_header_preproc=no |
| 14322 | fi |
| 14323 | |
| 14324 | rm -f conftest.err conftest.$ac_ext |
| 14325 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14326 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14327 | |
| 14328 | # So? What about this header? |
| 14329 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14330 | yes:no: ) |
| 14331 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14332 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14333 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14334 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14335 | ac_header_preproc=yes |
| 14336 | ;; |
| 14337 | no:yes:* ) |
| 14338 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14339 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14340 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14341 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14342 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14343 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14344 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14345 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14346 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14347 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14348 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14349 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14350 | ( cat <<\_ASBOX |
| 14351 | ## ----------------------------------- ## |
| 14352 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14353 | ## ----------------------------------- ## |
| 14354 | _ASBOX |
| 14355 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14356 | ;; |
| 14357 | esac |
| 14358 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14359 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14360 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14362 | else |
| 14363 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14364 | fi |
| 14365 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14366 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14367 | |
| 14368 | fi |
| 14369 | if test $ac_cv_header_opagent_h = yes; then |
| 14370 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14371 | else |
| 14372 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14373 | echo "Error! You need to have opagent.h around." |
| 14374 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14375 | |
| 14376 | fi |
| 14377 | |
| 14378 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14379 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14380 | |
| 14381 | else |
| 14382 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14383 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14384 | |
| 14385 | |
| 14386 | fi |
| 14387 | |
| 14388 | |
| 14389 | cat >>confdefs.h <<_ACEOF |
| 14390 | #define USE_OPROFILE $USE_OPROFILE |
| 14391 | _ACEOF |
| 14392 | |
| 14393 | |
| 14394 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14395 | |
| 14396 | |
| 14397 | |
| 14398 | |
| 14399 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14400 | ac_header_dirent=no |
| 14401 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14402 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14403 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14404 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14405 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14407 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14408 | cat >conftest.$ac_ext <<_ACEOF |
| 14409 | /* confdefs.h. */ |
| 14410 | _ACEOF |
| 14411 | cat confdefs.h >>conftest.$ac_ext |
| 14412 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14413 | /* end confdefs.h. */ |
| 14414 | #include <sys/types.h> |
| 14415 | #include <$ac_hdr> |
| 14416 | |
| 14417 | int |
| 14418 | main () |
| 14419 | { |
| 14420 | if ((DIR *) 0) |
| 14421 | return 0; |
| 14422 | ; |
| 14423 | return 0; |
| 14424 | } |
| 14425 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14426 | rm -f conftest.$ac_objext |
| 14427 | if { (ac_try="$ac_compile" |
| 14428 | case "(($ac_try" in |
| 14429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14430 | *) ac_try_echo=$ac_try;; |
| 14431 | esac |
| 14432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14433 | (eval "$ac_compile") 2>conftest.er1 |
| 14434 | ac_status=$? |
| 14435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14436 | rm -f conftest.er1 |
| 14437 | cat conftest.err >&5 |
| 14438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14439 | (exit $ac_status); } && |
| 14440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14441 | { (case "(($ac_try" in |
| 14442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14443 | *) ac_try_echo=$ac_try;; |
| 14444 | esac |
| 14445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14446 | (eval "$ac_try") 2>&5 |
| 14447 | ac_status=$? |
| 14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14449 | (exit $ac_status); }; } && |
| 14450 | { ac_try='test -s conftest.$ac_objext' |
| 14451 | { (case "(($ac_try" in |
| 14452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14453 | *) ac_try_echo=$ac_try;; |
| 14454 | esac |
| 14455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14456 | (eval "$ac_try") 2>&5 |
| 14457 | ac_status=$? |
| 14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14459 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14460 | eval "$as_ac_Header=yes" |
| 14461 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14462 | echo "$as_me: failed program was:" >&5 |
| 14463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14464 | |
| 14465 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14466 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14469 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14470 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14472 | echo "${ECHO_T}$ac_res" >&6; } |
| 14473 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14474 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14475 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14476 | _ACEOF |
| 14477 | |
| 14478 | ac_header_dirent=$ac_hdr; break |
| 14479 | fi |
| 14480 | |
| 14481 | done |
| 14482 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14483 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14484 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14485 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14486 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14488 | else |
| 14489 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14490 | cat >conftest.$ac_ext <<_ACEOF |
| 14491 | /* confdefs.h. */ |
| 14492 | _ACEOF |
| 14493 | cat confdefs.h >>conftest.$ac_ext |
| 14494 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14495 | /* end confdefs.h. */ |
| 14496 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14497 | /* Override any GCC internal prototype to avoid an error. |
| 14498 | Use char because int might match the return type of a GCC |
| 14499 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14500 | #ifdef __cplusplus |
| 14501 | extern "C" |
| 14502 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14503 | char opendir (); |
| 14504 | int |
| 14505 | main () |
| 14506 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14507 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14508 | ; |
| 14509 | return 0; |
| 14510 | } |
| 14511 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14512 | for ac_lib in '' dir; do |
| 14513 | if test -z "$ac_lib"; then |
| 14514 | ac_res="none required" |
| 14515 | else |
| 14516 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14517 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14518 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14520 | if { (ac_try="$ac_link" |
| 14521 | case "(($ac_try" in |
| 14522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14523 | *) ac_try_echo=$ac_try;; |
| 14524 | esac |
| 14525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14526 | (eval "$ac_link") 2>conftest.er1 |
| 14527 | ac_status=$? |
| 14528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14529 | rm -f conftest.er1 |
| 14530 | cat conftest.err >&5 |
| 14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14532 | (exit $ac_status); } && |
| 14533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14534 | { (case "(($ac_try" in |
| 14535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14536 | *) ac_try_echo=$ac_try;; |
| 14537 | esac |
| 14538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14539 | (eval "$ac_try") 2>&5 |
| 14540 | ac_status=$? |
| 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14542 | (exit $ac_status); }; } && |
| 14543 | { ac_try='test -s conftest$ac_exeext' |
| 14544 | { (case "(($ac_try" in |
| 14545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14546 | *) ac_try_echo=$ac_try;; |
| 14547 | esac |
| 14548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14549 | (eval "$ac_try") 2>&5 |
| 14550 | ac_status=$? |
| 14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14553 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14554 | else |
| 14555 | echo "$as_me: failed program was:" >&5 |
| 14556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14557 | |
| 14558 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14560 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14561 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14562 | conftest$ac_exeext |
| 14563 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14564 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14566 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14567 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14568 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14569 | else |
| 14570 | ac_cv_search_opendir=no |
| 14571 | fi |
| 14572 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14573 | LIBS=$ac_func_search_save_LIBS |
| 14574 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14575 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14576 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14577 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14578 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14579 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14580 | |
| 14581 | fi |
| 14582 | |
| 14583 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14584 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14585 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14586 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14588 | else |
| 14589 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14590 | cat >conftest.$ac_ext <<_ACEOF |
| 14591 | /* confdefs.h. */ |
| 14592 | _ACEOF |
| 14593 | cat confdefs.h >>conftest.$ac_ext |
| 14594 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14595 | /* end confdefs.h. */ |
| 14596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14597 | /* Override any GCC internal prototype to avoid an error. |
| 14598 | Use char because int might match the return type of a GCC |
| 14599 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14600 | #ifdef __cplusplus |
| 14601 | extern "C" |
| 14602 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14603 | char opendir (); |
| 14604 | int |
| 14605 | main () |
| 14606 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14607 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14608 | ; |
| 14609 | return 0; |
| 14610 | } |
| 14611 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14612 | for ac_lib in '' x; do |
| 14613 | if test -z "$ac_lib"; then |
| 14614 | ac_res="none required" |
| 14615 | else |
| 14616 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14617 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14618 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14619 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14620 | if { (ac_try="$ac_link" |
| 14621 | case "(($ac_try" in |
| 14622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14623 | *) ac_try_echo=$ac_try;; |
| 14624 | esac |
| 14625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14626 | (eval "$ac_link") 2>conftest.er1 |
| 14627 | ac_status=$? |
| 14628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14629 | rm -f conftest.er1 |
| 14630 | cat conftest.err >&5 |
| 14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14632 | (exit $ac_status); } && |
| 14633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14634 | { (case "(($ac_try" in |
| 14635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14636 | *) ac_try_echo=$ac_try;; |
| 14637 | esac |
| 14638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14639 | (eval "$ac_try") 2>&5 |
| 14640 | ac_status=$? |
| 14641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14642 | (exit $ac_status); }; } && |
| 14643 | { ac_try='test -s conftest$ac_exeext' |
| 14644 | { (case "(($ac_try" in |
| 14645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14646 | *) ac_try_echo=$ac_try;; |
| 14647 | esac |
| 14648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14649 | (eval "$ac_try") 2>&5 |
| 14650 | ac_status=$? |
| 14651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14652 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14653 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14654 | else |
| 14655 | echo "$as_me: failed program was:" >&5 |
| 14656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14657 | |
| 14658 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14659 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14660 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14661 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14662 | conftest$ac_exeext |
| 14663 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14664 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14666 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14667 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14668 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14669 | else |
| 14670 | ac_cv_search_opendir=no |
| 14671 | fi |
| 14672 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14673 | LIBS=$ac_func_search_save_LIBS |
| 14674 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14675 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14676 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14677 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14678 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14679 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14680 | |
| 14681 | fi |
| 14682 | |
| 14683 | fi |
| 14684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14685 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14686 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14687 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14689 | else |
| 14690 | ac_ext=c |
| 14691 | ac_cpp='$CPP $CPPFLAGS' |
| 14692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14695 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14696 | cat >conftest.$ac_ext <<_ACEOF |
| 14697 | /* confdefs.h. */ |
| 14698 | _ACEOF |
| 14699 | cat confdefs.h >>conftest.$ac_ext |
| 14700 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14701 | /* end confdefs.h. */ |
| 14702 | #include <sys/mman.h> |
| 14703 | #include <unistd.h> |
| 14704 | #include <fcntl.h> |
| 14705 | int |
| 14706 | main () |
| 14707 | { |
| 14708 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14709 | ; |
| 14710 | return 0; |
| 14711 | } |
| 14712 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14713 | rm -f conftest.$ac_objext |
| 14714 | if { (ac_try="$ac_compile" |
| 14715 | case "(($ac_try" in |
| 14716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14717 | *) ac_try_echo=$ac_try;; |
| 14718 | esac |
| 14719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14720 | (eval "$ac_compile") 2>conftest.er1 |
| 14721 | ac_status=$? |
| 14722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14723 | rm -f conftest.er1 |
| 14724 | cat conftest.err >&5 |
| 14725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14726 | (exit $ac_status); } && |
| 14727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14728 | { (case "(($ac_try" in |
| 14729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14730 | *) ac_try_echo=$ac_try;; |
| 14731 | esac |
| 14732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14733 | (eval "$ac_try") 2>&5 |
| 14734 | ac_status=$? |
| 14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14736 | (exit $ac_status); }; } && |
| 14737 | { ac_try='test -s conftest.$ac_objext' |
| 14738 | { (case "(($ac_try" in |
| 14739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14740 | *) ac_try_echo=$ac_try;; |
| 14741 | esac |
| 14742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14743 | (eval "$ac_try") 2>&5 |
| 14744 | ac_status=$? |
| 14745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14746 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14747 | ac_cv_header_mmap_anon=yes |
| 14748 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14749 | echo "$as_me: failed program was:" >&5 |
| 14750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14751 | |
| 14752 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14753 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14756 | ac_ext=c |
| 14757 | ac_cpp='$CPP $CPPFLAGS' |
| 14758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14761 | |
| 14762 | |
| 14763 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14764 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14765 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14766 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14767 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14768 | cat >>confdefs.h <<\_ACEOF |
| 14769 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14770 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14771 | |
| 14772 | fi |
| 14773 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14774 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14775 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14776 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14778 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14779 | cat >conftest.$ac_ext <<_ACEOF |
| 14780 | /* confdefs.h. */ |
| 14781 | _ACEOF |
| 14782 | cat confdefs.h >>conftest.$ac_ext |
| 14783 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14784 | /* end confdefs.h. */ |
| 14785 | #include <sys/types.h> |
| 14786 | #include <sys/stat.h> |
| 14787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14788 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14789 | # if S_ISBLK (S_IFDIR) |
| 14790 | You lose. |
| 14791 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14792 | #endif |
| 14793 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14794 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14795 | # if S_ISBLK (S_IFCHR) |
| 14796 | You lose. |
| 14797 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14798 | #endif |
| 14799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14800 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14801 | # if S_ISLNK (S_IFREG) |
| 14802 | You lose. |
| 14803 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14804 | #endif |
| 14805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14806 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14807 | # if S_ISSOCK (S_IFREG) |
| 14808 | You lose. |
| 14809 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14810 | #endif |
| 14811 | |
| 14812 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14813 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14814 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14815 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14816 | else |
| 14817 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14818 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14819 | rm -f conftest* |
| 14820 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14821 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14822 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14823 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14824 | if test $ac_cv_header_stat_broken = yes; then |
| 14825 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14826 | cat >>confdefs.h <<\_ACEOF |
| 14827 | #define STAT_MACROS_BROKEN 1 |
| 14828 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14829 | |
| 14830 | fi |
| 14831 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14832 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 14833 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 14834 | if test "${ac_cv_header_stdc+set}" = set; then |
| 14835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14836 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14837 | cat >conftest.$ac_ext <<_ACEOF |
| 14838 | /* confdefs.h. */ |
| 14839 | _ACEOF |
| 14840 | cat confdefs.h >>conftest.$ac_ext |
| 14841 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14842 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14843 | #include <stdlib.h> |
| 14844 | #include <stdarg.h> |
| 14845 | #include <string.h> |
| 14846 | #include <float.h> |
| 14847 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14848 | int |
| 14849 | main () |
| 14850 | { |
| 14851 | |
| 14852 | ; |
| 14853 | return 0; |
| 14854 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14855 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14856 | rm -f conftest.$ac_objext |
| 14857 | if { (ac_try="$ac_compile" |
| 14858 | case "(($ac_try" in |
| 14859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14860 | *) ac_try_echo=$ac_try;; |
| 14861 | esac |
| 14862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14863 | (eval "$ac_compile") 2>conftest.er1 |
| 14864 | ac_status=$? |
| 14865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14866 | rm -f conftest.er1 |
| 14867 | cat conftest.err >&5 |
| 14868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14869 | (exit $ac_status); } && |
| 14870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14871 | { (case "(($ac_try" in |
| 14872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14873 | *) ac_try_echo=$ac_try;; |
| 14874 | esac |
| 14875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14876 | (eval "$ac_try") 2>&5 |
| 14877 | ac_status=$? |
| 14878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14879 | (exit $ac_status); }; } && |
| 14880 | { ac_try='test -s conftest.$ac_objext' |
| 14881 | { (case "(($ac_try" in |
| 14882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14883 | *) ac_try_echo=$ac_try;; |
| 14884 | esac |
| 14885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14886 | (eval "$ac_try") 2>&5 |
| 14887 | ac_status=$? |
| 14888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14889 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14890 | ac_cv_header_stdc=yes |
| 14891 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14892 | echo "$as_me: failed program was:" >&5 |
| 14893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14894 | |
| 14895 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14896 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14899 | |
| 14900 | if test $ac_cv_header_stdc = yes; then |
| 14901 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14902 | cat >conftest.$ac_ext <<_ACEOF |
| 14903 | /* confdefs.h. */ |
| 14904 | _ACEOF |
| 14905 | cat confdefs.h >>conftest.$ac_ext |
| 14906 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14907 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14908 | #include <string.h> |
| 14909 | |
| 14910 | _ACEOF |
| 14911 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14912 | $EGREP "memchr" >/dev/null 2>&1; then |
| 14913 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14914 | else |
| 14915 | ac_cv_header_stdc=no |
| 14916 | fi |
| 14917 | rm -f conftest* |
| 14918 | |
| 14919 | fi |
| 14920 | |
| 14921 | if test $ac_cv_header_stdc = yes; then |
| 14922 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14923 | cat >conftest.$ac_ext <<_ACEOF |
| 14924 | /* confdefs.h. */ |
| 14925 | _ACEOF |
| 14926 | cat confdefs.h >>conftest.$ac_ext |
| 14927 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14928 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14929 | #include <stdlib.h> |
| 14930 | |
| 14931 | _ACEOF |
| 14932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14933 | $EGREP "free" >/dev/null 2>&1; then |
| 14934 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14935 | else |
| 14936 | ac_cv_header_stdc=no |
| 14937 | fi |
| 14938 | rm -f conftest* |
| 14939 | |
| 14940 | fi |
| 14941 | |
| 14942 | if test $ac_cv_header_stdc = yes; then |
| 14943 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14944 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14945 | : |
| 14946 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14947 | cat >conftest.$ac_ext <<_ACEOF |
| 14948 | /* confdefs.h. */ |
| 14949 | _ACEOF |
| 14950 | cat confdefs.h >>conftest.$ac_ext |
| 14951 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14952 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14953 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14954 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14955 | #if ((' ' & 0x0FF) == 0x020) |
| 14956 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 14957 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 14958 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14959 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14960 | (('a' <= (c) && (c) <= 'i') \ |
| 14961 | || ('j' <= (c) && (c) <= 'r') \ |
| 14962 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14963 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 14964 | #endif |
| 14965 | |
| 14966 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 14967 | int |
| 14968 | main () |
| 14969 | { |
| 14970 | int i; |
| 14971 | for (i = 0; i < 256; i++) |
| 14972 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14973 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14974 | return 2; |
| 14975 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14976 | } |
| 14977 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14978 | rm -f conftest$ac_exeext |
| 14979 | if { (ac_try="$ac_link" |
| 14980 | case "(($ac_try" in |
| 14981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14982 | *) ac_try_echo=$ac_try;; |
| 14983 | esac |
| 14984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14985 | (eval "$ac_link") 2>&5 |
| 14986 | ac_status=$? |
| 14987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14989 | { (case "(($ac_try" in |
| 14990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14991 | *) ac_try_echo=$ac_try;; |
| 14992 | esac |
| 14993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14994 | (eval "$ac_try") 2>&5 |
| 14995 | ac_status=$? |
| 14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14997 | (exit $ac_status); }; }; then |
| 14998 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14999 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15000 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15001 | echo "$as_me: failed program was:" >&5 |
| 15002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15003 | |
| 15004 | ( exit $ac_status ) |
| 15005 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15006 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15007 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15008 | fi |
| 15009 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15010 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15011 | fi |
| 15012 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15013 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15014 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15015 | if test $ac_cv_header_stdc = yes; then |
| 15016 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15017 | cat >>confdefs.h <<\_ACEOF |
| 15018 | #define STDC_HEADERS 1 |
| 15019 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15020 | |
| 15021 | fi |
| 15022 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15023 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15024 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15025 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15027 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15028 | cat >conftest.$ac_ext <<_ACEOF |
| 15029 | /* confdefs.h. */ |
| 15030 | _ACEOF |
| 15031 | cat confdefs.h >>conftest.$ac_ext |
| 15032 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15033 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15034 | #include <sys/types.h> |
| 15035 | #include <sys/wait.h> |
| 15036 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15037 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15038 | #endif |
| 15039 | #ifndef WIFEXITED |
| 15040 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15041 | #endif |
| 15042 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15043 | int |
| 15044 | main () |
| 15045 | { |
| 15046 | int s; |
| 15047 | wait (&s); |
| 15048 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15049 | ; |
| 15050 | return 0; |
| 15051 | } |
| 15052 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15053 | rm -f conftest.$ac_objext |
| 15054 | if { (ac_try="$ac_compile" |
| 15055 | case "(($ac_try" in |
| 15056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15057 | *) ac_try_echo=$ac_try;; |
| 15058 | esac |
| 15059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15060 | (eval "$ac_compile") 2>conftest.er1 |
| 15061 | ac_status=$? |
| 15062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15063 | rm -f conftest.er1 |
| 15064 | cat conftest.err >&5 |
| 15065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15066 | (exit $ac_status); } && |
| 15067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15068 | { (case "(($ac_try" in |
| 15069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15070 | *) ac_try_echo=$ac_try;; |
| 15071 | esac |
| 15072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15073 | (eval "$ac_try") 2>&5 |
| 15074 | ac_status=$? |
| 15075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15076 | (exit $ac_status); }; } && |
| 15077 | { ac_try='test -s conftest.$ac_objext' |
| 15078 | { (case "(($ac_try" in |
| 15079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15080 | *) ac_try_echo=$ac_try;; |
| 15081 | esac |
| 15082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15083 | (eval "$ac_try") 2>&5 |
| 15084 | ac_status=$? |
| 15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15086 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15087 | ac_cv_header_sys_wait_h=yes |
| 15088 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15089 | echo "$as_me: failed program was:" >&5 |
| 15090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15091 | |
| 15092 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15093 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15096 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15097 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15098 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15099 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15100 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15101 | cat >>confdefs.h <<\_ACEOF |
| 15102 | #define HAVE_SYS_WAIT_H 1 |
| 15103 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15104 | |
| 15105 | fi |
| 15106 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15107 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15108 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15109 | if test "${ac_cv_header_time+set}" = set; then |
| 15110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15111 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15112 | cat >conftest.$ac_ext <<_ACEOF |
| 15113 | /* confdefs.h. */ |
| 15114 | _ACEOF |
| 15115 | cat confdefs.h >>conftest.$ac_ext |
| 15116 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15117 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15118 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15119 | #include <sys/time.h> |
| 15120 | #include <time.h> |
| 15121 | |
| 15122 | int |
| 15123 | main () |
| 15124 | { |
| 15125 | if ((struct tm *) 0) |
| 15126 | return 0; |
| 15127 | ; |
| 15128 | return 0; |
| 15129 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15130 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15131 | rm -f conftest.$ac_objext |
| 15132 | if { (ac_try="$ac_compile" |
| 15133 | case "(($ac_try" in |
| 15134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15135 | *) ac_try_echo=$ac_try;; |
| 15136 | esac |
| 15137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15138 | (eval "$ac_compile") 2>conftest.er1 |
| 15139 | ac_status=$? |
| 15140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15141 | rm -f conftest.er1 |
| 15142 | cat conftest.err >&5 |
| 15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15144 | (exit $ac_status); } && |
| 15145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15146 | { (case "(($ac_try" in |
| 15147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15148 | *) ac_try_echo=$ac_try;; |
| 15149 | esac |
| 15150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15151 | (eval "$ac_try") 2>&5 |
| 15152 | ac_status=$? |
| 15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15154 | (exit $ac_status); }; } && |
| 15155 | { ac_try='test -s conftest.$ac_objext' |
| 15156 | { (case "(($ac_try" in |
| 15157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15158 | *) ac_try_echo=$ac_try;; |
| 15159 | esac |
| 15160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15161 | (eval "$ac_try") 2>&5 |
| 15162 | ac_status=$? |
| 15163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15164 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15165 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15166 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15167 | echo "$as_me: failed program was:" >&5 |
| 15168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15169 | |
| 15170 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15171 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15174 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15175 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15176 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15177 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15179 | cat >>confdefs.h <<\_ACEOF |
| 15180 | #define TIME_WITH_SYS_TIME 1 |
| 15181 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15182 | |
| 15183 | fi |
| 15184 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15185 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15186 | |
| 15187 | |
| 15188 | |
| 15189 | |
| 15190 | |
| 15191 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15192 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15193 | do |
| 15194 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15196 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15200 | fi |
| 15201 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15203 | echo "${ECHO_T}$ac_res" >&6; } |
| 15204 | else |
| 15205 | # Is the header compilable? |
| 15206 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15207 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15208 | cat >conftest.$ac_ext <<_ACEOF |
| 15209 | /* confdefs.h. */ |
| 15210 | _ACEOF |
| 15211 | cat confdefs.h >>conftest.$ac_ext |
| 15212 | cat >>conftest.$ac_ext <<_ACEOF |
| 15213 | /* end confdefs.h. */ |
| 15214 | $ac_includes_default |
| 15215 | #include <$ac_header> |
| 15216 | _ACEOF |
| 15217 | rm -f conftest.$ac_objext |
| 15218 | if { (ac_try="$ac_compile" |
| 15219 | case "(($ac_try" in |
| 15220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15221 | *) ac_try_echo=$ac_try;; |
| 15222 | esac |
| 15223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15224 | (eval "$ac_compile") 2>conftest.er1 |
| 15225 | ac_status=$? |
| 15226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15227 | rm -f conftest.er1 |
| 15228 | cat conftest.err >&5 |
| 15229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15230 | (exit $ac_status); } && |
| 15231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15232 | { (case "(($ac_try" in |
| 15233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15234 | *) ac_try_echo=$ac_try;; |
| 15235 | esac |
| 15236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15237 | (eval "$ac_try") 2>&5 |
| 15238 | ac_status=$? |
| 15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15240 | (exit $ac_status); }; } && |
| 15241 | { ac_try='test -s conftest.$ac_objext' |
| 15242 | { (case "(($ac_try" in |
| 15243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15244 | *) ac_try_echo=$ac_try;; |
| 15245 | esac |
| 15246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15247 | (eval "$ac_try") 2>&5 |
| 15248 | ac_status=$? |
| 15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15250 | (exit $ac_status); }; }; then |
| 15251 | ac_header_compiler=yes |
| 15252 | else |
| 15253 | echo "$as_me: failed program was:" >&5 |
| 15254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15255 | |
| 15256 | ac_header_compiler=no |
| 15257 | fi |
| 15258 | |
| 15259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15260 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15261 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15262 | |
| 15263 | # Is the header present? |
| 15264 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15265 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15266 | cat >conftest.$ac_ext <<_ACEOF |
| 15267 | /* confdefs.h. */ |
| 15268 | _ACEOF |
| 15269 | cat confdefs.h >>conftest.$ac_ext |
| 15270 | cat >>conftest.$ac_ext <<_ACEOF |
| 15271 | /* end confdefs.h. */ |
| 15272 | #include <$ac_header> |
| 15273 | _ACEOF |
| 15274 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15275 | case "(($ac_try" in |
| 15276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15277 | *) ac_try_echo=$ac_try;; |
| 15278 | esac |
| 15279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15280 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15281 | ac_status=$? |
| 15282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15283 | rm -f conftest.er1 |
| 15284 | cat conftest.err >&5 |
| 15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15286 | (exit $ac_status); } >/dev/null; then |
| 15287 | if test -s conftest.err; then |
| 15288 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15289 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15290 | else |
| 15291 | ac_cpp_err= |
| 15292 | fi |
| 15293 | else |
| 15294 | ac_cpp_err=yes |
| 15295 | fi |
| 15296 | if test -z "$ac_cpp_err"; then |
| 15297 | ac_header_preproc=yes |
| 15298 | else |
| 15299 | echo "$as_me: failed program was:" >&5 |
| 15300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15301 | |
| 15302 | ac_header_preproc=no |
| 15303 | fi |
| 15304 | |
| 15305 | rm -f conftest.err conftest.$ac_ext |
| 15306 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15307 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15308 | |
| 15309 | # So? What about this header? |
| 15310 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15311 | yes:no: ) |
| 15312 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15313 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15314 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15315 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15316 | ac_header_preproc=yes |
| 15317 | ;; |
| 15318 | no:yes:* ) |
| 15319 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15320 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15321 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15322 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15323 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15324 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15325 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15326 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15327 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15328 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15329 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15330 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15331 | ( cat <<\_ASBOX |
| 15332 | ## ----------------------------------- ## |
| 15333 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15334 | ## ----------------------------------- ## |
| 15335 | _ASBOX |
| 15336 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15337 | ;; |
| 15338 | esac |
| 15339 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15341 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15343 | else |
| 15344 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15345 | fi |
| 15346 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15347 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15348 | echo "${ECHO_T}$ac_res" >&6; } |
| 15349 | |
| 15350 | fi |
| 15351 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15352 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15353 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15354 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15355 | |
| 15356 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15357 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15358 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15359 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15360 | |
| 15361 | |
| 15362 | |
| 15363 | |
| 15364 | |
| 15365 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15366 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15367 | do |
| 15368 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15370 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15372 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15374 | fi |
| 15375 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15376 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15377 | echo "${ECHO_T}$ac_res" >&6; } |
| 15378 | else |
| 15379 | # Is the header compilable? |
| 15380 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15381 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15382 | cat >conftest.$ac_ext <<_ACEOF |
| 15383 | /* confdefs.h. */ |
| 15384 | _ACEOF |
| 15385 | cat confdefs.h >>conftest.$ac_ext |
| 15386 | cat >>conftest.$ac_ext <<_ACEOF |
| 15387 | /* end confdefs.h. */ |
| 15388 | $ac_includes_default |
| 15389 | #include <$ac_header> |
| 15390 | _ACEOF |
| 15391 | rm -f conftest.$ac_objext |
| 15392 | if { (ac_try="$ac_compile" |
| 15393 | case "(($ac_try" in |
| 15394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15395 | *) ac_try_echo=$ac_try;; |
| 15396 | esac |
| 15397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15398 | (eval "$ac_compile") 2>conftest.er1 |
| 15399 | ac_status=$? |
| 15400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15401 | rm -f conftest.er1 |
| 15402 | cat conftest.err >&5 |
| 15403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15404 | (exit $ac_status); } && |
| 15405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15406 | { (case "(($ac_try" in |
| 15407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15408 | *) ac_try_echo=$ac_try;; |
| 15409 | esac |
| 15410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15411 | (eval "$ac_try") 2>&5 |
| 15412 | ac_status=$? |
| 15413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15414 | (exit $ac_status); }; } && |
| 15415 | { ac_try='test -s conftest.$ac_objext' |
| 15416 | { (case "(($ac_try" in |
| 15417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15418 | *) ac_try_echo=$ac_try;; |
| 15419 | esac |
| 15420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15421 | (eval "$ac_try") 2>&5 |
| 15422 | ac_status=$? |
| 15423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15424 | (exit $ac_status); }; }; then |
| 15425 | ac_header_compiler=yes |
| 15426 | else |
| 15427 | echo "$as_me: failed program was:" >&5 |
| 15428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15429 | |
| 15430 | ac_header_compiler=no |
| 15431 | fi |
| 15432 | |
| 15433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15434 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15435 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15436 | |
| 15437 | # Is the header present? |
| 15438 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15439 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15440 | cat >conftest.$ac_ext <<_ACEOF |
| 15441 | /* confdefs.h. */ |
| 15442 | _ACEOF |
| 15443 | cat confdefs.h >>conftest.$ac_ext |
| 15444 | cat >>conftest.$ac_ext <<_ACEOF |
| 15445 | /* end confdefs.h. */ |
| 15446 | #include <$ac_header> |
| 15447 | _ACEOF |
| 15448 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15449 | case "(($ac_try" in |
| 15450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15451 | *) ac_try_echo=$ac_try;; |
| 15452 | esac |
| 15453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15454 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15455 | ac_status=$? |
| 15456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15457 | rm -f conftest.er1 |
| 15458 | cat conftest.err >&5 |
| 15459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15460 | (exit $ac_status); } >/dev/null; then |
| 15461 | if test -s conftest.err; then |
| 15462 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15464 | else |
| 15465 | ac_cpp_err= |
| 15466 | fi |
| 15467 | else |
| 15468 | ac_cpp_err=yes |
| 15469 | fi |
| 15470 | if test -z "$ac_cpp_err"; then |
| 15471 | ac_header_preproc=yes |
| 15472 | else |
| 15473 | echo "$as_me: failed program was:" >&5 |
| 15474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15475 | |
| 15476 | ac_header_preproc=no |
| 15477 | fi |
| 15478 | |
| 15479 | rm -f conftest.err conftest.$ac_ext |
| 15480 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15481 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15482 | |
| 15483 | # So? What about this header? |
| 15484 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15485 | yes:no: ) |
| 15486 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15487 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15488 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15489 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15490 | ac_header_preproc=yes |
| 15491 | ;; |
| 15492 | no:yes:* ) |
| 15493 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15494 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15495 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15496 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15497 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15498 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15499 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15500 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15501 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15502 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15503 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15504 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15505 | ( cat <<\_ASBOX |
| 15506 | ## ----------------------------------- ## |
| 15507 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15508 | ## ----------------------------------- ## |
| 15509 | _ASBOX |
| 15510 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15511 | ;; |
| 15512 | esac |
| 15513 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15515 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15517 | else |
| 15518 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15519 | fi |
| 15520 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15522 | echo "${ECHO_T}$ac_res" >&6; } |
| 15523 | |
| 15524 | fi |
| 15525 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15526 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15527 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15528 | _ACEOF |
| 15529 | |
| 15530 | fi |
| 15531 | |
| 15532 | done |
| 15533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15534 | |
| 15535 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15536 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15537 | do |
| 15538 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15539 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15540 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15542 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15544 | fi |
| 15545 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15546 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15547 | echo "${ECHO_T}$ac_res" >&6; } |
| 15548 | else |
| 15549 | # Is the header compilable? |
| 15550 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15551 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15552 | cat >conftest.$ac_ext <<_ACEOF |
| 15553 | /* confdefs.h. */ |
| 15554 | _ACEOF |
| 15555 | cat confdefs.h >>conftest.$ac_ext |
| 15556 | cat >>conftest.$ac_ext <<_ACEOF |
| 15557 | /* end confdefs.h. */ |
| 15558 | $ac_includes_default |
| 15559 | #include <$ac_header> |
| 15560 | _ACEOF |
| 15561 | rm -f conftest.$ac_objext |
| 15562 | if { (ac_try="$ac_compile" |
| 15563 | case "(($ac_try" in |
| 15564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15565 | *) ac_try_echo=$ac_try;; |
| 15566 | esac |
| 15567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15568 | (eval "$ac_compile") 2>conftest.er1 |
| 15569 | ac_status=$? |
| 15570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15571 | rm -f conftest.er1 |
| 15572 | cat conftest.err >&5 |
| 15573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15574 | (exit $ac_status); } && |
| 15575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15576 | { (case "(($ac_try" in |
| 15577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15578 | *) ac_try_echo=$ac_try;; |
| 15579 | esac |
| 15580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15581 | (eval "$ac_try") 2>&5 |
| 15582 | ac_status=$? |
| 15583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15584 | (exit $ac_status); }; } && |
| 15585 | { ac_try='test -s conftest.$ac_objext' |
| 15586 | { (case "(($ac_try" in |
| 15587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15588 | *) ac_try_echo=$ac_try;; |
| 15589 | esac |
| 15590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15591 | (eval "$ac_try") 2>&5 |
| 15592 | ac_status=$? |
| 15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15594 | (exit $ac_status); }; }; then |
| 15595 | ac_header_compiler=yes |
| 15596 | else |
| 15597 | echo "$as_me: failed program was:" >&5 |
| 15598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15599 | |
| 15600 | ac_header_compiler=no |
| 15601 | fi |
| 15602 | |
| 15603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15604 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15605 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15606 | |
| 15607 | # Is the header present? |
| 15608 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15609 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15610 | cat >conftest.$ac_ext <<_ACEOF |
| 15611 | /* confdefs.h. */ |
| 15612 | _ACEOF |
| 15613 | cat confdefs.h >>conftest.$ac_ext |
| 15614 | cat >>conftest.$ac_ext <<_ACEOF |
| 15615 | /* end confdefs.h. */ |
| 15616 | #include <$ac_header> |
| 15617 | _ACEOF |
| 15618 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15619 | case "(($ac_try" in |
| 15620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15621 | *) ac_try_echo=$ac_try;; |
| 15622 | esac |
| 15623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15624 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15625 | ac_status=$? |
| 15626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15627 | rm -f conftest.er1 |
| 15628 | cat conftest.err >&5 |
| 15629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15630 | (exit $ac_status); } >/dev/null; then |
| 15631 | if test -s conftest.err; then |
| 15632 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15633 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15634 | else |
| 15635 | ac_cpp_err= |
| 15636 | fi |
| 15637 | else |
| 15638 | ac_cpp_err=yes |
| 15639 | fi |
| 15640 | if test -z "$ac_cpp_err"; then |
| 15641 | ac_header_preproc=yes |
| 15642 | else |
| 15643 | echo "$as_me: failed program was:" >&5 |
| 15644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15645 | |
| 15646 | ac_header_preproc=no |
| 15647 | fi |
| 15648 | |
| 15649 | rm -f conftest.err conftest.$ac_ext |
| 15650 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15651 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15652 | |
| 15653 | # So? What about this header? |
| 15654 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15655 | yes:no: ) |
| 15656 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15657 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15658 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15659 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15660 | ac_header_preproc=yes |
| 15661 | ;; |
| 15662 | no:yes:* ) |
| 15663 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15664 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15665 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15666 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15667 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15668 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15669 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15670 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15671 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15672 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15673 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15674 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15675 | ( cat <<\_ASBOX |
| 15676 | ## ----------------------------------- ## |
| 15677 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15678 | ## ----------------------------------- ## |
| 15679 | _ASBOX |
| 15680 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15681 | ;; |
| 15682 | esac |
| 15683 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15685 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15687 | else |
| 15688 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15689 | fi |
| 15690 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15691 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15692 | echo "${ECHO_T}$ac_res" >&6; } |
| 15693 | |
| 15694 | fi |
| 15695 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15696 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15697 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15698 | _ACEOF |
| 15699 | |
| 15700 | fi |
| 15701 | |
| 15702 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15703 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15704 | |
| 15705 | |
| 15706 | |
| 15707 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15708 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15709 | do |
| 15710 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15711 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15716 | fi |
| 15717 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15718 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15719 | echo "${ECHO_T}$ac_res" >&6; } |
| 15720 | else |
| 15721 | # Is the header compilable? |
| 15722 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15723 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15724 | cat >conftest.$ac_ext <<_ACEOF |
| 15725 | /* confdefs.h. */ |
| 15726 | _ACEOF |
| 15727 | cat confdefs.h >>conftest.$ac_ext |
| 15728 | cat >>conftest.$ac_ext <<_ACEOF |
| 15729 | /* end confdefs.h. */ |
| 15730 | $ac_includes_default |
| 15731 | #include <$ac_header> |
| 15732 | _ACEOF |
| 15733 | rm -f conftest.$ac_objext |
| 15734 | if { (ac_try="$ac_compile" |
| 15735 | case "(($ac_try" in |
| 15736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15737 | *) ac_try_echo=$ac_try;; |
| 15738 | esac |
| 15739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15740 | (eval "$ac_compile") 2>conftest.er1 |
| 15741 | ac_status=$? |
| 15742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15743 | rm -f conftest.er1 |
| 15744 | cat conftest.err >&5 |
| 15745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15746 | (exit $ac_status); } && |
| 15747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15748 | { (case "(($ac_try" in |
| 15749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15750 | *) ac_try_echo=$ac_try;; |
| 15751 | esac |
| 15752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15753 | (eval "$ac_try") 2>&5 |
| 15754 | ac_status=$? |
| 15755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15756 | (exit $ac_status); }; } && |
| 15757 | { ac_try='test -s conftest.$ac_objext' |
| 15758 | { (case "(($ac_try" in |
| 15759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15760 | *) ac_try_echo=$ac_try;; |
| 15761 | esac |
| 15762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15763 | (eval "$ac_try") 2>&5 |
| 15764 | ac_status=$? |
| 15765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15766 | (exit $ac_status); }; }; then |
| 15767 | ac_header_compiler=yes |
| 15768 | else |
| 15769 | echo "$as_me: failed program was:" >&5 |
| 15770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15771 | |
| 15772 | ac_header_compiler=no |
| 15773 | fi |
| 15774 | |
| 15775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15776 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15777 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15778 | |
| 15779 | # Is the header present? |
| 15780 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15781 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15782 | cat >conftest.$ac_ext <<_ACEOF |
| 15783 | /* confdefs.h. */ |
| 15784 | _ACEOF |
| 15785 | cat confdefs.h >>conftest.$ac_ext |
| 15786 | cat >>conftest.$ac_ext <<_ACEOF |
| 15787 | /* end confdefs.h. */ |
| 15788 | #include <$ac_header> |
| 15789 | _ACEOF |
| 15790 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15791 | case "(($ac_try" in |
| 15792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15793 | *) ac_try_echo=$ac_try;; |
| 15794 | esac |
| 15795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15796 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15797 | ac_status=$? |
| 15798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15799 | rm -f conftest.er1 |
| 15800 | cat conftest.err >&5 |
| 15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15802 | (exit $ac_status); } >/dev/null; then |
| 15803 | if test -s conftest.err; then |
| 15804 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15806 | else |
| 15807 | ac_cpp_err= |
| 15808 | fi |
| 15809 | else |
| 15810 | ac_cpp_err=yes |
| 15811 | fi |
| 15812 | if test -z "$ac_cpp_err"; then |
| 15813 | ac_header_preproc=yes |
| 15814 | else |
| 15815 | echo "$as_me: failed program was:" >&5 |
| 15816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15817 | |
| 15818 | ac_header_preproc=no |
| 15819 | fi |
| 15820 | |
| 15821 | rm -f conftest.err conftest.$ac_ext |
| 15822 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15823 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15824 | |
| 15825 | # So? What about this header? |
| 15826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15827 | yes:no: ) |
| 15828 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15829 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15830 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15831 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15832 | ac_header_preproc=yes |
| 15833 | ;; |
| 15834 | no:yes:* ) |
| 15835 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15836 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15837 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15838 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15839 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15840 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15841 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15842 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15843 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15844 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15845 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15846 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15847 | ( cat <<\_ASBOX |
| 15848 | ## ----------------------------------- ## |
| 15849 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15850 | ## ----------------------------------- ## |
| 15851 | _ASBOX |
| 15852 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15853 | ;; |
| 15854 | esac |
| 15855 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15857 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15859 | else |
| 15860 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15861 | fi |
| 15862 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15863 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15864 | echo "${ECHO_T}$ac_res" >&6; } |
| 15865 | |
| 15866 | fi |
| 15867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15868 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15870 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15871 | |
| 15872 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15873 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15874 | done |
| 15875 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15876 | |
| 15877 | |
| 15878 | |
| 15879 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15880 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15881 | do |
| 15882 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15884 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15886 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15888 | fi |
| 15889 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15890 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15891 | echo "${ECHO_T}$ac_res" >&6; } |
| 15892 | else |
| 15893 | # Is the header compilable? |
| 15894 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15895 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15896 | cat >conftest.$ac_ext <<_ACEOF |
| 15897 | /* confdefs.h. */ |
| 15898 | _ACEOF |
| 15899 | cat confdefs.h >>conftest.$ac_ext |
| 15900 | cat >>conftest.$ac_ext <<_ACEOF |
| 15901 | /* end confdefs.h. */ |
| 15902 | $ac_includes_default |
| 15903 | #include <$ac_header> |
| 15904 | _ACEOF |
| 15905 | rm -f conftest.$ac_objext |
| 15906 | if { (ac_try="$ac_compile" |
| 15907 | case "(($ac_try" in |
| 15908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15909 | *) ac_try_echo=$ac_try;; |
| 15910 | esac |
| 15911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15912 | (eval "$ac_compile") 2>conftest.er1 |
| 15913 | ac_status=$? |
| 15914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15915 | rm -f conftest.er1 |
| 15916 | cat conftest.err >&5 |
| 15917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15918 | (exit $ac_status); } && |
| 15919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15920 | { (case "(($ac_try" in |
| 15921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15922 | *) ac_try_echo=$ac_try;; |
| 15923 | esac |
| 15924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15925 | (eval "$ac_try") 2>&5 |
| 15926 | ac_status=$? |
| 15927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15928 | (exit $ac_status); }; } && |
| 15929 | { ac_try='test -s conftest.$ac_objext' |
| 15930 | { (case "(($ac_try" in |
| 15931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15932 | *) ac_try_echo=$ac_try;; |
| 15933 | esac |
| 15934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15935 | (eval "$ac_try") 2>&5 |
| 15936 | ac_status=$? |
| 15937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15938 | (exit $ac_status); }; }; then |
| 15939 | ac_header_compiler=yes |
| 15940 | else |
| 15941 | echo "$as_me: failed program was:" >&5 |
| 15942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15943 | |
| 15944 | ac_header_compiler=no |
| 15945 | fi |
| 15946 | |
| 15947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15948 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15949 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15950 | |
| 15951 | # Is the header present? |
| 15952 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15954 | cat >conftest.$ac_ext <<_ACEOF |
| 15955 | /* confdefs.h. */ |
| 15956 | _ACEOF |
| 15957 | cat confdefs.h >>conftest.$ac_ext |
| 15958 | cat >>conftest.$ac_ext <<_ACEOF |
| 15959 | /* end confdefs.h. */ |
| 15960 | #include <$ac_header> |
| 15961 | _ACEOF |
| 15962 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15963 | case "(($ac_try" in |
| 15964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15965 | *) ac_try_echo=$ac_try;; |
| 15966 | esac |
| 15967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15968 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15969 | ac_status=$? |
| 15970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15971 | rm -f conftest.er1 |
| 15972 | cat conftest.err >&5 |
| 15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15974 | (exit $ac_status); } >/dev/null; then |
| 15975 | if test -s conftest.err; then |
| 15976 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15977 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15978 | else |
| 15979 | ac_cpp_err= |
| 15980 | fi |
| 15981 | else |
| 15982 | ac_cpp_err=yes |
| 15983 | fi |
| 15984 | if test -z "$ac_cpp_err"; then |
| 15985 | ac_header_preproc=yes |
| 15986 | else |
| 15987 | echo "$as_me: failed program was:" >&5 |
| 15988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15989 | |
| 15990 | ac_header_preproc=no |
| 15991 | fi |
| 15992 | |
| 15993 | rm -f conftest.err conftest.$ac_ext |
| 15994 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15995 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15996 | |
| 15997 | # So? What about this header? |
| 15998 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15999 | yes:no: ) |
| 16000 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16001 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16003 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16004 | ac_header_preproc=yes |
| 16005 | ;; |
| 16006 | no:yes:* ) |
| 16007 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16008 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16009 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16010 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16011 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16012 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16013 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16014 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16016 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16017 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16018 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16019 | ( cat <<\_ASBOX |
| 16020 | ## ----------------------------------- ## |
| 16021 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16022 | ## ----------------------------------- ## |
| 16023 | _ASBOX |
| 16024 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16025 | ;; |
| 16026 | esac |
| 16027 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16031 | else |
| 16032 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16033 | fi |
| 16034 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16036 | echo "${ECHO_T}$ac_res" >&6; } |
| 16037 | |
| 16038 | fi |
| 16039 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16040 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16041 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16042 | _ACEOF |
| 16043 | |
| 16044 | fi |
| 16045 | |
| 16046 | done |
| 16047 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16048 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16049 | |
| 16050 | for ac_header in pthread.h |
| 16051 | do |
| 16052 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16053 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16054 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16056 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16058 | fi |
| 16059 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16060 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16061 | echo "${ECHO_T}$ac_res" >&6; } |
| 16062 | else |
| 16063 | # Is the header compilable? |
| 16064 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16066 | cat >conftest.$ac_ext <<_ACEOF |
| 16067 | /* confdefs.h. */ |
| 16068 | _ACEOF |
| 16069 | cat confdefs.h >>conftest.$ac_ext |
| 16070 | cat >>conftest.$ac_ext <<_ACEOF |
| 16071 | /* end confdefs.h. */ |
| 16072 | $ac_includes_default |
| 16073 | #include <$ac_header> |
| 16074 | _ACEOF |
| 16075 | rm -f conftest.$ac_objext |
| 16076 | if { (ac_try="$ac_compile" |
| 16077 | case "(($ac_try" in |
| 16078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16079 | *) ac_try_echo=$ac_try;; |
| 16080 | esac |
| 16081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16082 | (eval "$ac_compile") 2>conftest.er1 |
| 16083 | ac_status=$? |
| 16084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16085 | rm -f conftest.er1 |
| 16086 | cat conftest.err >&5 |
| 16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16088 | (exit $ac_status); } && |
| 16089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16090 | { (case "(($ac_try" in |
| 16091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16092 | *) ac_try_echo=$ac_try;; |
| 16093 | esac |
| 16094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16095 | (eval "$ac_try") 2>&5 |
| 16096 | ac_status=$? |
| 16097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16098 | (exit $ac_status); }; } && |
| 16099 | { ac_try='test -s conftest.$ac_objext' |
| 16100 | { (case "(($ac_try" in |
| 16101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16102 | *) ac_try_echo=$ac_try;; |
| 16103 | esac |
| 16104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16105 | (eval "$ac_try") 2>&5 |
| 16106 | ac_status=$? |
| 16107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16108 | (exit $ac_status); }; }; then |
| 16109 | ac_header_compiler=yes |
| 16110 | else |
| 16111 | echo "$as_me: failed program was:" >&5 |
| 16112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16113 | |
| 16114 | ac_header_compiler=no |
| 16115 | fi |
| 16116 | |
| 16117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16119 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16120 | |
| 16121 | # Is the header present? |
| 16122 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16124 | cat >conftest.$ac_ext <<_ACEOF |
| 16125 | /* confdefs.h. */ |
| 16126 | _ACEOF |
| 16127 | cat confdefs.h >>conftest.$ac_ext |
| 16128 | cat >>conftest.$ac_ext <<_ACEOF |
| 16129 | /* end confdefs.h. */ |
| 16130 | #include <$ac_header> |
| 16131 | _ACEOF |
| 16132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16133 | case "(($ac_try" in |
| 16134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16135 | *) ac_try_echo=$ac_try;; |
| 16136 | esac |
| 16137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16139 | ac_status=$? |
| 16140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16141 | rm -f conftest.er1 |
| 16142 | cat conftest.err >&5 |
| 16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16144 | (exit $ac_status); } >/dev/null; then |
| 16145 | if test -s conftest.err; then |
| 16146 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16147 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16148 | else |
| 16149 | ac_cpp_err= |
| 16150 | fi |
| 16151 | else |
| 16152 | ac_cpp_err=yes |
| 16153 | fi |
| 16154 | if test -z "$ac_cpp_err"; then |
| 16155 | ac_header_preproc=yes |
| 16156 | else |
| 16157 | echo "$as_me: failed program was:" >&5 |
| 16158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16159 | |
| 16160 | ac_header_preproc=no |
| 16161 | fi |
| 16162 | |
| 16163 | rm -f conftest.err conftest.$ac_ext |
| 16164 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16165 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16166 | |
| 16167 | # So? What about this header? |
| 16168 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16169 | yes:no: ) |
| 16170 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16171 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16173 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16174 | ac_header_preproc=yes |
| 16175 | ;; |
| 16176 | no:yes:* ) |
| 16177 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16178 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16179 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16180 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16181 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16182 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16183 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16184 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16186 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16187 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16188 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16189 | ( cat <<\_ASBOX |
| 16190 | ## ----------------------------------- ## |
| 16191 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16192 | ## ----------------------------------- ## |
| 16193 | _ASBOX |
| 16194 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16195 | ;; |
| 16196 | esac |
| 16197 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16199 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16201 | else |
| 16202 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16203 | fi |
| 16204 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16206 | echo "${ECHO_T}$ac_res" >&6; } |
| 16207 | |
| 16208 | fi |
| 16209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16210 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16212 | _ACEOF |
| 16213 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16214 | |
| 16215 | else |
| 16216 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16217 | |
| 16218 | fi |
| 16219 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16220 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16221 | |
| 16222 | else |
| 16223 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16224 | |
| 16225 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16226 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16227 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16228 | |
| 16229 | |
| 16230 | for ac_header in ffi.h ffi/ffi.h |
| 16231 | do |
| 16232 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16234 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16236 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16238 | fi |
| 16239 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16240 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16241 | echo "${ECHO_T}$ac_res" >&6; } |
| 16242 | else |
| 16243 | # Is the header compilable? |
| 16244 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16245 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16246 | cat >conftest.$ac_ext <<_ACEOF |
| 16247 | /* confdefs.h. */ |
| 16248 | _ACEOF |
| 16249 | cat confdefs.h >>conftest.$ac_ext |
| 16250 | cat >>conftest.$ac_ext <<_ACEOF |
| 16251 | /* end confdefs.h. */ |
| 16252 | $ac_includes_default |
| 16253 | #include <$ac_header> |
| 16254 | _ACEOF |
| 16255 | rm -f conftest.$ac_objext |
| 16256 | if { (ac_try="$ac_compile" |
| 16257 | case "(($ac_try" in |
| 16258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16259 | *) ac_try_echo=$ac_try;; |
| 16260 | esac |
| 16261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16262 | (eval "$ac_compile") 2>conftest.er1 |
| 16263 | ac_status=$? |
| 16264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16265 | rm -f conftest.er1 |
| 16266 | cat conftest.err >&5 |
| 16267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16268 | (exit $ac_status); } && |
| 16269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16270 | { (case "(($ac_try" in |
| 16271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16272 | *) ac_try_echo=$ac_try;; |
| 16273 | esac |
| 16274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16275 | (eval "$ac_try") 2>&5 |
| 16276 | ac_status=$? |
| 16277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16278 | (exit $ac_status); }; } && |
| 16279 | { ac_try='test -s conftest.$ac_objext' |
| 16280 | { (case "(($ac_try" in |
| 16281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16282 | *) ac_try_echo=$ac_try;; |
| 16283 | esac |
| 16284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16285 | (eval "$ac_try") 2>&5 |
| 16286 | ac_status=$? |
| 16287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16288 | (exit $ac_status); }; }; then |
| 16289 | ac_header_compiler=yes |
| 16290 | else |
| 16291 | echo "$as_me: failed program was:" >&5 |
| 16292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16293 | |
| 16294 | ac_header_compiler=no |
| 16295 | fi |
| 16296 | |
| 16297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16298 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16299 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16300 | |
| 16301 | # Is the header present? |
| 16302 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16303 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16304 | cat >conftest.$ac_ext <<_ACEOF |
| 16305 | /* confdefs.h. */ |
| 16306 | _ACEOF |
| 16307 | cat confdefs.h >>conftest.$ac_ext |
| 16308 | cat >>conftest.$ac_ext <<_ACEOF |
| 16309 | /* end confdefs.h. */ |
| 16310 | #include <$ac_header> |
| 16311 | _ACEOF |
| 16312 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16313 | case "(($ac_try" in |
| 16314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16315 | *) ac_try_echo=$ac_try;; |
| 16316 | esac |
| 16317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16318 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16319 | ac_status=$? |
| 16320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16321 | rm -f conftest.er1 |
| 16322 | cat conftest.err >&5 |
| 16323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16324 | (exit $ac_status); } >/dev/null; then |
| 16325 | if test -s conftest.err; then |
| 16326 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16327 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16328 | else |
| 16329 | ac_cpp_err= |
| 16330 | fi |
| 16331 | else |
| 16332 | ac_cpp_err=yes |
| 16333 | fi |
| 16334 | if test -z "$ac_cpp_err"; then |
| 16335 | ac_header_preproc=yes |
| 16336 | else |
| 16337 | echo "$as_me: failed program was:" >&5 |
| 16338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16339 | |
| 16340 | ac_header_preproc=no |
| 16341 | fi |
| 16342 | |
| 16343 | rm -f conftest.err conftest.$ac_ext |
| 16344 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16345 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16346 | |
| 16347 | # So? What about this header? |
| 16348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16349 | yes:no: ) |
| 16350 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16351 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16353 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16354 | ac_header_preproc=yes |
| 16355 | ;; |
| 16356 | no:yes:* ) |
| 16357 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16358 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16359 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16360 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16361 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16362 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16363 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16364 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16366 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16367 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16368 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16369 | ( cat <<\_ASBOX |
| 16370 | ## ----------------------------------- ## |
| 16371 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16372 | ## ----------------------------------- ## |
| 16373 | _ASBOX |
| 16374 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16375 | ;; |
| 16376 | esac |
| 16377 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16379 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16381 | else |
| 16382 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16383 | fi |
| 16384 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16385 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16386 | echo "${ECHO_T}$ac_res" >&6; } |
| 16387 | |
| 16388 | fi |
| 16389 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16390 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16391 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16392 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16393 | |
| 16394 | fi |
| 16395 | |
| 16396 | done |
| 16397 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16398 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16399 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16400 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16401 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16402 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16403 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16404 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16405 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16407 | else |
| 16408 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16409 | ac_ext=cpp |
| 16410 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16411 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16412 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16413 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16414 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16415 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16416 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16417 | ac_cv_huge_val_sanity=yes |
| 16418 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16419 | cat >conftest.$ac_ext <<_ACEOF |
| 16420 | /* confdefs.h. */ |
| 16421 | _ACEOF |
| 16422 | cat confdefs.h >>conftest.$ac_ext |
| 16423 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16424 | /* end confdefs.h. */ |
| 16425 | #include <math.h> |
| 16426 | int |
| 16427 | main () |
| 16428 | { |
| 16429 | double x = HUGE_VAL; return x != x; |
| 16430 | ; |
| 16431 | return 0; |
| 16432 | } |
| 16433 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16434 | rm -f conftest$ac_exeext |
| 16435 | if { (ac_try="$ac_link" |
| 16436 | case "(($ac_try" in |
| 16437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16438 | *) ac_try_echo=$ac_try;; |
| 16439 | esac |
| 16440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16441 | (eval "$ac_link") 2>&5 |
| 16442 | ac_status=$? |
| 16443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16445 | { (case "(($ac_try" in |
| 16446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16447 | *) ac_try_echo=$ac_try;; |
| 16448 | esac |
| 16449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16450 | (eval "$ac_try") 2>&5 |
| 16451 | ac_status=$? |
| 16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16453 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16454 | ac_cv_huge_val_sanity=yes |
| 16455 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16456 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16457 | echo "$as_me: failed program was:" >&5 |
| 16458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16459 | |
| 16460 | ( exit $ac_status ) |
| 16461 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16462 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16464 | fi |
| 16465 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16466 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16467 | ac_ext=c |
| 16468 | ac_cpp='$CPP $CPPFLAGS' |
| 16469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16472 | |
| 16473 | |
| 16474 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16475 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16476 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16477 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16478 | |
| 16479 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16480 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16481 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16482 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16484 | else |
| 16485 | cat >conftest.$ac_ext <<_ACEOF |
| 16486 | /* confdefs.h. */ |
| 16487 | _ACEOF |
| 16488 | cat confdefs.h >>conftest.$ac_ext |
| 16489 | cat >>conftest.$ac_ext <<_ACEOF |
| 16490 | /* end confdefs.h. */ |
| 16491 | $ac_includes_default |
| 16492 | typedef pid_t ac__type_new_; |
| 16493 | int |
| 16494 | main () |
| 16495 | { |
| 16496 | if ((ac__type_new_ *) 0) |
| 16497 | return 0; |
| 16498 | if (sizeof (ac__type_new_)) |
| 16499 | return 0; |
| 16500 | ; |
| 16501 | return 0; |
| 16502 | } |
| 16503 | _ACEOF |
| 16504 | rm -f conftest.$ac_objext |
| 16505 | if { (ac_try="$ac_compile" |
| 16506 | case "(($ac_try" in |
| 16507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16508 | *) ac_try_echo=$ac_try;; |
| 16509 | esac |
| 16510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16511 | (eval "$ac_compile") 2>conftest.er1 |
| 16512 | ac_status=$? |
| 16513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16514 | rm -f conftest.er1 |
| 16515 | cat conftest.err >&5 |
| 16516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16517 | (exit $ac_status); } && |
| 16518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16519 | { (case "(($ac_try" in |
| 16520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16521 | *) ac_try_echo=$ac_try;; |
| 16522 | esac |
| 16523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16524 | (eval "$ac_try") 2>&5 |
| 16525 | ac_status=$? |
| 16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16527 | (exit $ac_status); }; } && |
| 16528 | { ac_try='test -s conftest.$ac_objext' |
| 16529 | { (case "(($ac_try" in |
| 16530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16531 | *) ac_try_echo=$ac_try;; |
| 16532 | esac |
| 16533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16534 | (eval "$ac_try") 2>&5 |
| 16535 | ac_status=$? |
| 16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16537 | (exit $ac_status); }; }; then |
| 16538 | ac_cv_type_pid_t=yes |
| 16539 | else |
| 16540 | echo "$as_me: failed program was:" >&5 |
| 16541 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16542 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16543 | ac_cv_type_pid_t=no |
| 16544 | fi |
| 16545 | |
| 16546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16547 | fi |
| 16548 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16549 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16550 | if test $ac_cv_type_pid_t = yes; then |
| 16551 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16552 | else |
| 16553 | |
| 16554 | cat >>confdefs.h <<_ACEOF |
| 16555 | #define pid_t int |
| 16556 | _ACEOF |
| 16557 | |
| 16558 | fi |
| 16559 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16560 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16561 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16562 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16564 | else |
| 16565 | cat >conftest.$ac_ext <<_ACEOF |
| 16566 | /* confdefs.h. */ |
| 16567 | _ACEOF |
| 16568 | cat confdefs.h >>conftest.$ac_ext |
| 16569 | cat >>conftest.$ac_ext <<_ACEOF |
| 16570 | /* end confdefs.h. */ |
| 16571 | $ac_includes_default |
| 16572 | typedef size_t ac__type_new_; |
| 16573 | int |
| 16574 | main () |
| 16575 | { |
| 16576 | if ((ac__type_new_ *) 0) |
| 16577 | return 0; |
| 16578 | if (sizeof (ac__type_new_)) |
| 16579 | return 0; |
| 16580 | ; |
| 16581 | return 0; |
| 16582 | } |
| 16583 | _ACEOF |
| 16584 | rm -f conftest.$ac_objext |
| 16585 | if { (ac_try="$ac_compile" |
| 16586 | case "(($ac_try" in |
| 16587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16588 | *) ac_try_echo=$ac_try;; |
| 16589 | esac |
| 16590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16591 | (eval "$ac_compile") 2>conftest.er1 |
| 16592 | ac_status=$? |
| 16593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16594 | rm -f conftest.er1 |
| 16595 | cat conftest.err >&5 |
| 16596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16597 | (exit $ac_status); } && |
| 16598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16599 | { (case "(($ac_try" in |
| 16600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16601 | *) ac_try_echo=$ac_try;; |
| 16602 | esac |
| 16603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16604 | (eval "$ac_try") 2>&5 |
| 16605 | ac_status=$? |
| 16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16607 | (exit $ac_status); }; } && |
| 16608 | { ac_try='test -s conftest.$ac_objext' |
| 16609 | { (case "(($ac_try" in |
| 16610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16611 | *) ac_try_echo=$ac_try;; |
| 16612 | esac |
| 16613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16614 | (eval "$ac_try") 2>&5 |
| 16615 | ac_status=$? |
| 16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16617 | (exit $ac_status); }; }; then |
| 16618 | ac_cv_type_size_t=yes |
| 16619 | else |
| 16620 | echo "$as_me: failed program was:" >&5 |
| 16621 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16622 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16623 | ac_cv_type_size_t=no |
| 16624 | fi |
| 16625 | |
| 16626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16627 | fi |
| 16628 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16629 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16630 | if test $ac_cv_type_size_t = yes; then |
| 16631 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16632 | else |
| 16633 | |
| 16634 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16635 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16636 | _ACEOF |
| 16637 | |
| 16638 | fi |
| 16639 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16640 | |
| 16641 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16642 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16643 | _ACEOF |
| 16644 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16645 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16646 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16647 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16649 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16650 | cat >conftest.$ac_ext <<_ACEOF |
| 16651 | /* confdefs.h. */ |
| 16652 | _ACEOF |
| 16653 | cat confdefs.h >>conftest.$ac_ext |
| 16654 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16655 | /* end confdefs.h. */ |
| 16656 | #include <sys/types.h> |
| 16657 | #include <time.h> |
| 16658 | |
| 16659 | int |
| 16660 | main () |
| 16661 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16662 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16663 | ; |
| 16664 | return 0; |
| 16665 | } |
| 16666 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16667 | rm -f conftest.$ac_objext |
| 16668 | if { (ac_try="$ac_compile" |
| 16669 | case "(($ac_try" in |
| 16670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16671 | *) ac_try_echo=$ac_try;; |
| 16672 | esac |
| 16673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16674 | (eval "$ac_compile") 2>conftest.er1 |
| 16675 | ac_status=$? |
| 16676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16677 | rm -f conftest.er1 |
| 16678 | cat conftest.err >&5 |
| 16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16680 | (exit $ac_status); } && |
| 16681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16682 | { (case "(($ac_try" in |
| 16683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16684 | *) ac_try_echo=$ac_try;; |
| 16685 | esac |
| 16686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16687 | (eval "$ac_try") 2>&5 |
| 16688 | ac_status=$? |
| 16689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16690 | (exit $ac_status); }; } && |
| 16691 | { ac_try='test -s conftest.$ac_objext' |
| 16692 | { (case "(($ac_try" in |
| 16693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16694 | *) ac_try_echo=$ac_try;; |
| 16695 | esac |
| 16696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16697 | (eval "$ac_try") 2>&5 |
| 16698 | ac_status=$? |
| 16699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16700 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16701 | ac_cv_struct_tm=time.h |
| 16702 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16703 | echo "$as_me: failed program was:" >&5 |
| 16704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16705 | |
| 16706 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16707 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16710 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16711 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16712 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16713 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16714 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16715 | cat >>confdefs.h <<\_ACEOF |
| 16716 | #define TM_IN_SYS_TIME 1 |
| 16717 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16718 | |
| 16719 | fi |
| 16720 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16721 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16722 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16723 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16725 | else |
| 16726 | cat >conftest.$ac_ext <<_ACEOF |
| 16727 | /* confdefs.h. */ |
| 16728 | _ACEOF |
| 16729 | cat confdefs.h >>conftest.$ac_ext |
| 16730 | cat >>conftest.$ac_ext <<_ACEOF |
| 16731 | /* end confdefs.h. */ |
| 16732 | $ac_includes_default |
| 16733 | typedef int64_t ac__type_new_; |
| 16734 | int |
| 16735 | main () |
| 16736 | { |
| 16737 | if ((ac__type_new_ *) 0) |
| 16738 | return 0; |
| 16739 | if (sizeof (ac__type_new_)) |
| 16740 | return 0; |
| 16741 | ; |
| 16742 | return 0; |
| 16743 | } |
| 16744 | _ACEOF |
| 16745 | rm -f conftest.$ac_objext |
| 16746 | if { (ac_try="$ac_compile" |
| 16747 | case "(($ac_try" in |
| 16748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16749 | *) ac_try_echo=$ac_try;; |
| 16750 | esac |
| 16751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16752 | (eval "$ac_compile") 2>conftest.er1 |
| 16753 | ac_status=$? |
| 16754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16755 | rm -f conftest.er1 |
| 16756 | cat conftest.err >&5 |
| 16757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16758 | (exit $ac_status); } && |
| 16759 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16760 | { (case "(($ac_try" in |
| 16761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16762 | *) ac_try_echo=$ac_try;; |
| 16763 | esac |
| 16764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16765 | (eval "$ac_try") 2>&5 |
| 16766 | ac_status=$? |
| 16767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16768 | (exit $ac_status); }; } && |
| 16769 | { ac_try='test -s conftest.$ac_objext' |
| 16770 | { (case "(($ac_try" in |
| 16771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16772 | *) ac_try_echo=$ac_try;; |
| 16773 | esac |
| 16774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16775 | (eval "$ac_try") 2>&5 |
| 16776 | ac_status=$? |
| 16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16778 | (exit $ac_status); }; }; then |
| 16779 | ac_cv_type_int64_t=yes |
| 16780 | else |
| 16781 | echo "$as_me: failed program was:" >&5 |
| 16782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16783 | |
| 16784 | ac_cv_type_int64_t=no |
| 16785 | fi |
| 16786 | |
| 16787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16788 | fi |
| 16789 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16790 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16791 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16792 | |
| 16793 | cat >>confdefs.h <<_ACEOF |
| 16794 | #define HAVE_INT64_T 1 |
| 16795 | _ACEOF |
| 16796 | |
| 16797 | |
| 16798 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16799 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16800 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16801 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16802 | fi |
| 16803 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16804 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16805 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16806 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16808 | else |
| 16809 | cat >conftest.$ac_ext <<_ACEOF |
| 16810 | /* confdefs.h. */ |
| 16811 | _ACEOF |
| 16812 | cat confdefs.h >>conftest.$ac_ext |
| 16813 | cat >>conftest.$ac_ext <<_ACEOF |
| 16814 | /* end confdefs.h. */ |
| 16815 | $ac_includes_default |
| 16816 | typedef uint64_t ac__type_new_; |
| 16817 | int |
| 16818 | main () |
| 16819 | { |
| 16820 | if ((ac__type_new_ *) 0) |
| 16821 | return 0; |
| 16822 | if (sizeof (ac__type_new_)) |
| 16823 | return 0; |
| 16824 | ; |
| 16825 | return 0; |
| 16826 | } |
| 16827 | _ACEOF |
| 16828 | rm -f conftest.$ac_objext |
| 16829 | if { (ac_try="$ac_compile" |
| 16830 | case "(($ac_try" in |
| 16831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16832 | *) ac_try_echo=$ac_try;; |
| 16833 | esac |
| 16834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16835 | (eval "$ac_compile") 2>conftest.er1 |
| 16836 | ac_status=$? |
| 16837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16838 | rm -f conftest.er1 |
| 16839 | cat conftest.err >&5 |
| 16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16841 | (exit $ac_status); } && |
| 16842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16843 | { (case "(($ac_try" in |
| 16844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16845 | *) ac_try_echo=$ac_try;; |
| 16846 | esac |
| 16847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16848 | (eval "$ac_try") 2>&5 |
| 16849 | ac_status=$? |
| 16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16851 | (exit $ac_status); }; } && |
| 16852 | { ac_try='test -s conftest.$ac_objext' |
| 16853 | { (case "(($ac_try" in |
| 16854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16855 | *) ac_try_echo=$ac_try;; |
| 16856 | esac |
| 16857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16858 | (eval "$ac_try") 2>&5 |
| 16859 | ac_status=$? |
| 16860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16861 | (exit $ac_status); }; }; then |
| 16862 | ac_cv_type_uint64_t=yes |
| 16863 | else |
| 16864 | echo "$as_me: failed program was:" >&5 |
| 16865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16866 | |
| 16867 | ac_cv_type_uint64_t=no |
| 16868 | fi |
| 16869 | |
| 16870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16871 | fi |
| 16872 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16873 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16874 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16875 | |
| 16876 | cat >>confdefs.h <<_ACEOF |
| 16877 | #define HAVE_UINT64_T 1 |
| 16878 | _ACEOF |
| 16879 | |
| 16880 | |
| 16881 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16882 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16883 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16884 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16886 | else |
| 16887 | cat >conftest.$ac_ext <<_ACEOF |
| 16888 | /* confdefs.h. */ |
| 16889 | _ACEOF |
| 16890 | cat confdefs.h >>conftest.$ac_ext |
| 16891 | cat >>conftest.$ac_ext <<_ACEOF |
| 16892 | /* end confdefs.h. */ |
| 16893 | $ac_includes_default |
| 16894 | typedef u_int64_t ac__type_new_; |
| 16895 | int |
| 16896 | main () |
| 16897 | { |
| 16898 | if ((ac__type_new_ *) 0) |
| 16899 | return 0; |
| 16900 | if (sizeof (ac__type_new_)) |
| 16901 | return 0; |
| 16902 | ; |
| 16903 | return 0; |
| 16904 | } |
| 16905 | _ACEOF |
| 16906 | rm -f conftest.$ac_objext |
| 16907 | if { (ac_try="$ac_compile" |
| 16908 | case "(($ac_try" in |
| 16909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16910 | *) ac_try_echo=$ac_try;; |
| 16911 | esac |
| 16912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16913 | (eval "$ac_compile") 2>conftest.er1 |
| 16914 | ac_status=$? |
| 16915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16916 | rm -f conftest.er1 |
| 16917 | cat conftest.err >&5 |
| 16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16919 | (exit $ac_status); } && |
| 16920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16921 | { (case "(($ac_try" in |
| 16922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16923 | *) ac_try_echo=$ac_try;; |
| 16924 | esac |
| 16925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16926 | (eval "$ac_try") 2>&5 |
| 16927 | ac_status=$? |
| 16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16929 | (exit $ac_status); }; } && |
| 16930 | { ac_try='test -s conftest.$ac_objext' |
| 16931 | { (case "(($ac_try" in |
| 16932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16933 | *) ac_try_echo=$ac_try;; |
| 16934 | esac |
| 16935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16936 | (eval "$ac_try") 2>&5 |
| 16937 | ac_status=$? |
| 16938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16939 | (exit $ac_status); }; }; then |
| 16940 | ac_cv_type_u_int64_t=yes |
| 16941 | else |
| 16942 | echo "$as_me: failed program was:" >&5 |
| 16943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16944 | |
| 16945 | ac_cv_type_u_int64_t=no |
| 16946 | fi |
| 16947 | |
| 16948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16949 | fi |
| 16950 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16951 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16952 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16953 | |
| 16954 | cat >>confdefs.h <<_ACEOF |
| 16955 | #define HAVE_U_INT64_T 1 |
| 16956 | _ACEOF |
| 16957 | |
| 16958 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16959 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16960 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16961 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16962 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16963 | fi |
| 16964 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16965 | fi |
| 16966 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16967 | |
| 16968 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16969 | |
| 16970 | |
| 16971 | |
| 16972 | |
| 16973 | |
| 16974 | |
| 16975 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16976 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16977 | do |
| 16978 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16979 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16980 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16981 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16983 | else |
| 16984 | cat >conftest.$ac_ext <<_ACEOF |
| 16985 | /* confdefs.h. */ |
| 16986 | _ACEOF |
| 16987 | cat confdefs.h >>conftest.$ac_ext |
| 16988 | cat >>conftest.$ac_ext <<_ACEOF |
| 16989 | /* end confdefs.h. */ |
| 16990 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16992 | #define $ac_func innocuous_$ac_func |
| 16993 | |
| 16994 | /* System header to define __stub macros and hopefully few prototypes, |
| 16995 | which can conflict with char $ac_func (); below. |
| 16996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16997 | <limits.h> exists even on freestanding compilers. */ |
| 16998 | |
| 16999 | #ifdef __STDC__ |
| 17000 | # include <limits.h> |
| 17001 | #else |
| 17002 | # include <assert.h> |
| 17003 | #endif |
| 17004 | |
| 17005 | #undef $ac_func |
| 17006 | |
| 17007 | /* Override any GCC internal prototype to avoid an error. |
| 17008 | Use char because int might match the return type of a GCC |
| 17009 | builtin and then its argument prototype would still apply. */ |
| 17010 | #ifdef __cplusplus |
| 17011 | extern "C" |
| 17012 | #endif |
| 17013 | char $ac_func (); |
| 17014 | /* The GNU C library defines this for functions which it implements |
| 17015 | to always fail with ENOSYS. Some functions are actually named |
| 17016 | something starting with __ and the normal name is an alias. */ |
| 17017 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17018 | choke me |
| 17019 | #endif |
| 17020 | |
| 17021 | int |
| 17022 | main () |
| 17023 | { |
| 17024 | return $ac_func (); |
| 17025 | ; |
| 17026 | return 0; |
| 17027 | } |
| 17028 | _ACEOF |
| 17029 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17030 | if { (ac_try="$ac_link" |
| 17031 | case "(($ac_try" in |
| 17032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17033 | *) ac_try_echo=$ac_try;; |
| 17034 | esac |
| 17035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17036 | (eval "$ac_link") 2>conftest.er1 |
| 17037 | ac_status=$? |
| 17038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17039 | rm -f conftest.er1 |
| 17040 | cat conftest.err >&5 |
| 17041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17042 | (exit $ac_status); } && |
| 17043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17044 | { (case "(($ac_try" in |
| 17045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17046 | *) ac_try_echo=$ac_try;; |
| 17047 | esac |
| 17048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17049 | (eval "$ac_try") 2>&5 |
| 17050 | ac_status=$? |
| 17051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17052 | (exit $ac_status); }; } && |
| 17053 | { ac_try='test -s conftest$ac_exeext' |
| 17054 | { (case "(($ac_try" in |
| 17055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17056 | *) ac_try_echo=$ac_try;; |
| 17057 | esac |
| 17058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17059 | (eval "$ac_try") 2>&5 |
| 17060 | ac_status=$? |
| 17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17062 | (exit $ac_status); }; }; then |
| 17063 | eval "$as_ac_var=yes" |
| 17064 | else |
| 17065 | echo "$as_me: failed program was:" >&5 |
| 17066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17067 | |
| 17068 | eval "$as_ac_var=no" |
| 17069 | fi |
| 17070 | |
| 17071 | rm -f core conftest.err conftest.$ac_objext \ |
| 17072 | conftest$ac_exeext conftest.$ac_ext |
| 17073 | fi |
| 17074 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17075 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17076 | echo "${ECHO_T}$ac_res" >&6; } |
| 17077 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17078 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17079 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17080 | _ACEOF |
| 17081 | |
| 17082 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17083 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17084 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17085 | |
| 17086 | |
| 17087 | |
| 17088 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17089 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17090 | do |
| 17091 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17092 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17093 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17094 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17096 | else |
| 17097 | cat >conftest.$ac_ext <<_ACEOF |
| 17098 | /* confdefs.h. */ |
| 17099 | _ACEOF |
| 17100 | cat confdefs.h >>conftest.$ac_ext |
| 17101 | cat >>conftest.$ac_ext <<_ACEOF |
| 17102 | /* end confdefs.h. */ |
| 17103 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17105 | #define $ac_func innocuous_$ac_func |
| 17106 | |
| 17107 | /* System header to define __stub macros and hopefully few prototypes, |
| 17108 | which can conflict with char $ac_func (); below. |
| 17109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17110 | <limits.h> exists even on freestanding compilers. */ |
| 17111 | |
| 17112 | #ifdef __STDC__ |
| 17113 | # include <limits.h> |
| 17114 | #else |
| 17115 | # include <assert.h> |
| 17116 | #endif |
| 17117 | |
| 17118 | #undef $ac_func |
| 17119 | |
| 17120 | /* Override any GCC internal prototype to avoid an error. |
| 17121 | Use char because int might match the return type of a GCC |
| 17122 | builtin and then its argument prototype would still apply. */ |
| 17123 | #ifdef __cplusplus |
| 17124 | extern "C" |
| 17125 | #endif |
| 17126 | char $ac_func (); |
| 17127 | /* The GNU C library defines this for functions which it implements |
| 17128 | to always fail with ENOSYS. Some functions are actually named |
| 17129 | something starting with __ and the normal name is an alias. */ |
| 17130 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17131 | choke me |
| 17132 | #endif |
| 17133 | |
| 17134 | int |
| 17135 | main () |
| 17136 | { |
| 17137 | return $ac_func (); |
| 17138 | ; |
| 17139 | return 0; |
| 17140 | } |
| 17141 | _ACEOF |
| 17142 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17143 | if { (ac_try="$ac_link" |
| 17144 | case "(($ac_try" in |
| 17145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17146 | *) ac_try_echo=$ac_try;; |
| 17147 | esac |
| 17148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17149 | (eval "$ac_link") 2>conftest.er1 |
| 17150 | ac_status=$? |
| 17151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17152 | rm -f conftest.er1 |
| 17153 | cat conftest.err >&5 |
| 17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17155 | (exit $ac_status); } && |
| 17156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17157 | { (case "(($ac_try" in |
| 17158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17159 | *) ac_try_echo=$ac_try;; |
| 17160 | esac |
| 17161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17162 | (eval "$ac_try") 2>&5 |
| 17163 | ac_status=$? |
| 17164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17165 | (exit $ac_status); }; } && |
| 17166 | { ac_try='test -s conftest$ac_exeext' |
| 17167 | { (case "(($ac_try" in |
| 17168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17169 | *) ac_try_echo=$ac_try;; |
| 17170 | esac |
| 17171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17172 | (eval "$ac_try") 2>&5 |
| 17173 | ac_status=$? |
| 17174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17175 | (exit $ac_status); }; }; then |
| 17176 | eval "$as_ac_var=yes" |
| 17177 | else |
| 17178 | echo "$as_me: failed program was:" >&5 |
| 17179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17180 | |
| 17181 | eval "$as_ac_var=no" |
| 17182 | fi |
| 17183 | |
| 17184 | rm -f core conftest.err conftest.$ac_objext \ |
| 17185 | conftest$ac_exeext conftest.$ac_ext |
| 17186 | fi |
| 17187 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17188 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17189 | echo "${ECHO_T}$ac_res" >&6; } |
| 17190 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17191 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17193 | _ACEOF |
| 17194 | |
| 17195 | fi |
| 17196 | done |
| 17197 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17198 | |
| 17199 | |
| 17200 | |
| 17201 | |
| 17202 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17203 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17204 | do |
| 17205 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17206 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17207 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17208 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17210 | else |
| 17211 | cat >conftest.$ac_ext <<_ACEOF |
| 17212 | /* confdefs.h. */ |
| 17213 | _ACEOF |
| 17214 | cat confdefs.h >>conftest.$ac_ext |
| 17215 | cat >>conftest.$ac_ext <<_ACEOF |
| 17216 | /* end confdefs.h. */ |
| 17217 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17219 | #define $ac_func innocuous_$ac_func |
| 17220 | |
| 17221 | /* System header to define __stub macros and hopefully few prototypes, |
| 17222 | which can conflict with char $ac_func (); below. |
| 17223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17224 | <limits.h> exists even on freestanding compilers. */ |
| 17225 | |
| 17226 | #ifdef __STDC__ |
| 17227 | # include <limits.h> |
| 17228 | #else |
| 17229 | # include <assert.h> |
| 17230 | #endif |
| 17231 | |
| 17232 | #undef $ac_func |
| 17233 | |
| 17234 | /* Override any GCC internal prototype to avoid an error. |
| 17235 | Use char because int might match the return type of a GCC |
| 17236 | builtin and then its argument prototype would still apply. */ |
| 17237 | #ifdef __cplusplus |
| 17238 | extern "C" |
| 17239 | #endif |
| 17240 | char $ac_func (); |
| 17241 | /* The GNU C library defines this for functions which it implements |
| 17242 | to always fail with ENOSYS. Some functions are actually named |
| 17243 | something starting with __ and the normal name is an alias. */ |
| 17244 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17245 | choke me |
| 17246 | #endif |
| 17247 | |
| 17248 | int |
| 17249 | main () |
| 17250 | { |
| 17251 | return $ac_func (); |
| 17252 | ; |
| 17253 | return 0; |
| 17254 | } |
| 17255 | _ACEOF |
| 17256 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17257 | if { (ac_try="$ac_link" |
| 17258 | case "(($ac_try" in |
| 17259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17260 | *) ac_try_echo=$ac_try;; |
| 17261 | esac |
| 17262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17263 | (eval "$ac_link") 2>conftest.er1 |
| 17264 | ac_status=$? |
| 17265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17266 | rm -f conftest.er1 |
| 17267 | cat conftest.err >&5 |
| 17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17269 | (exit $ac_status); } && |
| 17270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17271 | { (case "(($ac_try" in |
| 17272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17273 | *) ac_try_echo=$ac_try;; |
| 17274 | esac |
| 17275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17276 | (eval "$ac_try") 2>&5 |
| 17277 | ac_status=$? |
| 17278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17279 | (exit $ac_status); }; } && |
| 17280 | { ac_try='test -s conftest$ac_exeext' |
| 17281 | { (case "(($ac_try" in |
| 17282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17283 | *) ac_try_echo=$ac_try;; |
| 17284 | esac |
| 17285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17286 | (eval "$ac_try") 2>&5 |
| 17287 | ac_status=$? |
| 17288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17289 | (exit $ac_status); }; }; then |
| 17290 | eval "$as_ac_var=yes" |
| 17291 | else |
| 17292 | echo "$as_me: failed program was:" >&5 |
| 17293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17294 | |
| 17295 | eval "$as_ac_var=no" |
| 17296 | fi |
| 17297 | |
| 17298 | rm -f core conftest.err conftest.$ac_objext \ |
| 17299 | conftest$ac_exeext conftest.$ac_ext |
| 17300 | fi |
| 17301 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17302 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17303 | echo "${ECHO_T}$ac_res" >&6; } |
| 17304 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17305 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17306 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17307 | _ACEOF |
| 17308 | |
| 17309 | fi |
| 17310 | done |
| 17311 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17312 | |
| 17313 | |
| 17314 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17315 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17316 | do |
| 17317 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17318 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17319 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17320 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17322 | else |
| 17323 | cat >conftest.$ac_ext <<_ACEOF |
| 17324 | /* confdefs.h. */ |
| 17325 | _ACEOF |
| 17326 | cat confdefs.h >>conftest.$ac_ext |
| 17327 | cat >>conftest.$ac_ext <<_ACEOF |
| 17328 | /* end confdefs.h. */ |
| 17329 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17330 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17331 | #define $ac_func innocuous_$ac_func |
| 17332 | |
| 17333 | /* System header to define __stub macros and hopefully few prototypes, |
| 17334 | which can conflict with char $ac_func (); below. |
| 17335 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17336 | <limits.h> exists even on freestanding compilers. */ |
| 17337 | |
| 17338 | #ifdef __STDC__ |
| 17339 | # include <limits.h> |
| 17340 | #else |
| 17341 | # include <assert.h> |
| 17342 | #endif |
| 17343 | |
| 17344 | #undef $ac_func |
| 17345 | |
| 17346 | /* Override any GCC internal prototype to avoid an error. |
| 17347 | Use char because int might match the return type of a GCC |
| 17348 | builtin and then its argument prototype would still apply. */ |
| 17349 | #ifdef __cplusplus |
| 17350 | extern "C" |
| 17351 | #endif |
| 17352 | char $ac_func (); |
| 17353 | /* The GNU C library defines this for functions which it implements |
| 17354 | to always fail with ENOSYS. Some functions are actually named |
| 17355 | something starting with __ and the normal name is an alias. */ |
| 17356 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17357 | choke me |
| 17358 | #endif |
| 17359 | |
| 17360 | int |
| 17361 | main () |
| 17362 | { |
| 17363 | return $ac_func (); |
| 17364 | ; |
| 17365 | return 0; |
| 17366 | } |
| 17367 | _ACEOF |
| 17368 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17369 | if { (ac_try="$ac_link" |
| 17370 | case "(($ac_try" in |
| 17371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17372 | *) ac_try_echo=$ac_try;; |
| 17373 | esac |
| 17374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17375 | (eval "$ac_link") 2>conftest.er1 |
| 17376 | ac_status=$? |
| 17377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17378 | rm -f conftest.er1 |
| 17379 | cat conftest.err >&5 |
| 17380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17381 | (exit $ac_status); } && |
| 17382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17383 | { (case "(($ac_try" in |
| 17384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17385 | *) ac_try_echo=$ac_try;; |
| 17386 | esac |
| 17387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17388 | (eval "$ac_try") 2>&5 |
| 17389 | ac_status=$? |
| 17390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17391 | (exit $ac_status); }; } && |
| 17392 | { ac_try='test -s conftest$ac_exeext' |
| 17393 | { (case "(($ac_try" in |
| 17394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17395 | *) ac_try_echo=$ac_try;; |
| 17396 | esac |
| 17397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17398 | (eval "$ac_try") 2>&5 |
| 17399 | ac_status=$? |
| 17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17401 | (exit $ac_status); }; }; then |
| 17402 | eval "$as_ac_var=yes" |
| 17403 | else |
| 17404 | echo "$as_me: failed program was:" >&5 |
| 17405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17406 | |
| 17407 | eval "$as_ac_var=no" |
| 17408 | fi |
| 17409 | |
| 17410 | rm -f core conftest.err conftest.$ac_objext \ |
| 17411 | conftest$ac_exeext conftest.$ac_ext |
| 17412 | fi |
| 17413 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17414 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17415 | echo "${ECHO_T}$ac_res" >&6; } |
| 17416 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17417 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17418 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17419 | _ACEOF |
| 17420 | |
| 17421 | fi |
| 17422 | done |
| 17423 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17424 | |
| 17425 | |
| 17426 | |
| 17427 | |
| 17428 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17429 | for ac_func in mktemp realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17430 | do |
| 17431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17432 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17434 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17436 | else |
| 17437 | cat >conftest.$ac_ext <<_ACEOF |
| 17438 | /* confdefs.h. */ |
| 17439 | _ACEOF |
| 17440 | cat confdefs.h >>conftest.$ac_ext |
| 17441 | cat >>conftest.$ac_ext <<_ACEOF |
| 17442 | /* end confdefs.h. */ |
| 17443 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17445 | #define $ac_func innocuous_$ac_func |
| 17446 | |
| 17447 | /* System header to define __stub macros and hopefully few prototypes, |
| 17448 | which can conflict with char $ac_func (); below. |
| 17449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17450 | <limits.h> exists even on freestanding compilers. */ |
| 17451 | |
| 17452 | #ifdef __STDC__ |
| 17453 | # include <limits.h> |
| 17454 | #else |
| 17455 | # include <assert.h> |
| 17456 | #endif |
| 17457 | |
| 17458 | #undef $ac_func |
| 17459 | |
| 17460 | /* Override any GCC internal prototype to avoid an error. |
| 17461 | Use char because int might match the return type of a GCC |
| 17462 | builtin and then its argument prototype would still apply. */ |
| 17463 | #ifdef __cplusplus |
| 17464 | extern "C" |
| 17465 | #endif |
| 17466 | char $ac_func (); |
| 17467 | /* The GNU C library defines this for functions which it implements |
| 17468 | to always fail with ENOSYS. Some functions are actually named |
| 17469 | something starting with __ and the normal name is an alias. */ |
| 17470 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17471 | choke me |
| 17472 | #endif |
| 17473 | |
| 17474 | int |
| 17475 | main () |
| 17476 | { |
| 17477 | return $ac_func (); |
| 17478 | ; |
| 17479 | return 0; |
| 17480 | } |
| 17481 | _ACEOF |
| 17482 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17483 | if { (ac_try="$ac_link" |
| 17484 | case "(($ac_try" in |
| 17485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17486 | *) ac_try_echo=$ac_try;; |
| 17487 | esac |
| 17488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17489 | (eval "$ac_link") 2>conftest.er1 |
| 17490 | ac_status=$? |
| 17491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17492 | rm -f conftest.er1 |
| 17493 | cat conftest.err >&5 |
| 17494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17495 | (exit $ac_status); } && |
| 17496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17497 | { (case "(($ac_try" in |
| 17498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17499 | *) ac_try_echo=$ac_try;; |
| 17500 | esac |
| 17501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17502 | (eval "$ac_try") 2>&5 |
| 17503 | ac_status=$? |
| 17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17505 | (exit $ac_status); }; } && |
| 17506 | { ac_try='test -s conftest$ac_exeext' |
| 17507 | { (case "(($ac_try" in |
| 17508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17509 | *) ac_try_echo=$ac_try;; |
| 17510 | esac |
| 17511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17512 | (eval "$ac_try") 2>&5 |
| 17513 | ac_status=$? |
| 17514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17515 | (exit $ac_status); }; }; then |
| 17516 | eval "$as_ac_var=yes" |
| 17517 | else |
| 17518 | echo "$as_me: failed program was:" >&5 |
| 17519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17520 | |
| 17521 | eval "$as_ac_var=no" |
| 17522 | fi |
| 17523 | |
| 17524 | rm -f core conftest.err conftest.$ac_objext \ |
| 17525 | conftest$ac_exeext conftest.$ac_ext |
| 17526 | fi |
| 17527 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17528 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17529 | echo "${ECHO_T}$ac_res" >&6; } |
| 17530 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17531 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17532 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17533 | _ACEOF |
| 17534 | |
| 17535 | fi |
| 17536 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17537 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17538 | |
| 17539 | |
| 17540 | |
| 17541 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 17542 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17543 | do |
| 17544 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17545 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17546 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17547 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17549 | else |
| 17550 | cat >conftest.$ac_ext <<_ACEOF |
| 17551 | /* confdefs.h. */ |
| 17552 | _ACEOF |
| 17553 | cat confdefs.h >>conftest.$ac_ext |
| 17554 | cat >>conftest.$ac_ext <<_ACEOF |
| 17555 | /* end confdefs.h. */ |
| 17556 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17557 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17558 | #define $ac_func innocuous_$ac_func |
| 17559 | |
| 17560 | /* System header to define __stub macros and hopefully few prototypes, |
| 17561 | which can conflict with char $ac_func (); below. |
| 17562 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17563 | <limits.h> exists even on freestanding compilers. */ |
| 17564 | |
| 17565 | #ifdef __STDC__ |
| 17566 | # include <limits.h> |
| 17567 | #else |
| 17568 | # include <assert.h> |
| 17569 | #endif |
| 17570 | |
| 17571 | #undef $ac_func |
| 17572 | |
| 17573 | /* Override any GCC internal prototype to avoid an error. |
| 17574 | Use char because int might match the return type of a GCC |
| 17575 | builtin and then its argument prototype would still apply. */ |
| 17576 | #ifdef __cplusplus |
| 17577 | extern "C" |
| 17578 | #endif |
| 17579 | char $ac_func (); |
| 17580 | /* The GNU C library defines this for functions which it implements |
| 17581 | to always fail with ENOSYS. Some functions are actually named |
| 17582 | something starting with __ and the normal name is an alias. */ |
| 17583 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17584 | choke me |
| 17585 | #endif |
| 17586 | |
| 17587 | int |
| 17588 | main () |
| 17589 | { |
| 17590 | return $ac_func (); |
| 17591 | ; |
| 17592 | return 0; |
| 17593 | } |
| 17594 | _ACEOF |
| 17595 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17596 | if { (ac_try="$ac_link" |
| 17597 | case "(($ac_try" in |
| 17598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17599 | *) ac_try_echo=$ac_try;; |
| 17600 | esac |
| 17601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17602 | (eval "$ac_link") 2>conftest.er1 |
| 17603 | ac_status=$? |
| 17604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17605 | rm -f conftest.er1 |
| 17606 | cat conftest.err >&5 |
| 17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17608 | (exit $ac_status); } && |
| 17609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17610 | { (case "(($ac_try" in |
| 17611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17612 | *) ac_try_echo=$ac_try;; |
| 17613 | esac |
| 17614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17615 | (eval "$ac_try") 2>&5 |
| 17616 | ac_status=$? |
| 17617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17618 | (exit $ac_status); }; } && |
| 17619 | { ac_try='test -s conftest$ac_exeext' |
| 17620 | { (case "(($ac_try" in |
| 17621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17622 | *) ac_try_echo=$ac_try;; |
| 17623 | esac |
| 17624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17625 | (eval "$ac_try") 2>&5 |
| 17626 | ac_status=$? |
| 17627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17628 | (exit $ac_status); }; }; then |
| 17629 | eval "$as_ac_var=yes" |
| 17630 | else |
| 17631 | echo "$as_me: failed program was:" >&5 |
| 17632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17633 | |
| 17634 | eval "$as_ac_var=no" |
| 17635 | fi |
| 17636 | |
| 17637 | rm -f core conftest.err conftest.$ac_objext \ |
| 17638 | conftest$ac_exeext conftest.$ac_ext |
| 17639 | fi |
| 17640 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17641 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17642 | echo "${ECHO_T}$ac_res" >&6; } |
| 17643 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17644 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17645 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17646 | _ACEOF |
| 17647 | |
| 17648 | fi |
| 17649 | done |
| 17650 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17651 | |
| 17652 | |
| 17653 | |
| 17654 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17655 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17656 | do |
| 17657 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17658 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17659 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17660 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17662 | else |
| 17663 | cat >conftest.$ac_ext <<_ACEOF |
| 17664 | /* confdefs.h. */ |
| 17665 | _ACEOF |
| 17666 | cat confdefs.h >>conftest.$ac_ext |
| 17667 | cat >>conftest.$ac_ext <<_ACEOF |
| 17668 | /* end confdefs.h. */ |
| 17669 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17670 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17671 | #define $ac_func innocuous_$ac_func |
| 17672 | |
| 17673 | /* System header to define __stub macros and hopefully few prototypes, |
| 17674 | which can conflict with char $ac_func (); below. |
| 17675 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17676 | <limits.h> exists even on freestanding compilers. */ |
| 17677 | |
| 17678 | #ifdef __STDC__ |
| 17679 | # include <limits.h> |
| 17680 | #else |
| 17681 | # include <assert.h> |
| 17682 | #endif |
| 17683 | |
| 17684 | #undef $ac_func |
| 17685 | |
| 17686 | /* Override any GCC internal prototype to avoid an error. |
| 17687 | Use char because int might match the return type of a GCC |
| 17688 | builtin and then its argument prototype would still apply. */ |
| 17689 | #ifdef __cplusplus |
| 17690 | extern "C" |
| 17691 | #endif |
| 17692 | char $ac_func (); |
| 17693 | /* The GNU C library defines this for functions which it implements |
| 17694 | to always fail with ENOSYS. Some functions are actually named |
| 17695 | something starting with __ and the normal name is an alias. */ |
| 17696 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17697 | choke me |
| 17698 | #endif |
| 17699 | |
| 17700 | int |
| 17701 | main () |
| 17702 | { |
| 17703 | return $ac_func (); |
| 17704 | ; |
| 17705 | return 0; |
| 17706 | } |
| 17707 | _ACEOF |
| 17708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17709 | if { (ac_try="$ac_link" |
| 17710 | case "(($ac_try" in |
| 17711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17712 | *) ac_try_echo=$ac_try;; |
| 17713 | esac |
| 17714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17715 | (eval "$ac_link") 2>conftest.er1 |
| 17716 | ac_status=$? |
| 17717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17718 | rm -f conftest.er1 |
| 17719 | cat conftest.err >&5 |
| 17720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17721 | (exit $ac_status); } && |
| 17722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17723 | { (case "(($ac_try" in |
| 17724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17725 | *) ac_try_echo=$ac_try;; |
| 17726 | esac |
| 17727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17728 | (eval "$ac_try") 2>&5 |
| 17729 | ac_status=$? |
| 17730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17731 | (exit $ac_status); }; } && |
| 17732 | { ac_try='test -s conftest$ac_exeext' |
| 17733 | { (case "(($ac_try" in |
| 17734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17735 | *) ac_try_echo=$ac_try;; |
| 17736 | esac |
| 17737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17738 | (eval "$ac_try") 2>&5 |
| 17739 | ac_status=$? |
| 17740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17741 | (exit $ac_status); }; }; then |
| 17742 | eval "$as_ac_var=yes" |
| 17743 | else |
| 17744 | echo "$as_me: failed program was:" >&5 |
| 17745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17746 | |
| 17747 | eval "$as_ac_var=no" |
| 17748 | fi |
| 17749 | |
| 17750 | rm -f core conftest.err conftest.$ac_objext \ |
| 17751 | conftest$ac_exeext conftest.$ac_ext |
| 17752 | fi |
| 17753 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17754 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17755 | echo "${ECHO_T}$ac_res" >&6; } |
| 17756 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17757 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17758 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17759 | _ACEOF |
| 17760 | |
| 17761 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17762 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17763 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17764 | |
| 17765 | |
| 17766 | |
| 17767 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 17768 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17769 | do |
| 17770 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17771 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17772 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17773 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17775 | else |
| 17776 | cat >conftest.$ac_ext <<_ACEOF |
| 17777 | /* confdefs.h. */ |
| 17778 | _ACEOF |
| 17779 | cat confdefs.h >>conftest.$ac_ext |
| 17780 | cat >>conftest.$ac_ext <<_ACEOF |
| 17781 | /* end confdefs.h. */ |
| 17782 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17783 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17784 | #define $ac_func innocuous_$ac_func |
| 17785 | |
| 17786 | /* System header to define __stub macros and hopefully few prototypes, |
| 17787 | which can conflict with char $ac_func (); below. |
| 17788 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17789 | <limits.h> exists even on freestanding compilers. */ |
| 17790 | |
| 17791 | #ifdef __STDC__ |
| 17792 | # include <limits.h> |
| 17793 | #else |
| 17794 | # include <assert.h> |
| 17795 | #endif |
| 17796 | |
| 17797 | #undef $ac_func |
| 17798 | |
| 17799 | /* Override any GCC internal prototype to avoid an error. |
| 17800 | Use char because int might match the return type of a GCC |
| 17801 | builtin and then its argument prototype would still apply. */ |
| 17802 | #ifdef __cplusplus |
| 17803 | extern "C" |
| 17804 | #endif |
| 17805 | char $ac_func (); |
| 17806 | /* The GNU C library defines this for functions which it implements |
| 17807 | to always fail with ENOSYS. Some functions are actually named |
| 17808 | something starting with __ and the normal name is an alias. */ |
| 17809 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17810 | choke me |
| 17811 | #endif |
| 17812 | |
| 17813 | int |
| 17814 | main () |
| 17815 | { |
| 17816 | return $ac_func (); |
| 17817 | ; |
| 17818 | return 0; |
| 17819 | } |
| 17820 | _ACEOF |
| 17821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17822 | if { (ac_try="$ac_link" |
| 17823 | case "(($ac_try" in |
| 17824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17825 | *) ac_try_echo=$ac_try;; |
| 17826 | esac |
| 17827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17828 | (eval "$ac_link") 2>conftest.er1 |
| 17829 | ac_status=$? |
| 17830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17831 | rm -f conftest.er1 |
| 17832 | cat conftest.err >&5 |
| 17833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17834 | (exit $ac_status); } && |
| 17835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17836 | { (case "(($ac_try" in |
| 17837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17838 | *) ac_try_echo=$ac_try;; |
| 17839 | esac |
| 17840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17841 | (eval "$ac_try") 2>&5 |
| 17842 | ac_status=$? |
| 17843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17844 | (exit $ac_status); }; } && |
| 17845 | { ac_try='test -s conftest$ac_exeext' |
| 17846 | { (case "(($ac_try" in |
| 17847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17848 | *) ac_try_echo=$ac_try;; |
| 17849 | esac |
| 17850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17851 | (eval "$ac_try") 2>&5 |
| 17852 | ac_status=$? |
| 17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17854 | (exit $ac_status); }; }; then |
| 17855 | eval "$as_ac_var=yes" |
| 17856 | else |
| 17857 | echo "$as_me: failed program was:" >&5 |
| 17858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17859 | |
| 17860 | eval "$as_ac_var=no" |
| 17861 | fi |
| 17862 | |
| 17863 | rm -f core conftest.err conftest.$ac_objext \ |
| 17864 | conftest$ac_exeext conftest.$ac_ext |
| 17865 | fi |
| 17866 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17867 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17868 | echo "${ECHO_T}$ac_res" >&6; } |
| 17869 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17870 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17871 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17872 | _ACEOF |
| 17873 | |
| 17874 | fi |
| 17875 | done |
| 17876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17877 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17878 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17879 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17881 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17882 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17883 | ac_cpp='$CPP $CPPFLAGS' |
| 17884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17887 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17888 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17889 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17890 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17891 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17892 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17893 | /* confdefs.h. */ |
| 17894 | _ACEOF |
| 17895 | cat confdefs.h >>conftest.$ac_ext |
| 17896 | cat >>conftest.$ac_ext <<_ACEOF |
| 17897 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17898 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17899 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17900 | #include <stdlib.h> |
| 17901 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17902 | int |
| 17903 | main () |
| 17904 | { |
| 17905 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17906 | volatile double A, B; |
| 17907 | char Buffer[100]; |
| 17908 | A = 1; |
| 17909 | A /= 10.0; |
| 17910 | sprintf(Buffer, "%a", A); |
| 17911 | B = atof(Buffer); |
| 17912 | if (A != B) |
| 17913 | return (1); |
| 17914 | if (A != 0x1.999999999999ap-4) |
| 17915 | return (1); |
| 17916 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17917 | ; |
| 17918 | return 0; |
| 17919 | } |
| 17920 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17921 | rm -f conftest$ac_exeext |
| 17922 | if { (ac_try="$ac_link" |
| 17923 | case "(($ac_try" in |
| 17924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17925 | *) ac_try_echo=$ac_try;; |
| 17926 | esac |
| 17927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17928 | (eval "$ac_link") 2>&5 |
| 17929 | ac_status=$? |
| 17930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17932 | { (case "(($ac_try" in |
| 17933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17934 | *) ac_try_echo=$ac_try;; |
| 17935 | esac |
| 17936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17937 | (eval "$ac_try") 2>&5 |
| 17938 | ac_status=$? |
| 17939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17940 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17941 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17942 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17943 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17944 | echo "$as_me: failed program was:" >&5 |
| 17945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17946 | |
| 17947 | ( exit $ac_status ) |
| 17948 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17949 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17950 | 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] | 17951 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17952 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17953 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17954 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17955 | ac_cpp='$CPP $CPPFLAGS' |
| 17956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17959 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17960 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17961 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17962 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17963 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17964 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17965 | cat >>confdefs.h <<\_ACEOF |
| 17966 | #define HAVE_PRINTF_A 1 |
| 17967 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17968 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17969 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17970 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17971 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17972 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17973 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17974 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17976 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17977 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17978 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17979 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17980 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17981 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17982 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17983 | cat >conftest.$ac_ext <<_ACEOF |
| 17984 | /* confdefs.h. */ |
| 17985 | _ACEOF |
| 17986 | cat confdefs.h >>conftest.$ac_ext |
| 17987 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17988 | /* end confdefs.h. */ |
| 17989 | #include <stdlib.h> |
| 17990 | int |
| 17991 | main () |
| 17992 | { |
| 17993 | srand48(0);lrand48();drand48(); |
| 17994 | ; |
| 17995 | return 0; |
| 17996 | } |
| 17997 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17998 | rm -f conftest.$ac_objext |
| 17999 | if { (ac_try="$ac_compile" |
| 18000 | case "(($ac_try" in |
| 18001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18002 | *) ac_try_echo=$ac_try;; |
| 18003 | esac |
| 18004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18005 | (eval "$ac_compile") 2>conftest.er1 |
| 18006 | ac_status=$? |
| 18007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18008 | rm -f conftest.er1 |
| 18009 | cat conftest.err >&5 |
| 18010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18011 | (exit $ac_status); } && |
| 18012 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18013 | { (case "(($ac_try" in |
| 18014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18015 | *) ac_try_echo=$ac_try;; |
| 18016 | esac |
| 18017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18018 | (eval "$ac_try") 2>&5 |
| 18019 | ac_status=$? |
| 18020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18021 | (exit $ac_status); }; } && |
| 18022 | { ac_try='test -s conftest.$ac_objext' |
| 18023 | { (case "(($ac_try" in |
| 18024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18025 | *) ac_try_echo=$ac_try;; |
| 18026 | esac |
| 18027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18028 | (eval "$ac_try") 2>&5 |
| 18029 | ac_status=$? |
| 18030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18031 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18032 | ac_cv_func_rand48=yes |
| 18033 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18034 | echo "$as_me: failed program was:" >&5 |
| 18035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18036 | |
| 18037 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18041 | ac_ext=c |
| 18042 | ac_cpp='$CPP $CPPFLAGS' |
| 18043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18046 | |
| 18047 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18048 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18049 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18050 | |
| 18051 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18052 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18053 | cat >>confdefs.h <<\_ACEOF |
| 18054 | #define HAVE_RAND48 1 |
| 18055 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18056 | |
| 18057 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18058 | |
| 18059 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18061 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18062 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18063 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18065 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18066 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18067 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18068 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18069 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18070 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18071 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18072 | cat >conftest.$ac_ext <<_ACEOF |
| 18073 | /* confdefs.h. */ |
| 18074 | _ACEOF |
| 18075 | cat confdefs.h >>conftest.$ac_ext |
| 18076 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18077 | /* end confdefs.h. */ |
| 18078 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18079 | int |
| 18080 | main () |
| 18081 | { |
| 18082 | float f; isnan(f); |
| 18083 | ; |
| 18084 | return 0; |
| 18085 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18086 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18087 | rm -f conftest.$ac_objext |
| 18088 | if { (ac_try="$ac_compile" |
| 18089 | case "(($ac_try" in |
| 18090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18091 | *) ac_try_echo=$ac_try;; |
| 18092 | esac |
| 18093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18094 | (eval "$ac_compile") 2>conftest.er1 |
| 18095 | ac_status=$? |
| 18096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18097 | rm -f conftest.er1 |
| 18098 | cat conftest.err >&5 |
| 18099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18100 | (exit $ac_status); } && |
| 18101 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18102 | { (case "(($ac_try" in |
| 18103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18104 | *) ac_try_echo=$ac_try;; |
| 18105 | esac |
| 18106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18107 | (eval "$ac_try") 2>&5 |
| 18108 | ac_status=$? |
| 18109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18110 | (exit $ac_status); }; } && |
| 18111 | { ac_try='test -s conftest.$ac_objext' |
| 18112 | { (case "(($ac_try" in |
| 18113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18114 | *) ac_try_echo=$ac_try;; |
| 18115 | esac |
| 18116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18117 | (eval "$ac_try") 2>&5 |
| 18118 | ac_status=$? |
| 18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18120 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18121 | ac_cv_func_isnan_in_math_h=yes |
| 18122 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18123 | echo "$as_me: failed program was:" >&5 |
| 18124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18125 | |
| 18126 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18127 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18130 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18131 | ac_cpp='$CPP $CPPFLAGS' |
| 18132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18135 | |
| 18136 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18137 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18138 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18139 | |
| 18140 | |
| 18141 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18142 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18143 | cat >>confdefs.h <<\_ACEOF |
| 18144 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18145 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18146 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18147 | fi |
| 18148 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18149 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18150 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18151 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18153 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18154 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18155 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18156 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18157 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18158 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18159 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18160 | cat >conftest.$ac_ext <<_ACEOF |
| 18161 | /* confdefs.h. */ |
| 18162 | _ACEOF |
| 18163 | cat confdefs.h >>conftest.$ac_ext |
| 18164 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18165 | /* end confdefs.h. */ |
| 18166 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18167 | int |
| 18168 | main () |
| 18169 | { |
| 18170 | float f; isnan(f); |
| 18171 | ; |
| 18172 | return 0; |
| 18173 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18174 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18175 | rm -f conftest.$ac_objext |
| 18176 | if { (ac_try="$ac_compile" |
| 18177 | case "(($ac_try" in |
| 18178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18179 | *) ac_try_echo=$ac_try;; |
| 18180 | esac |
| 18181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18182 | (eval "$ac_compile") 2>conftest.er1 |
| 18183 | ac_status=$? |
| 18184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18185 | rm -f conftest.er1 |
| 18186 | cat conftest.err >&5 |
| 18187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18188 | (exit $ac_status); } && |
| 18189 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18190 | { (case "(($ac_try" in |
| 18191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18192 | *) ac_try_echo=$ac_try;; |
| 18193 | esac |
| 18194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18195 | (eval "$ac_try") 2>&5 |
| 18196 | ac_status=$? |
| 18197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18198 | (exit $ac_status); }; } && |
| 18199 | { ac_try='test -s conftest.$ac_objext' |
| 18200 | { (case "(($ac_try" in |
| 18201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18202 | *) ac_try_echo=$ac_try;; |
| 18203 | esac |
| 18204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18205 | (eval "$ac_try") 2>&5 |
| 18206 | ac_status=$? |
| 18207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18208 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18209 | ac_cv_func_isnan_in_cmath=yes |
| 18210 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18211 | echo "$as_me: failed program was:" >&5 |
| 18212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18213 | |
| 18214 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18215 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18218 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18219 | ac_cpp='$CPP $CPPFLAGS' |
| 18220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18223 | |
| 18224 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18225 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18226 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18227 | |
| 18228 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18229 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18230 | cat >>confdefs.h <<\_ACEOF |
| 18231 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18232 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18233 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18234 | fi |
| 18235 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18236 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18237 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18238 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18240 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18241 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18242 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18243 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18244 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18245 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18246 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18247 | cat >conftest.$ac_ext <<_ACEOF |
| 18248 | /* confdefs.h. */ |
| 18249 | _ACEOF |
| 18250 | cat confdefs.h >>conftest.$ac_ext |
| 18251 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18252 | /* end confdefs.h. */ |
| 18253 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18254 | int |
| 18255 | main () |
| 18256 | { |
| 18257 | float f; std::isnan(f); |
| 18258 | ; |
| 18259 | return 0; |
| 18260 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18261 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18262 | rm -f conftest.$ac_objext |
| 18263 | if { (ac_try="$ac_compile" |
| 18264 | case "(($ac_try" in |
| 18265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18266 | *) ac_try_echo=$ac_try;; |
| 18267 | esac |
| 18268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18269 | (eval "$ac_compile") 2>conftest.er1 |
| 18270 | ac_status=$? |
| 18271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18272 | rm -f conftest.er1 |
| 18273 | cat conftest.err >&5 |
| 18274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18275 | (exit $ac_status); } && |
| 18276 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18277 | { (case "(($ac_try" in |
| 18278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18279 | *) ac_try_echo=$ac_try;; |
| 18280 | esac |
| 18281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18282 | (eval "$ac_try") 2>&5 |
| 18283 | ac_status=$? |
| 18284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18285 | (exit $ac_status); }; } && |
| 18286 | { ac_try='test -s conftest.$ac_objext' |
| 18287 | { (case "(($ac_try" in |
| 18288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18289 | *) ac_try_echo=$ac_try;; |
| 18290 | esac |
| 18291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18292 | (eval "$ac_try") 2>&5 |
| 18293 | ac_status=$? |
| 18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18295 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18296 | ac_cv_func_std_isnan_in_cmath=yes |
| 18297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18298 | echo "$as_me: failed program was:" >&5 |
| 18299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18300 | |
| 18301 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18302 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18305 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18306 | ac_cpp='$CPP $CPPFLAGS' |
| 18307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18310 | |
| 18311 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18312 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 18313 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18314 | |
| 18315 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18316 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18317 | cat >>confdefs.h <<\_ACEOF |
| 18318 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 18319 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18320 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18321 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18322 | |
| 18323 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18324 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 18325 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 18326 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 18327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18328 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18329 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18330 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18331 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18332 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18333 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18334 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18335 | cat >conftest.$ac_ext <<_ACEOF |
| 18336 | /* confdefs.h. */ |
| 18337 | _ACEOF |
| 18338 | cat confdefs.h >>conftest.$ac_ext |
| 18339 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18340 | /* end confdefs.h. */ |
| 18341 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18342 | int |
| 18343 | main () |
| 18344 | { |
| 18345 | float f; isinf(f); |
| 18346 | ; |
| 18347 | return 0; |
| 18348 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18349 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18350 | rm -f conftest.$ac_objext |
| 18351 | if { (ac_try="$ac_compile" |
| 18352 | case "(($ac_try" in |
| 18353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18354 | *) ac_try_echo=$ac_try;; |
| 18355 | esac |
| 18356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18357 | (eval "$ac_compile") 2>conftest.er1 |
| 18358 | ac_status=$? |
| 18359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18360 | rm -f conftest.er1 |
| 18361 | cat conftest.err >&5 |
| 18362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18363 | (exit $ac_status); } && |
| 18364 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18365 | { (case "(($ac_try" in |
| 18366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18367 | *) ac_try_echo=$ac_try;; |
| 18368 | esac |
| 18369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18370 | (eval "$ac_try") 2>&5 |
| 18371 | ac_status=$? |
| 18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18373 | (exit $ac_status); }; } && |
| 18374 | { ac_try='test -s conftest.$ac_objext' |
| 18375 | { (case "(($ac_try" in |
| 18376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18377 | *) ac_try_echo=$ac_try;; |
| 18378 | esac |
| 18379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18380 | (eval "$ac_try") 2>&5 |
| 18381 | ac_status=$? |
| 18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18383 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18384 | ac_cv_func_isinf_in_math_h=yes |
| 18385 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18386 | echo "$as_me: failed program was:" >&5 |
| 18387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18388 | |
| 18389 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18390 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18393 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18394 | ac_cpp='$CPP $CPPFLAGS' |
| 18395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18398 | |
| 18399 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18400 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 18401 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18402 | |
| 18403 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18404 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18405 | cat >>confdefs.h <<\_ACEOF |
| 18406 | #define HAVE_ISINF_IN_MATH_H 1 |
| 18407 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18408 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18409 | fi |
| 18410 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18411 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 18412 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 18413 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 18414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18415 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18416 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18417 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18418 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18419 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18420 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18421 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18422 | cat >conftest.$ac_ext <<_ACEOF |
| 18423 | /* confdefs.h. */ |
| 18424 | _ACEOF |
| 18425 | cat confdefs.h >>conftest.$ac_ext |
| 18426 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18427 | /* end confdefs.h. */ |
| 18428 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18429 | int |
| 18430 | main () |
| 18431 | { |
| 18432 | float f; isinf(f); |
| 18433 | ; |
| 18434 | return 0; |
| 18435 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18436 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18437 | rm -f conftest.$ac_objext |
| 18438 | if { (ac_try="$ac_compile" |
| 18439 | case "(($ac_try" in |
| 18440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18441 | *) ac_try_echo=$ac_try;; |
| 18442 | esac |
| 18443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18444 | (eval "$ac_compile") 2>conftest.er1 |
| 18445 | ac_status=$? |
| 18446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18447 | rm -f conftest.er1 |
| 18448 | cat conftest.err >&5 |
| 18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18450 | (exit $ac_status); } && |
| 18451 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18452 | { (case "(($ac_try" in |
| 18453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18454 | *) ac_try_echo=$ac_try;; |
| 18455 | esac |
| 18456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18457 | (eval "$ac_try") 2>&5 |
| 18458 | ac_status=$? |
| 18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18460 | (exit $ac_status); }; } && |
| 18461 | { ac_try='test -s conftest.$ac_objext' |
| 18462 | { (case "(($ac_try" in |
| 18463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18464 | *) ac_try_echo=$ac_try;; |
| 18465 | esac |
| 18466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18467 | (eval "$ac_try") 2>&5 |
| 18468 | ac_status=$? |
| 18469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18470 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18471 | ac_cv_func_isinf_in_cmath=yes |
| 18472 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18473 | echo "$as_me: failed program was:" >&5 |
| 18474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18475 | |
| 18476 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18477 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18480 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18481 | ac_cpp='$CPP $CPPFLAGS' |
| 18482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18485 | |
| 18486 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18487 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 18488 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18489 | |
| 18490 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18491 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18492 | cat >>confdefs.h <<\_ACEOF |
| 18493 | #define HAVE_ISINF_IN_CMATH 1 |
| 18494 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18495 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18496 | fi |
| 18497 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18498 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 18499 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 18500 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 18501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18502 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18503 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18504 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18505 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18506 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18507 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18508 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18509 | cat >conftest.$ac_ext <<_ACEOF |
| 18510 | /* confdefs.h. */ |
| 18511 | _ACEOF |
| 18512 | cat confdefs.h >>conftest.$ac_ext |
| 18513 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18514 | /* end confdefs.h. */ |
| 18515 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18516 | int |
| 18517 | main () |
| 18518 | { |
| 18519 | float f; std::isinf(f)} |
| 18520 | ; |
| 18521 | return 0; |
| 18522 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18523 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18524 | rm -f conftest.$ac_objext |
| 18525 | if { (ac_try="$ac_compile" |
| 18526 | case "(($ac_try" in |
| 18527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18528 | *) ac_try_echo=$ac_try;; |
| 18529 | esac |
| 18530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18531 | (eval "$ac_compile") 2>conftest.er1 |
| 18532 | ac_status=$? |
| 18533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18534 | rm -f conftest.er1 |
| 18535 | cat conftest.err >&5 |
| 18536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18537 | (exit $ac_status); } && |
| 18538 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18539 | { (case "(($ac_try" in |
| 18540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18541 | *) ac_try_echo=$ac_try;; |
| 18542 | esac |
| 18543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18544 | (eval "$ac_try") 2>&5 |
| 18545 | ac_status=$? |
| 18546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18547 | (exit $ac_status); }; } && |
| 18548 | { ac_try='test -s conftest.$ac_objext' |
| 18549 | { (case "(($ac_try" in |
| 18550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18551 | *) ac_try_echo=$ac_try;; |
| 18552 | esac |
| 18553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18554 | (eval "$ac_try") 2>&5 |
| 18555 | ac_status=$? |
| 18556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18557 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18558 | ac_cv_func_std_isinf_in_cmath=yes |
| 18559 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18560 | echo "$as_me: failed program was:" >&5 |
| 18561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18562 | |
| 18563 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18564 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18567 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18568 | ac_cpp='$CPP $CPPFLAGS' |
| 18569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18572 | |
| 18573 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18574 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 18575 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18576 | |
| 18577 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18578 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18579 | cat >>confdefs.h <<\_ACEOF |
| 18580 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 18581 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18582 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18583 | fi |
| 18584 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18585 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 18586 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 18587 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 18588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18589 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18590 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18591 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18592 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18593 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18594 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18595 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18596 | cat >conftest.$ac_ext <<_ACEOF |
| 18597 | /* confdefs.h. */ |
| 18598 | _ACEOF |
| 18599 | cat confdefs.h >>conftest.$ac_ext |
| 18600 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18601 | /* end confdefs.h. */ |
| 18602 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18603 | int |
| 18604 | main () |
| 18605 | { |
| 18606 | float f; finite(f); |
| 18607 | ; |
| 18608 | return 0; |
| 18609 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18610 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18611 | rm -f conftest.$ac_objext |
| 18612 | if { (ac_try="$ac_compile" |
| 18613 | case "(($ac_try" in |
| 18614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18615 | *) ac_try_echo=$ac_try;; |
| 18616 | esac |
| 18617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18618 | (eval "$ac_compile") 2>conftest.er1 |
| 18619 | ac_status=$? |
| 18620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18621 | rm -f conftest.er1 |
| 18622 | cat conftest.err >&5 |
| 18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18624 | (exit $ac_status); } && |
| 18625 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18626 | { (case "(($ac_try" in |
| 18627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18628 | *) ac_try_echo=$ac_try;; |
| 18629 | esac |
| 18630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18631 | (eval "$ac_try") 2>&5 |
| 18632 | ac_status=$? |
| 18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18634 | (exit $ac_status); }; } && |
| 18635 | { ac_try='test -s conftest.$ac_objext' |
| 18636 | { (case "(($ac_try" in |
| 18637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18638 | *) ac_try_echo=$ac_try;; |
| 18639 | esac |
| 18640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18641 | (eval "$ac_try") 2>&5 |
| 18642 | ac_status=$? |
| 18643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18644 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18645 | ac_cv_func_finite_in_ieeefp_h=yes |
| 18646 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18647 | echo "$as_me: failed program was:" >&5 |
| 18648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18649 | |
| 18650 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18651 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18652 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18654 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18655 | ac_cpp='$CPP $CPPFLAGS' |
| 18656 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18657 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18658 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18659 | |
| 18660 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18661 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 18662 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18663 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 18664 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18666 | cat >>confdefs.h <<\_ACEOF |
| 18667 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 18668 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18669 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18670 | fi |
| 18671 | |
| 18672 | |
| 18673 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 18674 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18675 | |
| 18676 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18677 | for ac_header in stdlib.h unistd.h |
| 18678 | do |
| 18679 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18680 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18681 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18682 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 18683 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18685 | fi |
| 18686 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 18687 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18688 | echo "${ECHO_T}$ac_res" >&6; } |
| 18689 | else |
| 18690 | # Is the header compilable? |
| 18691 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 18692 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 18693 | cat >conftest.$ac_ext <<_ACEOF |
| 18694 | /* confdefs.h. */ |
| 18695 | _ACEOF |
| 18696 | cat confdefs.h >>conftest.$ac_ext |
| 18697 | cat >>conftest.$ac_ext <<_ACEOF |
| 18698 | /* end confdefs.h. */ |
| 18699 | $ac_includes_default |
| 18700 | #include <$ac_header> |
| 18701 | _ACEOF |
| 18702 | rm -f conftest.$ac_objext |
| 18703 | if { (ac_try="$ac_compile" |
| 18704 | case "(($ac_try" in |
| 18705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18706 | *) ac_try_echo=$ac_try;; |
| 18707 | esac |
| 18708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18709 | (eval "$ac_compile") 2>conftest.er1 |
| 18710 | ac_status=$? |
| 18711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18712 | rm -f conftest.er1 |
| 18713 | cat conftest.err >&5 |
| 18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18715 | (exit $ac_status); } && |
| 18716 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18717 | { (case "(($ac_try" in |
| 18718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18719 | *) ac_try_echo=$ac_try;; |
| 18720 | esac |
| 18721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18722 | (eval "$ac_try") 2>&5 |
| 18723 | ac_status=$? |
| 18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18725 | (exit $ac_status); }; } && |
| 18726 | { ac_try='test -s conftest.$ac_objext' |
| 18727 | { (case "(($ac_try" in |
| 18728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18729 | *) ac_try_echo=$ac_try;; |
| 18730 | esac |
| 18731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18732 | (eval "$ac_try") 2>&5 |
| 18733 | ac_status=$? |
| 18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18735 | (exit $ac_status); }; }; then |
| 18736 | ac_header_compiler=yes |
| 18737 | else |
| 18738 | echo "$as_me: failed program was:" >&5 |
| 18739 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18740 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18741 | ac_header_compiler=no |
| 18742 | fi |
| 18743 | |
| 18744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18745 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18746 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 18747 | |
| 18748 | # Is the header present? |
| 18749 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 18750 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 18751 | cat >conftest.$ac_ext <<_ACEOF |
| 18752 | /* confdefs.h. */ |
| 18753 | _ACEOF |
| 18754 | cat confdefs.h >>conftest.$ac_ext |
| 18755 | cat >>conftest.$ac_ext <<_ACEOF |
| 18756 | /* end confdefs.h. */ |
| 18757 | #include <$ac_header> |
| 18758 | _ACEOF |
| 18759 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 18760 | case "(($ac_try" in |
| 18761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18762 | *) ac_try_echo=$ac_try;; |
| 18763 | esac |
| 18764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18765 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 18766 | ac_status=$? |
| 18767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18768 | rm -f conftest.er1 |
| 18769 | cat conftest.err >&5 |
| 18770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18771 | (exit $ac_status); } >/dev/null; then |
| 18772 | if test -s conftest.err; then |
| 18773 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18774 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 18775 | else |
| 18776 | ac_cpp_err= |
| 18777 | fi |
| 18778 | else |
| 18779 | ac_cpp_err=yes |
| 18780 | fi |
| 18781 | if test -z "$ac_cpp_err"; then |
| 18782 | ac_header_preproc=yes |
| 18783 | else |
| 18784 | echo "$as_me: failed program was:" >&5 |
| 18785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18786 | |
| 18787 | ac_header_preproc=no |
| 18788 | fi |
| 18789 | |
| 18790 | rm -f conftest.err conftest.$ac_ext |
| 18791 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18792 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 18793 | |
| 18794 | # So? What about this header? |
| 18795 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18796 | yes:no: ) |
| 18797 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18798 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 18799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 18800 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 18801 | ac_header_preproc=yes |
| 18802 | ;; |
| 18803 | no:yes:* ) |
| 18804 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 18805 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 18806 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 18807 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 18808 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 18809 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 18810 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 18811 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 18812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 18813 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 18814 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 18815 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 18816 | ( cat <<\_ASBOX |
| 18817 | ## ----------------------------------- ## |
| 18818 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 18819 | ## ----------------------------------- ## |
| 18820 | _ASBOX |
| 18821 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 18822 | ;; |
| 18823 | esac |
| 18824 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 18825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 18826 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18828 | else |
| 18829 | eval "$as_ac_Header=\$ac_header_preproc" |
| 18830 | fi |
| 18831 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 18832 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18833 | echo "${ECHO_T}$ac_res" >&6; } |
| 18834 | |
| 18835 | fi |
| 18836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18837 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18839 | _ACEOF |
| 18840 | |
| 18841 | fi |
| 18842 | |
| 18843 | done |
| 18844 | |
| 18845 | |
| 18846 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18847 | do |
| 18848 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18849 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18850 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18851 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18853 | else |
| 18854 | cat >conftest.$ac_ext <<_ACEOF |
| 18855 | /* confdefs.h. */ |
| 18856 | _ACEOF |
| 18857 | cat confdefs.h >>conftest.$ac_ext |
| 18858 | cat >>conftest.$ac_ext <<_ACEOF |
| 18859 | /* end confdefs.h. */ |
| 18860 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18862 | #define $ac_func innocuous_$ac_func |
| 18863 | |
| 18864 | /* System header to define __stub macros and hopefully few prototypes, |
| 18865 | which can conflict with char $ac_func (); below. |
| 18866 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18867 | <limits.h> exists even on freestanding compilers. */ |
| 18868 | |
| 18869 | #ifdef __STDC__ |
| 18870 | # include <limits.h> |
| 18871 | #else |
| 18872 | # include <assert.h> |
| 18873 | #endif |
| 18874 | |
| 18875 | #undef $ac_func |
| 18876 | |
| 18877 | /* Override any GCC internal prototype to avoid an error. |
| 18878 | Use char because int might match the return type of a GCC |
| 18879 | builtin and then its argument prototype would still apply. */ |
| 18880 | #ifdef __cplusplus |
| 18881 | extern "C" |
| 18882 | #endif |
| 18883 | char $ac_func (); |
| 18884 | /* The GNU C library defines this for functions which it implements |
| 18885 | to always fail with ENOSYS. Some functions are actually named |
| 18886 | something starting with __ and the normal name is an alias. */ |
| 18887 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18888 | choke me |
| 18889 | #endif |
| 18890 | |
| 18891 | int |
| 18892 | main () |
| 18893 | { |
| 18894 | return $ac_func (); |
| 18895 | ; |
| 18896 | return 0; |
| 18897 | } |
| 18898 | _ACEOF |
| 18899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18900 | if { (ac_try="$ac_link" |
| 18901 | case "(($ac_try" in |
| 18902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18903 | *) ac_try_echo=$ac_try;; |
| 18904 | esac |
| 18905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18906 | (eval "$ac_link") 2>conftest.er1 |
| 18907 | ac_status=$? |
| 18908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18909 | rm -f conftest.er1 |
| 18910 | cat conftest.err >&5 |
| 18911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18912 | (exit $ac_status); } && |
| 18913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18914 | { (case "(($ac_try" in |
| 18915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18916 | *) ac_try_echo=$ac_try;; |
| 18917 | esac |
| 18918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18919 | (eval "$ac_try") 2>&5 |
| 18920 | ac_status=$? |
| 18921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18922 | (exit $ac_status); }; } && |
| 18923 | { ac_try='test -s conftest$ac_exeext' |
| 18924 | { (case "(($ac_try" in |
| 18925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18926 | *) ac_try_echo=$ac_try;; |
| 18927 | esac |
| 18928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18929 | (eval "$ac_try") 2>&5 |
| 18930 | ac_status=$? |
| 18931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18932 | (exit $ac_status); }; }; then |
| 18933 | eval "$as_ac_var=yes" |
| 18934 | else |
| 18935 | echo "$as_me: failed program was:" >&5 |
| 18936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18937 | |
| 18938 | eval "$as_ac_var=no" |
| 18939 | fi |
| 18940 | |
| 18941 | rm -f core conftest.err conftest.$ac_objext \ |
| 18942 | conftest$ac_exeext conftest.$ac_ext |
| 18943 | fi |
| 18944 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18945 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18946 | echo "${ECHO_T}$ac_res" >&6; } |
| 18947 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18948 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18949 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18950 | _ACEOF |
| 18951 | |
| 18952 | fi |
| 18953 | done |
| 18954 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18955 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 18956 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 18957 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 18958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18959 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18960 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18961 | ac_cv_func_mmap_fixed_mapped=no |
| 18962 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18963 | cat >conftest.$ac_ext <<_ACEOF |
| 18964 | /* confdefs.h. */ |
| 18965 | _ACEOF |
| 18966 | cat confdefs.h >>conftest.$ac_ext |
| 18967 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18968 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18969 | $ac_includes_default |
| 18970 | /* malloc might have been renamed as rpl_malloc. */ |
| 18971 | #undef malloc |
| 18972 | |
| 18973 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 18974 | Here is a matrix of mmap possibilities: |
| 18975 | mmap private not fixed |
| 18976 | mmap private fixed at somewhere currently unmapped |
| 18977 | mmap private fixed at somewhere already mapped |
| 18978 | mmap shared not fixed |
| 18979 | mmap shared fixed at somewhere currently unmapped |
| 18980 | mmap shared fixed at somewhere already mapped |
| 18981 | For private mappings, we should verify that changes cannot be read() |
| 18982 | back from the file, nor mmap's back from the file at a different |
| 18983 | address. (There have been systems where private was not correctly |
| 18984 | implemented like the infamous i386 svr4.0, and systems where the |
| 18985 | VM page cache was not coherent with the file system buffer cache |
| 18986 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 18987 | For shared mappings, we should conversely verify that changes get |
| 18988 | propagated back to all the places they're supposed to be. |
| 18989 | |
| 18990 | Grep wants private fixed already mapped. |
| 18991 | The main things grep needs to know about mmap are: |
| 18992 | * does it exist and is it safe to write into the mmap'd area |
| 18993 | * how to use it (BSD variants) */ |
| 18994 | |
| 18995 | #include <fcntl.h> |
| 18996 | #include <sys/mman.h> |
| 18997 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18998 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18999 | char *malloc (); |
| 19000 | #endif |
| 19001 | |
| 19002 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19003 | #if !HAVE_GETPAGESIZE |
| 19004 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19005 | # if !HAVE_SYS_PARAM_H |
| 19006 | # define HAVE_SYS_PARAM_H 1 |
| 19007 | # endif |
| 19008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19009 | # ifdef _SC_PAGESIZE |
| 19010 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19011 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19012 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19013 | # include <sys/param.h> |
| 19014 | # ifdef EXEC_PAGESIZE |
| 19015 | # define getpagesize() EXEC_PAGESIZE |
| 19016 | # else /* no EXEC_PAGESIZE */ |
| 19017 | # ifdef NBPG |
| 19018 | # define getpagesize() NBPG * CLSIZE |
| 19019 | # ifndef CLSIZE |
| 19020 | # define CLSIZE 1 |
| 19021 | # endif /* no CLSIZE */ |
| 19022 | # else /* no NBPG */ |
| 19023 | # ifdef NBPC |
| 19024 | # define getpagesize() NBPC |
| 19025 | # else /* no NBPC */ |
| 19026 | # ifdef PAGESIZE |
| 19027 | # define getpagesize() PAGESIZE |
| 19028 | # endif /* PAGESIZE */ |
| 19029 | # endif /* no NBPC */ |
| 19030 | # endif /* no NBPG */ |
| 19031 | # endif /* no EXEC_PAGESIZE */ |
| 19032 | # else /* no HAVE_SYS_PARAM_H */ |
| 19033 | # define getpagesize() 8192 /* punt totally */ |
| 19034 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19035 | # endif /* no _SC_PAGESIZE */ |
| 19036 | |
| 19037 | #endif /* no HAVE_GETPAGESIZE */ |
| 19038 | |
| 19039 | int |
| 19040 | main () |
| 19041 | { |
| 19042 | char *data, *data2, *data3; |
| 19043 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19044 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19045 | |
| 19046 | pagesize = getpagesize (); |
| 19047 | |
| 19048 | /* First, make a file with some known garbage in it. */ |
| 19049 | data = (char *) malloc (pagesize); |
| 19050 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19051 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19052 | for (i = 0; i < pagesize; ++i) |
| 19053 | *(data + i) = rand (); |
| 19054 | umask (0); |
| 19055 | fd = creat ("conftest.mmap", 0600); |
| 19056 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19057 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19058 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19059 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19060 | close (fd); |
| 19061 | |
| 19062 | /* Next, try to mmap the file at a fixed address which already has |
| 19063 | something else allocated at it. If we can, also make sure that |
| 19064 | we see the same garbage. */ |
| 19065 | fd = open ("conftest.mmap", O_RDWR); |
| 19066 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19067 | return 1; |
| 19068 | data2 = (char *) malloc (2 * pagesize); |
| 19069 | if (!data2) |
| 19070 | return 1; |
| 19071 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19072 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19073 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19074 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19075 | for (i = 0; i < pagesize; ++i) |
| 19076 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19077 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19078 | |
| 19079 | /* Finally, make sure that changes to the mapped area do not |
| 19080 | percolate back to the file as seen by read(). (This is a bug on |
| 19081 | some variants of i386 svr4.0.) */ |
| 19082 | for (i = 0; i < pagesize; ++i) |
| 19083 | *(data2 + i) = *(data2 + i) + 1; |
| 19084 | data3 = (char *) malloc (pagesize); |
| 19085 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19086 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19087 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19088 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19089 | for (i = 0; i < pagesize; ++i) |
| 19090 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19091 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19092 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19093 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19094 | } |
| 19095 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19096 | rm -f conftest$ac_exeext |
| 19097 | if { (ac_try="$ac_link" |
| 19098 | case "(($ac_try" in |
| 19099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19100 | *) ac_try_echo=$ac_try;; |
| 19101 | esac |
| 19102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19103 | (eval "$ac_link") 2>&5 |
| 19104 | ac_status=$? |
| 19105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19106 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19107 | { (case "(($ac_try" in |
| 19108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19109 | *) ac_try_echo=$ac_try;; |
| 19110 | esac |
| 19111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19112 | (eval "$ac_try") 2>&5 |
| 19113 | ac_status=$? |
| 19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19115 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19116 | ac_cv_func_mmap_fixed_mapped=yes |
| 19117 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19118 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19119 | echo "$as_me: failed program was:" >&5 |
| 19120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19121 | |
| 19122 | ( exit $ac_status ) |
| 19123 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19124 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19125 | 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] | 19126 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19127 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19128 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19129 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19130 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19131 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19132 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19133 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19134 | cat >>confdefs.h <<\_ACEOF |
| 19135 | #define HAVE_MMAP 1 |
| 19136 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19137 | |
| 19138 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19139 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19140 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19141 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19142 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19143 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19145 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19146 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19147 | ac_cpp='$CPP $CPPFLAGS' |
| 19148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19151 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19152 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19153 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19154 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19155 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19156 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19157 | /* confdefs.h. */ |
| 19158 | _ACEOF |
| 19159 | cat confdefs.h >>conftest.$ac_ext |
| 19160 | cat >>conftest.$ac_ext <<_ACEOF |
| 19161 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19162 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19163 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19164 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19165 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19166 | |
| 19167 | int |
| 19168 | main () |
| 19169 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19170 | |
| 19171 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19172 | fd = creat ("foo",0777); |
| 19173 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19174 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19175 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19176 | ; |
| 19177 | return 0; |
| 19178 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19179 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19180 | rm -f conftest$ac_exeext |
| 19181 | if { (ac_try="$ac_link" |
| 19182 | case "(($ac_try" in |
| 19183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19184 | *) ac_try_echo=$ac_try;; |
| 19185 | esac |
| 19186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19187 | (eval "$ac_link") 2>&5 |
| 19188 | ac_status=$? |
| 19189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19191 | { (case "(($ac_try" in |
| 19192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19193 | *) ac_try_echo=$ac_try;; |
| 19194 | esac |
| 19195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19196 | (eval "$ac_try") 2>&5 |
| 19197 | ac_status=$? |
| 19198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19199 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19200 | ac_cv_func_mmap_file=yes |
| 19201 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19202 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19203 | echo "$as_me: failed program was:" >&5 |
| 19204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19205 | |
| 19206 | ( exit $ac_status ) |
| 19207 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19208 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19209 | 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] | 19210 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19213 | ac_ext=c |
| 19214 | ac_cpp='$CPP $CPPFLAGS' |
| 19215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19218 | |
| 19219 | |
| 19220 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19221 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19222 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19223 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19225 | cat >>confdefs.h <<\_ACEOF |
| 19226 | #define HAVE_MMAP_FILE |
| 19227 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19228 | |
| 19229 | MMAP_FILE=yes |
| 19230 | |
| 19231 | fi |
| 19232 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19233 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19234 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19235 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19237 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19238 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19239 | ac_cv_need_dev_zero_for_mmap=yes |
| 19240 | else |
| 19241 | ac_cv_need_dev_zero_for_mmap=no |
| 19242 | fi |
| 19243 | |
| 19244 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19245 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19246 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19247 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19248 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19249 | cat >>confdefs.h <<\_ACEOF |
| 19250 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19251 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19252 | |
| 19253 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19254 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19255 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19256 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19257 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19258 | 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] | 19259 | fi |
| 19260 | if test "$ac_cv_func_mmap_file" = "no" |
| 19261 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19262 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19263 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19264 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19265 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19266 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19267 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19268 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 19269 | cat >conftest.$ac_ext <<_ACEOF |
| 19270 | /* confdefs.h. */ |
| 19271 | _ACEOF |
| 19272 | cat confdefs.h >>conftest.$ac_ext |
| 19273 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19274 | /* end confdefs.h. */ |
| 19275 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19276 | volatile unsigned long val = 1; |
| 19277 | __sync_synchronize(); |
| 19278 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 19279 | __sync_add_and_fetch(&val, 1); |
| 19280 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19281 | return 0; |
| 19282 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19283 | |
| 19284 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19286 | if { (ac_try="$ac_link" |
| 19287 | case "(($ac_try" in |
| 19288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19289 | *) ac_try_echo=$ac_try;; |
| 19290 | esac |
| 19291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19292 | (eval "$ac_link") 2>conftest.er1 |
| 19293 | ac_status=$? |
| 19294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19295 | rm -f conftest.er1 |
| 19296 | cat conftest.err >&5 |
| 19297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19298 | (exit $ac_status); } && |
| 19299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19300 | { (case "(($ac_try" in |
| 19301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19302 | *) ac_try_echo=$ac_try;; |
| 19303 | esac |
| 19304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19305 | (eval "$ac_try") 2>&5 |
| 19306 | ac_status=$? |
| 19307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19308 | (exit $ac_status); }; } && |
| 19309 | { ac_try='test -s conftest$ac_exeext' |
| 19310 | { (case "(($ac_try" in |
| 19311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19312 | *) ac_try_echo=$ac_try;; |
| 19313 | esac |
| 19314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19315 | (eval "$ac_try") 2>&5 |
| 19316 | ac_status=$? |
| 19317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19318 | (exit $ac_status); }; }; then |
| 19319 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19320 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19321 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19322 | cat >>confdefs.h <<\_ACEOF |
| 19323 | #define LLVM_MULTITHREADED 1 |
| 19324 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19325 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19326 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19327 | echo "$as_me: failed program was:" >&5 |
| 19328 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19329 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19330 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19331 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19332 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19333 | cat >>confdefs.h <<\_ACEOF |
| 19334 | #define LLVM_MULTITHREADED 0 |
| 19335 | _ACEOF |
| 19336 | |
| 19337 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 19338 | 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] | 19339 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19340 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19341 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19342 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19343 | |
| 19344 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19345 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19346 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19347 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 19348 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 19349 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 19350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19351 | else |
| 19352 | ac_ext=c |
| 19353 | ac_cpp='$CPP $CPPFLAGS' |
| 19354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19357 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19358 | cat >conftest.$ac_ext <<_ACEOF |
| 19359 | /* confdefs.h. */ |
| 19360 | _ACEOF |
| 19361 | cat confdefs.h >>conftest.$ac_ext |
| 19362 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19363 | /* end confdefs.h. */ |
| 19364 | #ifndef __x86_64__ |
| 19365 | error: Not x86-64 even if uname says so! |
| 19366 | #endif |
| 19367 | |
| 19368 | int |
| 19369 | main () |
| 19370 | { |
| 19371 | |
| 19372 | ; |
| 19373 | return 0; |
| 19374 | } |
| 19375 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19376 | rm -f conftest.$ac_objext |
| 19377 | if { (ac_try="$ac_compile" |
| 19378 | case "(($ac_try" in |
| 19379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19380 | *) ac_try_echo=$ac_try;; |
| 19381 | esac |
| 19382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19383 | (eval "$ac_compile") 2>conftest.er1 |
| 19384 | ac_status=$? |
| 19385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19386 | rm -f conftest.er1 |
| 19387 | cat conftest.err >&5 |
| 19388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19389 | (exit $ac_status); } && |
| 19390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19391 | { (case "(($ac_try" in |
| 19392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19393 | *) ac_try_echo=$ac_try;; |
| 19394 | esac |
| 19395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19396 | (eval "$ac_try") 2>&5 |
| 19397 | ac_status=$? |
| 19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19399 | (exit $ac_status); }; } && |
| 19400 | { ac_try='test -s conftest.$ac_objext' |
| 19401 | { (case "(($ac_try" in |
| 19402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19403 | *) ac_try_echo=$ac_try;; |
| 19404 | esac |
| 19405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19406 | (eval "$ac_try") 2>&5 |
| 19407 | ac_status=$? |
| 19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19409 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19410 | llvm_cv_linux_mixed=no |
| 19411 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19412 | echo "$as_me: failed program was:" >&5 |
| 19413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19414 | |
| 19415 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19416 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19417 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19419 | ac_ext=c |
| 19420 | ac_cpp='$CPP $CPPFLAGS' |
| 19421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19424 | |
| 19425 | |
| 19426 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19427 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 19428 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19429 | |
| 19430 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 19431 | llvm_cv_target_arch="x86" |
| 19432 | ARCH="x86" |
| 19433 | fi |
| 19434 | fi |
| 19435 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19436 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19437 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19438 | do |
| 19439 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19440 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19441 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19442 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19444 | else |
| 19445 | cat >conftest.$ac_ext <<_ACEOF |
| 19446 | /* confdefs.h. */ |
| 19447 | _ACEOF |
| 19448 | cat confdefs.h >>conftest.$ac_ext |
| 19449 | cat >>conftest.$ac_ext <<_ACEOF |
| 19450 | /* end confdefs.h. */ |
| 19451 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19452 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19453 | #define $ac_func innocuous_$ac_func |
| 19454 | |
| 19455 | /* System header to define __stub macros and hopefully few prototypes, |
| 19456 | which can conflict with char $ac_func (); below. |
| 19457 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19458 | <limits.h> exists even on freestanding compilers. */ |
| 19459 | |
| 19460 | #ifdef __STDC__ |
| 19461 | # include <limits.h> |
| 19462 | #else |
| 19463 | # include <assert.h> |
| 19464 | #endif |
| 19465 | |
| 19466 | #undef $ac_func |
| 19467 | |
| 19468 | /* Override any GCC internal prototype to avoid an error. |
| 19469 | Use char because int might match the return type of a GCC |
| 19470 | builtin and then its argument prototype would still apply. */ |
| 19471 | #ifdef __cplusplus |
| 19472 | extern "C" |
| 19473 | #endif |
| 19474 | char $ac_func (); |
| 19475 | /* The GNU C library defines this for functions which it implements |
| 19476 | to always fail with ENOSYS. Some functions are actually named |
| 19477 | something starting with __ and the normal name is an alias. */ |
| 19478 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19479 | choke me |
| 19480 | #endif |
| 19481 | |
| 19482 | int |
| 19483 | main () |
| 19484 | { |
| 19485 | return $ac_func (); |
| 19486 | ; |
| 19487 | return 0; |
| 19488 | } |
| 19489 | _ACEOF |
| 19490 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19491 | if { (ac_try="$ac_link" |
| 19492 | case "(($ac_try" in |
| 19493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19494 | *) ac_try_echo=$ac_try;; |
| 19495 | esac |
| 19496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19497 | (eval "$ac_link") 2>conftest.er1 |
| 19498 | ac_status=$? |
| 19499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19500 | rm -f conftest.er1 |
| 19501 | cat conftest.err >&5 |
| 19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19503 | (exit $ac_status); } && |
| 19504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19505 | { (case "(($ac_try" in |
| 19506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19507 | *) ac_try_echo=$ac_try;; |
| 19508 | esac |
| 19509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19510 | (eval "$ac_try") 2>&5 |
| 19511 | ac_status=$? |
| 19512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19513 | (exit $ac_status); }; } && |
| 19514 | { ac_try='test -s conftest$ac_exeext' |
| 19515 | { (case "(($ac_try" in |
| 19516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19517 | *) ac_try_echo=$ac_try;; |
| 19518 | esac |
| 19519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19520 | (eval "$ac_try") 2>&5 |
| 19521 | ac_status=$? |
| 19522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19523 | (exit $ac_status); }; }; then |
| 19524 | eval "$as_ac_var=yes" |
| 19525 | else |
| 19526 | echo "$as_me: failed program was:" >&5 |
| 19527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19528 | |
| 19529 | eval "$as_ac_var=no" |
| 19530 | fi |
| 19531 | |
| 19532 | rm -f core conftest.err conftest.$ac_objext \ |
| 19533 | conftest$ac_exeext conftest.$ac_ext |
| 19534 | fi |
| 19535 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19536 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19537 | echo "${ECHO_T}$ac_res" >&6; } |
| 19538 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19539 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19540 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19541 | _ACEOF |
| 19542 | |
| 19543 | fi |
| 19544 | done |
| 19545 | |
| 19546 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19547 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 19548 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 19549 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 19550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19551 | else |
| 19552 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19553 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19554 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 19555 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 19556 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19557 | if test $? -eq 0 ; then |
| 19558 | llvm_cv_llvmgcc_sanity="yes" |
| 19559 | fi |
| 19560 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19561 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19562 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19563 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 19564 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19565 | |
| 19566 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19567 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 19568 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19569 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19570 | LLVMCC1=$llvmcc1path |
| 19571 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19572 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19573 | LLVMCC1PLUS=$llvmcc1pluspath |
| 19574 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19575 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 19576 | LLVMGCCDIR=$llvmgccdir |
| 19577 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 19578 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 19579 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 19580 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 19581 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 19582 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 19583 | LLVMGCC_VERSION=$llvmgccversion |
| 19584 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 19585 | 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] | 19586 | LLVMGCC_LANGS=$llvmgcclangs |
| 19587 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19588 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 19589 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19590 | fi |
| 19591 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 19592 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 19593 | |
| 19594 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19595 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19596 | # information into substitutions that will end up in Makefile.config.in |
| 19597 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 19598 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 19599 | prefix="/usr/local" |
| 19600 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19601 | eval LLVM_PREFIX="${prefix}"; |
| 19602 | eval LLVM_BINDIR="${prefix}/bin"; |
| 19603 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19604 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 19605 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 19606 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19607 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 19608 | eval LLVM_INFODIR="${prefix}/info"; |
| 19609 | eval LLVM_MANDIR="${prefix}/man"; |
| 19610 | LLVM_CONFIGTIME=`date` |
| 19611 | |
| 19612 | |
| 19613 | |
| 19614 | |
| 19615 | |
| 19616 | |
| 19617 | |
| 19618 | |
| 19619 | |
| 19620 | |
| 19621 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19622 | # Place the various directores into the config.h file as #defines so that we |
| 19623 | # can know about the installation paths within LLVM. |
| 19624 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19625 | cat >>confdefs.h <<_ACEOF |
| 19626 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 19627 | _ACEOF |
| 19628 | |
| 19629 | |
| 19630 | cat >>confdefs.h <<_ACEOF |
| 19631 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 19632 | _ACEOF |
| 19633 | |
| 19634 | |
| 19635 | cat >>confdefs.h <<_ACEOF |
| 19636 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 19637 | _ACEOF |
| 19638 | |
| 19639 | |
| 19640 | cat >>confdefs.h <<_ACEOF |
| 19641 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 19642 | _ACEOF |
| 19643 | |
| 19644 | |
| 19645 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 19646 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19647 | _ACEOF |
| 19648 | |
| 19649 | |
| 19650 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 19651 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19652 | _ACEOF |
| 19653 | |
| 19654 | |
| 19655 | cat >>confdefs.h <<_ACEOF |
| 19656 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 19657 | _ACEOF |
| 19658 | |
| 19659 | |
| 19660 | cat >>confdefs.h <<_ACEOF |
| 19661 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 19662 | _ACEOF |
| 19663 | |
| 19664 | |
| 19665 | cat >>confdefs.h <<_ACEOF |
| 19666 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 19667 | _ACEOF |
| 19668 | |
| 19669 | |
| 19670 | cat >>confdefs.h <<_ACEOF |
| 19671 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 19672 | _ACEOF |
| 19673 | |
| 19674 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 19675 | cat >>confdefs.h <<_ACEOF |
| 19676 | #define LLVM_HOSTTRIPLE "$host" |
| 19677 | _ACEOF |
| 19678 | |
| 19679 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 19680 | # Determine which bindings to build. |
| 19681 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 19682 | BINDINGS_TO_BUILD="" |
| 19683 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 19684 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 19685 | fi |
| 19686 | fi |
| 19687 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 19688 | |
| 19689 | |
| 19690 | # This isn't really configurey, but it avoids having to repeat the list in |
| 19691 | # other files. |
| 19692 | ALL_BINDINGS=ocaml |
| 19693 | |
| 19694 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19695 | # Do any work necessary to ensure that bindings have what they need. |
| 19696 | binding_prereqs_failed=0 |
| 19697 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 19698 | case "$a_binding" in |
| 19699 | ocaml) |
| 19700 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19701 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 19702 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19703 | binding_prereqs_failed=1 |
| 19704 | fi |
| 19705 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19706 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 19707 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19708 | binding_prereqs_failed=1 |
| 19709 | fi |
| 19710 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19711 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 19712 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19713 | fi |
| 19714 | if test "x$with_ocaml_libdir" != xauto ; then |
| 19715 | OCAML_LIBDIR=$with_ocaml_libdir |
| 19716 | |
| 19717 | else |
| 19718 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 19719 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 19720 | then |
| 19721 | # ocaml stdlib is beneath our prefix; use stdlib |
| 19722 | OCAML_LIBDIR=$ocaml_stdlib |
| 19723 | |
| 19724 | else |
| 19725 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 19726 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 19727 | |
| 19728 | fi |
| 19729 | fi |
| 19730 | ;; |
| 19731 | esac |
| 19732 | done |
| 19733 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19734 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 19735 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 19736 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19737 | fi |
| 19738 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19739 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 19740 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 19741 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 19742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19743 | else |
| 19744 | ac_ext=cpp |
| 19745 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19746 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19747 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19748 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19749 | |
| 19750 | oldcxxflags="$CXXFLAGS" |
| 19751 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19752 | cat >conftest.$ac_ext <<_ACEOF |
| 19753 | /* confdefs.h. */ |
| 19754 | _ACEOF |
| 19755 | cat confdefs.h >>conftest.$ac_ext |
| 19756 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19757 | /* end confdefs.h. */ |
| 19758 | |
| 19759 | int |
| 19760 | main () |
| 19761 | { |
| 19762 | |
| 19763 | ; |
| 19764 | return 0; |
| 19765 | } |
| 19766 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19767 | rm -f conftest.$ac_objext |
| 19768 | if { (ac_try="$ac_compile" |
| 19769 | case "(($ac_try" in |
| 19770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19771 | *) ac_try_echo=$ac_try;; |
| 19772 | esac |
| 19773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19774 | (eval "$ac_compile") 2>conftest.er1 |
| 19775 | ac_status=$? |
| 19776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19777 | rm -f conftest.er1 |
| 19778 | cat conftest.err >&5 |
| 19779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19780 | (exit $ac_status); } && |
| 19781 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19782 | { (case "(($ac_try" in |
| 19783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19784 | *) ac_try_echo=$ac_try;; |
| 19785 | esac |
| 19786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19787 | (eval "$ac_try") 2>&5 |
| 19788 | ac_status=$? |
| 19789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19790 | (exit $ac_status); }; } && |
| 19791 | { ac_try='test -s conftest.$ac_objext' |
| 19792 | { (case "(($ac_try" in |
| 19793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19794 | *) ac_try_echo=$ac_try;; |
| 19795 | esac |
| 19796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19797 | (eval "$ac_try") 2>&5 |
| 19798 | ac_status=$? |
| 19799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19800 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19801 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 19802 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19803 | echo "$as_me: failed program was:" >&5 |
| 19804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19805 | |
| 19806 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19807 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19808 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19810 | CXXFLAGS="$oldcxxflags" |
| 19811 | ac_ext=c |
| 19812 | ac_cpp='$CPP $CPPFLAGS' |
| 19813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19816 | |
| 19817 | |
| 19818 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19819 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 19820 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 19821 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 19822 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 19823 | |
| 19824 | else |
| 19825 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 19826 | |
| 19827 | fi |
| 19828 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 19829 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 19830 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 19831 | RPATH="-Wl,-R" |
| 19832 | else |
| 19833 | RPATH="-Wl,-rpath" |
| 19834 | fi |
| 19835 | |
| 19836 | |
| 19837 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 19838 | RDYNAMIC="-Wl,-export-dynamic" |
| 19839 | else |
| 19840 | RDYNAMIC="" |
| 19841 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 19842 | |
| 19843 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19845 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19846 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 19847 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 19848 | |
| 19849 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 19850 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 19851 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 19852 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 19853 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 19854 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 19855 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19856 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19857 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19858 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19859 | |
| 19860 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 19861 | ac_config_files="$ac_config_files llvm.spec" |
| 19862 | |
| 19863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19864 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19865 | |
| 19866 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 19867 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 19868 | |
| 19869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19870 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 19871 | |
| 19872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19873 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 19874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19875 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19876 | |
| 19877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19878 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19879 | |
| 19880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19881 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19882 | |
| 19883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19884 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19885 | |
| 19886 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 19887 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 19888 | |
| 19889 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19890 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19891 | |
| 19892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19893 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19894 | |
| 19895 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 19896 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 19897 | |
| 19898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19899 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19900 | |
| 19901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19902 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19903 | |
| 19904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19905 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19906 | |
| 19907 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 19908 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 19909 | |
| 19910 | |
| 19911 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 19912 | |
| 19913 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19914 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19915 | cat >confcache <<\_ACEOF |
| 19916 | # This file is a shell script that caches the results of configure |
| 19917 | # tests run on this system so they can be shared between configure |
| 19918 | # scripts and configure runs, see configure's option --config-cache. |
| 19919 | # It is not useful on other systems. If it contains results you don't |
| 19920 | # want to keep, you may remove or edit it. |
| 19921 | # |
| 19922 | # config.status only pays attention to the cache file if you give it |
| 19923 | # the --recheck option to rerun configure. |
| 19924 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19925 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19926 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 19927 | # following values. |
| 19928 | |
| 19929 | _ACEOF |
| 19930 | |
| 19931 | # The following way of writing the cache mishandles newlines in values, |
| 19932 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19933 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19934 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 19935 | # 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] | 19936 | ( |
| 19937 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 19938 | eval ac_val=\$$ac_var |
| 19939 | case $ac_val in #( |
| 19940 | *${as_nl}*) |
| 19941 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19942 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 19943 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19944 | esac |
| 19945 | case $ac_var in #( |
| 19946 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19947 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19948 | esac ;; |
| 19949 | esac |
| 19950 | done |
| 19951 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19952 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19953 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 19954 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19955 | # `set' does not quote correctly, so add quotes (double-quote |
| 19956 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19957 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19958 | "s/'/'\\\\''/g; |
| 19959 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19960 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19961 | *) |
| 19962 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19963 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19964 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19965 | esac | |
| 19966 | sort |
| 19967 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19968 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19969 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19970 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19971 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19972 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 19973 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19974 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 19975 | :end' >>confcache |
| 19976 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 19977 | if test -w "$cache_file"; then |
| 19978 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19979 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 19980 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19981 | cat confcache >$cache_file |
| 19982 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19983 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 19984 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19985 | fi |
| 19986 | fi |
| 19987 | rm -f confcache |
| 19988 | |
| 19989 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 19990 | # Let make expand exec_prefix. |
| 19991 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 19992 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19993 | DEFS=-DHAVE_CONFIG_H |
| 19994 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19995 | ac_libobjs= |
| 19996 | ac_ltlibobjs= |
| 19997 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 19998 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19999 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20000 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20001 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20002 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20003 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20004 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20005 | done |
| 20006 | LIBOBJS=$ac_libobjs |
| 20007 | |
| 20008 | LTLIBOBJS=$ac_ltlibobjs |
| 20009 | |
| 20010 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20011 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20012 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20013 | Usually this means the macro was only invoked conditionally." >&5 |
| 20014 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20015 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20016 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20017 | fi |
| 20018 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20019 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20020 | Usually this means the macro was only invoked conditionally." >&5 |
| 20021 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20022 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20023 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20024 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20025 | |
| 20026 | : ${CONFIG_STATUS=./config.status} |
| 20027 | ac_clean_files_save=$ac_clean_files |
| 20028 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20029 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20030 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20031 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20032 | #! $SHELL |
| 20033 | # Generated by $as_me. |
| 20034 | # Run this file to recreate the current configuration. |
| 20035 | # Compiler output produced by configure, useful for debugging |
| 20036 | # configure, is in config.log if it exists. |
| 20037 | |
| 20038 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20039 | ac_cs_recheck=false |
| 20040 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20041 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20042 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20043 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20044 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20045 | ## --------------------- ## |
| 20046 | ## M4sh Initialization. ## |
| 20047 | ## --------------------- ## |
| 20048 | |
| 20049 | # Be Bourne compatible |
| 20050 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20051 | emulate sh |
| 20052 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20053 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20054 | # is contrary to our usage. Disable this feature. |
| 20055 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20056 | setopt NO_GLOB_SUBST |
| 20057 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20058 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20059 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20060 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20061 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20062 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20063 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20064 | # PATH needs CR |
| 20065 | # Avoid depending upon Character Ranges. |
| 20066 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20067 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20068 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20069 | as_cr_digits='0123456789' |
| 20070 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20071 | |
| 20072 | # The user is always right. |
| 20073 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20074 | echo "#! /bin/sh" >conf$$.sh |
| 20075 | echo "exit 0" >>conf$$.sh |
| 20076 | chmod +x conf$$.sh |
| 20077 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20078 | PATH_SEPARATOR=';' |
| 20079 | else |
| 20080 | PATH_SEPARATOR=: |
| 20081 | fi |
| 20082 | rm -f conf$$.sh |
| 20083 | fi |
| 20084 | |
| 20085 | # Support unset when possible. |
| 20086 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20087 | as_unset=unset |
| 20088 | else |
| 20089 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20090 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20091 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20092 | |
| 20093 | # IFS |
| 20094 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20095 | # there to prevent editors from complaining about space-tab. |
| 20096 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20097 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20098 | as_nl=' |
| 20099 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20100 | IFS=" "" $as_nl" |
| 20101 | |
| 20102 | # Find who we are. Look in the path if we contain no directory separator. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20103 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20104 | *[\\/]* ) as_myself=$0 ;; |
| 20105 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20106 | for as_dir in $PATH |
| 20107 | do |
| 20108 | IFS=$as_save_IFS |
| 20109 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20110 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20111 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20112 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20114 | ;; |
| 20115 | esac |
| 20116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20117 | # in which case we are not to be found in the path. |
| 20118 | if test "x$as_myself" = x; then |
| 20119 | as_myself=$0 |
| 20120 | fi |
| 20121 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20122 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20123 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20124 | fi |
| 20125 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20126 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20127 | for as_var in ENV MAIL MAILPATH |
| 20128 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20129 | done |
| 20130 | PS1='$ ' |
| 20131 | PS2='> ' |
| 20132 | PS4='+ ' |
| 20133 | |
| 20134 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20135 | for as_var in \ |
| 20136 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20137 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20138 | LC_TELEPHONE LC_TIME |
| 20139 | do |
| 20140 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20141 | eval $as_var=C; export $as_var |
| 20142 | else |
| 20143 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20145 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20146 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20147 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20148 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20149 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20150 | as_expr=expr |
| 20151 | else |
| 20152 | as_expr=false |
| 20153 | fi |
| 20154 | |
| 20155 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20156 | as_basename=basename |
| 20157 | else |
| 20158 | as_basename=false |
| 20159 | fi |
| 20160 | |
| 20161 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20162 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20163 | as_me=`$as_basename -- "$0" || |
| 20164 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20165 | X"$0" : 'X\(//\)$' \| \ |
| 20166 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20167 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20168 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20169 | s//\1/ |
| 20170 | q |
| 20171 | } |
| 20172 | /^X\/\(\/\/\)$/{ |
| 20173 | s//\1/ |
| 20174 | q |
| 20175 | } |
| 20176 | /^X\/\(\/\).*/{ |
| 20177 | s//\1/ |
| 20178 | q |
| 20179 | } |
| 20180 | s/.*/./; q'` |
| 20181 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20182 | # CDPATH. |
| 20183 | $as_unset CDPATH |
| 20184 | |
| 20185 | |
| 20186 | |
| 20187 | as_lineno_1=$LINENO |
| 20188 | as_lineno_2=$LINENO |
| 20189 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20190 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20191 | |
| 20192 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20193 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20194 | # line-number line after each line using $LINENO; the second 'sed' |
| 20195 | # does the real work. The second script uses 'N' to pair each |
| 20196 | # line-number line with the line containing $LINENO, and appends |
| 20197 | # trailing '-' during substitution so that $LINENO is not a special |
| 20198 | # case at line end. |
| 20199 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20200 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20201 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20202 | sed -n ' |
| 20203 | p |
| 20204 | /[$]LINENO/= |
| 20205 | ' <$as_myself | |
| 20206 | sed ' |
| 20207 | s/[$]LINENO.*/&-/ |
| 20208 | t lineno |
| 20209 | b |
| 20210 | :lineno |
| 20211 | N |
| 20212 | :loop |
| 20213 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20214 | t loop |
| 20215 | s/-\n.*// |
| 20216 | ' >$as_me.lineno && |
| 20217 | chmod +x "$as_me.lineno" || |
| 20218 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20219 | { (exit 1); exit 1; }; } |
| 20220 | |
| 20221 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20222 | # (the dirname of $[0] is not the place where we might find the |
| 20223 | # original and so on. Autoconf is especially sensitive to this). |
| 20224 | . "./$as_me.lineno" |
| 20225 | # Exit status is that of the last command. |
| 20226 | exit |
| 20227 | } |
| 20228 | |
| 20229 | |
| 20230 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20231 | as_dirname=dirname |
| 20232 | else |
| 20233 | as_dirname=false |
| 20234 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20235 | |
| 20236 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20237 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20238 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20239 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20240 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20241 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20242 | esac;; |
| 20243 | *) |
| 20244 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20245 | esac |
| 20246 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20247 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20248 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20249 | as_expr=expr |
| 20250 | else |
| 20251 | as_expr=false |
| 20252 | fi |
| 20253 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20254 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20255 | if test -d conf$$.dir; then |
| 20256 | rm -f conf$$.dir/conf$$.file |
| 20257 | else |
| 20258 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20259 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20260 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20261 | echo >conf$$.file |
| 20262 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20263 | as_ln_s='ln -s' |
| 20264 | # ... but there are two gotchas: |
| 20265 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20266 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20267 | # In both cases, we have to default to `cp -p'. |
| 20268 | 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] | 20269 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20270 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20271 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20272 | else |
| 20273 | as_ln_s='cp -p' |
| 20274 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20275 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20276 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20277 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20278 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20279 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20280 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20281 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20282 | as_mkdir_p=false |
| 20283 | fi |
| 20284 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20285 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20286 | # systems may use methods other than mode bits to determine executability. |
| 20287 | cat >conf$$.file <<_ASEOF |
| 20288 | #! /bin/sh |
| 20289 | exit 0 |
| 20290 | _ASEOF |
| 20291 | chmod +x conf$$.file |
| 20292 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20293 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20294 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20295 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20296 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20297 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20298 | |
| 20299 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20300 | 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] | 20301 | |
| 20302 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20303 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20304 | |
| 20305 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20306 | exec 6>&1 |
| 20307 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20308 | # 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] | 20309 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20310 | # values after options handling. |
| 20311 | ac_log=" |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 20312 | This file was extended by llvm $as_me 2.7svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20313 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20314 | |
| 20315 | CONFIG_FILES = $CONFIG_FILES |
| 20316 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20317 | CONFIG_LINKS = $CONFIG_LINKS |
| 20318 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20319 | $ $0 $@ |
| 20320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20321 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20322 | " |
| 20323 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20324 | _ACEOF |
| 20325 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20326 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20327 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20328 | config_files="$ac_config_files" |
| 20329 | config_headers="$ac_config_headers" |
| 20330 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20332 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20334 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20335 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20336 | \`$as_me' instantiates files from templates according to the |
| 20337 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20338 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20339 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20340 | |
| 20341 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20342 | -V, --version print version number, then exit |
| 20343 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20344 | -d, --debug don't remove temporary files |
| 20345 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20346 | --file=FILE[:TEMPLATE] |
| 20347 | instantiate the configuration file FILE |
| 20348 | --header=FILE[:TEMPLATE] |
| 20349 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20350 | |
| 20351 | Configuration files: |
| 20352 | $config_files |
| 20353 | |
| 20354 | Configuration headers: |
| 20355 | $config_headers |
| 20356 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20357 | Configuration commands: |
| 20358 | $config_commands |
| 20359 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20360 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20362 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20363 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20364 | ac_cs_version="\\ |
Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 20365 | llvm config.status 2.7svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20366 | configured by $0, generated by GNU Autoconf 2.60, |
| 20367 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20368 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20369 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20370 | This config.status script is free software; the Free Software Foundation |
| 20371 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20372 | |
| 20373 | ac_pwd='$ac_pwd' |
| 20374 | srcdir='$srcdir' |
| 20375 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20376 | _ACEOF |
| 20377 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20378 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20379 | # If no file are specified by the user, then we need to provide default |
| 20380 | # value. By we need to know if files were specified by the user. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20381 | ac_need_defaults=: |
| 20382 | while test $# != 0 |
| 20383 | do |
| 20384 | case $1 in |
| 20385 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20386 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20387 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20388 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20389 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20390 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20391 | ac_option=$1 |
| 20392 | ac_optarg=$2 |
| 20393 | ac_shift=shift |
| 20394 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20395 | esac |
| 20396 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20397 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20398 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20399 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20400 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20401 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20402 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20403 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20404 | debug=: ;; |
| 20405 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20406 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20407 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20408 | ac_need_defaults=false;; |
| 20409 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20410 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20411 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20412 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20413 | --he | --h) |
| 20414 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20415 | { echo "$as_me: error: ambiguous option: $1 |
| 20416 | Try \`$0 --help' for more information." >&2 |
| 20417 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20418 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20419 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20420 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20421 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20422 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20423 | |
| 20424 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20425 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20426 | Try \`$0 --help' for more information." >&2 |
| 20427 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20428 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20429 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20430 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20431 | |
| 20432 | esac |
| 20433 | shift |
| 20434 | done |
| 20435 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20436 | ac_configure_extra_args= |
| 20437 | |
| 20438 | if $ac_cs_silent; then |
| 20439 | exec 6>/dev/null |
| 20440 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20441 | fi |
| 20442 | |
| 20443 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20444 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20445 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20446 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20447 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20448 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20449 | 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] | 20450 | fi |
| 20451 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20452 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20453 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20454 | exec 5>>config.log |
| 20455 | { |
| 20456 | echo |
| 20457 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20458 | ## Running $as_me. ## |
| 20459 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20460 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20461 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20462 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20463 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20464 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20465 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20466 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20467 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20468 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20469 | |
| 20470 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20471 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20472 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20473 | |
| 20474 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20475 | for ac_config_target in $ac_config_targets |
| 20476 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20477 | case $ac_config_target in |
| 20478 | "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] | 20479 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 20480 | "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] | 20481 | "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20482 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20483 | "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20484 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20485 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20486 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20487 | "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] | 20488 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 20489 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 20490 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 20491 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 20492 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 20493 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20494 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20495 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 20496 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20497 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20498 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 20499 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 20500 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20501 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 20502 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20503 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20504 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20505 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20506 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20507 | esac |
| 20508 | done |
| 20509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20510 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20511 | # If the user did not use the arguments to specify the items to instantiate, |
| 20512 | # then the envvar interface is used. Set only those that are not. |
| 20513 | # We use the long form for the default assignment because of an extremely |
| 20514 | # bizarre bug on SunOS 4.1.3. |
| 20515 | if $ac_need_defaults; then |
| 20516 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20517 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20518 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20519 | fi |
| 20520 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20521 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20522 | # 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] | 20523 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20524 | # Hook for its removal unless debugging. |
| 20525 | # Note that there is a small window in which the directory will not be cleaned: |
| 20526 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20527 | $debug || |
| 20528 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20529 | tmp= |
| 20530 | trap 'exit_status=$? |
| 20531 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20532 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20533 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20534 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20535 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20536 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20537 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20538 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20539 | test -n "$tmp" && test -d "$tmp" |
| 20540 | } || |
| 20541 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20542 | tmp=./conf$$-$RANDOM |
| 20543 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20544 | } || |
| 20545 | { |
| 20546 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20547 | { (exit 1); exit 1; } |
| 20548 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20549 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20550 | # |
| 20551 | # Set up the sed scripts for CONFIG_FILES section. |
| 20552 | # |
| 20553 | |
| 20554 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20555 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20556 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20557 | |
| 20558 | _ACEOF |
| 20559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20560 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20562 | ac_delim='%!_!# ' |
| 20563 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20564 | cat >conf$$subs.sed <<_ACEOF |
| 20565 | SHELL!$SHELL$ac_delim |
| 20566 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20567 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20568 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20569 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20570 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20571 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20572 | exec_prefix!$exec_prefix$ac_delim |
| 20573 | prefix!$prefix$ac_delim |
| 20574 | program_transform_name!$program_transform_name$ac_delim |
| 20575 | bindir!$bindir$ac_delim |
| 20576 | sbindir!$sbindir$ac_delim |
| 20577 | libexecdir!$libexecdir$ac_delim |
| 20578 | datarootdir!$datarootdir$ac_delim |
| 20579 | datadir!$datadir$ac_delim |
| 20580 | sysconfdir!$sysconfdir$ac_delim |
| 20581 | sharedstatedir!$sharedstatedir$ac_delim |
| 20582 | localstatedir!$localstatedir$ac_delim |
| 20583 | includedir!$includedir$ac_delim |
| 20584 | oldincludedir!$oldincludedir$ac_delim |
| 20585 | docdir!$docdir$ac_delim |
| 20586 | infodir!$infodir$ac_delim |
| 20587 | htmldir!$htmldir$ac_delim |
| 20588 | dvidir!$dvidir$ac_delim |
| 20589 | pdfdir!$pdfdir$ac_delim |
| 20590 | psdir!$psdir$ac_delim |
| 20591 | libdir!$libdir$ac_delim |
| 20592 | localedir!$localedir$ac_delim |
| 20593 | mandir!$mandir$ac_delim |
| 20594 | DEFS!$DEFS$ac_delim |
| 20595 | ECHO_C!$ECHO_C$ac_delim |
| 20596 | ECHO_N!$ECHO_N$ac_delim |
| 20597 | ECHO_T!$ECHO_T$ac_delim |
| 20598 | LIBS!$LIBS$ac_delim |
| 20599 | build_alias!$build_alias$ac_delim |
| 20600 | host_alias!$host_alias$ac_delim |
| 20601 | target_alias!$target_alias$ac_delim |
| 20602 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 20603 | subdirs!$subdirs$ac_delim |
| 20604 | build!$build$ac_delim |
| 20605 | build_cpu!$build_cpu$ac_delim |
| 20606 | build_vendor!$build_vendor$ac_delim |
| 20607 | build_os!$build_os$ac_delim |
| 20608 | host!$host$ac_delim |
| 20609 | host_cpu!$host_cpu$ac_delim |
| 20610 | host_vendor!$host_vendor$ac_delim |
| 20611 | host_os!$host_os$ac_delim |
| 20612 | target!$target$ac_delim |
| 20613 | target_cpu!$target_cpu$ac_delim |
| 20614 | target_vendor!$target_vendor$ac_delim |
| 20615 | target_os!$target_os$ac_delim |
| 20616 | OS!$OS$ac_delim |
| 20617 | HOST_OS!$HOST_OS$ac_delim |
| 20618 | TARGET_OS!$TARGET_OS$ac_delim |
| 20619 | LINKALL!$LINKALL$ac_delim |
| 20620 | NOLINKALL!$NOLINKALL$ac_delim |
| 20621 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 20622 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 20623 | ARCH!$ARCH$ac_delim |
| 20624 | ENDIAN!$ENDIAN$ac_delim |
| 20625 | CC!$CC$ac_delim |
| 20626 | CFLAGS!$CFLAGS$ac_delim |
| 20627 | LDFLAGS!$LDFLAGS$ac_delim |
| 20628 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20629 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20630 | EXEEXT!$EXEEXT$ac_delim |
| 20631 | OBJEXT!$OBJEXT$ac_delim |
| 20632 | CPP!$CPP$ac_delim |
| 20633 | GREP!$GREP$ac_delim |
| 20634 | EGREP!$EGREP$ac_delim |
| 20635 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 20636 | BUILD_CC!$BUILD_CC$ac_delim |
| 20637 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 20638 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 20639 | CVSBUILD!$CVSBUILD$ac_delim |
| 20640 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 20641 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 20642 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 20643 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 20644 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 20645 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 20646 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 20647 | JIT!$JIT$ac_delim |
| 20648 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 20649 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 20650 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 20651 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
| 20652 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 20653 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 20654 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 20655 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 20656 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 20657 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
| 20658 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
| 20659 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 20660 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Jeffrey Yasskin | 2155d45 | 2010-02-18 04:43:02 +0000 | [diff] [blame] | 20661 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20662 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20663 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20664 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20665 | break |
| 20666 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20667 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20668 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20669 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20670 | else |
| 20671 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20673 | done |
| 20674 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20675 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20676 | if test -n "$ac_eof"; then |
| 20677 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20678 | ac_eof=`expr $ac_eof + 1` |
| 20679 | fi |
| 20680 | |
| 20681 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20682 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20683 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20684 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20685 | sed ' |
| 20686 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20687 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20688 | :n |
| 20689 | t n |
| 20690 | s/'"$ac_delim"'$/,g/; t |
| 20691 | s/$/\\/; p |
| 20692 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20693 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20694 | rm -f conf$$subs.sed |
| 20695 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20696 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20697 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20698 | |
| 20699 | |
| 20700 | ac_delim='%!_!# ' |
| 20701 | for ac_last_try in false false false false false :; do |
| 20702 | cat >conf$$subs.sed <<_ACEOF |
| 20703 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 20704 | CXX!$CXX$ac_delim |
| 20705 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 20706 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 20707 | NM!$NM$ac_delim |
| 20708 | ifGNUmake!$ifGNUmake$ac_delim |
| 20709 | LN_S!$LN_S$ac_delim |
| 20710 | CMP!$CMP$ac_delim |
| 20711 | CP!$CP$ac_delim |
| 20712 | DATE!$DATE$ac_delim |
| 20713 | FIND!$FIND$ac_delim |
| 20714 | MKDIR!$MKDIR$ac_delim |
| 20715 | MV!$MV$ac_delim |
| 20716 | RANLIB!$RANLIB$ac_delim |
| 20717 | AR!$AR$ac_delim |
| 20718 | RM!$RM$ac_delim |
| 20719 | SED!$SED$ac_delim |
| 20720 | TAR!$TAR$ac_delim |
| 20721 | BINPWD!$BINPWD$ac_delim |
| 20722 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 20723 | DOT!$DOT$ac_delim |
| 20724 | FDP!$FDP$ac_delim |
| 20725 | NEATO!$NEATO$ac_delim |
| 20726 | TWOPI!$TWOPI$ac_delim |
| 20727 | CIRCO!$CIRCO$ac_delim |
| 20728 | GV!$GV$ac_delim |
| 20729 | DOTTY!$DOTTY$ac_delim |
| 20730 | PERL!$PERL$ac_delim |
| 20731 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 20732 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 20733 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 20734 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 20735 | BZIP2!$BZIP2$ac_delim |
| 20736 | DOXYGEN!$DOXYGEN$ac_delim |
| 20737 | GROFF!$GROFF$ac_delim |
| 20738 | GZIP!$GZIP$ac_delim |
| 20739 | POD2HTML!$POD2HTML$ac_delim |
| 20740 | POD2MAN!$POD2MAN$ac_delim |
| 20741 | RUNTEST!$RUNTEST$ac_delim |
| 20742 | TCLSH!$TCLSH$ac_delim |
| 20743 | ZIP!$ZIP$ac_delim |
| 20744 | OCAMLC!$OCAMLC$ac_delim |
| 20745 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 20746 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 20747 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 20748 | GAS!$GAS$ac_delim |
| 20749 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 20750 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 20751 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 20752 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 20753 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 20754 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 20755 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 20756 | LLVMGCC!$LLVMGCC$ac_delim |
| 20757 | LLVMGXX!$LLVMGXX$ac_delim |
| 20758 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 20759 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 20760 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 20761 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 20762 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 20763 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 20764 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 20765 | LLVMCC1!$LLVMCC1$ac_delim |
| 20766 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 20767 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
| 20768 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
| 20769 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20770 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 20771 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 20772 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 20773 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 20774 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 20775 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 20776 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 20777 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 20778 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 20779 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 20780 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 20781 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 20782 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 20783 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 20784 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 20785 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 20786 | RPATH!$RPATH$ac_delim |
| 20787 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 20788 | LIBOBJS!$LIBOBJS$ac_delim |
| 20789 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20790 | _ACEOF |
| 20791 | |
Daniel Dunbar | 99d9863 | 2010-02-23 07:56:22 +0000 | [diff] [blame^] | 20792 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20793 | break |
| 20794 | elif $ac_last_try; then |
| 20795 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20796 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20797 | { (exit 1); exit 1; }; } |
| 20798 | else |
| 20799 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20800 | fi |
| 20801 | done |
| 20802 | |
| 20803 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20804 | if test -n "$ac_eof"; then |
| 20805 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20806 | ac_eof=`expr $ac_eof + 1` |
| 20807 | fi |
| 20808 | |
| 20809 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20810 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 20811 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 20812 | _ACEOF |
| 20813 | sed ' |
| 20814 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20815 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20816 | :n |
| 20817 | t n |
| 20818 | s/'"$ac_delim"'$/,g/; t |
| 20819 | s/$/\\/; p |
| 20820 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20821 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20822 | rm -f conf$$subs.sed |
| 20823 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20824 | :end |
| 20825 | s/|#_!!_#|//g |
| 20826 | CEOF$ac_eof |
| 20827 | _ACEOF |
| 20828 | |
| 20829 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20830 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20831 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20832 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20833 | # (actually we leave an empty line to preserve line numbers). |
| 20834 | if test "x$srcdir" = x.; then |
| 20835 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 20836 | s/:*\$(srcdir):*/:/ |
| 20837 | s/:*\${srcdir}:*/:/ |
| 20838 | s/:*@srcdir@:*/:/ |
| 20839 | s/^\([^=]*=[ ]*\):*/\1/ |
| 20840 | s/:*$// |
| 20841 | s/^[^=]*=[ ]*$// |
| 20842 | }' |
| 20843 | fi |
| 20844 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20845 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20846 | fi # test -n "$CONFIG_FILES" |
| 20847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20848 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20849 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20850 | do |
| 20851 | case $ac_tag in |
| 20852 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20853 | esac |
| 20854 | case $ac_mode$ac_tag in |
| 20855 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20856 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 20857 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 20858 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20859 | :[FH]-) ac_tag=-:-;; |
| 20860 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20861 | esac |
| 20862 | ac_save_IFS=$IFS |
| 20863 | IFS=: |
| 20864 | set x $ac_tag |
| 20865 | IFS=$ac_save_IFS |
| 20866 | shift |
| 20867 | ac_file=$1 |
| 20868 | shift |
| 20869 | |
| 20870 | case $ac_mode in |
| 20871 | :L) ac_source=$1;; |
| 20872 | :[FH]) |
| 20873 | ac_file_inputs= |
| 20874 | for ac_f |
| 20875 | do |
| 20876 | case $ac_f in |
| 20877 | -) ac_f="$tmp/stdin";; |
| 20878 | *) # Look for the file first in the build tree, then in the source tree |
| 20879 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20880 | # because $ac_f cannot contain `:'. |
| 20881 | test -f "$ac_f" || |
| 20882 | case $ac_f in |
| 20883 | [\\/$]*) false;; |
| 20884 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20885 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20886 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 20887 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 20888 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20889 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20890 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20891 | done |
| 20892 | |
| 20893 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20894 | # use $as_me), people would be surprised to read: |
| 20895 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20896 | configure_input="Generated from "`IFS=: |
| 20897 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20898 | if test x"$ac_file" != x-; then |
| 20899 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20900 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20901 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20902 | fi |
| 20903 | |
| 20904 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20905 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20906 | esac |
| 20907 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20908 | esac |
| 20909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20910 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20911 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20912 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20913 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20914 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20915 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20916 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20917 | s//\1/ |
| 20918 | q |
| 20919 | } |
| 20920 | /^X\(\/\/\)[^/].*/{ |
| 20921 | s//\1/ |
| 20922 | q |
| 20923 | } |
| 20924 | /^X\(\/\/\)$/{ |
| 20925 | s//\1/ |
| 20926 | q |
| 20927 | } |
| 20928 | /^X\(\/\).*/{ |
| 20929 | s//\1/ |
| 20930 | q |
| 20931 | } |
| 20932 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20933 | { as_dir="$ac_dir" |
| 20934 | case $as_dir in #( |
| 20935 | -*) as_dir=./$as_dir;; |
| 20936 | esac |
| 20937 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 20938 | as_dirs= |
| 20939 | while :; do |
| 20940 | case $as_dir in #( |
| 20941 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 20942 | *) as_qdir=$as_dir;; |
| 20943 | esac |
| 20944 | as_dirs="'$as_qdir' $as_dirs" |
| 20945 | as_dir=`$as_dirname -- "$as_dir" || |
| 20946 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20947 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20948 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20949 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 20950 | echo X"$as_dir" | |
| 20951 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20952 | s//\1/ |
| 20953 | q |
| 20954 | } |
| 20955 | /^X\(\/\/\)[^/].*/{ |
| 20956 | s//\1/ |
| 20957 | q |
| 20958 | } |
| 20959 | /^X\(\/\/\)$/{ |
| 20960 | s//\1/ |
| 20961 | q |
| 20962 | } |
| 20963 | /^X\(\/\).*/{ |
| 20964 | s//\1/ |
| 20965 | q |
| 20966 | } |
| 20967 | s/.*/./; q'` |
| 20968 | test -d "$as_dir" && break |
| 20969 | done |
| 20970 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 20971 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 20972 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 20973 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20974 | ac_builddir=. |
| 20975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20976 | case "$ac_dir" in |
| 20977 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20978 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20979 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20980 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20981 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20982 | case $ac_top_builddir_sub in |
| 20983 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20984 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20985 | esac ;; |
| 20986 | esac |
| 20987 | ac_abs_top_builddir=$ac_pwd |
| 20988 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20989 | # for backward compatibility: |
| 20990 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20991 | |
| 20992 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20993 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20994 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20995 | ac_top_srcdir=$ac_top_builddir_sub |
| 20996 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20997 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20998 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20999 | ac_top_srcdir=$srcdir |
| 21000 | ac_abs_top_srcdir=$srcdir ;; |
| 21001 | *) # Relative name. |
| 21002 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21003 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21004 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21005 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21006 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21007 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21009 | case $ac_mode in |
| 21010 | :F) |
| 21011 | # |
| 21012 | # CONFIG_FILE |
| 21013 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21014 | |
| 21015 | case $INSTALL in |
| 21016 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21017 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21018 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21019 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21021 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21022 | # If the template does not know about datarootdir, expand it. |
| 21023 | # FIXME: This hack should be removed a few years after 2.60. |
| 21024 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21025 | |
| 21026 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21027 | p |
| 21028 | q |
| 21029 | } |
| 21030 | /@datadir@/p |
| 21031 | /@docdir@/p |
| 21032 | /@infodir@/p |
| 21033 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21034 | /@mandir@/p |
| 21035 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21036 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21037 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21038 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21039 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21040 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21041 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21042 | ac_datarootdir_hack=' |
| 21043 | s&@datadir@&$datadir&g |
| 21044 | s&@docdir@&$docdir&g |
| 21045 | s&@infodir@&$infodir&g |
| 21046 | s&@localedir@&$localedir&g |
| 21047 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21048 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21049 | esac |
| 21050 | _ACEOF |
| 21051 | |
| 21052 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21053 | # Shell code in configure.ac might set extrasub. |
| 21054 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21055 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21056 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21057 | $extrasub |
| 21058 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21059 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21060 | :t |
| 21061 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21062 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21063 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21064 | s&@srcdir@&$ac_srcdir&;t t |
| 21065 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21066 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21067 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21068 | s&@builddir@&$ac_builddir&;t t |
| 21069 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21070 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21071 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21072 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21073 | " $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] | 21074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21075 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21076 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21077 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21078 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21079 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21080 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21081 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21083 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21084 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21085 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21086 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21087 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21088 | ;; |
| 21089 | :H) |
| 21090 | # |
| 21091 | # CONFIG_HEADER |
| 21092 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21093 | _ACEOF |
| 21094 | |
| 21095 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21096 | # substitutes the proper values into config.h.in to produce config.h. |
| 21097 | rm -f conftest.defines conftest.tail |
| 21098 | # First, append a space to every undef/define line, to ease matching. |
| 21099 | echo 's/$/ /' >conftest.defines |
| 21100 | # Then, protect against being on the right side of a sed subst, or in |
| 21101 | # an unquoted here document, in config.status. If some macros were |
| 21102 | # called several times there might be several #defines for the same |
| 21103 | # symbol, which is useless. But do not sort them, since the last |
| 21104 | # AC_DEFINE must be honored. |
| 21105 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21106 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21107 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21108 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21109 | # just an empty string. |
| 21110 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21111 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21112 | ac_dC=' ' |
| 21113 | ac_dD=' ,' |
| 21114 | |
| 21115 | uniq confdefs.h | |
| 21116 | sed -n ' |
| 21117 | t rset |
| 21118 | :rset |
| 21119 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21120 | t ok |
| 21121 | d |
| 21122 | :ok |
| 21123 | s/[\\&,]/\\&/g |
| 21124 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21125 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21126 | ' >>conftest.defines |
| 21127 | |
| 21128 | # Remove the space that was appended to ease matching. |
| 21129 | # Then replace #undef with comments. This is necessary, for |
| 21130 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21131 | # on some systems where configure will not decide to define it. |
| 21132 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21133 | echo 's/ $// |
| 21134 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21135 | |
| 21136 | # Break up conftest.defines: |
| 21137 | ac_max_sed_lines=50 |
| 21138 | |
| 21139 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21140 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21141 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21142 | # et cetera. |
| 21143 | ac_in='$ac_file_inputs' |
| 21144 | ac_out='"$tmp/out1"' |
| 21145 | ac_nxt='"$tmp/out2"' |
| 21146 | |
| 21147 | while : |
| 21148 | do |
| 21149 | # Write a here document: |
| 21150 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21151 | # First, check the format of the line: |
| 21152 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21153 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21154 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21155 | b |
| 21156 | :def |
| 21157 | _ACEOF |
| 21158 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21159 | echo 'CEOF |
| 21160 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21161 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21162 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21163 | grep . conftest.tail >/dev/null || break |
| 21164 | rm -f conftest.defines |
| 21165 | mv conftest.tail conftest.defines |
| 21166 | done |
| 21167 | rm -f conftest.defines conftest.tail |
| 21168 | |
| 21169 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21170 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21171 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21172 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21173 | cat "$ac_result" >>"$tmp/config.h" |
| 21174 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21175 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21176 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21177 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21178 | rm -f $ac_file |
| 21179 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21180 | fi |
| 21181 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21182 | echo "/* $configure_input */" |
| 21183 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21184 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21185 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21186 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21187 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21188 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21189 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21190 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21191 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21193 | |
| 21194 | case $ac_file$ac_mode in |
| 21195 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21196 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21197 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21198 | ${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] | 21199 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21200 | ${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] | 21201 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21202 | ${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] | 21203 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21204 | ${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] | 21205 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21206 | ${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] | 21207 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21208 | ${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] | 21209 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21210 | ${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] | 21211 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21212 | ${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] | 21213 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21214 | ${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] | 21215 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21216 | ${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] | 21217 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21218 | ${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] | 21219 | "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] | 21220 | ${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] | 21221 | |
| 21222 | esac |
| 21223 | done # for ac_tag |
| 21224 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21225 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21226 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21227 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21228 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21229 | ac_clean_files=$ac_clean_files_save |
| 21230 | |
| 21231 | |
| 21232 | # configure is writing to config.log, and then calls config.status. |
| 21233 | # config.status does its own redirection, appending to config.log. |
| 21234 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21235 | # by configure, so config.status won't be able to write to it; its |
| 21236 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21237 | # effectively closing config.log, so it can be properly (re)opened and |
| 21238 | # appended to by config.status. When coming back to configure, we |
| 21239 | # need to make the FD available again. |
| 21240 | if test "$no_create" != yes; then |
| 21241 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21242 | ac_config_status_args= |
| 21243 | test "$silent" = yes && |
| 21244 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21245 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21246 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21247 | exec 5>>config.log |
| 21248 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21249 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21250 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21251 | fi |
| 21252 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21253 | # |
| 21254 | # CONFIG_SUBDIRS section. |
| 21255 | # |
| 21256 | if test "$no_recursion" != yes; then |
| 21257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21258 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21259 | ac_sub_configure_args= |
| 21260 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21261 | eval "set x $ac_configure_args" |
| 21262 | shift |
| 21263 | for ac_arg |
| 21264 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21265 | if test -n "$ac_prev"; then |
| 21266 | ac_prev= |
| 21267 | continue |
| 21268 | fi |
| 21269 | case $ac_arg in |
| 21270 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 21271 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 21272 | ac_prev=cache_file ;; |
| 21273 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 21274 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 21275 | | --c=*) |
| 21276 | ;; |
| 21277 | --config-cache | -C) |
| 21278 | ;; |
| 21279 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 21280 | ac_prev=srcdir ;; |
| 21281 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 21282 | ;; |
| 21283 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 21284 | ac_prev=prefix ;; |
| 21285 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 21286 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21287 | *) |
| 21288 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21289 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21290 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21291 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21292 | esac |
| 21293 | done |
| 21294 | |
| 21295 | # Always prepend --prefix to ensure using the same prefix |
| 21296 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21297 | ac_arg="--prefix=$prefix" |
| 21298 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21299 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21300 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21301 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21302 | |
| 21303 | ac_popdir=`pwd` |
| 21304 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 21305 | |
| 21306 | # Do not complain, so a configure script can configure whichever |
| 21307 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21308 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21310 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21311 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 21312 | echo "$ac_msg" >&6 |
| 21313 | { as_dir="$ac_dir" |
| 21314 | case $as_dir in #( |
| 21315 | -*) as_dir=./$as_dir;; |
| 21316 | esac |
| 21317 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21318 | as_dirs= |
| 21319 | while :; do |
| 21320 | case $as_dir in #( |
| 21321 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21322 | *) as_qdir=$as_dir;; |
| 21323 | esac |
| 21324 | as_dirs="'$as_qdir' $as_dirs" |
| 21325 | as_dir=`$as_dirname -- "$as_dir" || |
| 21326 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21327 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21328 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21329 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21330 | echo X"$as_dir" | |
| 21331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21332 | s//\1/ |
| 21333 | q |
| 21334 | } |
| 21335 | /^X\(\/\/\)[^/].*/{ |
| 21336 | s//\1/ |
| 21337 | q |
| 21338 | } |
| 21339 | /^X\(\/\/\)$/{ |
| 21340 | s//\1/ |
| 21341 | q |
| 21342 | } |
| 21343 | /^X\(\/\).*/{ |
| 21344 | s//\1/ |
| 21345 | q |
| 21346 | } |
| 21347 | s/.*/./; q'` |
| 21348 | test -d "$as_dir" && break |
| 21349 | done |
| 21350 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21351 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21352 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21353 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21354 | ac_builddir=. |
| 21355 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21356 | case "$ac_dir" in |
| 21357 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21358 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21359 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21360 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21361 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21362 | case $ac_top_builddir_sub in |
| 21363 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21364 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21365 | esac ;; |
| 21366 | esac |
| 21367 | ac_abs_top_builddir=$ac_pwd |
| 21368 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21369 | # for backward compatibility: |
| 21370 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21371 | |
| 21372 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21373 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21374 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21375 | ac_top_srcdir=$ac_top_builddir_sub |
| 21376 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21377 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21378 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21379 | ac_top_srcdir=$srcdir |
| 21380 | ac_abs_top_srcdir=$srcdir ;; |
| 21381 | *) # Relative name. |
| 21382 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21383 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21384 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21385 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21386 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21387 | |
| 21388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21389 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21390 | |
| 21391 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21392 | if test -f "$ac_srcdir/configure.gnu"; then |
| 21393 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 21394 | elif test -f "$ac_srcdir/configure"; then |
| 21395 | ac_sub_configure=$ac_srcdir/configure |
| 21396 | elif test -f "$ac_srcdir/configure.in"; then |
| 21397 | # This should be Cygnus configure. |
| 21398 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21399 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21400 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 21401 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21402 | ac_sub_configure= |
| 21403 | fi |
| 21404 | |
| 21405 | # The recursion is here. |
| 21406 | if test -n "$ac_sub_configure"; then |
| 21407 | # Make the cache file name correct relative to the subdirectory. |
| 21408 | case $cache_file in |
| 21409 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21410 | *) # Relative name. |
| 21411 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21412 | esac |
| 21413 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21414 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 21415 | 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] | 21416 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21417 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 21418 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21419 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 21420 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 21421 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21422 | fi |
| 21423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21424 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21425 | done |
| 21426 | fi |
| 21427 | |