John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.8svn. |
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 | # |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2010 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 | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.8svn' |
| 565 | PACKAGE_STRING='llvm 2.8svn' |
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 |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 692 | ENABLE_SHARED |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 693 | TARGETS_TO_BUILD |
| 694 | LLVM_ENUM_TARGETS |
| 695 | LLVM_ENUM_ASM_PRINTERS |
| 696 | LLVM_ENUM_ASM_PARSERS |
| 697 | LLVM_ENUM_DISASSEMBLERS |
| 698 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 699 | CLANGPATH |
| 700 | CLANGXXPATH |
| 701 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 702 | OPTIMIZE_OPTION |
| 703 | EXTRA_OPTIONS |
| 704 | BINUTILS_INCDIR |
| 705 | ENABLE_LLVMC_DYNAMIC |
| 706 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
| 707 | CXX |
| 708 | CXXFLAGS |
| 709 | ac_ct_CXX |
| 710 | NM |
| 711 | ifGNUmake |
| 712 | LN_S |
| 713 | CMP |
| 714 | CP |
| 715 | DATE |
| 716 | FIND |
| 717 | MKDIR |
| 718 | MV |
| 719 | RANLIB |
| 720 | AR |
| 721 | RM |
| 722 | SED |
| 723 | TAR |
| 724 | BINPWD |
| 725 | GRAPHVIZ |
| 726 | DOT |
| 727 | FDP |
| 728 | NEATO |
| 729 | TWOPI |
| 730 | CIRCO |
| 731 | GV |
| 732 | DOTTY |
| 733 | PERL |
| 734 | HAVE_PERL |
| 735 | INSTALL_PROGRAM |
| 736 | INSTALL_SCRIPT |
| 737 | INSTALL_DATA |
| 738 | BZIP2 |
| 739 | DOXYGEN |
| 740 | GROFF |
| 741 | GZIP |
| 742 | POD2HTML |
| 743 | POD2MAN |
| 744 | RUNTEST |
| 745 | TCLSH |
| 746 | ZIP |
| 747 | OCAMLC |
| 748 | OCAMLOPT |
| 749 | OCAMLDEP |
| 750 | OCAMLDOC |
| 751 | GAS |
| 752 | INSTALL_LTDL_TRUE |
| 753 | INSTALL_LTDL_FALSE |
| 754 | CONVENIENCE_LTDL_TRUE |
| 755 | CONVENIENCE_LTDL_FALSE |
| 756 | LIBADD_DL |
| 757 | LLVMGCCCOMMAND |
| 758 | LLVMGXXCOMMAND |
| 759 | LLVMGCC |
| 760 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 761 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 762 | NO_VARIADIC_MACROS |
| 763 | NO_MISSING_FIELD_INITIALIZERS |
| 764 | USE_UDIS86 |
| 765 | USE_OPROFILE |
| 766 | HAVE_PTHREAD |
| 767 | HUGE_VAL_SANITY |
| 768 | MMAP_FILE |
| 769 | LLVMCC1 |
| 770 | LLVMCC1PLUS |
| 771 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 772 | LLVMGCC_LANGS |
| 773 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 774 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 775 | LLVM_PREFIX |
| 776 | LLVM_BINDIR |
| 777 | LLVM_LIBDIR |
| 778 | LLVM_DATADIR |
| 779 | LLVM_DOCSDIR |
| 780 | LLVM_ETCDIR |
| 781 | LLVM_INCLUDEDIR |
| 782 | LLVM_INFODIR |
| 783 | LLVM_MANDIR |
| 784 | LLVM_CONFIGTIME |
| 785 | BINDINGS_TO_BUILD |
| 786 | ALL_BINDINGS |
| 787 | OCAML_LIBDIR |
| 788 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 789 | RPATH |
| 790 | RDYNAMIC |
| 791 | LIBOBJS |
| 792 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 793 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 794 | ac_precious_vars='build_alias |
| 795 | host_alias |
| 796 | target_alias |
| 797 | CC |
| 798 | CFLAGS |
| 799 | LDFLAGS |
| 800 | CPPFLAGS |
| 801 | CPP |
| 802 | CXX |
| 803 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 804 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame^] | 805 | ac_subdirs_all='projects/llvm-gcc |
| 806 | projects/test-suite |
| 807 | projects/llvm-test |
| 808 | projects/poolalloc |
| 809 | projects/llvm-poolalloc |
| 810 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 811 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 812 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 814 | projects/llvm-java |
| 815 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 816 | projects/safecode |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 817 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 818 | |
| 819 | # Initialize some variables set by options. |
| 820 | ac_init_help= |
| 821 | ac_init_version=false |
| 822 | # The variables have the same names as the options, with |
| 823 | # dashes changed to underlines. |
| 824 | cache_file=/dev/null |
| 825 | exec_prefix=NONE |
| 826 | no_create= |
| 827 | no_recursion= |
| 828 | prefix=NONE |
| 829 | program_prefix=NONE |
| 830 | program_suffix=NONE |
| 831 | program_transform_name=s,x,x, |
| 832 | silent= |
| 833 | site= |
| 834 | srcdir= |
| 835 | verbose= |
| 836 | x_includes=NONE |
| 837 | x_libraries=NONE |
| 838 | |
| 839 | # Installation directory options. |
| 840 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 841 | # and all the variables that are supposed to be based on exec_prefix |
| 842 | # by default will actually change. |
| 843 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 844 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 845 | bindir='${exec_prefix}/bin' |
| 846 | sbindir='${exec_prefix}/sbin' |
| 847 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 848 | datarootdir='${prefix}/share' |
| 849 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 850 | sysconfdir='${prefix}/etc' |
| 851 | sharedstatedir='${prefix}/com' |
| 852 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 853 | includedir='${prefix}/include' |
| 854 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 855 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 856 | infodir='${datarootdir}/info' |
| 857 | htmldir='${docdir}' |
| 858 | dvidir='${docdir}' |
| 859 | pdfdir='${docdir}' |
| 860 | psdir='${docdir}' |
| 861 | libdir='${exec_prefix}/lib' |
| 862 | localedir='${datarootdir}/locale' |
| 863 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 864 | |
| 865 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 866 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 867 | for ac_option |
| 868 | do |
| 869 | # If the previous option needs an argument, assign it. |
| 870 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 871 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 872 | ac_prev= |
| 873 | continue |
| 874 | fi |
| 875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 876 | case $ac_option in |
| 877 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 878 | *) ac_optarg=yes ;; |
| 879 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 880 | |
| 881 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 883 | case $ac_dashdash$ac_option in |
| 884 | --) |
| 885 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 886 | |
| 887 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 888 | ac_prev=bindir ;; |
| 889 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 890 | bindir=$ac_optarg ;; |
| 891 | |
| 892 | -build | --build | --buil | --bui | --bu) |
| 893 | ac_prev=build_alias ;; |
| 894 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 895 | build_alias=$ac_optarg ;; |
| 896 | |
| 897 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 898 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 899 | ac_prev=cache_file ;; |
| 900 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 901 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 902 | cache_file=$ac_optarg ;; |
| 903 | |
| 904 | --config-cache | -C) |
| 905 | cache_file=config.cache ;; |
| 906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 907 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 908 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 909 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 910 | datadir=$ac_optarg ;; |
| 911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 912 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 913 | | --dataroo | --dataro | --datar) |
| 914 | ac_prev=datarootdir ;; |
| 915 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 916 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 917 | datarootdir=$ac_optarg ;; |
| 918 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 919 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 920 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 921 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 922 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 923 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 924 | { (exit 1); exit 1; }; } |
| 925 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 926 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 927 | |
| 928 | -docdir | --docdir | --docdi | --doc | --do) |
| 929 | ac_prev=docdir ;; |
| 930 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 931 | docdir=$ac_optarg ;; |
| 932 | |
| 933 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 934 | ac_prev=dvidir ;; |
| 935 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 936 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 937 | |
| 938 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 939 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 940 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 941 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 942 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 943 | { (exit 1); exit 1; }; } |
| 944 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 945 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 946 | |
| 947 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 948 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 949 | | --exec | --exe | --ex) |
| 950 | ac_prev=exec_prefix ;; |
| 951 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 952 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 953 | | --exec=* | --exe=* | --ex=*) |
| 954 | exec_prefix=$ac_optarg ;; |
| 955 | |
| 956 | -gas | --gas | --ga | --g) |
| 957 | # Obsolete; use --with-gas. |
| 958 | with_gas=yes ;; |
| 959 | |
| 960 | -help | --help | --hel | --he | -h) |
| 961 | ac_init_help=long ;; |
| 962 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 963 | ac_init_help=recursive ;; |
| 964 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 965 | ac_init_help=short ;; |
| 966 | |
| 967 | -host | --host | --hos | --ho) |
| 968 | ac_prev=host_alias ;; |
| 969 | -host=* | --host=* | --hos=* | --ho=*) |
| 970 | host_alias=$ac_optarg ;; |
| 971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 972 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 973 | ac_prev=htmldir ;; |
| 974 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 975 | | --ht=*) |
| 976 | htmldir=$ac_optarg ;; |
| 977 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 978 | -includedir | --includedir | --includedi | --included | --include \ |
| 979 | | --includ | --inclu | --incl | --inc) |
| 980 | ac_prev=includedir ;; |
| 981 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 982 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 983 | includedir=$ac_optarg ;; |
| 984 | |
| 985 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 986 | ac_prev=infodir ;; |
| 987 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 988 | infodir=$ac_optarg ;; |
| 989 | |
| 990 | -libdir | --libdir | --libdi | --libd) |
| 991 | ac_prev=libdir ;; |
| 992 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 993 | libdir=$ac_optarg ;; |
| 994 | |
| 995 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 996 | | --libexe | --libex | --libe) |
| 997 | ac_prev=libexecdir ;; |
| 998 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 999 | | --libexe=* | --libex=* | --libe=*) |
| 1000 | libexecdir=$ac_optarg ;; |
| 1001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1002 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1003 | ac_prev=localedir ;; |
| 1004 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1005 | localedir=$ac_optarg ;; |
| 1006 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1008 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | ac_prev=localstatedir ;; |
| 1010 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1011 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1012 | localstatedir=$ac_optarg ;; |
| 1013 | |
| 1014 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1015 | ac_prev=mandir ;; |
| 1016 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1017 | mandir=$ac_optarg ;; |
| 1018 | |
| 1019 | -nfp | --nfp | --nf) |
| 1020 | # Obsolete; use --without-fp. |
| 1021 | with_fp=no ;; |
| 1022 | |
| 1023 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1024 | | --no-cr | --no-c | -n) |
| 1025 | no_create=yes ;; |
| 1026 | |
| 1027 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1028 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1029 | no_recursion=yes ;; |
| 1030 | |
| 1031 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1032 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1033 | | --oldin | --oldi | --old | --ol | --o) |
| 1034 | ac_prev=oldincludedir ;; |
| 1035 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1036 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1037 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1038 | oldincludedir=$ac_optarg ;; |
| 1039 | |
| 1040 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1041 | ac_prev=prefix ;; |
| 1042 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1043 | prefix=$ac_optarg ;; |
| 1044 | |
| 1045 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1046 | | --program-pre | --program-pr | --program-p) |
| 1047 | ac_prev=program_prefix ;; |
| 1048 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1049 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1050 | program_prefix=$ac_optarg ;; |
| 1051 | |
| 1052 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1053 | | --program-suf | --program-su | --program-s) |
| 1054 | ac_prev=program_suffix ;; |
| 1055 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1056 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1057 | program_suffix=$ac_optarg ;; |
| 1058 | |
| 1059 | -program-transform-name | --program-transform-name \ |
| 1060 | | --program-transform-nam | --program-transform-na \ |
| 1061 | | --program-transform-n | --program-transform- \ |
| 1062 | | --program-transform | --program-transfor \ |
| 1063 | | --program-transfo | --program-transf \ |
| 1064 | | --program-trans | --program-tran \ |
| 1065 | | --progr-tra | --program-tr | --program-t) |
| 1066 | ac_prev=program_transform_name ;; |
| 1067 | -program-transform-name=* | --program-transform-name=* \ |
| 1068 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1069 | | --program-transform-n=* | --program-transform-=* \ |
| 1070 | | --program-transform=* | --program-transfor=* \ |
| 1071 | | --program-transfo=* | --program-transf=* \ |
| 1072 | | --program-trans=* | --program-tran=* \ |
| 1073 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1074 | program_transform_name=$ac_optarg ;; |
| 1075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1076 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1077 | ac_prev=pdfdir ;; |
| 1078 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1079 | pdfdir=$ac_optarg ;; |
| 1080 | |
| 1081 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1082 | ac_prev=psdir ;; |
| 1083 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1084 | psdir=$ac_optarg ;; |
| 1085 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1086 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1087 | | -silent | --silent | --silen | --sile | --sil) |
| 1088 | silent=yes ;; |
| 1089 | |
| 1090 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1091 | ac_prev=sbindir ;; |
| 1092 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1093 | | --sbi=* | --sb=*) |
| 1094 | sbindir=$ac_optarg ;; |
| 1095 | |
| 1096 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1097 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1098 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1099 | | --sha | --sh) |
| 1100 | ac_prev=sharedstatedir ;; |
| 1101 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1102 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1103 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1104 | | --sha=* | --sh=*) |
| 1105 | sharedstatedir=$ac_optarg ;; |
| 1106 | |
| 1107 | -site | --site | --sit) |
| 1108 | ac_prev=site ;; |
| 1109 | -site=* | --site=* | --sit=*) |
| 1110 | site=$ac_optarg ;; |
| 1111 | |
| 1112 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1113 | ac_prev=srcdir ;; |
| 1114 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1115 | srcdir=$ac_optarg ;; |
| 1116 | |
| 1117 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1118 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1119 | ac_prev=sysconfdir ;; |
| 1120 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1121 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1122 | sysconfdir=$ac_optarg ;; |
| 1123 | |
| 1124 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1125 | ac_prev=target_alias ;; |
| 1126 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1127 | target_alias=$ac_optarg ;; |
| 1128 | |
| 1129 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1130 | verbose=yes ;; |
| 1131 | |
| 1132 | -version | --version | --versio | --versi | --vers | -V) |
| 1133 | ac_init_version=: ;; |
| 1134 | |
| 1135 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1136 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1137 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1138 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1139 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1140 | { (exit 1); exit 1; }; } |
| 1141 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1142 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1143 | |
| 1144 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1145 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1146 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1147 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1148 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1149 | { (exit 1); exit 1; }; } |
| 1150 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1151 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1152 | |
| 1153 | --x) |
| 1154 | # Obsolete; use --with-x. |
| 1155 | with_x=yes ;; |
| 1156 | |
| 1157 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1158 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1159 | ac_prev=x_includes ;; |
| 1160 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1161 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1162 | x_includes=$ac_optarg ;; |
| 1163 | |
| 1164 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1165 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1166 | ac_prev=x_libraries ;; |
| 1167 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1168 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1169 | x_libraries=$ac_optarg ;; |
| 1170 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1171 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1172 | Try \`$0 --help' for more information." >&2 |
| 1173 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1174 | ;; |
| 1175 | |
| 1176 | *=*) |
| 1177 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1178 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1179 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1180 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1181 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1182 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 | export $ac_envvar ;; |
| 1184 | |
| 1185 | *) |
| 1186 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1187 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1188 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1189 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1190 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1191 | ;; |
| 1192 | |
| 1193 | esac |
| 1194 | done |
| 1195 | |
| 1196 | if test -n "$ac_prev"; then |
| 1197 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1198 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1199 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1200 | fi |
| 1201 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1202 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1203 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1204 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1205 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1206 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1207 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1208 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1209 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1210 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1211 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1212 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1213 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1214 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1215 | done |
| 1216 | |
| 1217 | # There might be people who depend on the old broken behavior: `$host' |
| 1218 | # used to hold the argument of --host etc. |
| 1219 | # FIXME: To remove some day. |
| 1220 | build=$build_alias |
| 1221 | host=$host_alias |
| 1222 | target=$target_alias |
| 1223 | |
| 1224 | # FIXME: To remove some day. |
| 1225 | if test "x$host_alias" != x; then |
| 1226 | if test "x$build_alias" = x; then |
| 1227 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1228 | 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] | 1229 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1230 | elif test "x$build_alias" != "x$host_alias"; then |
| 1231 | cross_compiling=yes |
| 1232 | fi |
| 1233 | fi |
| 1234 | |
| 1235 | ac_tool_prefix= |
| 1236 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1237 | |
| 1238 | test "$silent" = yes && exec 6>/dev/null |
| 1239 | |
| 1240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1241 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1242 | ac_ls_di=`ls -di .` && |
| 1243 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1244 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1245 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1246 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1247 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1248 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1249 | |
| 1250 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1251 | # Find the source files, if location was not specified. |
| 1252 | if test -z "$srcdir"; then |
| 1253 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1254 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1255 | ac_confdir=`$as_dirname -- "$0" || |
| 1256 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1257 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1258 | X"$0" : 'X\(//\)$' \| \ |
| 1259 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1260 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1261 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1262 | s//\1/ |
| 1263 | q |
| 1264 | } |
| 1265 | /^X\(\/\/\)[^/].*/{ |
| 1266 | s//\1/ |
| 1267 | q |
| 1268 | } |
| 1269 | /^X\(\/\/\)$/{ |
| 1270 | s//\1/ |
| 1271 | q |
| 1272 | } |
| 1273 | /^X\(\/\).*/{ |
| 1274 | s//\1/ |
| 1275 | q |
| 1276 | } |
| 1277 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1278 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1279 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | srcdir=.. |
| 1281 | fi |
| 1282 | else |
| 1283 | ac_srcdir_defaulted=no |
| 1284 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1285 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1286 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1287 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1288 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1289 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1290 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1291 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1292 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1293 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1294 | pwd)` |
| 1295 | # When building in place, set srcdir=. |
| 1296 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1297 | srcdir=. |
| 1298 | fi |
| 1299 | # Remove unnecessary trailing slashes from srcdir. |
| 1300 | # Double slashes in file names in object file debugging info |
| 1301 | # mess up M-x gdb in Emacs. |
| 1302 | case $srcdir in |
| 1303 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1304 | esac |
| 1305 | for ac_var in $ac_precious_vars; do |
| 1306 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1307 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1308 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1309 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1310 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1311 | |
| 1312 | # |
| 1313 | # Report the --help message. |
| 1314 | # |
| 1315 | if test "$ac_init_help" = "long"; then |
| 1316 | # Omit some internal or obsolete options to make the list less imposing. |
| 1317 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1318 | cat <<_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1319 | \`configure' configures llvm 2.8svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1320 | |
| 1321 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1322 | |
| 1323 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1324 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1325 | |
| 1326 | Defaults for the options are specified in brackets. |
| 1327 | |
| 1328 | Configuration: |
| 1329 | -h, --help display this help and exit |
| 1330 | --help=short display options specific to this package |
| 1331 | --help=recursive display the short help of all the included packages |
| 1332 | -V, --version display version information and exit |
| 1333 | -q, --quiet, --silent do not print \`checking...' messages |
| 1334 | --cache-file=FILE cache test results in FILE [disabled] |
| 1335 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1336 | -n, --no-create do not create output files |
| 1337 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1338 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1339 | Installation directories: |
| 1340 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1341 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1342 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1343 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1344 | |
| 1345 | By default, \`make install' will install all the files in |
| 1346 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1347 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1348 | for instance \`--prefix=\$HOME'. |
| 1349 | |
| 1350 | For better control, use the options below. |
| 1351 | |
| 1352 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1353 | --bindir=DIR user executables [EPREFIX/bin] |
| 1354 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1355 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1356 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1357 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1358 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1359 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1360 | --includedir=DIR C header files [PREFIX/include] |
| 1361 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1362 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1363 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1364 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1365 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1366 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1367 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1368 | --htmldir=DIR html documentation [DOCDIR] |
| 1369 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1370 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1371 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1372 | _ACEOF |
| 1373 | |
| 1374 | cat <<\_ACEOF |
| 1375 | |
| 1376 | System types: |
| 1377 | --build=BUILD configure for building on BUILD [guessed] |
| 1378 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1379 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1380 | _ACEOF |
| 1381 | fi |
| 1382 | |
| 1383 | if test -n "$ac_init_help"; then |
| 1384 | case $ac_init_help in |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1385 | short | recursive ) echo "Configuration of llvm 2.8svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1386 | esac |
| 1387 | cat <<\_ACEOF |
| 1388 | |
| 1389 | Optional Features: |
| 1390 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1391 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1392 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1393 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1394 | --enable-assertions Compile with assertion checks enabled (default is |
| 1395 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1396 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1397 | Compile with expensive debug checks enabled (default |
| 1398 | is NO) |
| 1399 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1400 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1401 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1402 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1403 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1404 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1405 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1406 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1407 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1408 | --enable-shared Build a shared library and link tools against it |
| 1409 | (default is NO) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1410 | --enable-targets Build specific host targets: all or |
| 1411 | target1,target2,... Valid targets are: host, x86, |
| 1412 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1413 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1414 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1415 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1416 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1417 | --enable-bindings Build specific language bindings: |
| 1418 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1419 | --enable-libffi Check for the presence of libffi (default is NO) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1420 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1421 | Win32) |
| 1422 | --enable-llvmc-dynamic-plugins |
| 1423 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1424 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1425 | |
| 1426 | Optional Packages: |
| 1427 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1428 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1429 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1430 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1431 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1432 | searches PATH) |
| 1433 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1434 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1435 | --with-clang Specify location of clang compiler (default is |
| 1436 | --with-built-clang) |
| 1437 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1438 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1439 | --with-optimize-option Select the compiler options to use for optimized |
| 1440 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1441 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1442 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1443 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1444 | --with-c-include-dirs Colon separated list of directories clang will |
| 1445 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1446 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1447 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1448 | --with-cxx-include-32bit-dir |
| 1449 | 32 bit multilib dir. |
| 1450 | --with-cxx-include-64bit-dir |
| 1451 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1452 | --with-binutils-include Specify path to binutils/include/ containing |
| 1453 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1454 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1455 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1456 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1457 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1458 | --with-oprofile=<prefix> |
| 1459 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1460 | |
| 1461 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1462 | CC C compiler command |
| 1463 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1464 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1465 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1466 | 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] | 1467 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1468 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1469 | CXX C++ compiler command |
| 1470 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | |
| 1472 | Use these variables to override the choices made by `configure' or to help |
| 1473 | it to find libraries and programs with nonstandard names/locations. |
| 1474 | |
| 1475 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1476 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1477 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1478 | fi |
| 1479 | |
| 1480 | if test "$ac_init_help" = "recursive"; then |
| 1481 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1482 | 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] | 1483 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | ac_builddir=. |
| 1485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1486 | case "$ac_dir" in |
| 1487 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1488 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1489 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1491 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1492 | case $ac_top_builddir_sub in |
| 1493 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1494 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1495 | esac ;; |
| 1496 | esac |
| 1497 | ac_abs_top_builddir=$ac_pwd |
| 1498 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1499 | # for backward compatibility: |
| 1500 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1501 | |
| 1502 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | ac_top_srcdir=$ac_top_builddir_sub |
| 1506 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1507 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1508 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1509 | ac_top_srcdir=$srcdir |
| 1510 | ac_abs_top_srcdir=$srcdir ;; |
| 1511 | *) # Relative name. |
| 1512 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1513 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1514 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1515 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1516 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1518 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1519 | # Check for guested configure. |
| 1520 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1521 | echo && |
| 1522 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1523 | elif test -f "$ac_srcdir/configure"; then |
| 1524 | echo && |
| 1525 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1527 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | fi || ac_status=$? |
| 1529 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | done |
| 1531 | fi |
| 1532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1534 | if $ac_init_version; then |
| 1535 | cat <<\_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1536 | llvm configure 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1537 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1539 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1540 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1541 | This configure script is free software; the Free Software Foundation |
| 1542 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1543 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1544 | Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1546 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | This file contains any messages produced by compilers while |
| 1550 | running configure, to aid debugging if configure makes a mistake. |
| 1551 | |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1552 | It was created by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | |
| 1555 | $ $0 $@ |
| 1556 | |
| 1557 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1558 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | { |
| 1560 | cat <<_ASUNAME |
| 1561 | ## --------- ## |
| 1562 | ## Platform. ## |
| 1563 | ## --------- ## |
| 1564 | |
| 1565 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1566 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1567 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1568 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1569 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1570 | |
| 1571 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1572 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1573 | |
| 1574 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1575 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1576 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1577 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1578 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1579 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1580 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1581 | |
| 1582 | _ASUNAME |
| 1583 | |
| 1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1585 | for as_dir in $PATH |
| 1586 | do |
| 1587 | IFS=$as_save_IFS |
| 1588 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1589 | echo "PATH: $as_dir" |
| 1590 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1591 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1592 | |
| 1593 | } >&5 |
| 1594 | |
| 1595 | cat >&5 <<_ACEOF |
| 1596 | |
| 1597 | |
| 1598 | ## ----------- ## |
| 1599 | ## Core tests. ## |
| 1600 | ## ----------- ## |
| 1601 | |
| 1602 | _ACEOF |
| 1603 | |
| 1604 | |
| 1605 | # Keep a trace of the command line. |
| 1606 | # 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] | 1607 | # 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] | 1608 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1609 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | ac_configure_args0= |
| 1612 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1613 | ac_must_keep_next=false |
| 1614 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1616 | for ac_arg |
| 1617 | do |
| 1618 | case $ac_arg in |
| 1619 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1620 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1621 | | -silent | --silent | --silen | --sile | --sil) |
| 1622 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1623 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1624 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | esac |
| 1626 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1627 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1629 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1630 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1631 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1632 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1633 | case $ac_arg in |
| 1634 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1635 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1636 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1637 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1638 | case "$ac_configure_args0 " in |
| 1639 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1640 | esac |
| 1641 | ;; |
| 1642 | -* ) ac_must_keep_next=true ;; |
| 1643 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1644 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1646 | ;; |
| 1647 | esac |
| 1648 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1649 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1650 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1651 | $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] | 1652 | |
| 1653 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1654 | # config.log. We remove comments because anyway the quotes in there |
| 1655 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1656 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1657 | # 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] | 1658 | trap 'exit_status=$? |
| 1659 | # Save into config.log some information that might help in debugging. |
| 1660 | { |
| 1661 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1663 | cat <<\_ASBOX |
| 1664 | ## ---------------- ## |
| 1665 | ## Cache variables. ## |
| 1666 | ## ---------------- ## |
| 1667 | _ASBOX |
| 1668 | echo |
| 1669 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1670 | ( |
| 1671 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1672 | eval ac_val=\$$ac_var |
| 1673 | case $ac_val in #( |
| 1674 | *${as_nl}*) |
| 1675 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1676 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1677 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1678 | esac |
| 1679 | case $ac_var in #( |
| 1680 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1681 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1682 | esac ;; |
| 1683 | esac |
| 1684 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1686 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1687 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1689 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1690 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1691 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1692 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1693 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1694 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | esac | |
| 1696 | sort |
| 1697 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1699 | |
| 1700 | cat <<\_ASBOX |
| 1701 | ## ----------------- ## |
| 1702 | ## Output variables. ## |
| 1703 | ## ----------------- ## |
| 1704 | _ASBOX |
| 1705 | echo |
| 1706 | for ac_var in $ac_subst_vars |
| 1707 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1708 | eval ac_val=\$$ac_var |
| 1709 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1710 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1711 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1712 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1713 | done | sort |
| 1714 | echo |
| 1715 | |
| 1716 | if test -n "$ac_subst_files"; then |
| 1717 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1718 | ## ------------------- ## |
| 1719 | ## File substitutions. ## |
| 1720 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | _ASBOX |
| 1722 | echo |
| 1723 | for ac_var in $ac_subst_files |
| 1724 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1725 | eval ac_val=\$$ac_var |
| 1726 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1727 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1729 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1730 | done | sort |
| 1731 | echo |
| 1732 | fi |
| 1733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1734 | if test -s confdefs.h; then |
| 1735 | cat <<\_ASBOX |
| 1736 | ## ----------- ## |
| 1737 | ## confdefs.h. ## |
| 1738 | ## ----------- ## |
| 1739 | _ASBOX |
| 1740 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1741 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | echo |
| 1743 | fi |
| 1744 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1745 | echo "$as_me: caught signal $ac_signal" |
| 1746 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1748 | rm -f core *.core core.conftest.* && |
| 1749 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1751 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1752 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1753 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | done |
| 1755 | ac_signal=0 |
| 1756 | |
| 1757 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1758 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | |
| 1760 | # Predefined preprocessor variables. |
| 1761 | |
| 1762 | cat >>confdefs.h <<_ACEOF |
| 1763 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1764 | _ACEOF |
| 1765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | cat >>confdefs.h <<_ACEOF |
| 1768 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1769 | _ACEOF |
| 1770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | cat >>confdefs.h <<_ACEOF |
| 1773 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1774 | _ACEOF |
| 1775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1779 | _ACEOF |
| 1780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1782 | cat >>confdefs.h <<_ACEOF |
| 1783 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1784 | _ACEOF |
| 1785 | |
| 1786 | |
| 1787 | # 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] | 1788 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1789 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1790 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1793 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1794 | set x "$ac_default_prefix/share/config.site" \ |
| 1795 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1796 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1797 | shift |
| 1798 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1799 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1800 | if test -r "$ac_site_file"; then |
| 1801 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1802 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1803 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1804 | . "$ac_site_file" |
| 1805 | fi |
| 1806 | done |
| 1807 | |
| 1808 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1809 | # Some versions of bash will fail to source /dev/null (special |
| 1810 | # files actually), so we avoid doing that. |
| 1811 | if test -f "$cache_file"; then |
| 1812 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1813 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1814 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1816 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | esac |
| 1818 | fi |
| 1819 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1820 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1821 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1822 | >$cache_file |
| 1823 | fi |
| 1824 | |
| 1825 | # Check that the precious variables saved in the cache have kept the same |
| 1826 | # value. |
| 1827 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1828 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1829 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1830 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1831 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1832 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1833 | case $ac_old_set,$ac_new_set in |
| 1834 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1835 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1836 | 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] | 1837 | ac_cache_corrupted=: ;; |
| 1838 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1839 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1840 | 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] | 1841 | ac_cache_corrupted=: ;; |
| 1842 | ,);; |
| 1843 | *) |
| 1844 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1845 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1846 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1847 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1848 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1849 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1850 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1851 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1852 | fi;; |
| 1853 | esac |
| 1854 | # Pass precious variables to config.status. |
| 1855 | if test "$ac_new_set" = set; then |
| 1856 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1859 | esac |
| 1860 | case " $ac_configure_args " in |
| 1861 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1863 | esac |
| 1864 | fi |
| 1865 | done |
| 1866 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1867 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1868 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1869 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1870 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1871 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1872 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1898 | ac_ext=c |
| 1899 | ac_cpp='$CPP $CPPFLAGS' |
| 1900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1903 | |
| 1904 | |
| 1905 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1906 | LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1914 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1915 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1916 | if test -f "$ac_dir/install-sh"; then |
| 1917 | ac_aux_dir=$ac_dir |
| 1918 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1919 | break |
| 1920 | elif test -f "$ac_dir/install.sh"; then |
| 1921 | ac_aux_dir=$ac_dir |
| 1922 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1923 | break |
| 1924 | elif test -f "$ac_dir/shtool"; then |
| 1925 | ac_aux_dir=$ac_dir |
| 1926 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1927 | break |
| 1928 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1929 | done |
| 1930 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1931 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1932 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1933 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1935 | |
| 1936 | # These three variables are undocumented and unsupported, |
| 1937 | # and are intended to be withdrawn in a future Autoconf release. |
| 1938 | # They can cause serious problems if a builder's source tree is in a directory |
| 1939 | # whose full name contains unusual characters. |
| 1940 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1941 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1942 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1943 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1944 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1945 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1946 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1947 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1948 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1949 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1950 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1951 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame^] | 1954 | |
| 1955 | |
| 1956 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 1957 | subdirs="$subdirs projects/llvm-gcc" |
| 1958 | |
| 1959 | fi |
| 1960 | |
| 1961 | if test -d ${srcdir}/projects/test-suite ; then |
| 1962 | subdirs="$subdirs projects/test-suite" |
| 1963 | |
| 1964 | fi |
| 1965 | |
| 1966 | if test -d ${srcdir}/projects/llvm-test ; then |
| 1967 | subdirs="$subdirs projects/llvm-test" |
| 1968 | |
| 1969 | fi |
| 1970 | |
| 1971 | if test -d ${srcdir}/projects/poolalloc ; then |
| 1972 | subdirs="$subdirs projects/poolalloc" |
| 1973 | |
| 1974 | fi |
| 1975 | |
| 1976 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 1977 | subdirs="$subdirs projects/llvm-poolalloc" |
| 1978 | |
| 1979 | fi |
| 1980 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1981 | for i in `ls ${srcdir}/projects` |
| 1982 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1983 | if test -d ${srcdir}/projects/${i} ; then |
| 1984 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1985 | CVS) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1986 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1987 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1988 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1989 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1990 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1991 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1992 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1993 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1994 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1995 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1996 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1997 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 1998 | safecode) subdirs="$subdirs projects/safecode" |
| 1999 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2000 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2001 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2002 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2003 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2004 | 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] | 2005 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2006 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2007 | fi |
| 2008 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2009 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2010 | |
| 2011 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2012 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2013 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2014 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2015 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2016 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2017 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2018 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2019 | if test "${ac_cv_build+set}" = set; then |
| 2020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2022 | ac_build_alias=$build_alias |
| 2023 | test "x$ac_build_alias" = x && |
| 2024 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2025 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2026 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2027 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2028 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2029 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2030 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2031 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2032 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2033 | |
| 2034 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2035 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2036 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2037 | case $ac_cv_build in |
| 2038 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2039 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2040 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2041 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2042 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2043 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2044 | ac_save_IFS=$IFS; IFS='-' |
| 2045 | set x $ac_cv_build |
| 2046 | shift |
| 2047 | build_cpu=$1 |
| 2048 | build_vendor=$2 |
| 2049 | shift; shift |
| 2050 | # Remember, the first character of IFS is used to create $*, |
| 2051 | # except with old shells: |
| 2052 | build_os=$* |
| 2053 | IFS=$ac_save_IFS |
| 2054 | 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] | 2055 | |
| 2056 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2057 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2058 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2059 | if test "${ac_cv_host+set}" = set; then |
| 2060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2061 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2062 | if test "x$host_alias" = x; then |
| 2063 | ac_cv_host=$ac_cv_build |
| 2064 | else |
| 2065 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2066 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2067 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2068 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2069 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | |
| 2071 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2072 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2073 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2074 | case $ac_cv_host in |
| 2075 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2076 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2077 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2078 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2079 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2080 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2081 | ac_save_IFS=$IFS; IFS='-' |
| 2082 | set x $ac_cv_host |
| 2083 | shift |
| 2084 | host_cpu=$1 |
| 2085 | host_vendor=$2 |
| 2086 | shift; shift |
| 2087 | # Remember, the first character of IFS is used to create $*, |
| 2088 | # except with old shells: |
| 2089 | host_os=$* |
| 2090 | IFS=$ac_save_IFS |
| 2091 | 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] | 2092 | |
| 2093 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2094 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2095 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2096 | if test "${ac_cv_target+set}" = set; then |
| 2097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2098 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2099 | if test "x$target_alias" = x; then |
| 2100 | ac_cv_target=$ac_cv_host |
| 2101 | else |
| 2102 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2103 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2104 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2105 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2106 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2107 | |
| 2108 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2109 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2110 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2111 | case $ac_cv_target in |
| 2112 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2113 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2114 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2115 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2116 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2117 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2118 | ac_save_IFS=$IFS; IFS='-' |
| 2119 | set x $ac_cv_target |
| 2120 | shift |
| 2121 | target_cpu=$1 |
| 2122 | target_vendor=$2 |
| 2123 | shift; shift |
| 2124 | # Remember, the first character of IFS is used to create $*, |
| 2125 | # except with old shells: |
| 2126 | target_os=$* |
| 2127 | IFS=$ac_save_IFS |
| 2128 | 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] | 2129 | |
| 2130 | |
| 2131 | # The aliases save the names the user supplied, while $host etc. |
| 2132 | # will get canonicalized. |
| 2133 | test -n "$target_alias" && |
| 2134 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2135 | NONENONEs,x,x, && |
| 2136 | program_prefix=${target_alias}- |
| 2137 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2138 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2139 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2140 | if test "${llvm_cv_os_type+set}" = set; then |
| 2141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2142 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2143 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2144 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2145 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2146 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2147 | llvm_cv_os_type="AIX" |
| 2148 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2149 | *-*-irix*) |
| 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="IRIX" |
| 2153 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2154 | *-*-cygwin*) |
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" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2157 | llvm_cv_os_type="Cygwin" |
| 2158 | llvm_cv_platform_type="Unix" ;; |
| 2159 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2160 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2161 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2162 | llvm_cv_os_type="Darwin" |
| 2163 | llvm_cv_platform_type="Unix" ;; |
| 2164 | *-*-freebsd*) |
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="FreeBSD" |
| 2168 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2169 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2170 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2171 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2172 | llvm_cv_os_type="OpenBSD" |
| 2173 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2174 | *-*-netbsd*) |
| 2175 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2176 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2177 | llvm_cv_os_type="NetBSD" |
| 2178 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2179 | *-*-dragonfly*) |
| 2180 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2181 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2182 | llvm_cv_os_type="DragonFly" |
| 2183 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2184 | *-*-hpux*) |
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" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2187 | llvm_cv_os_type="HP-UX" |
| 2188 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2189 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2190 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2191 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2192 | llvm_cv_os_type="Interix" |
| 2193 | llvm_cv_platform_type="Unix" ;; |
| 2194 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2195 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2196 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2197 | llvm_cv_os_type="Linux" |
| 2198 | llvm_cv_platform_type="Unix" ;; |
| 2199 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2200 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2201 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2202 | llvm_cv_os_type="SunOS" |
| 2203 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2204 | *-*-auroraux*) |
| 2205 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2206 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2207 | llvm_cv_os_type="AuroraUX" |
| 2208 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2209 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2210 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2211 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2212 | llvm_cv_os_type="Win32" |
| 2213 | llvm_cv_platform_type="Win32" ;; |
| 2214 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2215 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2216 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2217 | llvm_cv_os_type="MingW" |
| 2218 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2219 | *-*-haiku*) |
| 2220 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2221 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2222 | llvm_cv_os_type="Haiku" |
| 2223 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2224 | *-unknown-eabi*) |
| 2225 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2226 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2227 | llvm_cv_os_type="Freestanding" |
| 2228 | llvm_cv_platform_type="Unix" ;; |
| 2229 | *-unknown-elf*) |
| 2230 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2231 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2232 | llvm_cv_os_type="Freestanding" |
| 2233 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2234 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2235 | llvm_cv_link_all_option="" |
| 2236 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2237 | llvm_cv_os_type="Unknown" |
| 2238 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2239 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2240 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2241 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2242 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2243 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2244 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2245 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2246 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2248 | else |
| 2249 | case $target in |
| 2250 | *-*-aix*) |
| 2251 | llvm_cv_target_os_type="AIX" ;; |
| 2252 | *-*-irix*) |
| 2253 | llvm_cv_target_os_type="IRIX" ;; |
| 2254 | *-*-cygwin*) |
| 2255 | llvm_cv_target_os_type="Cygwin" ;; |
| 2256 | *-*-darwin*) |
| 2257 | llvm_cv_target_os_type="Darwin" ;; |
| 2258 | *-*-freebsd*) |
| 2259 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2260 | *-*-openbsd*) |
| 2261 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2262 | *-*-netbsd*) |
| 2263 | llvm_cv_target_os_type="NetBSD" ;; |
| 2264 | *-*-dragonfly*) |
| 2265 | llvm_cv_target_os_type="DragonFly" ;; |
| 2266 | *-*-hpux*) |
| 2267 | llvm_cv_target_os_type="HP-UX" ;; |
| 2268 | *-*-interix*) |
| 2269 | llvm_cv_target_os_type="Interix" ;; |
| 2270 | *-*-linux*) |
| 2271 | llvm_cv_target_os_type="Linux" ;; |
| 2272 | *-*-solaris*) |
| 2273 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2274 | *-*-auroraux*) |
| 2275 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2276 | *-*-win32*) |
| 2277 | llvm_cv_target_os_type="Win32" ;; |
| 2278 | *-*-mingw*) |
| 2279 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2280 | *-*-haiku*) |
| 2281 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2282 | *-unknown-eabi*) |
| 2283 | llvm_cv_target_os_type="Freestanding" ;; |
| 2284 | *) |
| 2285 | llvm_cv_target_os_type="Unknown" ;; |
| 2286 | esac |
| 2287 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2288 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2289 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2290 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2291 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2292 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2293 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2294 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2295 | fi |
| 2296 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2297 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2298 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2299 | HOST_OS=$llvm_cv_os_type |
| 2300 | |
| 2301 | TARGET_OS=$llvm_cv_target_os_type |
| 2302 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2304 | LINKALL=$llvm_cv_link_all_option |
| 2305 | |
| 2306 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2307 | |
| 2308 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2309 | case $llvm_cv_platform_type in |
| 2310 | Unix) |
| 2311 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2312 | cat >>confdefs.h <<\_ACEOF |
| 2313 | #define LLVM_ON_UNIX 1 |
| 2314 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2315 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2316 | LLVM_ON_UNIX=1 |
| 2317 | |
| 2318 | LLVM_ON_WIN32=0 |
| 2319 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2320 | ;; |
| 2321 | Win32) |
| 2322 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2323 | cat >>confdefs.h <<\_ACEOF |
| 2324 | #define LLVM_ON_WIN32 1 |
| 2325 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2326 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2327 | LLVM_ON_UNIX=0 |
| 2328 | |
| 2329 | LLVM_ON_WIN32=1 |
| 2330 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2331 | ;; |
| 2332 | esac |
| 2333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2334 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2335 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2336 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2338 | else |
| 2339 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2340 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2341 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2342 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2343 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2344 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2345 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2346 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2347 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2348 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2349 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2350 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2351 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2352 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2353 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2354 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2355 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2356 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2357 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2358 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2359 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2360 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2361 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2362 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2363 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2364 | # Determine the LLVM native architecture for the target |
| 2365 | case "$llvm_cv_target_arch" in |
| 2366 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2367 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2368 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2369 | esac |
| 2370 | |
| 2371 | ARCH=$llvm_cv_target_arch |
| 2372 | |
| 2373 | |
| 2374 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2375 | ac_cpp='$CPP $CPPFLAGS' |
| 2376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2379 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2380 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2381 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2384 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2386 | else |
| 2387 | if test -n "$CC"; then |
| 2388 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2389 | else |
| 2390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2391 | for as_dir in $PATH |
| 2392 | do |
| 2393 | IFS=$as_save_IFS |
| 2394 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2396 | 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] | 2397 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2398 | 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] | 2399 | break 2 |
| 2400 | fi |
| 2401 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2402 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2403 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2404 | |
| 2405 | fi |
| 2406 | fi |
| 2407 | CC=$ac_cv_prog_CC |
| 2408 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2409 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2410 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2411 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2413 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2414 | fi |
| 2415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2416 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2417 | fi |
| 2418 | if test -z "$ac_cv_prog_CC"; then |
| 2419 | ac_ct_CC=$CC |
| 2420 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2421 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2422 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2424 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2426 | else |
| 2427 | if test -n "$ac_ct_CC"; then |
| 2428 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2429 | else |
| 2430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2431 | for as_dir in $PATH |
| 2432 | do |
| 2433 | IFS=$as_save_IFS |
| 2434 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2436 | 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] | 2437 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2438 | 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] | 2439 | break 2 |
| 2440 | fi |
| 2441 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2442 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2443 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2444 | |
| 2445 | fi |
| 2446 | fi |
| 2447 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2448 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2449 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2450 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2451 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2452 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2453 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2454 | fi |
| 2455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2456 | if test "x$ac_ct_CC" = x; then |
| 2457 | CC="" |
| 2458 | else |
| 2459 | case $cross_compiling:$ac_tool_warned in |
| 2460 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2461 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2462 | whose name does not start with the host triplet. If you think this |
| 2463 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2464 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2465 | whose name does not start with the host triplet. If you think this |
| 2466 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2467 | ac_tool_warned=yes ;; |
| 2468 | esac |
| 2469 | CC=$ac_ct_CC |
| 2470 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2471 | else |
| 2472 | CC="$ac_cv_prog_CC" |
| 2473 | fi |
| 2474 | |
| 2475 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2476 | if test -n "$ac_tool_prefix"; then |
| 2477 | # 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] | 2478 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2479 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2481 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2483 | else |
| 2484 | if test -n "$CC"; then |
| 2485 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2486 | else |
| 2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2488 | for as_dir in $PATH |
| 2489 | do |
| 2490 | IFS=$as_save_IFS |
| 2491 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2493 | 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] | 2494 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2495 | 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] | 2496 | break 2 |
| 2497 | fi |
| 2498 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2499 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2500 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2501 | |
| 2502 | fi |
| 2503 | fi |
| 2504 | CC=$ac_cv_prog_CC |
| 2505 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2506 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2507 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2508 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2509 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2510 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2511 | fi |
| 2512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2513 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2514 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2515 | fi |
| 2516 | if test -z "$CC"; then |
| 2517 | # Extract the first word of "cc", so it can be a program name with args. |
| 2518 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2519 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2521 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2523 | else |
| 2524 | if test -n "$CC"; then |
| 2525 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2526 | else |
| 2527 | ac_prog_rejected=no |
| 2528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2529 | for as_dir in $PATH |
| 2530 | do |
| 2531 | IFS=$as_save_IFS |
| 2532 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2534 | 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] | 2535 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2536 | ac_prog_rejected=yes |
| 2537 | continue |
| 2538 | fi |
| 2539 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2540 | 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] | 2541 | break 2 |
| 2542 | fi |
| 2543 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2544 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2545 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2546 | |
| 2547 | if test $ac_prog_rejected = yes; then |
| 2548 | # We found a bogon in the path, so make sure we never use it. |
| 2549 | set dummy $ac_cv_prog_CC |
| 2550 | shift |
| 2551 | if test $# != 0; then |
| 2552 | # We chose a different compiler from the bogus one. |
| 2553 | # However, it has the same basename, so the bogon will be chosen |
| 2554 | # first if we set CC to just the basename; use the full file name. |
| 2555 | shift |
| 2556 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2557 | fi |
| 2558 | fi |
| 2559 | fi |
| 2560 | fi |
| 2561 | CC=$ac_cv_prog_CC |
| 2562 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2563 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2564 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2565 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2566 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2567 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2568 | fi |
| 2569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2570 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2571 | fi |
| 2572 | if test -z "$CC"; then |
| 2573 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2574 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2575 | do |
| 2576 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2577 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2578 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2580 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2582 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2583 | if test -n "$CC"; then |
| 2584 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2585 | else |
| 2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2587 | for as_dir in $PATH |
| 2588 | do |
| 2589 | IFS=$as_save_IFS |
| 2590 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2591 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2592 | 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] | 2593 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2594 | 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] | 2595 | break 2 |
| 2596 | fi |
| 2597 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2598 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2599 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2600 | |
| 2601 | fi |
| 2602 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2603 | CC=$ac_cv_prog_CC |
| 2604 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2605 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2606 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2607 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2608 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2609 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2610 | fi |
| 2611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2612 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2613 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2614 | done |
| 2615 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2616 | if test -z "$CC"; then |
| 2617 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2618 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2619 | do |
| 2620 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2621 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2622 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2624 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2626 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | if test -n "$ac_ct_CC"; then |
| 2628 | 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] | 2629 | else |
| 2630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2631 | for as_dir in $PATH |
| 2632 | do |
| 2633 | IFS=$as_save_IFS |
| 2634 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2635 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2636 | 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] | 2637 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2638 | 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] | 2639 | break 2 |
| 2640 | fi |
| 2641 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2642 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2643 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2644 | |
| 2645 | fi |
| 2646 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2647 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2648 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2649 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2650 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2651 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2652 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2653 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2654 | fi |
| 2655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2656 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2657 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2658 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2659 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2660 | if test "x$ac_ct_CC" = x; then |
| 2661 | CC="" |
| 2662 | else |
| 2663 | case $cross_compiling:$ac_tool_warned in |
| 2664 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2665 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2666 | whose name does not start with the host triplet. If you think this |
| 2667 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2668 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2669 | whose name does not start with the host triplet. If you think this |
| 2670 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2671 | ac_tool_warned=yes ;; |
| 2672 | esac |
| 2673 | CC=$ac_ct_CC |
| 2674 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2675 | fi |
| 2676 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | fi |
| 2678 | |
| 2679 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2680 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2681 | See \`config.log' for more details." >&5 |
| 2682 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2683 | See \`config.log' for more details." >&2;} |
| 2684 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2685 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2686 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2687 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2688 | ac_compiler=`set X $ac_compile; echo $2` |
| 2689 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2690 | case "(($ac_try" in |
| 2691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2692 | *) ac_try_echo=$ac_try;; |
| 2693 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2695 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2696 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2698 | (exit $ac_status); } |
| 2699 | { (ac_try="$ac_compiler -v >&5" |
| 2700 | case "(($ac_try" in |
| 2701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2702 | *) ac_try_echo=$ac_try;; |
| 2703 | esac |
| 2704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2705 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2706 | ac_status=$? |
| 2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2708 | (exit $ac_status); } |
| 2709 | { (ac_try="$ac_compiler -V >&5" |
| 2710 | case "(($ac_try" in |
| 2711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2712 | *) ac_try_echo=$ac_try;; |
| 2713 | esac |
| 2714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2715 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2716 | ac_status=$? |
| 2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2718 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2719 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2720 | cat >conftest.$ac_ext <<_ACEOF |
| 2721 | /* confdefs.h. */ |
| 2722 | _ACEOF |
| 2723 | cat confdefs.h >>conftest.$ac_ext |
| 2724 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2725 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2726 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2727 | int |
| 2728 | main () |
| 2729 | { |
| 2730 | |
| 2731 | ; |
| 2732 | return 0; |
| 2733 | } |
| 2734 | _ACEOF |
| 2735 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2736 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2737 | # Try to create an executable without -o first, disregard a.out. |
| 2738 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2739 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2740 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2741 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2742 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2743 | # |
| 2744 | # List of possible output files, starting from the most likely. |
| 2745 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2746 | # only as a last resort. b.out is created by i960 compilers. |
| 2747 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2748 | # |
| 2749 | # The IRIX 6 linker writes into existing files which may not be |
| 2750 | # executable, retaining their permissions. Remove them first so a |
| 2751 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2752 | ac_rmfiles= |
| 2753 | for ac_file in $ac_files |
| 2754 | do |
| 2755 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2756 | *.$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] | 2757 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2758 | esac |
| 2759 | done |
| 2760 | rm -f $ac_rmfiles |
| 2761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2762 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2763 | case "(($ac_try" in |
| 2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2765 | *) ac_try_echo=$ac_try;; |
| 2766 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2768 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2769 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2771 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2772 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2773 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2774 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2775 | # so that the user can short-circuit this test for compilers unknown to |
| 2776 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2777 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2778 | do |
| 2779 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2780 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2781 | *.$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] | 2782 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2783 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2784 | # We found the default executable, but exeext='' is most |
| 2785 | # certainly right. |
| 2786 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2787 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2788 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2789 | then :; else |
| 2790 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2791 | fi |
| 2792 | # We set ac_cv_exeext here because the later test for it is not |
| 2793 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2794 | # argument, so we may need to know it at that point already. |
| 2795 | # Even if this section looks crufty: it has the advantage of |
| 2796 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2797 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2798 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2799 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2800 | esac |
| 2801 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2802 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2803 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2804 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2805 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2807 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2808 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2809 | See \`config.log' for more details." >&5 |
| 2810 | echo "$as_me: error: C compiler cannot create executables |
| 2811 | See \`config.log' for more details." >&2;} |
| 2812 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2813 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2815 | ac_exeext=$ac_cv_exeext |
| 2816 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2817 | echo "${ECHO_T}$ac_file" >&6; } |
| 2818 | |
| 2819 | # Check that the compiler produces executables we can run. If not, either |
| 2820 | # the compiler is broken, or we cross compile. |
| 2821 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2822 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2823 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2824 | # If not cross compiling, check that we can run a simple program. |
| 2825 | if test "$cross_compiling" != yes; then |
| 2826 | if { ac_try='./$ac_file' |
| 2827 | { (case "(($ac_try" in |
| 2828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2829 | *) ac_try_echo=$ac_try;; |
| 2830 | esac |
| 2831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2832 | (eval "$ac_try") 2>&5 |
| 2833 | ac_status=$? |
| 2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2835 | (exit $ac_status); }; }; then |
| 2836 | cross_compiling=no |
| 2837 | else |
| 2838 | if test "$cross_compiling" = maybe; then |
| 2839 | cross_compiling=yes |
| 2840 | else |
| 2841 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2842 | If you meant to cross compile, use \`--host'. |
| 2843 | See \`config.log' for more details." >&5 |
| 2844 | echo "$as_me: error: cannot run C compiled programs. |
| 2845 | If you meant to cross compile, use \`--host'. |
| 2846 | See \`config.log' for more details." >&2;} |
| 2847 | { (exit 1); exit 1; }; } |
| 2848 | fi |
| 2849 | fi |
| 2850 | fi |
| 2851 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2852 | echo "${ECHO_T}yes" >&6; } |
| 2853 | |
| 2854 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2855 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2856 | # Check that the compiler produces executables we can run. If not, either |
| 2857 | # the compiler is broken, or we cross compile. |
| 2858 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2859 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2860 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2861 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2862 | |
| 2863 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2864 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2865 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2866 | case "(($ac_try" in |
| 2867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2868 | *) ac_try_echo=$ac_try;; |
| 2869 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2871 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2872 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2874 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2875 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2876 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2877 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2878 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2879 | for ac_file in conftest.exe conftest conftest.*; do |
| 2880 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2881 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2882 | *.$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] | 2883 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2884 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2885 | * ) break;; |
| 2886 | esac |
| 2887 | done |
| 2888 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2889 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2890 | See \`config.log' for more details." >&5 |
| 2891 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2892 | See \`config.log' for more details." >&2;} |
| 2893 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2894 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2895 | |
| 2896 | rm -f conftest$ac_cv_exeext |
| 2897 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2898 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2899 | |
| 2900 | rm -f conftest.$ac_ext |
| 2901 | EXEEXT=$ac_cv_exeext |
| 2902 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2903 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2904 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2905 | if test "${ac_cv_objext+set}" = set; then |
| 2906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2907 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2908 | cat >conftest.$ac_ext <<_ACEOF |
| 2909 | /* confdefs.h. */ |
| 2910 | _ACEOF |
| 2911 | cat confdefs.h >>conftest.$ac_ext |
| 2912 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2913 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2914 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2915 | int |
| 2916 | main () |
| 2917 | { |
| 2918 | |
| 2919 | ; |
| 2920 | return 0; |
| 2921 | } |
| 2922 | _ACEOF |
| 2923 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2924 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2925 | case "(($ac_try" in |
| 2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2927 | *) ac_try_echo=$ac_try;; |
| 2928 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2930 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2931 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2933 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2934 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2935 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2936 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2937 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2938 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2939 | break;; |
| 2940 | esac |
| 2941 | done |
| 2942 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2943 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2945 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2946 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2947 | See \`config.log' for more details." >&5 |
| 2948 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2949 | See \`config.log' for more details." >&2;} |
| 2950 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2951 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2953 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2954 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2955 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2956 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2957 | OBJEXT=$ac_cv_objext |
| 2958 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2959 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2960 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2961 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2963 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2964 | cat >conftest.$ac_ext <<_ACEOF |
| 2965 | /* confdefs.h. */ |
| 2966 | _ACEOF |
| 2967 | cat confdefs.h >>conftest.$ac_ext |
| 2968 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2969 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2970 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2971 | int |
| 2972 | main () |
| 2973 | { |
| 2974 | #ifndef __GNUC__ |
| 2975 | choke me |
| 2976 | #endif |
| 2977 | |
| 2978 | ; |
| 2979 | return 0; |
| 2980 | } |
| 2981 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2982 | rm -f conftest.$ac_objext |
| 2983 | if { (ac_try="$ac_compile" |
| 2984 | case "(($ac_try" in |
| 2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2986 | *) ac_try_echo=$ac_try;; |
| 2987 | esac |
| 2988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2989 | (eval "$ac_compile") 2>conftest.er1 |
| 2990 | ac_status=$? |
| 2991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2992 | rm -f conftest.er1 |
| 2993 | cat conftest.err >&5 |
| 2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2995 | (exit $ac_status); } && |
| 2996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2997 | { (case "(($ac_try" in |
| 2998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2999 | *) ac_try_echo=$ac_try;; |
| 3000 | esac |
| 3001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3002 | (eval "$ac_try") 2>&5 |
| 3003 | ac_status=$? |
| 3004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3005 | (exit $ac_status); }; } && |
| 3006 | { ac_try='test -s conftest.$ac_objext' |
| 3007 | { (case "(($ac_try" in |
| 3008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3009 | *) ac_try_echo=$ac_try;; |
| 3010 | esac |
| 3011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3012 | (eval "$ac_try") 2>&5 |
| 3013 | ac_status=$? |
| 3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3015 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3016 | ac_compiler_gnu=yes |
| 3017 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3018 | echo "$as_me: failed program was:" >&5 |
| 3019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3020 | |
| 3021 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3022 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3025 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3026 | |
| 3027 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3028 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3029 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3030 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3031 | ac_test_CFLAGS=${CFLAGS+set} |
| 3032 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3033 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3034 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3035 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3038 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3039 | ac_c_werror_flag=yes |
| 3040 | ac_cv_prog_cc_g=no |
| 3041 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3042 | cat >conftest.$ac_ext <<_ACEOF |
| 3043 | /* confdefs.h. */ |
| 3044 | _ACEOF |
| 3045 | cat confdefs.h >>conftest.$ac_ext |
| 3046 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3047 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3048 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3049 | int |
| 3050 | main () |
| 3051 | { |
| 3052 | |
| 3053 | ; |
| 3054 | return 0; |
| 3055 | } |
| 3056 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3057 | rm -f conftest.$ac_objext |
| 3058 | if { (ac_try="$ac_compile" |
| 3059 | case "(($ac_try" in |
| 3060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3061 | *) ac_try_echo=$ac_try;; |
| 3062 | esac |
| 3063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3064 | (eval "$ac_compile") 2>conftest.er1 |
| 3065 | ac_status=$? |
| 3066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3067 | rm -f conftest.er1 |
| 3068 | cat conftest.err >&5 |
| 3069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3070 | (exit $ac_status); } && |
| 3071 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3072 | { (case "(($ac_try" in |
| 3073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3074 | *) ac_try_echo=$ac_try;; |
| 3075 | esac |
| 3076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3077 | (eval "$ac_try") 2>&5 |
| 3078 | ac_status=$? |
| 3079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3080 | (exit $ac_status); }; } && |
| 3081 | { ac_try='test -s conftest.$ac_objext' |
| 3082 | { (case "(($ac_try" in |
| 3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3084 | *) ac_try_echo=$ac_try;; |
| 3085 | esac |
| 3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3087 | (eval "$ac_try") 2>&5 |
| 3088 | ac_status=$? |
| 3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3090 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3091 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3092 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3093 | echo "$as_me: failed program was:" >&5 |
| 3094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3095 | |
| 3096 | CFLAGS="" |
| 3097 | cat >conftest.$ac_ext <<_ACEOF |
| 3098 | /* confdefs.h. */ |
| 3099 | _ACEOF |
| 3100 | cat confdefs.h >>conftest.$ac_ext |
| 3101 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3102 | /* end confdefs.h. */ |
| 3103 | |
| 3104 | int |
| 3105 | main () |
| 3106 | { |
| 3107 | |
| 3108 | ; |
| 3109 | return 0; |
| 3110 | } |
| 3111 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3112 | rm -f conftest.$ac_objext |
| 3113 | if { (ac_try="$ac_compile" |
| 3114 | case "(($ac_try" in |
| 3115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3116 | *) ac_try_echo=$ac_try;; |
| 3117 | esac |
| 3118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3119 | (eval "$ac_compile") 2>conftest.er1 |
| 3120 | ac_status=$? |
| 3121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3122 | rm -f conftest.er1 |
| 3123 | cat conftest.err >&5 |
| 3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3125 | (exit $ac_status); } && |
| 3126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3127 | { (case "(($ac_try" in |
| 3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3129 | *) ac_try_echo=$ac_try;; |
| 3130 | esac |
| 3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3132 | (eval "$ac_try") 2>&5 |
| 3133 | ac_status=$? |
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3135 | (exit $ac_status); }; } && |
| 3136 | { ac_try='test -s conftest.$ac_objext' |
| 3137 | { (case "(($ac_try" in |
| 3138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3139 | *) ac_try_echo=$ac_try;; |
| 3140 | esac |
| 3141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3142 | (eval "$ac_try") 2>&5 |
| 3143 | ac_status=$? |
| 3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3145 | (exit $ac_status); }; }; then |
| 3146 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3147 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3148 | echo "$as_me: failed program was:" >&5 |
| 3149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3150 | |
| 3151 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3152 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3153 | cat >conftest.$ac_ext <<_ACEOF |
| 3154 | /* confdefs.h. */ |
| 3155 | _ACEOF |
| 3156 | cat confdefs.h >>conftest.$ac_ext |
| 3157 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3158 | /* end confdefs.h. */ |
| 3159 | |
| 3160 | int |
| 3161 | main () |
| 3162 | { |
| 3163 | |
| 3164 | ; |
| 3165 | return 0; |
| 3166 | } |
| 3167 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3168 | rm -f conftest.$ac_objext |
| 3169 | if { (ac_try="$ac_compile" |
| 3170 | case "(($ac_try" in |
| 3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3172 | *) ac_try_echo=$ac_try;; |
| 3173 | esac |
| 3174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3175 | (eval "$ac_compile") 2>conftest.er1 |
| 3176 | ac_status=$? |
| 3177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3178 | rm -f conftest.er1 |
| 3179 | cat conftest.err >&5 |
| 3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3181 | (exit $ac_status); } && |
| 3182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3183 | { (case "(($ac_try" in |
| 3184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3185 | *) ac_try_echo=$ac_try;; |
| 3186 | esac |
| 3187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3188 | (eval "$ac_try") 2>&5 |
| 3189 | ac_status=$? |
| 3190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3191 | (exit $ac_status); }; } && |
| 3192 | { ac_try='test -s conftest.$ac_objext' |
| 3193 | { (case "(($ac_try" in |
| 3194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3195 | *) ac_try_echo=$ac_try;; |
| 3196 | esac |
| 3197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3198 | (eval "$ac_try") 2>&5 |
| 3199 | ac_status=$? |
| 3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3201 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3202 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3203 | else |
| 3204 | echo "$as_me: failed program was:" >&5 |
| 3205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3206 | |
| 3207 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3208 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3211 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3214 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3217 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3218 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3219 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3220 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3221 | if test "$ac_test_CFLAGS" = set; then |
| 3222 | CFLAGS=$ac_save_CFLAGS |
| 3223 | elif test $ac_cv_prog_cc_g = yes; then |
| 3224 | if test "$GCC" = yes; then |
| 3225 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3226 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3227 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3228 | fi |
| 3229 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3230 | if test "$GCC" = yes; then |
| 3231 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3232 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3233 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3234 | fi |
| 3235 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3236 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3237 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3238 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3240 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3241 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3242 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3243 | cat >conftest.$ac_ext <<_ACEOF |
| 3244 | /* confdefs.h. */ |
| 3245 | _ACEOF |
| 3246 | cat confdefs.h >>conftest.$ac_ext |
| 3247 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3248 | /* end confdefs.h. */ |
| 3249 | #include <stdarg.h> |
| 3250 | #include <stdio.h> |
| 3251 | #include <sys/types.h> |
| 3252 | #include <sys/stat.h> |
| 3253 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3254 | struct buf { int x; }; |
| 3255 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3256 | static char *e (p, i) |
| 3257 | char **p; |
| 3258 | int i; |
| 3259 | { |
| 3260 | return p[i]; |
| 3261 | } |
| 3262 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3263 | { |
| 3264 | char *s; |
| 3265 | va_list v; |
| 3266 | va_start (v,p); |
| 3267 | s = g (p, va_arg (v,int)); |
| 3268 | va_end (v); |
| 3269 | return s; |
| 3270 | } |
| 3271 | |
| 3272 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3273 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3274 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3275 | 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] | 3276 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3277 | 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] | 3278 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3279 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3281 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3282 | inside strings and character constants. */ |
| 3283 | #define FOO(x) 'x' |
| 3284 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3285 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3286 | int test (int i, double x); |
| 3287 | struct s1 {int (*f) (int a);}; |
| 3288 | struct s2 {int (*f) (double a);}; |
| 3289 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3290 | int argc; |
| 3291 | char **argv; |
| 3292 | int |
| 3293 | main () |
| 3294 | { |
| 3295 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3296 | ; |
| 3297 | return 0; |
| 3298 | } |
| 3299 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3300 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3301 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3302 | do |
| 3303 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3304 | rm -f conftest.$ac_objext |
| 3305 | if { (ac_try="$ac_compile" |
| 3306 | case "(($ac_try" in |
| 3307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3308 | *) ac_try_echo=$ac_try;; |
| 3309 | esac |
| 3310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3311 | (eval "$ac_compile") 2>conftest.er1 |
| 3312 | ac_status=$? |
| 3313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3314 | rm -f conftest.er1 |
| 3315 | cat conftest.err >&5 |
| 3316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3317 | (exit $ac_status); } && |
| 3318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3319 | { (case "(($ac_try" in |
| 3320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3321 | *) ac_try_echo=$ac_try;; |
| 3322 | esac |
| 3323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3324 | (eval "$ac_try") 2>&5 |
| 3325 | ac_status=$? |
| 3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3327 | (exit $ac_status); }; } && |
| 3328 | { ac_try='test -s conftest.$ac_objext' |
| 3329 | { (case "(($ac_try" in |
| 3330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3331 | *) ac_try_echo=$ac_try;; |
| 3332 | esac |
| 3333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3334 | (eval "$ac_try") 2>&5 |
| 3335 | ac_status=$? |
| 3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3337 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3338 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3339 | else |
| 3340 | echo "$as_me: failed program was:" >&5 |
| 3341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3342 | |
| 3343 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3344 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3345 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3346 | rm -f core conftest.err conftest.$ac_objext |
| 3347 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3348 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3349 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3350 | CC=$ac_save_CC |
| 3351 | |
| 3352 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3353 | # AC_CACHE_VAL |
| 3354 | case "x$ac_cv_prog_cc_c89" in |
| 3355 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3356 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3357 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3358 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3359 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3360 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3361 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3362 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3363 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3364 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3365 | esac |
| 3366 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3367 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3368 | ac_ext=c |
| 3369 | ac_cpp='$CPP $CPPFLAGS' |
| 3370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3373 | |
| 3374 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3375 | ac_ext=c |
| 3376 | ac_cpp='$CPP $CPPFLAGS' |
| 3377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3380 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3381 | 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] | 3382 | # On Suns, sometimes $CPP names a directory. |
| 3383 | if test -n "$CPP" && test -d "$CPP"; then |
| 3384 | CPP= |
| 3385 | fi |
| 3386 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3387 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3389 | else |
| 3390 | # Double quotes because CPP needs to be expanded |
| 3391 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3392 | do |
| 3393 | ac_preproc_ok=false |
| 3394 | for ac_c_preproc_warn_flag in '' yes |
| 3395 | do |
| 3396 | # Use a header file that comes with gcc, so configuring glibc |
| 3397 | # with a fresh cross-compiler works. |
| 3398 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3399 | # <limits.h> exists even on freestanding compilers. |
| 3400 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3401 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3402 | cat >conftest.$ac_ext <<_ACEOF |
| 3403 | /* confdefs.h. */ |
| 3404 | _ACEOF |
| 3405 | cat confdefs.h >>conftest.$ac_ext |
| 3406 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3407 | /* end confdefs.h. */ |
| 3408 | #ifdef __STDC__ |
| 3409 | # include <limits.h> |
| 3410 | #else |
| 3411 | # include <assert.h> |
| 3412 | #endif |
| 3413 | Syntax error |
| 3414 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3415 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3416 | case "(($ac_try" in |
| 3417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3418 | *) ac_try_echo=$ac_try;; |
| 3419 | esac |
| 3420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3422 | ac_status=$? |
| 3423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3424 | rm -f conftest.er1 |
| 3425 | cat conftest.err >&5 |
| 3426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3427 | (exit $ac_status); } >/dev/null; then |
| 3428 | if test -s conftest.err; then |
| 3429 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3430 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3431 | else |
| 3432 | ac_cpp_err= |
| 3433 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3434 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3435 | ac_cpp_err=yes |
| 3436 | fi |
| 3437 | if test -z "$ac_cpp_err"; then |
| 3438 | : |
| 3439 | else |
| 3440 | echo "$as_me: failed program was:" >&5 |
| 3441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3442 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3443 | # Broken: fails on valid input. |
| 3444 | continue |
| 3445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3446 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3447 | rm -f conftest.err conftest.$ac_ext |
| 3448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3449 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3450 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3451 | cat >conftest.$ac_ext <<_ACEOF |
| 3452 | /* confdefs.h. */ |
| 3453 | _ACEOF |
| 3454 | cat confdefs.h >>conftest.$ac_ext |
| 3455 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3456 | /* end confdefs.h. */ |
| 3457 | #include <ac_nonexistent.h> |
| 3458 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3459 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3460 | case "(($ac_try" in |
| 3461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3462 | *) ac_try_echo=$ac_try;; |
| 3463 | esac |
| 3464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3466 | ac_status=$? |
| 3467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3468 | rm -f conftest.er1 |
| 3469 | cat conftest.err >&5 |
| 3470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3471 | (exit $ac_status); } >/dev/null; then |
| 3472 | if test -s conftest.err; then |
| 3473 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3475 | else |
| 3476 | ac_cpp_err= |
| 3477 | fi |
| 3478 | else |
| 3479 | ac_cpp_err=yes |
| 3480 | fi |
| 3481 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3482 | # Broken: success on invalid input. |
| 3483 | continue |
| 3484 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3485 | echo "$as_me: failed program was:" >&5 |
| 3486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3487 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3488 | # Passes both tests. |
| 3489 | ac_preproc_ok=: |
| 3490 | break |
| 3491 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3492 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3493 | rm -f conftest.err conftest.$ac_ext |
| 3494 | |
| 3495 | done |
| 3496 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3497 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3498 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3499 | break |
| 3500 | fi |
| 3501 | |
| 3502 | done |
| 3503 | ac_cv_prog_CPP=$CPP |
| 3504 | |
| 3505 | fi |
| 3506 | CPP=$ac_cv_prog_CPP |
| 3507 | else |
| 3508 | ac_cv_prog_CPP=$CPP |
| 3509 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3510 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3511 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3512 | ac_preproc_ok=false |
| 3513 | for ac_c_preproc_warn_flag in '' yes |
| 3514 | do |
| 3515 | # Use a header file that comes with gcc, so configuring glibc |
| 3516 | # with a fresh cross-compiler works. |
| 3517 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3518 | # <limits.h> exists even on freestanding compilers. |
| 3519 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3520 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3521 | cat >conftest.$ac_ext <<_ACEOF |
| 3522 | /* confdefs.h. */ |
| 3523 | _ACEOF |
| 3524 | cat confdefs.h >>conftest.$ac_ext |
| 3525 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3526 | /* end confdefs.h. */ |
| 3527 | #ifdef __STDC__ |
| 3528 | # include <limits.h> |
| 3529 | #else |
| 3530 | # include <assert.h> |
| 3531 | #endif |
| 3532 | Syntax error |
| 3533 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3535 | case "(($ac_try" in |
| 3536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3537 | *) ac_try_echo=$ac_try;; |
| 3538 | esac |
| 3539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3541 | ac_status=$? |
| 3542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3543 | rm -f conftest.er1 |
| 3544 | cat conftest.err >&5 |
| 3545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3546 | (exit $ac_status); } >/dev/null; then |
| 3547 | if test -s conftest.err; then |
| 3548 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3550 | else |
| 3551 | ac_cpp_err= |
| 3552 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3553 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3554 | ac_cpp_err=yes |
| 3555 | fi |
| 3556 | if test -z "$ac_cpp_err"; then |
| 3557 | : |
| 3558 | else |
| 3559 | echo "$as_me: failed program was:" >&5 |
| 3560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3561 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3562 | # Broken: fails on valid input. |
| 3563 | continue |
| 3564 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3565 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3566 | rm -f conftest.err conftest.$ac_ext |
| 3567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3568 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3569 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3570 | cat >conftest.$ac_ext <<_ACEOF |
| 3571 | /* confdefs.h. */ |
| 3572 | _ACEOF |
| 3573 | cat confdefs.h >>conftest.$ac_ext |
| 3574 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3575 | /* end confdefs.h. */ |
| 3576 | #include <ac_nonexistent.h> |
| 3577 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3578 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3579 | case "(($ac_try" in |
| 3580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3581 | *) ac_try_echo=$ac_try;; |
| 3582 | esac |
| 3583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3584 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3585 | ac_status=$? |
| 3586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3587 | rm -f conftest.er1 |
| 3588 | cat conftest.err >&5 |
| 3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3590 | (exit $ac_status); } >/dev/null; then |
| 3591 | if test -s conftest.err; then |
| 3592 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3593 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3594 | else |
| 3595 | ac_cpp_err= |
| 3596 | fi |
| 3597 | else |
| 3598 | ac_cpp_err=yes |
| 3599 | fi |
| 3600 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3601 | # Broken: success on invalid input. |
| 3602 | continue |
| 3603 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3604 | echo "$as_me: failed program was:" >&5 |
| 3605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3606 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3607 | # Passes both tests. |
| 3608 | ac_preproc_ok=: |
| 3609 | break |
| 3610 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3611 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3612 | rm -f conftest.err conftest.$ac_ext |
| 3613 | |
| 3614 | done |
| 3615 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3616 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3617 | if $ac_preproc_ok; then |
| 3618 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3619 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3620 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3621 | See \`config.log' for more details." >&5 |
| 3622 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3623 | See \`config.log' for more details." >&2;} |
| 3624 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3625 | fi |
| 3626 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3627 | ac_ext=c |
| 3628 | ac_cpp='$CPP $CPPFLAGS' |
| 3629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3632 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3633 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3634 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3635 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3636 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3638 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3639 | # Extract the first word of "grep ggrep" to use in msg output |
| 3640 | if test -z "$GREP"; then |
| 3641 | set dummy grep ggrep; ac_prog_name=$2 |
| 3642 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3644 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3645 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3646 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3648 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3649 | do |
| 3650 | IFS=$as_save_IFS |
| 3651 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3652 | for ac_prog in grep ggrep; do |
| 3653 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3654 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3655 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3656 | # 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] | 3657 | # Check for GNU $ac_path_GREP |
| 3658 | case `"$ac_path_GREP" --version 2>&1` in |
| 3659 | *GNU*) |
| 3660 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3661 | *) |
| 3662 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3663 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3664 | while : |
| 3665 | do |
| 3666 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3667 | mv "conftest.tmp" "conftest.in" |
| 3668 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3669 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3670 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3671 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3672 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3673 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3674 | # Best one so far, save it but keep looking for a better one |
| 3675 | ac_cv_path_GREP="$ac_path_GREP" |
| 3676 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3677 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3678 | # 10*(2^10) chars as input seems more than enough |
| 3679 | test $ac_count -gt 10 && break |
| 3680 | done |
| 3681 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3682 | esac |
| 3683 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3684 | |
| 3685 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3686 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3687 | done |
| 3688 | |
| 3689 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3690 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3691 | |
| 3692 | |
| 3693 | fi |
| 3694 | |
| 3695 | GREP="$ac_cv_path_GREP" |
| 3696 | if test -z "$GREP"; then |
| 3697 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3698 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3699 | { (exit 1); exit 1; }; } |
| 3700 | fi |
| 3701 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3702 | else |
| 3703 | ac_cv_path_GREP=$GREP |
| 3704 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3705 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3707 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3708 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3709 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3710 | GREP="$ac_cv_path_GREP" |
| 3711 | |
| 3712 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3713 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3714 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3715 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3717 | else |
| 3718 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3719 | then ac_cv_path_EGREP="$GREP -E" |
| 3720 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3721 | # Extract the first word of "egrep" to use in msg output |
| 3722 | if test -z "$EGREP"; then |
| 3723 | set dummy egrep; ac_prog_name=$2 |
| 3724 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3726 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3727 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3728 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3730 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3731 | do |
| 3732 | IFS=$as_save_IFS |
| 3733 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3734 | for ac_prog in egrep; do |
| 3735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3736 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3737 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3738 | # 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] | 3739 | # Check for GNU $ac_path_EGREP |
| 3740 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3741 | *GNU*) |
| 3742 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3743 | *) |
| 3744 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3745 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3746 | while : |
| 3747 | do |
| 3748 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3749 | mv "conftest.tmp" "conftest.in" |
| 3750 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3751 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3752 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3753 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3754 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3755 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3756 | # Best one so far, save it but keep looking for a better one |
| 3757 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3758 | ac_path_EGREP_max=$ac_count |
| 3759 | fi |
| 3760 | # 10*(2^10) chars as input seems more than enough |
| 3761 | test $ac_count -gt 10 && break |
| 3762 | done |
| 3763 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3764 | esac |
| 3765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3766 | |
| 3767 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3768 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3769 | done |
| 3770 | |
| 3771 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3772 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3773 | |
| 3774 | |
| 3775 | fi |
| 3776 | |
| 3777 | EGREP="$ac_cv_path_EGREP" |
| 3778 | if test -z "$EGREP"; then |
| 3779 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3780 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3781 | { (exit 1); exit 1; }; } |
| 3782 | fi |
| 3783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3784 | else |
| 3785 | ac_cv_path_EGREP=$EGREP |
| 3786 | fi |
| 3787 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3789 | fi |
| 3790 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3791 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3792 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3793 | EGREP="$ac_cv_path_EGREP" |
| 3794 | |
| 3795 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3796 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3797 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3798 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3800 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3801 | cat >conftest.$ac_ext <<_ACEOF |
| 3802 | /* confdefs.h. */ |
| 3803 | _ACEOF |
| 3804 | cat confdefs.h >>conftest.$ac_ext |
| 3805 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3806 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3807 | #include <stdlib.h> |
| 3808 | #include <stdarg.h> |
| 3809 | #include <string.h> |
| 3810 | #include <float.h> |
| 3811 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3812 | int |
| 3813 | main () |
| 3814 | { |
| 3815 | |
| 3816 | ; |
| 3817 | return 0; |
| 3818 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3819 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3820 | rm -f conftest.$ac_objext |
| 3821 | if { (ac_try="$ac_compile" |
| 3822 | case "(($ac_try" in |
| 3823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3824 | *) ac_try_echo=$ac_try;; |
| 3825 | esac |
| 3826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3827 | (eval "$ac_compile") 2>conftest.er1 |
| 3828 | ac_status=$? |
| 3829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3830 | rm -f conftest.er1 |
| 3831 | cat conftest.err >&5 |
| 3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3833 | (exit $ac_status); } && |
| 3834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3835 | { (case "(($ac_try" in |
| 3836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3837 | *) ac_try_echo=$ac_try;; |
| 3838 | esac |
| 3839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3840 | (eval "$ac_try") 2>&5 |
| 3841 | ac_status=$? |
| 3842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3843 | (exit $ac_status); }; } && |
| 3844 | { ac_try='test -s conftest.$ac_objext' |
| 3845 | { (case "(($ac_try" in |
| 3846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3847 | *) ac_try_echo=$ac_try;; |
| 3848 | esac |
| 3849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3850 | (eval "$ac_try") 2>&5 |
| 3851 | ac_status=$? |
| 3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3853 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3854 | ac_cv_header_stdc=yes |
| 3855 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3856 | echo "$as_me: failed program was:" >&5 |
| 3857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3858 | |
| 3859 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3860 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3861 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3863 | |
| 3864 | if test $ac_cv_header_stdc = yes; then |
| 3865 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3866 | cat >conftest.$ac_ext <<_ACEOF |
| 3867 | /* confdefs.h. */ |
| 3868 | _ACEOF |
| 3869 | cat confdefs.h >>conftest.$ac_ext |
| 3870 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3871 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3872 | #include <string.h> |
| 3873 | |
| 3874 | _ACEOF |
| 3875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3876 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3877 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3878 | else |
| 3879 | ac_cv_header_stdc=no |
| 3880 | fi |
| 3881 | rm -f conftest* |
| 3882 | |
| 3883 | fi |
| 3884 | |
| 3885 | if test $ac_cv_header_stdc = yes; then |
| 3886 | # 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] | 3887 | cat >conftest.$ac_ext <<_ACEOF |
| 3888 | /* confdefs.h. */ |
| 3889 | _ACEOF |
| 3890 | cat confdefs.h >>conftest.$ac_ext |
| 3891 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3892 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3893 | #include <stdlib.h> |
| 3894 | |
| 3895 | _ACEOF |
| 3896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3897 | $EGREP "free" >/dev/null 2>&1; then |
| 3898 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3899 | else |
| 3900 | ac_cv_header_stdc=no |
| 3901 | fi |
| 3902 | rm -f conftest* |
| 3903 | |
| 3904 | fi |
| 3905 | |
| 3906 | if test $ac_cv_header_stdc = yes; then |
| 3907 | # /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] | 3908 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3909 | : |
| 3910 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3911 | cat >conftest.$ac_ext <<_ACEOF |
| 3912 | /* confdefs.h. */ |
| 3913 | _ACEOF |
| 3914 | cat confdefs.h >>conftest.$ac_ext |
| 3915 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3916 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3917 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3918 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3919 | #if ((' ' & 0x0FF) == 0x020) |
| 3920 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3921 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3922 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3923 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3924 | (('a' <= (c) && (c) <= 'i') \ |
| 3925 | || ('j' <= (c) && (c) <= 'r') \ |
| 3926 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3927 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3928 | #endif |
| 3929 | |
| 3930 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3931 | int |
| 3932 | main () |
| 3933 | { |
| 3934 | int i; |
| 3935 | for (i = 0; i < 256; i++) |
| 3936 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3937 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3938 | return 2; |
| 3939 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3940 | } |
| 3941 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3942 | rm -f conftest$ac_exeext |
| 3943 | if { (ac_try="$ac_link" |
| 3944 | case "(($ac_try" in |
| 3945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3946 | *) ac_try_echo=$ac_try;; |
| 3947 | esac |
| 3948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3949 | (eval "$ac_link") 2>&5 |
| 3950 | ac_status=$? |
| 3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3952 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3953 | { (case "(($ac_try" in |
| 3954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3955 | *) ac_try_echo=$ac_try;; |
| 3956 | esac |
| 3957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3958 | (eval "$ac_try") 2>&5 |
| 3959 | ac_status=$? |
| 3960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3961 | (exit $ac_status); }; }; then |
| 3962 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3963 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3964 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3965 | echo "$as_me: failed program was:" >&5 |
| 3966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3967 | |
| 3968 | ( exit $ac_status ) |
| 3969 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3970 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3971 | 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] | 3972 | fi |
| 3973 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3974 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3975 | fi |
| 3976 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3977 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3978 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3979 | if test $ac_cv_header_stdc = yes; then |
| 3980 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3981 | cat >>confdefs.h <<\_ACEOF |
| 3982 | #define STDC_HEADERS 1 |
| 3983 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3984 | |
| 3985 | fi |
| 3986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3987 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3988 | |
| 3989 | |
| 3990 | |
| 3991 | |
| 3992 | |
| 3993 | |
| 3994 | |
| 3995 | |
| 3996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3997 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3998 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3999 | do |
| 4000 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4001 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4003 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4005 | else |
| 4006 | cat >conftest.$ac_ext <<_ACEOF |
| 4007 | /* confdefs.h. */ |
| 4008 | _ACEOF |
| 4009 | cat confdefs.h >>conftest.$ac_ext |
| 4010 | cat >>conftest.$ac_ext <<_ACEOF |
| 4011 | /* end confdefs.h. */ |
| 4012 | $ac_includes_default |
| 4013 | |
| 4014 | #include <$ac_header> |
| 4015 | _ACEOF |
| 4016 | rm -f conftest.$ac_objext |
| 4017 | if { (ac_try="$ac_compile" |
| 4018 | case "(($ac_try" in |
| 4019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4020 | *) ac_try_echo=$ac_try;; |
| 4021 | esac |
| 4022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4023 | (eval "$ac_compile") 2>conftest.er1 |
| 4024 | ac_status=$? |
| 4025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4026 | rm -f conftest.er1 |
| 4027 | cat conftest.err >&5 |
| 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4029 | (exit $ac_status); } && |
| 4030 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4031 | { (case "(($ac_try" in |
| 4032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4033 | *) ac_try_echo=$ac_try;; |
| 4034 | esac |
| 4035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4036 | (eval "$ac_try") 2>&5 |
| 4037 | ac_status=$? |
| 4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4039 | (exit $ac_status); }; } && |
| 4040 | { ac_try='test -s conftest.$ac_objext' |
| 4041 | { (case "(($ac_try" in |
| 4042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4043 | *) ac_try_echo=$ac_try;; |
| 4044 | esac |
| 4045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4046 | (eval "$ac_try") 2>&5 |
| 4047 | ac_status=$? |
| 4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4049 | (exit $ac_status); }; }; then |
| 4050 | eval "$as_ac_Header=yes" |
| 4051 | else |
| 4052 | echo "$as_me: failed program was:" >&5 |
| 4053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4054 | |
| 4055 | eval "$as_ac_Header=no" |
| 4056 | fi |
| 4057 | |
| 4058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4059 | fi |
| 4060 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4062 | echo "${ECHO_T}$ac_res" >&6; } |
| 4063 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4064 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4065 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4066 | _ACEOF |
| 4067 | |
| 4068 | fi |
| 4069 | |
| 4070 | done |
| 4071 | |
| 4072 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4073 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4074 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4075 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4077 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4078 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4079 | cat >conftest.$ac_ext <<_ACEOF |
| 4080 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4081 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4082 | cat confdefs.h >>conftest.$ac_ext |
| 4083 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4084 | /* end confdefs.h. */ |
| 4085 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4086 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4087 | |
| 4088 | int |
| 4089 | main () |
| 4090 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4091 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4092 | bogus endian macros |
| 4093 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4094 | |
| 4095 | ; |
| 4096 | return 0; |
| 4097 | } |
| 4098 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4099 | rm -f conftest.$ac_objext |
| 4100 | if { (ac_try="$ac_compile" |
| 4101 | case "(($ac_try" in |
| 4102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4103 | *) ac_try_echo=$ac_try;; |
| 4104 | esac |
| 4105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4106 | (eval "$ac_compile") 2>conftest.er1 |
| 4107 | ac_status=$? |
| 4108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4109 | rm -f conftest.er1 |
| 4110 | cat conftest.err >&5 |
| 4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4112 | (exit $ac_status); } && |
| 4113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4114 | { (case "(($ac_try" in |
| 4115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4116 | *) ac_try_echo=$ac_try;; |
| 4117 | esac |
| 4118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4119 | (eval "$ac_try") 2>&5 |
| 4120 | ac_status=$? |
| 4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4122 | (exit $ac_status); }; } && |
| 4123 | { ac_try='test -s conftest.$ac_objext' |
| 4124 | { (case "(($ac_try" in |
| 4125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4126 | *) ac_try_echo=$ac_try;; |
| 4127 | esac |
| 4128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4129 | (eval "$ac_try") 2>&5 |
| 4130 | ac_status=$? |
| 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4132 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4133 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4134 | cat >conftest.$ac_ext <<_ACEOF |
| 4135 | /* confdefs.h. */ |
| 4136 | _ACEOF |
| 4137 | cat confdefs.h >>conftest.$ac_ext |
| 4138 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4139 | /* end confdefs.h. */ |
| 4140 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4141 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4142 | |
| 4143 | int |
| 4144 | main () |
| 4145 | { |
| 4146 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4147 | not big endian |
| 4148 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4149 | |
| 4150 | ; |
| 4151 | return 0; |
| 4152 | } |
| 4153 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4154 | rm -f conftest.$ac_objext |
| 4155 | if { (ac_try="$ac_compile" |
| 4156 | case "(($ac_try" in |
| 4157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4158 | *) ac_try_echo=$ac_try;; |
| 4159 | esac |
| 4160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4161 | (eval "$ac_compile") 2>conftest.er1 |
| 4162 | ac_status=$? |
| 4163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4164 | rm -f conftest.er1 |
| 4165 | cat conftest.err >&5 |
| 4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4167 | (exit $ac_status); } && |
| 4168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4169 | { (case "(($ac_try" in |
| 4170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4171 | *) ac_try_echo=$ac_try;; |
| 4172 | esac |
| 4173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4174 | (eval "$ac_try") 2>&5 |
| 4175 | ac_status=$? |
| 4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4177 | (exit $ac_status); }; } && |
| 4178 | { ac_try='test -s conftest.$ac_objext' |
| 4179 | { (case "(($ac_try" in |
| 4180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4181 | *) ac_try_echo=$ac_try;; |
| 4182 | esac |
| 4183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4184 | (eval "$ac_try") 2>&5 |
| 4185 | ac_status=$? |
| 4186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4187 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4188 | ac_cv_c_bigendian=yes |
| 4189 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4190 | echo "$as_me: failed program was:" >&5 |
| 4191 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4192 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4193 | ac_cv_c_bigendian=no |
| 4194 | fi |
| 4195 | |
| 4196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4197 | else |
| 4198 | echo "$as_me: failed program was:" >&5 |
| 4199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4200 | |
| 4201 | # It does not; compile a test program. |
| 4202 | if test "$cross_compiling" = yes; then |
| 4203 | # try to guess the endianness by grepping values into an object file |
| 4204 | ac_cv_c_bigendian=unknown |
| 4205 | cat >conftest.$ac_ext <<_ACEOF |
| 4206 | /* confdefs.h. */ |
| 4207 | _ACEOF |
| 4208 | cat confdefs.h >>conftest.$ac_ext |
| 4209 | cat >>conftest.$ac_ext <<_ACEOF |
| 4210 | /* end confdefs.h. */ |
| 4211 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4212 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4213 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4214 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4215 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4216 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4217 | int |
| 4218 | main () |
| 4219 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4220 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4221 | ; |
| 4222 | return 0; |
| 4223 | } |
| 4224 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4225 | rm -f conftest.$ac_objext |
| 4226 | if { (ac_try="$ac_compile" |
| 4227 | case "(($ac_try" in |
| 4228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4229 | *) ac_try_echo=$ac_try;; |
| 4230 | esac |
| 4231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4232 | (eval "$ac_compile") 2>conftest.er1 |
| 4233 | ac_status=$? |
| 4234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4235 | rm -f conftest.er1 |
| 4236 | cat conftest.err >&5 |
| 4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4238 | (exit $ac_status); } && |
| 4239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4240 | { (case "(($ac_try" in |
| 4241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4242 | *) ac_try_echo=$ac_try;; |
| 4243 | esac |
| 4244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4245 | (eval "$ac_try") 2>&5 |
| 4246 | ac_status=$? |
| 4247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4248 | (exit $ac_status); }; } && |
| 4249 | { ac_try='test -s conftest.$ac_objext' |
| 4250 | { (case "(($ac_try" in |
| 4251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4252 | *) ac_try_echo=$ac_try;; |
| 4253 | esac |
| 4254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4255 | (eval "$ac_try") 2>&5 |
| 4256 | ac_status=$? |
| 4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4258 | (exit $ac_status); }; }; then |
| 4259 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4260 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4261 | fi |
| 4262 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4263 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4264 | ac_cv_c_bigendian=no |
| 4265 | else |
| 4266 | # finding both strings is unlikely to happen, but who knows? |
| 4267 | ac_cv_c_bigendian=unknown |
| 4268 | fi |
| 4269 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4270 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4271 | echo "$as_me: failed program was:" >&5 |
| 4272 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4273 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4274 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4275 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4278 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4279 | cat >conftest.$ac_ext <<_ACEOF |
| 4280 | /* confdefs.h. */ |
| 4281 | _ACEOF |
| 4282 | cat confdefs.h >>conftest.$ac_ext |
| 4283 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4284 | /* end confdefs.h. */ |
| 4285 | $ac_includes_default |
| 4286 | int |
| 4287 | main () |
| 4288 | { |
| 4289 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4290 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4291 | union |
| 4292 | { |
| 4293 | long int l; |
| 4294 | char c[sizeof (long int)]; |
| 4295 | } u; |
| 4296 | u.l = 1; |
| 4297 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4298 | |
| 4299 | ; |
| 4300 | return 0; |
| 4301 | } |
| 4302 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4303 | rm -f conftest$ac_exeext |
| 4304 | if { (ac_try="$ac_link" |
| 4305 | case "(($ac_try" in |
| 4306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4307 | *) ac_try_echo=$ac_try;; |
| 4308 | esac |
| 4309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4310 | (eval "$ac_link") 2>&5 |
| 4311 | ac_status=$? |
| 4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4314 | { (case "(($ac_try" in |
| 4315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4316 | *) ac_try_echo=$ac_try;; |
| 4317 | esac |
| 4318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4319 | (eval "$ac_try") 2>&5 |
| 4320 | ac_status=$? |
| 4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4322 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4323 | ac_cv_c_bigendian=no |
| 4324 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4325 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4326 | echo "$as_me: failed program was:" >&5 |
| 4327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4328 | |
| 4329 | ( exit $ac_status ) |
| 4330 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4331 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4332 | 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] | 4333 | fi |
| 4334 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4336 | fi |
| 4337 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4339 | fi |
| 4340 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4341 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4342 | case $ac_cv_c_bigendian in |
| 4343 | yes) |
| 4344 | ENDIAN=big |
| 4345 | ;; |
| 4346 | no) |
| 4347 | ENDIAN=little |
| 4348 | ;; |
| 4349 | *) |
| 4350 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4351 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4352 | echo "$as_me: error: unknown endianness |
| 4353 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4354 | { (exit 1); exit 1; }; } ;; |
| 4355 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4356 | |
| 4357 | |
| 4358 | if test "$cross_compiling" = yes; then |
| 4359 | LLVM_CROSS_COMPILING=1 |
| 4360 | |
| 4361 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4362 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4363 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4364 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4366 | else |
| 4367 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4368 | ac_cv_build_exeext=.exe |
| 4369 | else |
| 4370 | ac_build_prefix=${build_alias}- |
| 4371 | |
| 4372 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4373 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4374 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4376 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4378 | else |
| 4379 | if test -n "$BUILD_CC"; then |
| 4380 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4381 | else |
| 4382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4383 | for as_dir in $PATH |
| 4384 | do |
| 4385 | IFS=$as_save_IFS |
| 4386 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4387 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4388 | 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] | 4389 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4390 | 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] | 4391 | break 2 |
| 4392 | fi |
| 4393 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4394 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4395 | IFS=$as_save_IFS |
| 4396 | |
| 4397 | fi |
| 4398 | fi |
| 4399 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4400 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4401 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4402 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4403 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4404 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4405 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4406 | fi |
| 4407 | |
| 4408 | |
| 4409 | if test -z "$BUILD_CC"; then |
| 4410 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4411 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4412 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4414 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4416 | else |
| 4417 | if test -n "$BUILD_CC"; then |
| 4418 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4419 | else |
| 4420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4421 | for as_dir in $PATH |
| 4422 | do |
| 4423 | IFS=$as_save_IFS |
| 4424 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4425 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4426 | 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] | 4427 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4428 | 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] | 4429 | break 2 |
| 4430 | fi |
| 4431 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4432 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4433 | IFS=$as_save_IFS |
| 4434 | |
| 4435 | fi |
| 4436 | fi |
| 4437 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4438 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4439 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4440 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4441 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4442 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4443 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4444 | fi |
| 4445 | |
| 4446 | |
| 4447 | if test -z "$BUILD_CC"; then |
| 4448 | # Extract the first word of "cc", so it can be a program name with args. |
| 4449 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4450 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4451 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4452 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4454 | else |
| 4455 | if test -n "$BUILD_CC"; then |
| 4456 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4457 | else |
| 4458 | ac_prog_rejected=no |
| 4459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4460 | for as_dir in $PATH |
| 4461 | do |
| 4462 | IFS=$as_save_IFS |
| 4463 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4464 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4465 | 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] | 4466 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4467 | ac_prog_rejected=yes |
| 4468 | continue |
| 4469 | fi |
| 4470 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4471 | 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] | 4472 | break 2 |
| 4473 | fi |
| 4474 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4475 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4476 | IFS=$as_save_IFS |
| 4477 | |
| 4478 | if test $ac_prog_rejected = yes; then |
| 4479 | # We found a bogon in the path, so make sure we never use it. |
| 4480 | set dummy $ac_cv_prog_BUILD_CC |
| 4481 | shift |
| 4482 | if test $# != 0; then |
| 4483 | # We chose a different compiler from the bogus one. |
| 4484 | # However, it has the same basename, so the bogon will be chosen |
| 4485 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4486 | shift |
| 4487 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4488 | fi |
| 4489 | fi |
| 4490 | fi |
| 4491 | fi |
| 4492 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4493 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4494 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4495 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4496 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4497 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4498 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4499 | fi |
| 4500 | |
| 4501 | |
| 4502 | fi |
| 4503 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4504 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4505 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4506 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4507 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4508 | rm -f conftest* |
| 4509 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4510 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4511 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4512 | (eval $ac_build_link) 2>&5 |
| 4513 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4515 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4516 | for file in conftest.*; do |
| 4517 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4518 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4519 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4520 | esac |
| 4521 | done |
| 4522 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4523 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4524 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4525 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4526 | fi |
| 4527 | rm -f conftest* |
| 4528 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4529 | fi |
| 4530 | fi |
| 4531 | |
| 4532 | BUILD_EXEEXT="" |
| 4533 | 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] | 4534 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4535 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4536 | ac_build_exeext=$BUILD_EXEEXT |
| 4537 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4538 | ac_build_prefix=${build_alias}- |
| 4539 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4540 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4543 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4545 | else |
| 4546 | if test -n "$BUILD_CXX"; then |
| 4547 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4548 | else |
| 4549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4550 | for as_dir in $PATH |
| 4551 | do |
| 4552 | IFS=$as_save_IFS |
| 4553 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4554 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4555 | 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] | 4556 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4557 | 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] | 4558 | break 2 |
| 4559 | fi |
| 4560 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4561 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4562 | IFS=$as_save_IFS |
| 4563 | |
| 4564 | fi |
| 4565 | fi |
| 4566 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4567 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4568 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4569 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4570 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4571 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4572 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4573 | fi |
| 4574 | |
| 4575 | |
| 4576 | if test -z "$BUILD_CXX"; then |
| 4577 | # Extract the first word of "g++", so it can be a program name with args. |
| 4578 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4581 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4583 | else |
| 4584 | if test -n "$BUILD_CXX"; then |
| 4585 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4586 | else |
| 4587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4588 | for as_dir in $PATH |
| 4589 | do |
| 4590 | IFS=$as_save_IFS |
| 4591 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4592 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4593 | 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] | 4594 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4595 | 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] | 4596 | break 2 |
| 4597 | fi |
| 4598 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4599 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4600 | IFS=$as_save_IFS |
| 4601 | |
| 4602 | fi |
| 4603 | fi |
| 4604 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4605 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4606 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4607 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4608 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4609 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4610 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4611 | fi |
| 4612 | |
| 4613 | |
| 4614 | if test -z "$BUILD_CXX"; then |
| 4615 | # Extract the first word of "c++", so it can be a program name with args. |
| 4616 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4617 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4619 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4621 | else |
| 4622 | if test -n "$BUILD_CXX"; then |
| 4623 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4624 | else |
| 4625 | ac_prog_rejected=no |
| 4626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4627 | for as_dir in $PATH |
| 4628 | do |
| 4629 | IFS=$as_save_IFS |
| 4630 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4631 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4632 | 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] | 4633 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4634 | ac_prog_rejected=yes |
| 4635 | continue |
| 4636 | fi |
| 4637 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4638 | 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] | 4639 | break 2 |
| 4640 | fi |
| 4641 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4642 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4643 | IFS=$as_save_IFS |
| 4644 | |
| 4645 | if test $ac_prog_rejected = yes; then |
| 4646 | # We found a bogon in the path, so make sure we never use it. |
| 4647 | set dummy $ac_cv_prog_BUILD_CXX |
| 4648 | shift |
| 4649 | if test $# != 0; then |
| 4650 | # We chose a different compiler from the bogus one. |
| 4651 | # However, it has the same basename, so the bogon will be chosen |
| 4652 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4653 | shift |
| 4654 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4655 | fi |
| 4656 | fi |
| 4657 | fi |
| 4658 | fi |
| 4659 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4660 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4661 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4662 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4663 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4664 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4665 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4666 | fi |
| 4667 | |
| 4668 | |
| 4669 | fi |
| 4670 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4671 | else |
| 4672 | LLVM_CROSS_COMPILING=0 |
| 4673 | |
| 4674 | fi |
| 4675 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4676 | 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] | 4677 | cvsbuild="yes" |
| 4678 | optimize="no" |
| 4679 | CVSBUILD=CVSBUILD=1 |
| 4680 | |
| 4681 | else |
| 4682 | cvsbuild="no" |
| 4683 | optimize="yes" |
| 4684 | fi |
| 4685 | |
| 4686 | |
| 4687 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4688 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4689 | enableval=$enable_optimized; |
| 4690 | else |
| 4691 | enableval=$optimize |
| 4692 | fi |
| 4693 | |
| 4694 | if test ${enableval} = "no" ; then |
| 4695 | ENABLE_OPTIMIZED= |
| 4696 | |
| 4697 | else |
| 4698 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4699 | |
| 4700 | fi |
| 4701 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4702 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4703 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4704 | enableval=$enable_profiling; |
| 4705 | else |
| 4706 | enableval="no" |
| 4707 | fi |
| 4708 | |
| 4709 | if test ${enableval} = "no" ; then |
| 4710 | ENABLE_PROFILING= |
| 4711 | |
| 4712 | else |
| 4713 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4714 | |
| 4715 | fi |
| 4716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4717 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4718 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4719 | enableval=$enable_assertions; |
| 4720 | else |
| 4721 | enableval="yes" |
| 4722 | fi |
| 4723 | |
| 4724 | if test ${enableval} = "yes" ; then |
| 4725 | DISABLE_ASSERTIONS= |
| 4726 | |
| 4727 | else |
| 4728 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4729 | |
| 4730 | fi |
| 4731 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4732 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4733 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4734 | enableval=$enable_expensive_checks; |
| 4735 | else |
| 4736 | enableval="no" |
| 4737 | fi |
| 4738 | |
| 4739 | if test ${enableval} = "yes" ; then |
| 4740 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4741 | |
| 4742 | EXPENSIVE_CHECKS=yes |
| 4743 | |
| 4744 | else |
| 4745 | ENABLE_EXPENSIVE_CHECKS= |
| 4746 | |
| 4747 | EXPENSIVE_CHECKS=no |
| 4748 | |
| 4749 | fi |
| 4750 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4751 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4752 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4753 | enableval=$enable_debug_runtime; |
| 4754 | else |
| 4755 | enableval=no |
| 4756 | fi |
| 4757 | |
| 4758 | if test ${enableval} = "no" ; then |
| 4759 | DEBUG_RUNTIME= |
| 4760 | |
| 4761 | else |
| 4762 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4763 | |
| 4764 | fi |
| 4765 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4766 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4767 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4768 | enableval=$enable_debug_symbols; |
| 4769 | else |
| 4770 | enableval=no |
| 4771 | fi |
| 4772 | |
| 4773 | if test ${enableval} = "no" ; then |
| 4774 | DEBUG_SYMBOLS= |
| 4775 | |
| 4776 | else |
| 4777 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4778 | |
| 4779 | fi |
| 4780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4781 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4782 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4783 | enableval=$enable_jit; |
| 4784 | else |
| 4785 | enableval=default |
| 4786 | fi |
| 4787 | |
| 4788 | if test ${enableval} = "no" |
| 4789 | then |
| 4790 | JIT= |
| 4791 | |
| 4792 | else |
| 4793 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4794 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4795 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4796 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4797 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4798 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4799 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4800 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4801 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4802 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4803 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4804 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4805 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4806 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4807 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4808 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4809 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4810 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4811 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4812 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4813 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4814 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4815 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4816 | Blackfin) TARGET_HAS_JIT=0 |
| 4817 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4818 | MBlaze) TARGET_HAS_JIT=0 |
| 4819 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4820 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4821 | ;; |
| 4822 | esac |
| 4823 | fi |
| 4824 | |
| 4825 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4826 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4827 | enableval=$enable_doxygen; |
| 4828 | else |
| 4829 | enableval=default |
| 4830 | fi |
| 4831 | |
| 4832 | case "$enableval" in |
| 4833 | yes) ENABLE_DOXYGEN=1 |
| 4834 | ;; |
| 4835 | no) ENABLE_DOXYGEN=0 |
| 4836 | ;; |
| 4837 | default) ENABLE_DOXYGEN=0 |
| 4838 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4839 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4840 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4841 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4842 | esac |
| 4843 | |
| 4844 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4845 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4846 | enableval=$enable_threads; |
| 4847 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4848 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4849 | fi |
| 4850 | |
| 4851 | case "$enableval" in |
| 4852 | yes) ENABLE_THREADS=1 |
| 4853 | ;; |
| 4854 | no) ENABLE_THREADS=0 |
| 4855 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4856 | default) ENABLE_THREADS=1 |
| 4857 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4858 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4859 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4860 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4861 | esac |
| 4862 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4863 | cat >>confdefs.h <<_ACEOF |
| 4864 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4865 | _ACEOF |
| 4866 | |
| 4867 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4868 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4869 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4870 | enableval=$enable_pic; |
| 4871 | else |
| 4872 | enableval=default |
| 4873 | fi |
| 4874 | |
| 4875 | case "$enableval" in |
| 4876 | yes) ENABLE_PIC=1 |
| 4877 | ;; |
| 4878 | no) ENABLE_PIC=0 |
| 4879 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4880 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4881 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4882 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4883 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4884 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4885 | esac |
| 4886 | |
| 4887 | cat >>confdefs.h <<_ACEOF |
| 4888 | #define ENABLE_PIC $ENABLE_PIC |
| 4889 | _ACEOF |
| 4890 | |
| 4891 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4892 | # Check whether --enable-shared was given. |
| 4893 | if test "${enable_shared+set}" = set; then |
| 4894 | enableval=$enable_shared; |
| 4895 | else |
| 4896 | enableval=default |
| 4897 | fi |
| 4898 | |
| 4899 | case "$enableval" in |
| 4900 | yes) ENABLE_SHARED=1 |
| 4901 | ;; |
| 4902 | no) ENABLE_SHARED=0 |
| 4903 | ;; |
| 4904 | default) ENABLE_SHARED=0 |
| 4905 | ;; |
| 4906 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 4907 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 4908 | { (exit 1); exit 1; }; } ;; |
| 4909 | esac |
| 4910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4911 | TARGETS_TO_BUILD="" |
| 4912 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4913 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4914 | enableval=$enable_targets; |
| 4915 | else |
| 4916 | enableval=all |
| 4917 | fi |
| 4918 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4919 | if test "$enableval" = host-only ; then |
| 4920 | enableval=host |
| 4921 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4922 | case "$enableval" in |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4923 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4924 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4925 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4926 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4927 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4928 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4929 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4930 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4931 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4932 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4933 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4934 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4935 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4936 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4937 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4938 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4939 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4940 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4941 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4942 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4943 | host) case "$llvm_cv_target_arch" in |
| 4944 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4945 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4946 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4947 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4948 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4949 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4950 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4951 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4952 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4953 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4954 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4955 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4956 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4957 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4958 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4959 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4960 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4961 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4962 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4963 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4964 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4965 | esac |
| 4966 | done |
| 4967 | ;; |
| 4968 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4969 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4970 | |
| 4971 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4972 | # Determine whether we are building LLVM support for the native architecture. |
| 4973 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4974 | for a_target in $TARGETS_TO_BUILD; do |
| 4975 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4976 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4977 | |
| 4978 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4979 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4980 | _ACEOF |
| 4981 | |
| 4982 | fi |
| 4983 | done |
| 4984 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4985 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 4986 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4987 | LLVM_ENUM_TARGETS="" |
| 4988 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4989 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4990 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4991 | for target_to_build in $TARGETS_TO_BUILD; do |
| 4992 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 4993 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 4994 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 4995 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4996 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 4997 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 4998 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4999 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5000 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5001 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5002 | done |
| 5003 | |
| 5004 | |
| 5005 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5006 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5007 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5008 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5009 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5010 | enableval=$enable_cbe_printf_a; |
| 5011 | else |
| 5012 | enableval=default |
| 5013 | fi |
| 5014 | |
| 5015 | case "$enableval" in |
| 5016 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5017 | ;; |
| 5018 | no) ENABLE_CBE_PRINTF_A=0 |
| 5019 | ;; |
| 5020 | default) ENABLE_CBE_PRINTF_A=1 |
| 5021 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5022 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5023 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5024 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5025 | esac |
| 5026 | |
| 5027 | cat >>confdefs.h <<_ACEOF |
| 5028 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5029 | _ACEOF |
| 5030 | |
| 5031 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5032 | |
| 5033 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5034 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5035 | withval=$with_llvmgccdir; |
| 5036 | else |
| 5037 | withval=default |
| 5038 | fi |
| 5039 | |
| 5040 | case "$withval" in |
| 5041 | default) WITH_LLVMGCCDIR=default ;; |
| 5042 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5043 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5044 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5045 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5046 | esac |
| 5047 | |
| 5048 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5049 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5050 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5051 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5052 | WITH_LLVMGCCDIR="" |
| 5053 | fi |
| 5054 | |
| 5055 | |
| 5056 | |
| 5057 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5058 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5059 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5060 | WITH_LLVMGCCDIR="" |
| 5061 | fi |
| 5062 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5063 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5064 | if test -n "$LLVMGCC"; then |
| 5065 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5066 | fi |
| 5067 | |
| 5068 | if test -n "$LLVMGXX"; then |
| 5069 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5070 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5071 | |
| 5072 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5073 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5074 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5075 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5076 | fi |
| 5077 | |
| 5078 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5079 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5080 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5081 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5082 | fi |
| 5083 | |
| 5084 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5085 | # Check whether --with-clang was given. |
| 5086 | if test "${with_clang+set}" = set; then |
| 5087 | withval=$with_clang; |
| 5088 | else |
| 5089 | with_clang=default |
| 5090 | fi |
| 5091 | |
| 5092 | |
| 5093 | |
| 5094 | # Check whether --with-built-clang was given. |
| 5095 | if test "${with_built_clang+set}" = set; then |
| 5096 | withval=$with_built_clang; |
| 5097 | else |
| 5098 | with_built_clang=check |
| 5099 | fi |
| 5100 | |
| 5101 | |
| 5102 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5103 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5104 | WITH_CLANGPATH="" |
| 5105 | WITH_BUILT_CLANG=0 |
| 5106 | if test "$with_clang" != "default"; then |
| 5107 | WITH_CLANGPATH="$with_clang" |
| 5108 | if ! test -x "$WITH_CLANGPATH"; then |
| 5109 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5110 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5111 | { (exit 1); exit 1; }; } |
| 5112 | fi |
| 5113 | elif test "$with_built_clang" = "yes"; then |
| 5114 | WITH_BUILT_CLANG=1 |
| 5115 | elif test "$with_built_clang" = "no"; then |
| 5116 | WITH_BUILT_CLANG=0 |
| 5117 | else |
| 5118 | if test "$with_built_clang" != "check"; then |
| 5119 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5120 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5121 | { (exit 1); exit 1; }; } |
| 5122 | fi |
| 5123 | |
| 5124 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5125 | WITH_BUILT_CLANG=1 |
| 5126 | fi |
| 5127 | fi |
| 5128 | |
| 5129 | if ! test -z "$WITH_CLANGPATH"; then |
| 5130 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5131 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5132 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5133 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5134 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5135 | echo "${ECHO_T}built" >&6; } |
| 5136 | else |
| 5137 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5138 | echo "${ECHO_T}none" >&6; } |
| 5139 | fi |
| 5140 | CLANGPATH=$WITH_CLANGPATH |
| 5141 | |
| 5142 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5143 | |
| 5144 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5145 | |
| 5146 | |
| 5147 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5148 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5149 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5150 | withval=$with_optimize_option; |
| 5151 | else |
| 5152 | withval=default |
| 5153 | fi |
| 5154 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5155 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5156 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5157 | case "$withval" in |
| 5158 | default) |
| 5159 | case "$llvm_cv_os_type" in |
| 5160 | MingW) optimize_option=-O3 ;; |
| 5161 | *) optimize_option=-O2 ;; |
| 5162 | esac ;; |
| 5163 | *) optimize_option="$withval" ;; |
| 5164 | esac |
| 5165 | OPTIMIZE_OPTION=$optimize_option |
| 5166 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5167 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5168 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5169 | |
| 5170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5171 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5172 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5173 | withval=$with_extra_options; |
| 5174 | else |
| 5175 | withval=default |
| 5176 | fi |
| 5177 | |
| 5178 | case "$withval" in |
| 5179 | default) EXTRA_OPTIONS= ;; |
| 5180 | *) EXTRA_OPTIONS=$withval ;; |
| 5181 | esac |
| 5182 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5183 | |
| 5184 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5185 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5186 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5187 | enableval=$enable_bindings; |
| 5188 | else |
| 5189 | enableval=default |
| 5190 | fi |
| 5191 | |
| 5192 | BINDINGS_TO_BUILD="" |
| 5193 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5194 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5195 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5196 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5197 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5198 | case "$a_binding" in |
| 5199 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5200 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5201 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5202 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5203 | esac |
| 5204 | done |
| 5205 | ;; |
| 5206 | esac |
| 5207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5208 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5209 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5210 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5211 | withval=$with_ocaml_libdir; |
| 5212 | else |
| 5213 | withval=auto |
| 5214 | fi |
| 5215 | |
| 5216 | case "$withval" in |
| 5217 | auto) with_ocaml_libdir="$withval" ;; |
| 5218 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5219 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5220 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5221 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5222 | esac |
| 5223 | |
| 5224 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5225 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5226 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5227 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5228 | else |
| 5229 | withval="" |
| 5230 | fi |
| 5231 | |
| 5232 | |
| 5233 | cat >>confdefs.h <<_ACEOF |
| 5234 | #define C_INCLUDE_DIRS "$withval" |
| 5235 | _ACEOF |
| 5236 | |
| 5237 | |
| 5238 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5239 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5240 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5241 | withval=$with_cxx_include_root; |
| 5242 | else |
| 5243 | withval="" |
| 5244 | fi |
| 5245 | |
| 5246 | |
| 5247 | cat >>confdefs.h <<_ACEOF |
| 5248 | #define CXX_INCLUDE_ROOT "$withval" |
| 5249 | _ACEOF |
| 5250 | |
| 5251 | |
| 5252 | |
| 5253 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5254 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5255 | withval=$with_cxx_include_arch; |
| 5256 | else |
| 5257 | withval="" |
| 5258 | fi |
| 5259 | |
| 5260 | |
| 5261 | cat >>confdefs.h <<_ACEOF |
| 5262 | #define CXX_INCLUDE_ARCH "$withval" |
| 5263 | _ACEOF |
| 5264 | |
| 5265 | |
| 5266 | |
| 5267 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5268 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5269 | withval=$with_cxx_include_32bit_dir; |
| 5270 | else |
| 5271 | withval="" |
| 5272 | fi |
| 5273 | |
| 5274 | |
| 5275 | cat >>confdefs.h <<_ACEOF |
| 5276 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5277 | _ACEOF |
| 5278 | |
| 5279 | |
| 5280 | |
| 5281 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5282 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5283 | withval=$with_cxx_include_64bit_dir; |
| 5284 | else |
| 5285 | withval="" |
| 5286 | fi |
| 5287 | |
| 5288 | |
| 5289 | cat >>confdefs.h <<_ACEOF |
| 5290 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5291 | _ACEOF |
| 5292 | |
| 5293 | |
| 5294 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5295 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5296 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5297 | withval=$with_binutils_include; |
| 5298 | else |
| 5299 | withval=default |
| 5300 | fi |
| 5301 | |
| 5302 | case "$withval" in |
| 5303 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5304 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5305 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5306 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5307 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5308 | esac |
| 5309 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5310 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5311 | |
| 5312 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5313 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5314 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5315 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5316 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5317 | fi |
| 5318 | fi |
| 5319 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5320 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5321 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5322 | enableval=$enable_libffi; case "$enableval" in |
| 5323 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5324 | no) llvm_cv_enable_libffi="no" ;; |
| 5325 | *) { { 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] | 5326 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5327 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5328 | esac |
| 5329 | else |
| 5330 | llvm_cv_enable_libffi=no |
| 5331 | fi |
| 5332 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5333 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5334 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5335 | llvmc_dynamic="yes" |
| 5336 | else |
| 5337 | llvmc_dynamic="no" |
| 5338 | fi |
| 5339 | |
| 5340 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5341 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5342 | enableval=$enable_llvmc_dynamic; |
| 5343 | else |
| 5344 | enableval=$llvmc_dynamic |
| 5345 | fi |
| 5346 | |
| 5347 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5348 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5349 | |
| 5350 | else |
| 5351 | ENABLE_LLVMC_DYNAMIC= |
| 5352 | |
| 5353 | fi |
| 5354 | |
| 5355 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5356 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5357 | enableval=$enable_llvmc_dynamic_plugins; |
| 5358 | else |
| 5359 | enableval=yes |
| 5360 | fi |
| 5361 | |
| 5362 | if test ${enableval} = "yes" ; then |
| 5363 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5364 | |
| 5365 | else |
| 5366 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5367 | |
| 5368 | fi |
| 5369 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5371 | ac_ext=c |
| 5372 | ac_cpp='$CPP $CPPFLAGS' |
| 5373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5376 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5377 | 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] | 5378 | # On Suns, sometimes $CPP names a directory. |
| 5379 | if test -n "$CPP" && test -d "$CPP"; then |
| 5380 | CPP= |
| 5381 | fi |
| 5382 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5383 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5385 | else |
| 5386 | # Double quotes because CPP needs to be expanded |
| 5387 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5388 | do |
| 5389 | ac_preproc_ok=false |
| 5390 | for ac_c_preproc_warn_flag in '' yes |
| 5391 | do |
| 5392 | # Use a header file that comes with gcc, so configuring glibc |
| 5393 | # with a fresh cross-compiler works. |
| 5394 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5395 | # <limits.h> exists even on freestanding compilers. |
| 5396 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5397 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5398 | cat >conftest.$ac_ext <<_ACEOF |
| 5399 | /* confdefs.h. */ |
| 5400 | _ACEOF |
| 5401 | cat confdefs.h >>conftest.$ac_ext |
| 5402 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5403 | /* end confdefs.h. */ |
| 5404 | #ifdef __STDC__ |
| 5405 | # include <limits.h> |
| 5406 | #else |
| 5407 | # include <assert.h> |
| 5408 | #endif |
| 5409 | Syntax error |
| 5410 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5411 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5412 | case "(($ac_try" in |
| 5413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5414 | *) ac_try_echo=$ac_try;; |
| 5415 | esac |
| 5416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5417 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5418 | ac_status=$? |
| 5419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5420 | rm -f conftest.er1 |
| 5421 | cat conftest.err >&5 |
| 5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5423 | (exit $ac_status); } >/dev/null; then |
| 5424 | if test -s conftest.err; then |
| 5425 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5426 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5427 | else |
| 5428 | ac_cpp_err= |
| 5429 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5430 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5431 | ac_cpp_err=yes |
| 5432 | fi |
| 5433 | if test -z "$ac_cpp_err"; then |
| 5434 | : |
| 5435 | else |
| 5436 | echo "$as_me: failed program was:" >&5 |
| 5437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5439 | # Broken: fails on valid input. |
| 5440 | continue |
| 5441 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5443 | rm -f conftest.err conftest.$ac_ext |
| 5444 | |
| 5445 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5446 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5447 | cat >conftest.$ac_ext <<_ACEOF |
| 5448 | /* confdefs.h. */ |
| 5449 | _ACEOF |
| 5450 | cat confdefs.h >>conftest.$ac_ext |
| 5451 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5452 | /* end confdefs.h. */ |
| 5453 | #include <ac_nonexistent.h> |
| 5454 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5455 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5456 | case "(($ac_try" in |
| 5457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5458 | *) ac_try_echo=$ac_try;; |
| 5459 | esac |
| 5460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5461 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5462 | ac_status=$? |
| 5463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5464 | rm -f conftest.er1 |
| 5465 | cat conftest.err >&5 |
| 5466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5467 | (exit $ac_status); } >/dev/null; then |
| 5468 | if test -s conftest.err; then |
| 5469 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5471 | else |
| 5472 | ac_cpp_err= |
| 5473 | fi |
| 5474 | else |
| 5475 | ac_cpp_err=yes |
| 5476 | fi |
| 5477 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5478 | # Broken: success on invalid input. |
| 5479 | continue |
| 5480 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5481 | echo "$as_me: failed program was:" >&5 |
| 5482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5483 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5484 | # Passes both tests. |
| 5485 | ac_preproc_ok=: |
| 5486 | break |
| 5487 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5489 | rm -f conftest.err conftest.$ac_ext |
| 5490 | |
| 5491 | done |
| 5492 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5493 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5494 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5495 | break |
| 5496 | fi |
| 5497 | |
| 5498 | done |
| 5499 | ac_cv_prog_CPP=$CPP |
| 5500 | |
| 5501 | fi |
| 5502 | CPP=$ac_cv_prog_CPP |
| 5503 | else |
| 5504 | ac_cv_prog_CPP=$CPP |
| 5505 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5506 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5507 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5508 | ac_preproc_ok=false |
| 5509 | for ac_c_preproc_warn_flag in '' yes |
| 5510 | do |
| 5511 | # Use a header file that comes with gcc, so configuring glibc |
| 5512 | # with a fresh cross-compiler works. |
| 5513 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5514 | # <limits.h> exists even on freestanding compilers. |
| 5515 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5516 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5517 | cat >conftest.$ac_ext <<_ACEOF |
| 5518 | /* confdefs.h. */ |
| 5519 | _ACEOF |
| 5520 | cat confdefs.h >>conftest.$ac_ext |
| 5521 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5522 | /* end confdefs.h. */ |
| 5523 | #ifdef __STDC__ |
| 5524 | # include <limits.h> |
| 5525 | #else |
| 5526 | # include <assert.h> |
| 5527 | #endif |
| 5528 | Syntax error |
| 5529 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5530 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5531 | case "(($ac_try" in |
| 5532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5533 | *) ac_try_echo=$ac_try;; |
| 5534 | esac |
| 5535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5536 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5537 | ac_status=$? |
| 5538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5539 | rm -f conftest.er1 |
| 5540 | cat conftest.err >&5 |
| 5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5542 | (exit $ac_status); } >/dev/null; then |
| 5543 | if test -s conftest.err; then |
| 5544 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5545 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5546 | else |
| 5547 | ac_cpp_err= |
| 5548 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5549 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5550 | ac_cpp_err=yes |
| 5551 | fi |
| 5552 | if test -z "$ac_cpp_err"; then |
| 5553 | : |
| 5554 | else |
| 5555 | echo "$as_me: failed program was:" >&5 |
| 5556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5558 | # Broken: fails on valid input. |
| 5559 | continue |
| 5560 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5562 | rm -f conftest.err conftest.$ac_ext |
| 5563 | |
| 5564 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5565 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5566 | cat >conftest.$ac_ext <<_ACEOF |
| 5567 | /* confdefs.h. */ |
| 5568 | _ACEOF |
| 5569 | cat confdefs.h >>conftest.$ac_ext |
| 5570 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5571 | /* end confdefs.h. */ |
| 5572 | #include <ac_nonexistent.h> |
| 5573 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5574 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5575 | case "(($ac_try" in |
| 5576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5577 | *) ac_try_echo=$ac_try;; |
| 5578 | esac |
| 5579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5580 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5581 | ac_status=$? |
| 5582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5583 | rm -f conftest.er1 |
| 5584 | cat conftest.err >&5 |
| 5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5586 | (exit $ac_status); } >/dev/null; then |
| 5587 | if test -s conftest.err; then |
| 5588 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5589 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5590 | else |
| 5591 | ac_cpp_err= |
| 5592 | fi |
| 5593 | else |
| 5594 | ac_cpp_err=yes |
| 5595 | fi |
| 5596 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5597 | # Broken: success on invalid input. |
| 5598 | continue |
| 5599 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5600 | echo "$as_me: failed program was:" >&5 |
| 5601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5603 | # Passes both tests. |
| 5604 | ac_preproc_ok=: |
| 5605 | break |
| 5606 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5608 | rm -f conftest.err conftest.$ac_ext |
| 5609 | |
| 5610 | done |
| 5611 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5612 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5613 | if $ac_preproc_ok; then |
| 5614 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5615 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5616 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5617 | See \`config.log' for more details." >&5 |
| 5618 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5619 | See \`config.log' for more details." >&2;} |
| 5620 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5621 | fi |
| 5622 | |
| 5623 | ac_ext=c |
| 5624 | ac_cpp='$CPP $CPPFLAGS' |
| 5625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5628 | |
| 5629 | ac_ext=c |
| 5630 | ac_cpp='$CPP $CPPFLAGS' |
| 5631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5634 | if test -n "$ac_tool_prefix"; then |
| 5635 | for ac_prog in gcc |
| 5636 | do |
| 5637 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5638 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5641 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5643 | else |
| 5644 | if test -n "$CC"; then |
| 5645 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5646 | else |
| 5647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5648 | for as_dir in $PATH |
| 5649 | do |
| 5650 | IFS=$as_save_IFS |
| 5651 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5653 | 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] | 5654 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5655 | 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] | 5656 | break 2 |
| 5657 | fi |
| 5658 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5659 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5660 | IFS=$as_save_IFS |
| 5661 | |
| 5662 | fi |
| 5663 | fi |
| 5664 | CC=$ac_cv_prog_CC |
| 5665 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5666 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5667 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5668 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5670 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5671 | fi |
| 5672 | |
| 5673 | |
| 5674 | test -n "$CC" && break |
| 5675 | done |
| 5676 | fi |
| 5677 | if test -z "$CC"; then |
| 5678 | ac_ct_CC=$CC |
| 5679 | for ac_prog in gcc |
| 5680 | do |
| 5681 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5682 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5683 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5685 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5687 | else |
| 5688 | if test -n "$ac_ct_CC"; then |
| 5689 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5690 | else |
| 5691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5692 | for as_dir in $PATH |
| 5693 | do |
| 5694 | IFS=$as_save_IFS |
| 5695 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5697 | 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] | 5698 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5699 | 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] | 5700 | break 2 |
| 5701 | fi |
| 5702 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5703 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5704 | IFS=$as_save_IFS |
| 5705 | |
| 5706 | fi |
| 5707 | fi |
| 5708 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5709 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5710 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5711 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5712 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5713 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5714 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5715 | fi |
| 5716 | |
| 5717 | |
| 5718 | test -n "$ac_ct_CC" && break |
| 5719 | done |
| 5720 | |
| 5721 | if test "x$ac_ct_CC" = x; then |
| 5722 | CC="" |
| 5723 | else |
| 5724 | case $cross_compiling:$ac_tool_warned in |
| 5725 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5727 | whose name does not start with the host triplet. If you think this |
| 5728 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5729 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5730 | whose name does not start with the host triplet. If you think this |
| 5731 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5732 | ac_tool_warned=yes ;; |
| 5733 | esac |
| 5734 | CC=$ac_ct_CC |
| 5735 | fi |
| 5736 | fi |
| 5737 | |
| 5738 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5739 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5740 | See \`config.log' for more details." >&5 |
| 5741 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5742 | See \`config.log' for more details." >&2;} |
| 5743 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5744 | |
| 5745 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5746 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5747 | ac_compiler=`set X $ac_compile; echo $2` |
| 5748 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5749 | case "(($ac_try" in |
| 5750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5751 | *) ac_try_echo=$ac_try;; |
| 5752 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5754 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5755 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5757 | (exit $ac_status); } |
| 5758 | { (ac_try="$ac_compiler -v >&5" |
| 5759 | case "(($ac_try" in |
| 5760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5761 | *) ac_try_echo=$ac_try;; |
| 5762 | esac |
| 5763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5764 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5765 | ac_status=$? |
| 5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5767 | (exit $ac_status); } |
| 5768 | { (ac_try="$ac_compiler -V >&5" |
| 5769 | case "(($ac_try" in |
| 5770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5771 | *) ac_try_echo=$ac_try;; |
| 5772 | esac |
| 5773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5774 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5775 | ac_status=$? |
| 5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5777 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5778 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5779 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5780 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5781 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5783 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5784 | cat >conftest.$ac_ext <<_ACEOF |
| 5785 | /* confdefs.h. */ |
| 5786 | _ACEOF |
| 5787 | cat confdefs.h >>conftest.$ac_ext |
| 5788 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5789 | /* end confdefs.h. */ |
| 5790 | |
| 5791 | int |
| 5792 | main () |
| 5793 | { |
| 5794 | #ifndef __GNUC__ |
| 5795 | choke me |
| 5796 | #endif |
| 5797 | |
| 5798 | ; |
| 5799 | return 0; |
| 5800 | } |
| 5801 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5802 | rm -f conftest.$ac_objext |
| 5803 | if { (ac_try="$ac_compile" |
| 5804 | case "(($ac_try" in |
| 5805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5806 | *) ac_try_echo=$ac_try;; |
| 5807 | esac |
| 5808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5809 | (eval "$ac_compile") 2>conftest.er1 |
| 5810 | ac_status=$? |
| 5811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5812 | rm -f conftest.er1 |
| 5813 | cat conftest.err >&5 |
| 5814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5815 | (exit $ac_status); } && |
| 5816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 5823 | ac_status=$? |
| 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5825 | (exit $ac_status); }; } && |
| 5826 | { ac_try='test -s conftest.$ac_objext' |
| 5827 | { (case "(($ac_try" in |
| 5828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5829 | *) ac_try_echo=$ac_try;; |
| 5830 | esac |
| 5831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5832 | (eval "$ac_try") 2>&5 |
| 5833 | ac_status=$? |
| 5834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5835 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5836 | ac_compiler_gnu=yes |
| 5837 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5838 | echo "$as_me: failed program was:" >&5 |
| 5839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5840 | |
| 5841 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5842 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5845 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5846 | |
| 5847 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5848 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5849 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5850 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5851 | ac_test_CFLAGS=${CFLAGS+set} |
| 5852 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5853 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5854 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5855 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5857 | else |
| 5858 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5859 | ac_c_werror_flag=yes |
| 5860 | ac_cv_prog_cc_g=no |
| 5861 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5862 | cat >conftest.$ac_ext <<_ACEOF |
| 5863 | /* confdefs.h. */ |
| 5864 | _ACEOF |
| 5865 | cat confdefs.h >>conftest.$ac_ext |
| 5866 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5867 | /* end confdefs.h. */ |
| 5868 | |
| 5869 | int |
| 5870 | main () |
| 5871 | { |
| 5872 | |
| 5873 | ; |
| 5874 | return 0; |
| 5875 | } |
| 5876 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5877 | rm -f conftest.$ac_objext |
| 5878 | if { (ac_try="$ac_compile" |
| 5879 | case "(($ac_try" in |
| 5880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5881 | *) ac_try_echo=$ac_try;; |
| 5882 | esac |
| 5883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5884 | (eval "$ac_compile") 2>conftest.er1 |
| 5885 | ac_status=$? |
| 5886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5887 | rm -f conftest.er1 |
| 5888 | cat conftest.err >&5 |
| 5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5890 | (exit $ac_status); } && |
| 5891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5892 | { (case "(($ac_try" in |
| 5893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5894 | *) ac_try_echo=$ac_try;; |
| 5895 | esac |
| 5896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5897 | (eval "$ac_try") 2>&5 |
| 5898 | ac_status=$? |
| 5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5900 | (exit $ac_status); }; } && |
| 5901 | { ac_try='test -s conftest.$ac_objext' |
| 5902 | { (case "(($ac_try" in |
| 5903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5904 | *) ac_try_echo=$ac_try;; |
| 5905 | esac |
| 5906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5907 | (eval "$ac_try") 2>&5 |
| 5908 | ac_status=$? |
| 5909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5910 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5911 | ac_cv_prog_cc_g=yes |
| 5912 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5913 | echo "$as_me: failed program was:" >&5 |
| 5914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5915 | |
| 5916 | CFLAGS="" |
| 5917 | cat >conftest.$ac_ext <<_ACEOF |
| 5918 | /* confdefs.h. */ |
| 5919 | _ACEOF |
| 5920 | cat confdefs.h >>conftest.$ac_ext |
| 5921 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5922 | /* end confdefs.h. */ |
| 5923 | |
| 5924 | int |
| 5925 | main () |
| 5926 | { |
| 5927 | |
| 5928 | ; |
| 5929 | return 0; |
| 5930 | } |
| 5931 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5932 | rm -f conftest.$ac_objext |
| 5933 | if { (ac_try="$ac_compile" |
| 5934 | case "(($ac_try" in |
| 5935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5936 | *) ac_try_echo=$ac_try;; |
| 5937 | esac |
| 5938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5939 | (eval "$ac_compile") 2>conftest.er1 |
| 5940 | ac_status=$? |
| 5941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5942 | rm -f conftest.er1 |
| 5943 | cat conftest.err >&5 |
| 5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5945 | (exit $ac_status); } && |
| 5946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5947 | { (case "(($ac_try" in |
| 5948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5949 | *) ac_try_echo=$ac_try;; |
| 5950 | esac |
| 5951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5952 | (eval "$ac_try") 2>&5 |
| 5953 | ac_status=$? |
| 5954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5955 | (exit $ac_status); }; } && |
| 5956 | { ac_try='test -s conftest.$ac_objext' |
| 5957 | { (case "(($ac_try" in |
| 5958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5959 | *) ac_try_echo=$ac_try;; |
| 5960 | esac |
| 5961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5962 | (eval "$ac_try") 2>&5 |
| 5963 | ac_status=$? |
| 5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5965 | (exit $ac_status); }; }; then |
| 5966 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5967 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5968 | echo "$as_me: failed program was:" >&5 |
| 5969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5970 | |
| 5971 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5972 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5973 | cat >conftest.$ac_ext <<_ACEOF |
| 5974 | /* confdefs.h. */ |
| 5975 | _ACEOF |
| 5976 | cat confdefs.h >>conftest.$ac_ext |
| 5977 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5978 | /* end confdefs.h. */ |
| 5979 | |
| 5980 | int |
| 5981 | main () |
| 5982 | { |
| 5983 | |
| 5984 | ; |
| 5985 | return 0; |
| 5986 | } |
| 5987 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5988 | rm -f conftest.$ac_objext |
| 5989 | if { (ac_try="$ac_compile" |
| 5990 | case "(($ac_try" in |
| 5991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5992 | *) ac_try_echo=$ac_try;; |
| 5993 | esac |
| 5994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5995 | (eval "$ac_compile") 2>conftest.er1 |
| 5996 | ac_status=$? |
| 5997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5998 | rm -f conftest.er1 |
| 5999 | cat conftest.err >&5 |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); } && |
| 6002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6003 | { (case "(($ac_try" in |
| 6004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6005 | *) ac_try_echo=$ac_try;; |
| 6006 | esac |
| 6007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6008 | (eval "$ac_try") 2>&5 |
| 6009 | ac_status=$? |
| 6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6011 | (exit $ac_status); }; } && |
| 6012 | { ac_try='test -s conftest.$ac_objext' |
| 6013 | { (case "(($ac_try" in |
| 6014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6015 | *) ac_try_echo=$ac_try;; |
| 6016 | esac |
| 6017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6018 | (eval "$ac_try") 2>&5 |
| 6019 | ac_status=$? |
| 6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6021 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6022 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6023 | else |
| 6024 | echo "$as_me: failed program was:" >&5 |
| 6025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6026 | |
| 6027 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6028 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6031 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6032 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6034 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6037 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6039 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6040 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6041 | if test "$ac_test_CFLAGS" = set; then |
| 6042 | CFLAGS=$ac_save_CFLAGS |
| 6043 | elif test $ac_cv_prog_cc_g = yes; then |
| 6044 | if test "$GCC" = yes; then |
| 6045 | CFLAGS="-g -O2" |
| 6046 | else |
| 6047 | CFLAGS="-g" |
| 6048 | fi |
| 6049 | else |
| 6050 | if test "$GCC" = yes; then |
| 6051 | CFLAGS="-O2" |
| 6052 | else |
| 6053 | CFLAGS= |
| 6054 | fi |
| 6055 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6056 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6057 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6058 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6060 | else |
| 6061 | ac_cv_prog_cc_c89=no |
| 6062 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6063 | cat >conftest.$ac_ext <<_ACEOF |
| 6064 | /* confdefs.h. */ |
| 6065 | _ACEOF |
| 6066 | cat confdefs.h >>conftest.$ac_ext |
| 6067 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6068 | /* end confdefs.h. */ |
| 6069 | #include <stdarg.h> |
| 6070 | #include <stdio.h> |
| 6071 | #include <sys/types.h> |
| 6072 | #include <sys/stat.h> |
| 6073 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6074 | struct buf { int x; }; |
| 6075 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6076 | static char *e (p, i) |
| 6077 | char **p; |
| 6078 | int i; |
| 6079 | { |
| 6080 | return p[i]; |
| 6081 | } |
| 6082 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6083 | { |
| 6084 | char *s; |
| 6085 | va_list v; |
| 6086 | va_start (v,p); |
| 6087 | s = g (p, va_arg (v,int)); |
| 6088 | va_end (v); |
| 6089 | return s; |
| 6090 | } |
| 6091 | |
| 6092 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6093 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6094 | These don't provoke an error unfortunately, instead are silently treated |
| 6095 | as 'x'. The following induces an error, until -std is added to get |
| 6096 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6097 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6098 | that's true only with -std. */ |
| 6099 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6100 | |
| 6101 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6102 | inside strings and character constants. */ |
| 6103 | #define FOO(x) 'x' |
| 6104 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6105 | |
| 6106 | int test (int i, double x); |
| 6107 | struct s1 {int (*f) (int a);}; |
| 6108 | struct s2 {int (*f) (double a);}; |
| 6109 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6110 | int argc; |
| 6111 | char **argv; |
| 6112 | int |
| 6113 | main () |
| 6114 | { |
| 6115 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6116 | ; |
| 6117 | return 0; |
| 6118 | } |
| 6119 | _ACEOF |
| 6120 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6121 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6122 | do |
| 6123 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6124 | rm -f conftest.$ac_objext |
| 6125 | if { (ac_try="$ac_compile" |
| 6126 | case "(($ac_try" in |
| 6127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6128 | *) ac_try_echo=$ac_try;; |
| 6129 | esac |
| 6130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6131 | (eval "$ac_compile") 2>conftest.er1 |
| 6132 | ac_status=$? |
| 6133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6134 | rm -f conftest.er1 |
| 6135 | cat conftest.err >&5 |
| 6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6137 | (exit $ac_status); } && |
| 6138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6139 | { (case "(($ac_try" in |
| 6140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6141 | *) ac_try_echo=$ac_try;; |
| 6142 | esac |
| 6143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6144 | (eval "$ac_try") 2>&5 |
| 6145 | ac_status=$? |
| 6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6147 | (exit $ac_status); }; } && |
| 6148 | { ac_try='test -s conftest.$ac_objext' |
| 6149 | { (case "(($ac_try" in |
| 6150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6151 | *) ac_try_echo=$ac_try;; |
| 6152 | esac |
| 6153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6154 | (eval "$ac_try") 2>&5 |
| 6155 | ac_status=$? |
| 6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6157 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6158 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6159 | else |
| 6160 | echo "$as_me: failed program was:" >&5 |
| 6161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6162 | |
| 6163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6164 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6166 | rm -f core conftest.err conftest.$ac_objext |
| 6167 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6168 | done |
| 6169 | rm -f conftest.$ac_ext |
| 6170 | CC=$ac_save_CC |
| 6171 | |
| 6172 | fi |
| 6173 | # AC_CACHE_VAL |
| 6174 | case "x$ac_cv_prog_cc_c89" in |
| 6175 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6176 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6177 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6178 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6179 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6180 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6181 | *) |
| 6182 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6183 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6184 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6185 | esac |
| 6186 | |
| 6187 | |
| 6188 | ac_ext=c |
| 6189 | ac_cpp='$CPP $CPPFLAGS' |
| 6190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6193 | |
| 6194 | ac_ext=cpp |
| 6195 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6196 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6197 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6198 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6199 | if test -z "$CXX"; then |
| 6200 | if test -n "$CCC"; then |
| 6201 | CXX=$CCC |
| 6202 | else |
| 6203 | if test -n "$ac_tool_prefix"; then |
| 6204 | for ac_prog in g++ |
| 6205 | do |
| 6206 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6207 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6208 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6210 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6212 | else |
| 6213 | if test -n "$CXX"; then |
| 6214 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6215 | else |
| 6216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6217 | for as_dir in $PATH |
| 6218 | do |
| 6219 | IFS=$as_save_IFS |
| 6220 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6221 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6222 | 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] | 6223 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6224 | 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] | 6225 | break 2 |
| 6226 | fi |
| 6227 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6228 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6229 | IFS=$as_save_IFS |
| 6230 | |
| 6231 | fi |
| 6232 | fi |
| 6233 | CXX=$ac_cv_prog_CXX |
| 6234 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6235 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6236 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6237 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6238 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6239 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6240 | fi |
| 6241 | |
| 6242 | |
| 6243 | test -n "$CXX" && break |
| 6244 | done |
| 6245 | fi |
| 6246 | if test -z "$CXX"; then |
| 6247 | ac_ct_CXX=$CXX |
| 6248 | for ac_prog in g++ |
| 6249 | do |
| 6250 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6251 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6252 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6254 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6256 | else |
| 6257 | if test -n "$ac_ct_CXX"; then |
| 6258 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6259 | else |
| 6260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6261 | for as_dir in $PATH |
| 6262 | do |
| 6263 | IFS=$as_save_IFS |
| 6264 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6265 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6266 | 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] | 6267 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6268 | 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] | 6269 | break 2 |
| 6270 | fi |
| 6271 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6272 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6273 | IFS=$as_save_IFS |
| 6274 | |
| 6275 | fi |
| 6276 | fi |
| 6277 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6278 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6279 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6280 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6281 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6282 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6283 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6284 | fi |
| 6285 | |
| 6286 | |
| 6287 | test -n "$ac_ct_CXX" && break |
| 6288 | done |
| 6289 | |
| 6290 | if test "x$ac_ct_CXX" = x; then |
| 6291 | CXX="g++" |
| 6292 | else |
| 6293 | case $cross_compiling:$ac_tool_warned in |
| 6294 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6295 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6296 | whose name does not start with the host triplet. If you think this |
| 6297 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6298 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6299 | whose name does not start with the host triplet. If you think this |
| 6300 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6301 | ac_tool_warned=yes ;; |
| 6302 | esac |
| 6303 | CXX=$ac_ct_CXX |
| 6304 | fi |
| 6305 | fi |
| 6306 | |
| 6307 | fi |
| 6308 | fi |
| 6309 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6310 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6311 | ac_compiler=`set X $ac_compile; echo $2` |
| 6312 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6313 | case "(($ac_try" in |
| 6314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6315 | *) ac_try_echo=$ac_try;; |
| 6316 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6318 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6319 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6321 | (exit $ac_status); } |
| 6322 | { (ac_try="$ac_compiler -v >&5" |
| 6323 | case "(($ac_try" in |
| 6324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6325 | *) ac_try_echo=$ac_try;; |
| 6326 | esac |
| 6327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6328 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6329 | ac_status=$? |
| 6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6331 | (exit $ac_status); } |
| 6332 | { (ac_try="$ac_compiler -V >&5" |
| 6333 | case "(($ac_try" in |
| 6334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6335 | *) ac_try_echo=$ac_try;; |
| 6336 | esac |
| 6337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6338 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6339 | ac_status=$? |
| 6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6341 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6342 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6343 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6344 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6345 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6347 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6348 | cat >conftest.$ac_ext <<_ACEOF |
| 6349 | /* confdefs.h. */ |
| 6350 | _ACEOF |
| 6351 | cat confdefs.h >>conftest.$ac_ext |
| 6352 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6353 | /* end confdefs.h. */ |
| 6354 | |
| 6355 | int |
| 6356 | main () |
| 6357 | { |
| 6358 | #ifndef __GNUC__ |
| 6359 | choke me |
| 6360 | #endif |
| 6361 | |
| 6362 | ; |
| 6363 | return 0; |
| 6364 | } |
| 6365 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6366 | rm -f conftest.$ac_objext |
| 6367 | if { (ac_try="$ac_compile" |
| 6368 | case "(($ac_try" in |
| 6369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6370 | *) ac_try_echo=$ac_try;; |
| 6371 | esac |
| 6372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6373 | (eval "$ac_compile") 2>conftest.er1 |
| 6374 | ac_status=$? |
| 6375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6376 | rm -f conftest.er1 |
| 6377 | cat conftest.err >&5 |
| 6378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6379 | (exit $ac_status); } && |
| 6380 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 6387 | ac_status=$? |
| 6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6389 | (exit $ac_status); }; } && |
| 6390 | { ac_try='test -s conftest.$ac_objext' |
| 6391 | { (case "(($ac_try" in |
| 6392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6393 | *) ac_try_echo=$ac_try;; |
| 6394 | esac |
| 6395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6396 | (eval "$ac_try") 2>&5 |
| 6397 | ac_status=$? |
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6399 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6400 | ac_compiler_gnu=yes |
| 6401 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6402 | echo "$as_me: failed program was:" >&5 |
| 6403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6404 | |
| 6405 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6406 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6409 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6410 | |
| 6411 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6412 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6413 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6414 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6415 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6416 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6417 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6418 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6419 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6421 | else |
| 6422 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6423 | ac_cxx_werror_flag=yes |
| 6424 | ac_cv_prog_cxx_g=no |
| 6425 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6426 | cat >conftest.$ac_ext <<_ACEOF |
| 6427 | /* confdefs.h. */ |
| 6428 | _ACEOF |
| 6429 | cat confdefs.h >>conftest.$ac_ext |
| 6430 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6431 | /* end confdefs.h. */ |
| 6432 | |
| 6433 | int |
| 6434 | main () |
| 6435 | { |
| 6436 | |
| 6437 | ; |
| 6438 | return 0; |
| 6439 | } |
| 6440 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6441 | rm -f conftest.$ac_objext |
| 6442 | if { (ac_try="$ac_compile" |
| 6443 | case "(($ac_try" in |
| 6444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6445 | *) ac_try_echo=$ac_try;; |
| 6446 | esac |
| 6447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6448 | (eval "$ac_compile") 2>conftest.er1 |
| 6449 | ac_status=$? |
| 6450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6451 | rm -f conftest.er1 |
| 6452 | cat conftest.err >&5 |
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6454 | (exit $ac_status); } && |
| 6455 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6456 | { (case "(($ac_try" in |
| 6457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6458 | *) ac_try_echo=$ac_try;; |
| 6459 | esac |
| 6460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6461 | (eval "$ac_try") 2>&5 |
| 6462 | ac_status=$? |
| 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6464 | (exit $ac_status); }; } && |
| 6465 | { ac_try='test -s conftest.$ac_objext' |
| 6466 | { (case "(($ac_try" in |
| 6467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6468 | *) ac_try_echo=$ac_try;; |
| 6469 | esac |
| 6470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6471 | (eval "$ac_try") 2>&5 |
| 6472 | ac_status=$? |
| 6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6474 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6475 | ac_cv_prog_cxx_g=yes |
| 6476 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6477 | echo "$as_me: failed program was:" >&5 |
| 6478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6479 | |
| 6480 | CXXFLAGS="" |
| 6481 | cat >conftest.$ac_ext <<_ACEOF |
| 6482 | /* confdefs.h. */ |
| 6483 | _ACEOF |
| 6484 | cat confdefs.h >>conftest.$ac_ext |
| 6485 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6486 | /* end confdefs.h. */ |
| 6487 | |
| 6488 | int |
| 6489 | main () |
| 6490 | { |
| 6491 | |
| 6492 | ; |
| 6493 | return 0; |
| 6494 | } |
| 6495 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6496 | rm -f conftest.$ac_objext |
| 6497 | if { (ac_try="$ac_compile" |
| 6498 | case "(($ac_try" in |
| 6499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6500 | *) ac_try_echo=$ac_try;; |
| 6501 | esac |
| 6502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6503 | (eval "$ac_compile") 2>conftest.er1 |
| 6504 | ac_status=$? |
| 6505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6506 | rm -f conftest.er1 |
| 6507 | cat conftest.err >&5 |
| 6508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6509 | (exit $ac_status); } && |
| 6510 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6511 | { (case "(($ac_try" in |
| 6512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6513 | *) ac_try_echo=$ac_try;; |
| 6514 | esac |
| 6515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6516 | (eval "$ac_try") 2>&5 |
| 6517 | ac_status=$? |
| 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6519 | (exit $ac_status); }; } && |
| 6520 | { ac_try='test -s conftest.$ac_objext' |
| 6521 | { (case "(($ac_try" in |
| 6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6523 | *) ac_try_echo=$ac_try;; |
| 6524 | esac |
| 6525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6526 | (eval "$ac_try") 2>&5 |
| 6527 | ac_status=$? |
| 6528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6529 | (exit $ac_status); }; }; then |
| 6530 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6531 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6532 | echo "$as_me: failed program was:" >&5 |
| 6533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6534 | |
| 6535 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6536 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6537 | cat >conftest.$ac_ext <<_ACEOF |
| 6538 | /* confdefs.h. */ |
| 6539 | _ACEOF |
| 6540 | cat confdefs.h >>conftest.$ac_ext |
| 6541 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6542 | /* end confdefs.h. */ |
| 6543 | |
| 6544 | int |
| 6545 | main () |
| 6546 | { |
| 6547 | |
| 6548 | ; |
| 6549 | return 0; |
| 6550 | } |
| 6551 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6552 | rm -f conftest.$ac_objext |
| 6553 | if { (ac_try="$ac_compile" |
| 6554 | case "(($ac_try" in |
| 6555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6556 | *) ac_try_echo=$ac_try;; |
| 6557 | esac |
| 6558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6559 | (eval "$ac_compile") 2>conftest.er1 |
| 6560 | ac_status=$? |
| 6561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6562 | rm -f conftest.er1 |
| 6563 | cat conftest.err >&5 |
| 6564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6565 | (exit $ac_status); } && |
| 6566 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6567 | { (case "(($ac_try" in |
| 6568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6569 | *) ac_try_echo=$ac_try;; |
| 6570 | esac |
| 6571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6572 | (eval "$ac_try") 2>&5 |
| 6573 | ac_status=$? |
| 6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6575 | (exit $ac_status); }; } && |
| 6576 | { ac_try='test -s conftest.$ac_objext' |
| 6577 | { (case "(($ac_try" in |
| 6578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6579 | *) ac_try_echo=$ac_try;; |
| 6580 | esac |
| 6581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6582 | (eval "$ac_try") 2>&5 |
| 6583 | ac_status=$? |
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6585 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6586 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6587 | else |
| 6588 | echo "$as_me: failed program was:" >&5 |
| 6589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6590 | |
| 6591 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6592 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6593 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6595 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6598 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6601 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6602 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6603 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6604 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6605 | if test "$ac_test_CXXFLAGS" = set; then |
| 6606 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6607 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6608 | if test "$GXX" = yes; then |
| 6609 | CXXFLAGS="-g -O2" |
| 6610 | else |
| 6611 | CXXFLAGS="-g" |
| 6612 | fi |
| 6613 | else |
| 6614 | if test "$GXX" = yes; then |
| 6615 | CXXFLAGS="-O2" |
| 6616 | else |
| 6617 | CXXFLAGS= |
| 6618 | fi |
| 6619 | fi |
| 6620 | ac_ext=c |
| 6621 | ac_cpp='$CPP $CPPFLAGS' |
| 6622 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6623 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6624 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6626 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6627 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6628 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6629 | if test "${lt_cv_path_NM+set}" = set; then |
| 6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6631 | else |
| 6632 | if test -n "$NM"; then |
| 6633 | # Let the user override the test. |
| 6634 | lt_cv_path_NM="$NM" |
| 6635 | else |
| 6636 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6637 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6638 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6639 | fi |
| 6640 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6641 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6642 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6643 | IFS="$lt_save_ifs" |
| 6644 | test -z "$ac_dir" && ac_dir=. |
| 6645 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6646 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6647 | # Check to see if the nm accepts a BSD-compat flag. |
| 6648 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6649 | # nm: unknown option "B" ignored |
| 6650 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6651 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6652 | */dev/null* | *'Invalid file or object type'*) |
| 6653 | lt_cv_path_NM="$tmp_nm -B" |
| 6654 | break |
| 6655 | ;; |
| 6656 | *) |
| 6657 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6658 | */dev/null*) |
| 6659 | lt_cv_path_NM="$tmp_nm -p" |
| 6660 | break |
| 6661 | ;; |
| 6662 | *) |
| 6663 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6664 | continue # so that we can try to find one that supports BSD flags |
| 6665 | ;; |
| 6666 | esac |
| 6667 | ;; |
| 6668 | esac |
| 6669 | fi |
| 6670 | done |
| 6671 | IFS="$lt_save_ifs" |
| 6672 | done |
| 6673 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6674 | fi |
| 6675 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6676 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6677 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6678 | NM="$lt_cv_path_NM" |
| 6679 | |
| 6680 | |
| 6681 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6682 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6683 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6684 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6686 | else |
| 6687 | llvm_cv_gnu_make_command='' |
| 6688 | for a in "$MAKE" make gmake gnumake ; do |
| 6689 | if test -z "$a" ; then continue ; fi ; |
| 6690 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6691 | then |
| 6692 | llvm_cv_gnu_make_command=$a ; |
| 6693 | break; |
| 6694 | fi |
| 6695 | done |
| 6696 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6697 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6698 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6699 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6700 | ifGNUmake='' ; |
| 6701 | else |
| 6702 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6703 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6704 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6705 | fi |
| 6706 | |
| 6707 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6708 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6709 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6710 | LN_S=$as_ln_s |
| 6711 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6712 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6713 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6714 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6715 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6716 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6717 | fi |
| 6718 | |
| 6719 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6720 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6721 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6723 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6725 | else |
| 6726 | case $CMP in |
| 6727 | [\\/]* | ?:[\\/]*) |
| 6728 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6729 | ;; |
| 6730 | *) |
| 6731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6732 | for as_dir in $PATH |
| 6733 | do |
| 6734 | IFS=$as_save_IFS |
| 6735 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6737 | 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] | 6738 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6739 | 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] | 6740 | break 2 |
| 6741 | fi |
| 6742 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6743 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6744 | IFS=$as_save_IFS |
| 6745 | |
| 6746 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6747 | ;; |
| 6748 | esac |
| 6749 | fi |
| 6750 | CMP=$ac_cv_path_CMP |
| 6751 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6752 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6753 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6754 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6755 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6756 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6757 | fi |
| 6758 | |
| 6759 | |
| 6760 | # Extract the first word of "cp", so it can be a program name with args. |
| 6761 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6762 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6764 | if test "${ac_cv_path_CP+set}" = set; then |
| 6765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6766 | else |
| 6767 | case $CP in |
| 6768 | [\\/]* | ?:[\\/]*) |
| 6769 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6770 | ;; |
| 6771 | *) |
| 6772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6773 | for as_dir in $PATH |
| 6774 | do |
| 6775 | IFS=$as_save_IFS |
| 6776 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6778 | 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] | 6779 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6780 | 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] | 6781 | break 2 |
| 6782 | fi |
| 6783 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6784 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6785 | IFS=$as_save_IFS |
| 6786 | |
| 6787 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6788 | ;; |
| 6789 | esac |
| 6790 | fi |
| 6791 | CP=$ac_cv_path_CP |
| 6792 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6793 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6794 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6795 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6796 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6797 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6798 | fi |
| 6799 | |
| 6800 | |
| 6801 | # Extract the first word of "date", so it can be a program name with args. |
| 6802 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6803 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6805 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6807 | else |
| 6808 | case $DATE in |
| 6809 | [\\/]* | ?:[\\/]*) |
| 6810 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6811 | ;; |
| 6812 | *) |
| 6813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6814 | for as_dir in $PATH |
| 6815 | do |
| 6816 | IFS=$as_save_IFS |
| 6817 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6819 | 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] | 6820 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6821 | 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] | 6822 | break 2 |
| 6823 | fi |
| 6824 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6825 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6826 | IFS=$as_save_IFS |
| 6827 | |
| 6828 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6829 | ;; |
| 6830 | esac |
| 6831 | fi |
| 6832 | DATE=$ac_cv_path_DATE |
| 6833 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6834 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6835 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6836 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6837 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6838 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6839 | fi |
| 6840 | |
| 6841 | |
| 6842 | # Extract the first word of "find", so it can be a program name with args. |
| 6843 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6844 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6846 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6848 | else |
| 6849 | case $FIND in |
| 6850 | [\\/]* | ?:[\\/]*) |
| 6851 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6852 | ;; |
| 6853 | *) |
| 6854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6855 | for as_dir in $PATH |
| 6856 | do |
| 6857 | IFS=$as_save_IFS |
| 6858 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6860 | 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] | 6861 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6862 | 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] | 6863 | break 2 |
| 6864 | fi |
| 6865 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6866 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6867 | IFS=$as_save_IFS |
| 6868 | |
| 6869 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6870 | ;; |
| 6871 | esac |
| 6872 | fi |
| 6873 | FIND=$ac_cv_path_FIND |
| 6874 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6875 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6876 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6877 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6878 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6879 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6880 | fi |
| 6881 | |
| 6882 | |
| 6883 | # Extract the first word of "grep", so it can be a program name with args. |
| 6884 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6885 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6887 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6889 | else |
| 6890 | case $GREP in |
| 6891 | [\\/]* | ?:[\\/]*) |
| 6892 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6893 | ;; |
| 6894 | *) |
| 6895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6896 | for as_dir in $PATH |
| 6897 | do |
| 6898 | IFS=$as_save_IFS |
| 6899 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6901 | 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] | 6902 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6903 | 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] | 6904 | break 2 |
| 6905 | fi |
| 6906 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6907 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6908 | IFS=$as_save_IFS |
| 6909 | |
| 6910 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6911 | ;; |
| 6912 | esac |
| 6913 | fi |
| 6914 | GREP=$ac_cv_path_GREP |
| 6915 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6916 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6917 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6918 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6919 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6920 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6921 | fi |
| 6922 | |
| 6923 | |
| 6924 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6925 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6926 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6928 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6930 | else |
| 6931 | case $MKDIR in |
| 6932 | [\\/]* | ?:[\\/]*) |
| 6933 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6934 | ;; |
| 6935 | *) |
| 6936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6937 | for as_dir in $PATH |
| 6938 | do |
| 6939 | IFS=$as_save_IFS |
| 6940 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6942 | 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] | 6943 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6944 | 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] | 6945 | break 2 |
| 6946 | fi |
| 6947 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6948 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6949 | IFS=$as_save_IFS |
| 6950 | |
| 6951 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6952 | ;; |
| 6953 | esac |
| 6954 | fi |
| 6955 | MKDIR=$ac_cv_path_MKDIR |
| 6956 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6957 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6958 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6959 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6960 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6961 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6962 | fi |
| 6963 | |
| 6964 | |
| 6965 | # Extract the first word of "mv", so it can be a program name with args. |
| 6966 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6967 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6969 | if test "${ac_cv_path_MV+set}" = set; then |
| 6970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6971 | else |
| 6972 | case $MV in |
| 6973 | [\\/]* | ?:[\\/]*) |
| 6974 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6975 | ;; |
| 6976 | *) |
| 6977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6978 | for as_dir in $PATH |
| 6979 | do |
| 6980 | IFS=$as_save_IFS |
| 6981 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6983 | 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] | 6984 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6985 | 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] | 6986 | break 2 |
| 6987 | fi |
| 6988 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6989 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6990 | IFS=$as_save_IFS |
| 6991 | |
| 6992 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6993 | ;; |
| 6994 | esac |
| 6995 | fi |
| 6996 | MV=$ac_cv_path_MV |
| 6997 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6998 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6999 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7000 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7001 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7002 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7003 | fi |
| 7004 | |
| 7005 | |
| 7006 | if test -n "$ac_tool_prefix"; then |
| 7007 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7008 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7009 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7010 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7011 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7013 | else |
| 7014 | if test -n "$RANLIB"; then |
| 7015 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7016 | else |
| 7017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7018 | for as_dir in $PATH |
| 7019 | do |
| 7020 | IFS=$as_save_IFS |
| 7021 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7022 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7023 | 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] | 7024 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7025 | 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] | 7026 | break 2 |
| 7027 | fi |
| 7028 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7029 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7030 | IFS=$as_save_IFS |
| 7031 | |
| 7032 | fi |
| 7033 | fi |
| 7034 | RANLIB=$ac_cv_prog_RANLIB |
| 7035 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7036 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7037 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7038 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7039 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7040 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7041 | fi |
| 7042 | |
| 7043 | |
| 7044 | fi |
| 7045 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7046 | ac_ct_RANLIB=$RANLIB |
| 7047 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7048 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7049 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7051 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7053 | else |
| 7054 | if test -n "$ac_ct_RANLIB"; then |
| 7055 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7056 | else |
| 7057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7058 | for as_dir in $PATH |
| 7059 | do |
| 7060 | IFS=$as_save_IFS |
| 7061 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7063 | 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] | 7064 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7065 | 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] | 7066 | break 2 |
| 7067 | fi |
| 7068 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7069 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7070 | IFS=$as_save_IFS |
| 7071 | |
| 7072 | fi |
| 7073 | fi |
| 7074 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7075 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7076 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7077 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7078 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7079 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7080 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7081 | fi |
| 7082 | |
| 7083 | if test "x$ac_ct_RANLIB" = x; then |
| 7084 | RANLIB=":" |
| 7085 | else |
| 7086 | case $cross_compiling:$ac_tool_warned in |
| 7087 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7088 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7089 | whose name does not start with the host triplet. If you think this |
| 7090 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7091 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7092 | whose name does not start with the host triplet. If you think this |
| 7093 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7094 | ac_tool_warned=yes ;; |
| 7095 | esac |
| 7096 | RANLIB=$ac_ct_RANLIB |
| 7097 | fi |
| 7098 | else |
| 7099 | RANLIB="$ac_cv_prog_RANLIB" |
| 7100 | fi |
| 7101 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7102 | if test -n "$ac_tool_prefix"; then |
| 7103 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7104 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7107 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7109 | else |
| 7110 | if test -n "$AR"; then |
| 7111 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7112 | else |
| 7113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7114 | for as_dir in $PATH |
| 7115 | do |
| 7116 | IFS=$as_save_IFS |
| 7117 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7118 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7119 | 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] | 7120 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7121 | 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] | 7122 | break 2 |
| 7123 | fi |
| 7124 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7125 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7126 | IFS=$as_save_IFS |
| 7127 | |
| 7128 | fi |
| 7129 | fi |
| 7130 | AR=$ac_cv_prog_AR |
| 7131 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7132 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7133 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7134 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7135 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7136 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7137 | fi |
| 7138 | |
| 7139 | |
| 7140 | fi |
| 7141 | if test -z "$ac_cv_prog_AR"; then |
| 7142 | ac_ct_AR=$AR |
| 7143 | # Extract the first word of "ar", so it can be a program name with args. |
| 7144 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7145 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7147 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7149 | else |
| 7150 | if test -n "$ac_ct_AR"; then |
| 7151 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7152 | else |
| 7153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7154 | for as_dir in $PATH |
| 7155 | do |
| 7156 | IFS=$as_save_IFS |
| 7157 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7158 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7159 | 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] | 7160 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7161 | 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] | 7162 | break 2 |
| 7163 | fi |
| 7164 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7165 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7166 | IFS=$as_save_IFS |
| 7167 | |
| 7168 | fi |
| 7169 | fi |
| 7170 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7171 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7172 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7173 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7174 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7175 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7176 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7177 | fi |
| 7178 | |
| 7179 | if test "x$ac_ct_AR" = x; then |
| 7180 | AR="false" |
| 7181 | else |
| 7182 | case $cross_compiling:$ac_tool_warned in |
| 7183 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7184 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7185 | whose name does not start with the host triplet. If you think this |
| 7186 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7187 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7188 | whose name does not start with the host triplet. If you think this |
| 7189 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7190 | ac_tool_warned=yes ;; |
| 7191 | esac |
| 7192 | AR=$ac_ct_AR |
| 7193 | fi |
| 7194 | else |
| 7195 | AR="$ac_cv_prog_AR" |
| 7196 | fi |
| 7197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7198 | # Extract the first word of "rm", so it can be a program name with args. |
| 7199 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7200 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7202 | if test "${ac_cv_path_RM+set}" = set; then |
| 7203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7204 | else |
| 7205 | case $RM in |
| 7206 | [\\/]* | ?:[\\/]*) |
| 7207 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7208 | ;; |
| 7209 | *) |
| 7210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7211 | for as_dir in $PATH |
| 7212 | do |
| 7213 | IFS=$as_save_IFS |
| 7214 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7215 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7216 | 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] | 7217 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7218 | 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] | 7219 | break 2 |
| 7220 | fi |
| 7221 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7222 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7223 | IFS=$as_save_IFS |
| 7224 | |
| 7225 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7226 | ;; |
| 7227 | esac |
| 7228 | fi |
| 7229 | RM=$ac_cv_path_RM |
| 7230 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7231 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7232 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7233 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7234 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7235 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7236 | fi |
| 7237 | |
| 7238 | |
| 7239 | # Extract the first word of "sed", so it can be a program name with args. |
| 7240 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7241 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7243 | if test "${ac_cv_path_SED+set}" = set; then |
| 7244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7245 | else |
| 7246 | case $SED in |
| 7247 | [\\/]* | ?:[\\/]*) |
| 7248 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7249 | ;; |
| 7250 | *) |
| 7251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7252 | for as_dir in $PATH |
| 7253 | do |
| 7254 | IFS=$as_save_IFS |
| 7255 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7257 | 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] | 7258 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7259 | 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] | 7260 | break 2 |
| 7261 | fi |
| 7262 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7263 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7264 | IFS=$as_save_IFS |
| 7265 | |
| 7266 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7267 | ;; |
| 7268 | esac |
| 7269 | fi |
| 7270 | SED=$ac_cv_path_SED |
| 7271 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7272 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7273 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7274 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7275 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7276 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7277 | fi |
| 7278 | |
| 7279 | |
| 7280 | # Extract the first word of "tar", so it can be a program name with args. |
| 7281 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7282 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7284 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7286 | else |
| 7287 | case $TAR in |
| 7288 | [\\/]* | ?:[\\/]*) |
| 7289 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7290 | ;; |
| 7291 | *) |
| 7292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7293 | for as_dir in $PATH |
| 7294 | do |
| 7295 | IFS=$as_save_IFS |
| 7296 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7297 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7298 | 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] | 7299 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7300 | 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] | 7301 | break 2 |
| 7302 | fi |
| 7303 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7304 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7305 | IFS=$as_save_IFS |
| 7306 | |
| 7307 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7308 | ;; |
| 7309 | esac |
| 7310 | fi |
| 7311 | TAR=$ac_cv_path_TAR |
| 7312 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7313 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7314 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7315 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7316 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7317 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7318 | fi |
| 7319 | |
| 7320 | |
| 7321 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7322 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7323 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7325 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7327 | else |
| 7328 | case $BINPWD in |
| 7329 | [\\/]* | ?:[\\/]*) |
| 7330 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7331 | ;; |
| 7332 | *) |
| 7333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7334 | for as_dir in $PATH |
| 7335 | do |
| 7336 | IFS=$as_save_IFS |
| 7337 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7338 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7339 | 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] | 7340 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7341 | 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] | 7342 | break 2 |
| 7343 | fi |
| 7344 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7345 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7346 | IFS=$as_save_IFS |
| 7347 | |
| 7348 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7349 | ;; |
| 7350 | esac |
| 7351 | fi |
| 7352 | BINPWD=$ac_cv_path_BINPWD |
| 7353 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7354 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7355 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7356 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7357 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7358 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7359 | fi |
| 7360 | |
| 7361 | |
| 7362 | |
| 7363 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7364 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7365 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7366 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7367 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7369 | else |
| 7370 | case $GRAPHVIZ in |
| 7371 | [\\/]* | ?:[\\/]*) |
| 7372 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7373 | ;; |
| 7374 | *) |
| 7375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7376 | for as_dir in $PATH |
| 7377 | do |
| 7378 | IFS=$as_save_IFS |
| 7379 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7380 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7381 | 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] | 7382 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7383 | 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] | 7384 | break 2 |
| 7385 | fi |
| 7386 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7387 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7388 | IFS=$as_save_IFS |
| 7389 | |
| 7390 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7391 | ;; |
| 7392 | esac |
| 7393 | fi |
| 7394 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7395 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7396 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7397 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7398 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7399 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7400 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7401 | fi |
| 7402 | |
| 7403 | |
| 7404 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7405 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7406 | cat >>confdefs.h <<\_ACEOF |
| 7407 | #define HAVE_GRAPHVIZ 1 |
| 7408 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7409 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7410 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7411 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7412 | fi |
| 7413 | |
| 7414 | cat >>confdefs.h <<_ACEOF |
| 7415 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7416 | _ACEOF |
| 7417 | |
| 7418 | fi |
| 7419 | # Extract the first word of "dot", so it can be a program name with args. |
| 7420 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7421 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7423 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7425 | else |
| 7426 | case $DOT in |
| 7427 | [\\/]* | ?:[\\/]*) |
| 7428 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7429 | ;; |
| 7430 | *) |
| 7431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7432 | for as_dir in $PATH |
| 7433 | do |
| 7434 | IFS=$as_save_IFS |
| 7435 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7437 | 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] | 7438 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7439 | 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] | 7440 | break 2 |
| 7441 | fi |
| 7442 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7443 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7444 | IFS=$as_save_IFS |
| 7445 | |
| 7446 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7447 | ;; |
| 7448 | esac |
| 7449 | fi |
| 7450 | DOT=$ac_cv_path_DOT |
| 7451 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7452 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7453 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7454 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7455 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7456 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7457 | fi |
| 7458 | |
| 7459 | |
| 7460 | if test "$DOT" != "echo dot" ; then |
| 7461 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7462 | cat >>confdefs.h <<\_ACEOF |
| 7463 | #define HAVE_DOT 1 |
| 7464 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7465 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7466 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7467 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7468 | fi |
| 7469 | |
| 7470 | cat >>confdefs.h <<_ACEOF |
| 7471 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7472 | _ACEOF |
| 7473 | |
| 7474 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7475 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7476 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7477 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7479 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7481 | else |
| 7482 | case $FDP in |
| 7483 | [\\/]* | ?:[\\/]*) |
| 7484 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7485 | ;; |
| 7486 | *) |
| 7487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7488 | for as_dir in $PATH |
| 7489 | do |
| 7490 | IFS=$as_save_IFS |
| 7491 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7493 | 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] | 7494 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7495 | 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] | 7496 | break 2 |
| 7497 | fi |
| 7498 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7499 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7500 | IFS=$as_save_IFS |
| 7501 | |
| 7502 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7503 | ;; |
| 7504 | esac |
| 7505 | fi |
| 7506 | FDP=$ac_cv_path_FDP |
| 7507 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7508 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7509 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7510 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7511 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7512 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7513 | fi |
| 7514 | |
| 7515 | |
| 7516 | if test "$FDP" != "echo fdp" ; then |
| 7517 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7518 | cat >>confdefs.h <<\_ACEOF |
| 7519 | #define HAVE_FDP 1 |
| 7520 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7521 | |
| 7522 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7523 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7524 | fi |
| 7525 | |
| 7526 | cat >>confdefs.h <<_ACEOF |
| 7527 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7528 | _ACEOF |
| 7529 | |
| 7530 | fi |
| 7531 | # Extract the first word of "neato", so it can be a program name with args. |
| 7532 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7535 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7537 | else |
| 7538 | case $NEATO in |
| 7539 | [\\/]* | ?:[\\/]*) |
| 7540 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7541 | ;; |
| 7542 | *) |
| 7543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7544 | for as_dir in $PATH |
| 7545 | do |
| 7546 | IFS=$as_save_IFS |
| 7547 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7549 | 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] | 7550 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7551 | 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] | 7552 | break 2 |
| 7553 | fi |
| 7554 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7555 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7556 | IFS=$as_save_IFS |
| 7557 | |
| 7558 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7559 | ;; |
| 7560 | esac |
| 7561 | fi |
| 7562 | NEATO=$ac_cv_path_NEATO |
| 7563 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7564 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7565 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7566 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7567 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7568 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7569 | fi |
| 7570 | |
| 7571 | |
| 7572 | if test "$NEATO" != "echo neato" ; then |
| 7573 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7574 | cat >>confdefs.h <<\_ACEOF |
| 7575 | #define HAVE_NEATO 1 |
| 7576 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7577 | |
| 7578 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7579 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7580 | fi |
| 7581 | |
| 7582 | cat >>confdefs.h <<_ACEOF |
| 7583 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7584 | _ACEOF |
| 7585 | |
| 7586 | fi |
| 7587 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7588 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7589 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7591 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7593 | else |
| 7594 | case $TWOPI in |
| 7595 | [\\/]* | ?:[\\/]*) |
| 7596 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7597 | ;; |
| 7598 | *) |
| 7599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7600 | for as_dir in $PATH |
| 7601 | do |
| 7602 | IFS=$as_save_IFS |
| 7603 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7605 | 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] | 7606 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7607 | 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] | 7608 | break 2 |
| 7609 | fi |
| 7610 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7611 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7612 | IFS=$as_save_IFS |
| 7613 | |
| 7614 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7615 | ;; |
| 7616 | esac |
| 7617 | fi |
| 7618 | TWOPI=$ac_cv_path_TWOPI |
| 7619 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7620 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7621 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7622 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7623 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7624 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7625 | fi |
| 7626 | |
| 7627 | |
| 7628 | if test "$TWOPI" != "echo twopi" ; then |
| 7629 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7630 | cat >>confdefs.h <<\_ACEOF |
| 7631 | #define HAVE_TWOPI 1 |
| 7632 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7633 | |
| 7634 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7635 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7636 | fi |
| 7637 | |
| 7638 | cat >>confdefs.h <<_ACEOF |
| 7639 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7640 | _ACEOF |
| 7641 | |
| 7642 | fi |
| 7643 | # Extract the first word of "circo", so it can be a program name with args. |
| 7644 | set dummy circo; 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_CIRCO+set}" = set; then |
| 7648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7649 | else |
| 7650 | case $CIRCO in |
| 7651 | [\\/]* | ?:[\\/]*) |
| 7652 | ac_cv_path_CIRCO="$CIRCO" # 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 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7662 | ac_cv_path_CIRCO="$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 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7664 | break 2 |
| 7665 | fi |
| 7666 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7667 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7668 | IFS=$as_save_IFS |
| 7669 | |
| 7670 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7671 | ;; |
| 7672 | esac |
| 7673 | fi |
| 7674 | CIRCO=$ac_cv_path_CIRCO |
| 7675 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7676 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7677 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +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; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7681 | fi |
| 7682 | |
| 7683 | |
| 7684 | if test "$CIRCO" != "echo circo" ; then |
| 7685 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7686 | cat >>confdefs.h <<\_ACEOF |
| 7687 | #define HAVE_CIRCO 1 |
| 7688 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7689 | |
| 7690 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7691 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7692 | fi |
| 7693 | |
| 7694 | cat >>confdefs.h <<_ACEOF |
| 7695 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7696 | _ACEOF |
| 7697 | |
| 7698 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7699 | for ac_prog in gv gsview32 |
| 7700 | do |
| 7701 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7702 | set dummy $ac_prog; 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_GV+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 $GV in |
| 7709 | [\\/]* | ?:[\\/]*) |
| 7710 | ac_cv_path_GV="$GV" # 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_GV="$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 | ;; |
| 7729 | esac |
| 7730 | fi |
| 7731 | GV=$ac_cv_path_GV |
| 7732 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7733 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7734 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7735 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7736 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7737 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7738 | fi |
| 7739 | |
| 7740 | |
| 7741 | test -n "$GV" && break |
| 7742 | done |
| 7743 | test -n "$GV" || GV="echo gv" |
| 7744 | |
| 7745 | if test "$GV" != "echo gv" ; then |
| 7746 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7747 | cat >>confdefs.h <<\_ACEOF |
| 7748 | #define HAVE_GV 1 |
| 7749 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7750 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7751 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7752 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7753 | fi |
| 7754 | |
| 7755 | cat >>confdefs.h <<_ACEOF |
| 7756 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7757 | _ACEOF |
| 7758 | |
| 7759 | fi |
| 7760 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7761 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7762 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7764 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7766 | else |
| 7767 | case $DOTTY in |
| 7768 | [\\/]* | ?:[\\/]*) |
| 7769 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7770 | ;; |
| 7771 | *) |
| 7772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7773 | for as_dir in $PATH |
| 7774 | do |
| 7775 | IFS=$as_save_IFS |
| 7776 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7778 | 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] | 7779 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7780 | 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] | 7781 | break 2 |
| 7782 | fi |
| 7783 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7784 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7785 | IFS=$as_save_IFS |
| 7786 | |
| 7787 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7788 | ;; |
| 7789 | esac |
| 7790 | fi |
| 7791 | DOTTY=$ac_cv_path_DOTTY |
| 7792 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7793 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7794 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7795 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7796 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7797 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7798 | fi |
| 7799 | |
| 7800 | |
| 7801 | if test "$DOTTY" != "echo dotty" ; then |
| 7802 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7803 | cat >>confdefs.h <<\_ACEOF |
| 7804 | #define HAVE_DOTTY 1 |
| 7805 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7806 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7807 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7808 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7809 | fi |
| 7810 | |
| 7811 | cat >>confdefs.h <<_ACEOF |
| 7812 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7813 | _ACEOF |
| 7814 | |
| 7815 | fi |
| 7816 | |
| 7817 | |
| 7818 | # Extract the first word of "perl", so it can be a program name with args. |
| 7819 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7820 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7822 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7824 | else |
| 7825 | case $PERL in |
| 7826 | [\\/]* | ?:[\\/]*) |
| 7827 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7828 | ;; |
| 7829 | *) |
| 7830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7831 | for as_dir in $PATH |
| 7832 | do |
| 7833 | IFS=$as_save_IFS |
| 7834 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7837 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7838 | 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] | 7839 | break 2 |
| 7840 | fi |
| 7841 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7842 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7843 | IFS=$as_save_IFS |
| 7844 | |
| 7845 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7846 | ;; |
| 7847 | esac |
| 7848 | fi |
| 7849 | PERL=$ac_cv_path_PERL |
| 7850 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7851 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7852 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7853 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7854 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7855 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7856 | fi |
| 7857 | |
| 7858 | |
| 7859 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7860 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7861 | 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] | 7862 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7863 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7864 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7865 | else |
| 7866 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7867 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7868 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7869 | fi |
| 7870 | fi |
| 7871 | |
| 7872 | |
| 7873 | if test x"$PERL" = xnone; then |
| 7874 | HAVE_PERL=0 |
| 7875 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7876 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7877 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7878 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7879 | else |
| 7880 | HAVE_PERL=1 |
| 7881 | |
| 7882 | fi |
| 7883 | |
| 7884 | # Find a good install program. We prefer a C program (faster), |
| 7885 | # so one script is as good as another. But avoid the broken or |
| 7886 | # incompatible versions: |
| 7887 | # SysV /etc/install, /usr/sbin/install |
| 7888 | # SunOS /usr/etc/install |
| 7889 | # IRIX /sbin/install |
| 7890 | # AIX /bin/install |
| 7891 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7892 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7893 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7894 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7895 | # OS/2's system install, which has a completely different semantic |
| 7896 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7897 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7898 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7899 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7900 | if test "${ac_cv_path_install+set}" = set; then |
| 7901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7902 | else |
| 7903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7904 | for as_dir in $PATH |
| 7905 | do |
| 7906 | IFS=$as_save_IFS |
| 7907 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7908 | # Account for people who put trailing slashes in PATH elements. |
| 7909 | case $as_dir/ in |
| 7910 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7911 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7912 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7913 | /usr/ucb/* ) ;; |
| 7914 | *) |
| 7915 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7916 | # Don't use installbsd from OSF since it installs stuff as root |
| 7917 | # by default. |
| 7918 | for ac_prog in ginstall scoinst install; do |
| 7919 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7920 | 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] | 7921 | if test $ac_prog = install && |
| 7922 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7923 | # AIX install. It has an incompatible calling convention. |
| 7924 | : |
| 7925 | elif test $ac_prog = install && |
| 7926 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7927 | # program-specific install script used by HP pwplus--don't use. |
| 7928 | : |
| 7929 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7930 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7931 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7932 | fi |
| 7933 | fi |
| 7934 | done |
| 7935 | done |
| 7936 | ;; |
| 7937 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7938 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7939 | IFS=$as_save_IFS |
| 7940 | |
| 7941 | |
| 7942 | fi |
| 7943 | if test "${ac_cv_path_install+set}" = set; then |
| 7944 | INSTALL=$ac_cv_path_install |
| 7945 | else |
| 7946 | # As a last resort, use the slow shell script. Don't cache a |
| 7947 | # value for INSTALL within a source directory, because that will |
| 7948 | # break other packages using the cache if that directory is |
| 7949 | # removed, or if the value is a relative name. |
| 7950 | INSTALL=$ac_install_sh |
| 7951 | fi |
| 7952 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7953 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7954 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7955 | |
| 7956 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7957 | # It thinks the first close brace ends the variable substitution. |
| 7958 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7959 | |
| 7960 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7961 | |
| 7962 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7963 | |
| 7964 | |
| 7965 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7966 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7967 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7969 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7971 | else |
| 7972 | case $BZIP2 in |
| 7973 | [\\/]* | ?:[\\/]*) |
| 7974 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7975 | ;; |
| 7976 | *) |
| 7977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7978 | for as_dir in $PATH |
| 7979 | do |
| 7980 | IFS=$as_save_IFS |
| 7981 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7983 | 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] | 7984 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7985 | 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] | 7986 | break 2 |
| 7987 | fi |
| 7988 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7989 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7990 | IFS=$as_save_IFS |
| 7991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7992 | ;; |
| 7993 | esac |
| 7994 | fi |
| 7995 | BZIP2=$ac_cv_path_BZIP2 |
| 7996 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7997 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7998 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7999 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8000 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8001 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8002 | fi |
| 8003 | |
| 8004 | |
| 8005 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8006 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8007 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8009 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8011 | else |
| 8012 | case $DOXYGEN in |
| 8013 | [\\/]* | ?:[\\/]*) |
| 8014 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8015 | ;; |
| 8016 | *) |
| 8017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8018 | for as_dir in $PATH |
| 8019 | do |
| 8020 | IFS=$as_save_IFS |
| 8021 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8022 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8023 | 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] | 8024 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8025 | 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] | 8026 | break 2 |
| 8027 | fi |
| 8028 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8029 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8030 | IFS=$as_save_IFS |
| 8031 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8032 | ;; |
| 8033 | esac |
| 8034 | fi |
| 8035 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8036 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8037 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8038 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8039 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8040 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8041 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8042 | fi |
| 8043 | |
| 8044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8045 | # Extract the first word of "groff", so it can be a program name with args. |
| 8046 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8047 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8049 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8051 | else |
| 8052 | case $GROFF in |
| 8053 | [\\/]* | ?:[\\/]*) |
| 8054 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8055 | ;; |
| 8056 | *) |
| 8057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8058 | for as_dir in $PATH |
| 8059 | do |
| 8060 | IFS=$as_save_IFS |
| 8061 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8063 | 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] | 8064 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8065 | 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] | 8066 | break 2 |
| 8067 | fi |
| 8068 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8069 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8070 | IFS=$as_save_IFS |
| 8071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8072 | ;; |
| 8073 | esac |
| 8074 | fi |
| 8075 | GROFF=$ac_cv_path_GROFF |
| 8076 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8077 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8078 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8079 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8080 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8081 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8082 | fi |
| 8083 | |
| 8084 | |
| 8085 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8086 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8087 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8089 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8091 | else |
| 8092 | case $GZIP in |
| 8093 | [\\/]* | ?:[\\/]*) |
| 8094 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8095 | ;; |
| 8096 | *) |
| 8097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8098 | for as_dir in $PATH |
| 8099 | do |
| 8100 | IFS=$as_save_IFS |
| 8101 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8102 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8103 | 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] | 8104 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8105 | 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] | 8106 | break 2 |
| 8107 | fi |
| 8108 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8109 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8110 | IFS=$as_save_IFS |
| 8111 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8112 | ;; |
| 8113 | esac |
| 8114 | fi |
| 8115 | GZIP=$ac_cv_path_GZIP |
| 8116 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8117 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8118 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8119 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8120 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8121 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8122 | fi |
| 8123 | |
| 8124 | |
| 8125 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8126 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8127 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8129 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8131 | else |
| 8132 | case $POD2HTML in |
| 8133 | [\\/]* | ?:[\\/]*) |
| 8134 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8135 | ;; |
| 8136 | *) |
| 8137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8138 | for as_dir in $PATH |
| 8139 | do |
| 8140 | IFS=$as_save_IFS |
| 8141 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8142 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8143 | 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] | 8144 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8145 | 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] | 8146 | break 2 |
| 8147 | fi |
| 8148 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8149 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8150 | IFS=$as_save_IFS |
| 8151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8152 | ;; |
| 8153 | esac |
| 8154 | fi |
| 8155 | POD2HTML=$ac_cv_path_POD2HTML |
| 8156 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8157 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8158 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8159 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8160 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8161 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8162 | fi |
| 8163 | |
| 8164 | |
| 8165 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8166 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8169 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8171 | else |
| 8172 | case $POD2MAN in |
| 8173 | [\\/]* | ?:[\\/]*) |
| 8174 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8175 | ;; |
| 8176 | *) |
| 8177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8178 | for as_dir in $PATH |
| 8179 | do |
| 8180 | IFS=$as_save_IFS |
| 8181 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8182 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8183 | 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] | 8184 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8185 | 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] | 8186 | break 2 |
| 8187 | fi |
| 8188 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8189 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8190 | IFS=$as_save_IFS |
| 8191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8192 | ;; |
| 8193 | esac |
| 8194 | fi |
| 8195 | POD2MAN=$ac_cv_path_POD2MAN |
| 8196 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8197 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8198 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8199 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8200 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8201 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8202 | fi |
| 8203 | |
| 8204 | |
| 8205 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8206 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8207 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8208 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8209 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | else |
| 8212 | case $RUNTEST in |
| 8213 | [\\/]* | ?:[\\/]*) |
| 8214 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8215 | ;; |
| 8216 | *) |
| 8217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8218 | for as_dir in $PATH |
| 8219 | do |
| 8220 | IFS=$as_save_IFS |
| 8221 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8223 | 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] | 8224 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8225 | 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] | 8226 | break 2 |
| 8227 | fi |
| 8228 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8229 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8230 | IFS=$as_save_IFS |
| 8231 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8232 | ;; |
| 8233 | esac |
| 8234 | fi |
| 8235 | RUNTEST=$ac_cv_path_RUNTEST |
| 8236 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8237 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8238 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8239 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8240 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8241 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8242 | fi |
| 8243 | |
| 8244 | |
| 8245 | |
| 8246 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8247 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8248 | 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] | 8249 | |
| 8250 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8251 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8252 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8253 | else |
| 8254 | with_tclinclude='' |
| 8255 | fi |
| 8256 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8257 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8259 | else |
| 8260 | |
| 8261 | if test x"${with_tclinclude}" != x ; then |
| 8262 | if test -f ${with_tclinclude}/tclsh ; then |
| 8263 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8264 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8265 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8266 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8267 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8268 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8269 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8270 | fi |
| 8271 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8272 | fi |
| 8273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8274 | |
| 8275 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8276 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8277 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8278 | 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 |
| 8279 | do |
| 8280 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8281 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8282 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8284 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8286 | else |
| 8287 | case $TCLSH in |
| 8288 | [\\/]* | ?:[\\/]*) |
| 8289 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8290 | ;; |
| 8291 | *) |
| 8292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8293 | for as_dir in $PATH |
| 8294 | do |
| 8295 | IFS=$as_save_IFS |
| 8296 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8297 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8298 | 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] | 8299 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8300 | 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] | 8301 | break 2 |
| 8302 | fi |
| 8303 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8304 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8305 | IFS=$as_save_IFS |
| 8306 | |
| 8307 | ;; |
| 8308 | esac |
| 8309 | fi |
| 8310 | TCLSH=$ac_cv_path_TCLSH |
| 8311 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8312 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8313 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8314 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8315 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8316 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8317 | fi |
| 8318 | |
| 8319 | |
| 8320 | test -n "$TCLSH" && break |
| 8321 | done |
| 8322 | |
| 8323 | if test x"${TCLSH}" = x ; then |
| 8324 | ac_cv_path_tclsh=''; |
| 8325 | else |
| 8326 | ac_cv_path_tclsh="${TCLSH}"; |
| 8327 | fi |
| 8328 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8329 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8330 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8331 | TCLSH="${ac_cv_path_tclsh}" |
| 8332 | |
| 8333 | fi |
| 8334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8335 | # Extract the first word of "zip", so it can be a program name with args. |
| 8336 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8337 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8339 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8341 | else |
| 8342 | case $ZIP in |
| 8343 | [\\/]* | ?:[\\/]*) |
| 8344 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8345 | ;; |
| 8346 | *) |
| 8347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8348 | for as_dir in $PATH |
| 8349 | do |
| 8350 | IFS=$as_save_IFS |
| 8351 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8352 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8353 | 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] | 8354 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8355 | 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] | 8356 | break 2 |
| 8357 | fi |
| 8358 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8359 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8360 | IFS=$as_save_IFS |
| 8361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8362 | ;; |
| 8363 | esac |
| 8364 | fi |
| 8365 | ZIP=$ac_cv_path_ZIP |
| 8366 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8367 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8368 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8369 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8370 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8371 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8372 | fi |
| 8373 | |
| 8374 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8375 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8376 | do |
| 8377 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8378 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8381 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8383 | else |
| 8384 | case $OCAMLC in |
| 8385 | [\\/]* | ?:[\\/]*) |
| 8386 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8387 | ;; |
| 8388 | *) |
| 8389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8390 | for as_dir in $PATH |
| 8391 | do |
| 8392 | IFS=$as_save_IFS |
| 8393 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8394 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8395 | 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] | 8396 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8397 | 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] | 8398 | break 2 |
| 8399 | fi |
| 8400 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8401 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8402 | IFS=$as_save_IFS |
| 8403 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8404 | ;; |
| 8405 | esac |
| 8406 | fi |
| 8407 | OCAMLC=$ac_cv_path_OCAMLC |
| 8408 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8409 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8410 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8411 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8413 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8414 | fi |
| 8415 | |
| 8416 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8417 | test -n "$OCAMLC" && break |
| 8418 | done |
| 8419 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8420 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8421 | do |
| 8422 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8423 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8424 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8426 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8428 | else |
| 8429 | case $OCAMLOPT in |
| 8430 | [\\/]* | ?:[\\/]*) |
| 8431 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8432 | ;; |
| 8433 | *) |
| 8434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8435 | for as_dir in $PATH |
| 8436 | do |
| 8437 | IFS=$as_save_IFS |
| 8438 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8440 | 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] | 8441 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8442 | 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] | 8443 | break 2 |
| 8444 | fi |
| 8445 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8446 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8447 | IFS=$as_save_IFS |
| 8448 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8449 | ;; |
| 8450 | esac |
| 8451 | fi |
| 8452 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8453 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8454 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8455 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8456 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8457 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8458 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8459 | fi |
| 8460 | |
| 8461 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8462 | test -n "$OCAMLOPT" && break |
| 8463 | done |
| 8464 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8465 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8466 | do |
| 8467 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8468 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8469 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8471 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8473 | else |
| 8474 | case $OCAMLDEP in |
| 8475 | [\\/]* | ?:[\\/]*) |
| 8476 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8477 | ;; |
| 8478 | *) |
| 8479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8480 | for as_dir in $PATH |
| 8481 | do |
| 8482 | IFS=$as_save_IFS |
| 8483 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8485 | 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] | 8486 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8487 | 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] | 8488 | break 2 |
| 8489 | fi |
| 8490 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8491 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8492 | IFS=$as_save_IFS |
| 8493 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8494 | ;; |
| 8495 | esac |
| 8496 | fi |
| 8497 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8498 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8499 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8500 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8501 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8502 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8503 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8504 | fi |
| 8505 | |
| 8506 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8507 | test -n "$OCAMLDEP" && break |
| 8508 | done |
| 8509 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8510 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8511 | do |
| 8512 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8513 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8514 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8516 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8518 | else |
| 8519 | case $OCAMLDOC in |
| 8520 | [\\/]* | ?:[\\/]*) |
| 8521 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8522 | ;; |
| 8523 | *) |
| 8524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8525 | for as_dir in $PATH |
| 8526 | do |
| 8527 | IFS=$as_save_IFS |
| 8528 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8529 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8530 | 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] | 8531 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8532 | 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] | 8533 | break 2 |
| 8534 | fi |
| 8535 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8536 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8537 | IFS=$as_save_IFS |
| 8538 | |
| 8539 | ;; |
| 8540 | esac |
| 8541 | fi |
| 8542 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8543 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8544 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8545 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8546 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8547 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8548 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8549 | fi |
| 8550 | |
| 8551 | |
| 8552 | test -n "$OCAMLDOC" && break |
| 8553 | done |
| 8554 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8555 | for ac_prog in gas as |
| 8556 | do |
| 8557 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8558 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8559 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8561 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8563 | else |
| 8564 | case $GAS in |
| 8565 | [\\/]* | ?:[\\/]*) |
| 8566 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8567 | ;; |
| 8568 | *) |
| 8569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8570 | for as_dir in $PATH |
| 8571 | do |
| 8572 | IFS=$as_save_IFS |
| 8573 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8574 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8575 | 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] | 8576 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8577 | 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] | 8578 | break 2 |
| 8579 | fi |
| 8580 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8581 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8582 | IFS=$as_save_IFS |
| 8583 | |
| 8584 | ;; |
| 8585 | esac |
| 8586 | fi |
| 8587 | GAS=$ac_cv_path_GAS |
| 8588 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8589 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8590 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8591 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8592 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8593 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8594 | fi |
| 8595 | |
| 8596 | |
| 8597 | test -n "$GAS" && break |
| 8598 | done |
| 8599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8600 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8601 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8602 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8603 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8605 | else |
| 8606 | ac_ext=c |
| 8607 | ac_cpp='$CPP $CPPFLAGS' |
| 8608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8611 | |
| 8612 | oldcflags="$CFLAGS" |
| 8613 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8614 | cat >conftest.$ac_ext <<_ACEOF |
| 8615 | /* confdefs.h. */ |
| 8616 | _ACEOF |
| 8617 | cat confdefs.h >>conftest.$ac_ext |
| 8618 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8619 | /* end confdefs.h. */ |
| 8620 | |
| 8621 | int |
| 8622 | main () |
| 8623 | { |
| 8624 | int main() { return 0; } |
| 8625 | ; |
| 8626 | return 0; |
| 8627 | } |
| 8628 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8629 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8630 | if { (ac_try="$ac_link" |
| 8631 | case "(($ac_try" in |
| 8632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8633 | *) ac_try_echo=$ac_try;; |
| 8634 | esac |
| 8635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8636 | (eval "$ac_link") 2>conftest.er1 |
| 8637 | ac_status=$? |
| 8638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8639 | rm -f conftest.er1 |
| 8640 | cat conftest.err >&5 |
| 8641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8642 | (exit $ac_status); } && |
| 8643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8644 | { (case "(($ac_try" in |
| 8645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8646 | *) ac_try_echo=$ac_try;; |
| 8647 | esac |
| 8648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8649 | (eval "$ac_try") 2>&5 |
| 8650 | ac_status=$? |
| 8651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8652 | (exit $ac_status); }; } && |
| 8653 | { ac_try='test -s conftest$ac_exeext' |
| 8654 | { (case "(($ac_try" in |
| 8655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8656 | *) ac_try_echo=$ac_try;; |
| 8657 | esac |
| 8658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8659 | (eval "$ac_try") 2>&5 |
| 8660 | ac_status=$? |
| 8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8662 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8663 | llvm_cv_link_use_r=yes |
| 8664 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8665 | echo "$as_me: failed program was:" >&5 |
| 8666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8667 | |
| 8668 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8669 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8670 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8671 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8672 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8673 | CFLAGS="$oldcflags" |
| 8674 | ac_ext=c |
| 8675 | ac_cpp='$CPP $CPPFLAGS' |
| 8676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8679 | |
| 8680 | |
| 8681 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8682 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8683 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8684 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8685 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8686 | cat >>confdefs.h <<\_ACEOF |
| 8687 | #define HAVE_LINK_R 1 |
| 8688 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8689 | |
| 8690 | fi |
| 8691 | |
| 8692 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8693 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8694 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8695 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8697 | else |
| 8698 | ac_ext=c |
| 8699 | ac_cpp='$CPP $CPPFLAGS' |
| 8700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8703 | |
| 8704 | oldcflags="$CFLAGS" |
| 8705 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8706 | cat >conftest.$ac_ext <<_ACEOF |
| 8707 | /* confdefs.h. */ |
| 8708 | _ACEOF |
| 8709 | cat confdefs.h >>conftest.$ac_ext |
| 8710 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8711 | /* end confdefs.h. */ |
| 8712 | |
| 8713 | int |
| 8714 | main () |
| 8715 | { |
| 8716 | int main() { return 0; } |
| 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8721 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8722 | if { (ac_try="$ac_link" |
| 8723 | case "(($ac_try" in |
| 8724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8725 | *) ac_try_echo=$ac_try;; |
| 8726 | esac |
| 8727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8728 | (eval "$ac_link") 2>conftest.er1 |
| 8729 | ac_status=$? |
| 8730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8731 | rm -f conftest.er1 |
| 8732 | cat conftest.err >&5 |
| 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8734 | (exit $ac_status); } && |
| 8735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8736 | { (case "(($ac_try" in |
| 8737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8738 | *) ac_try_echo=$ac_try;; |
| 8739 | esac |
| 8740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8741 | (eval "$ac_try") 2>&5 |
| 8742 | ac_status=$? |
| 8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8744 | (exit $ac_status); }; } && |
| 8745 | { ac_try='test -s conftest$ac_exeext' |
| 8746 | { (case "(($ac_try" in |
| 8747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8748 | *) ac_try_echo=$ac_try;; |
| 8749 | esac |
| 8750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8751 | (eval "$ac_try") 2>&5 |
| 8752 | ac_status=$? |
| 8753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8754 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8755 | llvm_cv_link_use_export_dynamic=yes |
| 8756 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8757 | echo "$as_me: failed program was:" >&5 |
| 8758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8759 | |
| 8760 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8761 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8762 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8763 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8764 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8765 | CFLAGS="$oldcflags" |
| 8766 | ac_ext=c |
| 8767 | ac_cpp='$CPP $CPPFLAGS' |
| 8768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8771 | |
| 8772 | |
| 8773 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8774 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8775 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8776 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8777 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8778 | cat >>confdefs.h <<\_ACEOF |
| 8779 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8780 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8781 | |
| 8782 | fi |
| 8783 | |
| 8784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8785 | |
| 8786 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8787 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8788 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8789 | if test "${ac_cv_c_const+set}" = set; then |
| 8790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8791 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8792 | cat >conftest.$ac_ext <<_ACEOF |
| 8793 | /* confdefs.h. */ |
| 8794 | _ACEOF |
| 8795 | cat confdefs.h >>conftest.$ac_ext |
| 8796 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8797 | /* end confdefs.h. */ |
| 8798 | |
| 8799 | int |
| 8800 | main () |
| 8801 | { |
| 8802 | /* FIXME: Include the comments suggested by Paul. */ |
| 8803 | #ifndef __cplusplus |
| 8804 | /* Ultrix mips cc rejects this. */ |
| 8805 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8806 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8807 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8808 | char const *const *ccp; |
| 8809 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8810 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8811 | struct point {int x, y;}; |
| 8812 | static struct point const zero = {0,0}; |
| 8813 | /* AIX XL C 1.02.0.0 rejects this. |
| 8814 | It does not let you subtract one const X* pointer from another in |
| 8815 | an arm of an if-expression whose if-part is not a constant |
| 8816 | expression */ |
| 8817 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8818 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8819 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8820 | ++ccp; |
| 8821 | p = (char**) ccp; |
| 8822 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8823 | { /* SCO 3.2v4 cc rejects this. */ |
| 8824 | char *t; |
| 8825 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8826 | |
| 8827 | *t++ = 0; |
| 8828 | if (s) return 0; |
| 8829 | } |
| 8830 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8831 | int x[] = {25, 17}; |
| 8832 | const int *foo = &x[0]; |
| 8833 | ++foo; |
| 8834 | } |
| 8835 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8836 | typedef const int *iptr; |
| 8837 | iptr p = 0; |
| 8838 | ++p; |
| 8839 | } |
| 8840 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8841 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8842 | struct s { int j; const int *ap[3]; }; |
| 8843 | struct s *b; b->j = 5; |
| 8844 | } |
| 8845 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8846 | const int foo = 10; |
| 8847 | if (!foo) return 0; |
| 8848 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8849 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8850 | #endif |
| 8851 | |
| 8852 | ; |
| 8853 | return 0; |
| 8854 | } |
| 8855 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8856 | rm -f conftest.$ac_objext |
| 8857 | if { (ac_try="$ac_compile" |
| 8858 | case "(($ac_try" in |
| 8859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8860 | *) ac_try_echo=$ac_try;; |
| 8861 | esac |
| 8862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8863 | (eval "$ac_compile") 2>conftest.er1 |
| 8864 | ac_status=$? |
| 8865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8866 | rm -f conftest.er1 |
| 8867 | cat conftest.err >&5 |
| 8868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8869 | (exit $ac_status); } && |
| 8870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8871 | { (case "(($ac_try" in |
| 8872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8873 | *) ac_try_echo=$ac_try;; |
| 8874 | esac |
| 8875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8876 | (eval "$ac_try") 2>&5 |
| 8877 | ac_status=$? |
| 8878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8879 | (exit $ac_status); }; } && |
| 8880 | { ac_try='test -s conftest.$ac_objext' |
| 8881 | { (case "(($ac_try" in |
| 8882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8883 | *) ac_try_echo=$ac_try;; |
| 8884 | esac |
| 8885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8886 | (eval "$ac_try") 2>&5 |
| 8887 | ac_status=$? |
| 8888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8889 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8890 | ac_cv_c_const=yes |
| 8891 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8892 | echo "$as_me: failed program was:" >&5 |
| 8893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8894 | |
| 8895 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8896 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8899 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8900 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8901 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8902 | if test $ac_cv_c_const = no; then |
| 8903 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8904 | cat >>confdefs.h <<\_ACEOF |
| 8905 | #define const |
| 8906 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8907 | |
| 8908 | fi |
| 8909 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8910 | |
| 8911 | |
| 8912 | |
| 8913 | |
| 8914 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8915 | ac_header_dirent=no |
| 8916 | 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] | 8917 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8918 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8919 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8920 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8922 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8923 | cat >conftest.$ac_ext <<_ACEOF |
| 8924 | /* confdefs.h. */ |
| 8925 | _ACEOF |
| 8926 | cat confdefs.h >>conftest.$ac_ext |
| 8927 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8928 | /* end confdefs.h. */ |
| 8929 | #include <sys/types.h> |
| 8930 | #include <$ac_hdr> |
| 8931 | |
| 8932 | int |
| 8933 | main () |
| 8934 | { |
| 8935 | if ((DIR *) 0) |
| 8936 | return 0; |
| 8937 | ; |
| 8938 | return 0; |
| 8939 | } |
| 8940 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8941 | rm -f conftest.$ac_objext |
| 8942 | if { (ac_try="$ac_compile" |
| 8943 | case "(($ac_try" in |
| 8944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8945 | *) ac_try_echo=$ac_try;; |
| 8946 | esac |
| 8947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8948 | (eval "$ac_compile") 2>conftest.er1 |
| 8949 | ac_status=$? |
| 8950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8951 | rm -f conftest.er1 |
| 8952 | cat conftest.err >&5 |
| 8953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8954 | (exit $ac_status); } && |
| 8955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8956 | { (case "(($ac_try" in |
| 8957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8958 | *) ac_try_echo=$ac_try;; |
| 8959 | esac |
| 8960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8961 | (eval "$ac_try") 2>&5 |
| 8962 | ac_status=$? |
| 8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8964 | (exit $ac_status); }; } && |
| 8965 | { ac_try='test -s conftest.$ac_objext' |
| 8966 | { (case "(($ac_try" in |
| 8967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8968 | *) ac_try_echo=$ac_try;; |
| 8969 | esac |
| 8970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8971 | (eval "$ac_try") 2>&5 |
| 8972 | ac_status=$? |
| 8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8974 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8975 | eval "$as_ac_Header=yes" |
| 8976 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8977 | echo "$as_me: failed program was:" >&5 |
| 8978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8979 | |
| 8980 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8981 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8982 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8984 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8985 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8986 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8987 | echo "${ECHO_T}$ac_res" >&6; } |
| 8988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8989 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8990 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8991 | _ACEOF |
| 8992 | |
| 8993 | ac_header_dirent=$ac_hdr; break |
| 8994 | fi |
| 8995 | |
| 8996 | done |
| 8997 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8998 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8999 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9000 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9001 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9003 | else |
| 9004 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9005 | cat >conftest.$ac_ext <<_ACEOF |
| 9006 | /* confdefs.h. */ |
| 9007 | _ACEOF |
| 9008 | cat confdefs.h >>conftest.$ac_ext |
| 9009 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9010 | /* end confdefs.h. */ |
| 9011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9012 | /* Override any GCC internal prototype to avoid an error. |
| 9013 | Use char because int might match the return type of a GCC |
| 9014 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9015 | #ifdef __cplusplus |
| 9016 | extern "C" |
| 9017 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9018 | char opendir (); |
| 9019 | int |
| 9020 | main () |
| 9021 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9022 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9023 | ; |
| 9024 | return 0; |
| 9025 | } |
| 9026 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9027 | for ac_lib in '' dir; do |
| 9028 | if test -z "$ac_lib"; then |
| 9029 | ac_res="none required" |
| 9030 | else |
| 9031 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9032 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9033 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9035 | if { (ac_try="$ac_link" |
| 9036 | case "(($ac_try" in |
| 9037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9038 | *) ac_try_echo=$ac_try;; |
| 9039 | esac |
| 9040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9041 | (eval "$ac_link") 2>conftest.er1 |
| 9042 | ac_status=$? |
| 9043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9044 | rm -f conftest.er1 |
| 9045 | cat conftest.err >&5 |
| 9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9047 | (exit $ac_status); } && |
| 9048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9049 | { (case "(($ac_try" in |
| 9050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9051 | *) ac_try_echo=$ac_try;; |
| 9052 | esac |
| 9053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9054 | (eval "$ac_try") 2>&5 |
| 9055 | ac_status=$? |
| 9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9057 | (exit $ac_status); }; } && |
| 9058 | { ac_try='test -s conftest$ac_exeext' |
| 9059 | { (case "(($ac_try" in |
| 9060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9061 | *) ac_try_echo=$ac_try;; |
| 9062 | esac |
| 9063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9064 | (eval "$ac_try") 2>&5 |
| 9065 | ac_status=$? |
| 9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9067 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9068 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9069 | else |
| 9070 | echo "$as_me: failed program was:" >&5 |
| 9071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9072 | |
| 9073 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9074 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9075 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9076 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9077 | conftest$ac_exeext |
| 9078 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9079 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9080 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9081 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9082 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9083 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9084 | else |
| 9085 | ac_cv_search_opendir=no |
| 9086 | fi |
| 9087 | rm conftest.$ac_ext |
| 9088 | LIBS=$ac_func_search_save_LIBS |
| 9089 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9090 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9091 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9092 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9093 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9094 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9095 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9096 | fi |
| 9097 | |
| 9098 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9099 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9100 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9101 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9103 | else |
| 9104 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9105 | cat >conftest.$ac_ext <<_ACEOF |
| 9106 | /* confdefs.h. */ |
| 9107 | _ACEOF |
| 9108 | cat confdefs.h >>conftest.$ac_ext |
| 9109 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9110 | /* end confdefs.h. */ |
| 9111 | |
| 9112 | /* Override any GCC internal prototype to avoid an error. |
| 9113 | Use char because int might match the return type of a GCC |
| 9114 | builtin and then its argument prototype would still apply. */ |
| 9115 | #ifdef __cplusplus |
| 9116 | extern "C" |
| 9117 | #endif |
| 9118 | char opendir (); |
| 9119 | int |
| 9120 | main () |
| 9121 | { |
| 9122 | return opendir (); |
| 9123 | ; |
| 9124 | return 0; |
| 9125 | } |
| 9126 | _ACEOF |
| 9127 | for ac_lib in '' x; do |
| 9128 | if test -z "$ac_lib"; then |
| 9129 | ac_res="none required" |
| 9130 | else |
| 9131 | ac_res=-l$ac_lib |
| 9132 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9133 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9134 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9135 | if { (ac_try="$ac_link" |
| 9136 | case "(($ac_try" in |
| 9137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9138 | *) ac_try_echo=$ac_try;; |
| 9139 | esac |
| 9140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9141 | (eval "$ac_link") 2>conftest.er1 |
| 9142 | ac_status=$? |
| 9143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9144 | rm -f conftest.er1 |
| 9145 | cat conftest.err >&5 |
| 9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9147 | (exit $ac_status); } && |
| 9148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9149 | { (case "(($ac_try" in |
| 9150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9151 | *) ac_try_echo=$ac_try;; |
| 9152 | esac |
| 9153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9154 | (eval "$ac_try") 2>&5 |
| 9155 | ac_status=$? |
| 9156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9157 | (exit $ac_status); }; } && |
| 9158 | { ac_try='test -s conftest$ac_exeext' |
| 9159 | { (case "(($ac_try" in |
| 9160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9161 | *) ac_try_echo=$ac_try;; |
| 9162 | esac |
| 9163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9164 | (eval "$ac_try") 2>&5 |
| 9165 | ac_status=$? |
| 9166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9167 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9168 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9169 | else |
| 9170 | echo "$as_me: failed program was:" >&5 |
| 9171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9172 | |
| 9173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9174 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9175 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9176 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9177 | conftest$ac_exeext |
| 9178 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9179 | break |
| 9180 | fi |
| 9181 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9182 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9183 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9184 | else |
| 9185 | ac_cv_search_opendir=no |
| 9186 | fi |
| 9187 | rm conftest.$ac_ext |
| 9188 | LIBS=$ac_func_search_save_LIBS |
| 9189 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9190 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9191 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9192 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9193 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9194 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9195 | |
| 9196 | fi |
| 9197 | |
| 9198 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9199 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9200 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9201 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9202 | do |
| 9203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9204 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9205 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9209 | fi |
| 9210 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9211 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9212 | echo "${ECHO_T}$ac_res" >&6; } |
| 9213 | else |
| 9214 | # Is the header compilable? |
| 9215 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9216 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9217 | cat >conftest.$ac_ext <<_ACEOF |
| 9218 | /* confdefs.h. */ |
| 9219 | _ACEOF |
| 9220 | cat confdefs.h >>conftest.$ac_ext |
| 9221 | cat >>conftest.$ac_ext <<_ACEOF |
| 9222 | /* end confdefs.h. */ |
| 9223 | $ac_includes_default |
| 9224 | #include <$ac_header> |
| 9225 | _ACEOF |
| 9226 | rm -f conftest.$ac_objext |
| 9227 | if { (ac_try="$ac_compile" |
| 9228 | case "(($ac_try" in |
| 9229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9230 | *) ac_try_echo=$ac_try;; |
| 9231 | esac |
| 9232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9233 | (eval "$ac_compile") 2>conftest.er1 |
| 9234 | ac_status=$? |
| 9235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9236 | rm -f conftest.er1 |
| 9237 | cat conftest.err >&5 |
| 9238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9239 | (exit $ac_status); } && |
| 9240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9241 | { (case "(($ac_try" in |
| 9242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9243 | *) ac_try_echo=$ac_try;; |
| 9244 | esac |
| 9245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9246 | (eval "$ac_try") 2>&5 |
| 9247 | ac_status=$? |
| 9248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9249 | (exit $ac_status); }; } && |
| 9250 | { ac_try='test -s conftest.$ac_objext' |
| 9251 | { (case "(($ac_try" in |
| 9252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9253 | *) ac_try_echo=$ac_try;; |
| 9254 | esac |
| 9255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9256 | (eval "$ac_try") 2>&5 |
| 9257 | ac_status=$? |
| 9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9259 | (exit $ac_status); }; }; then |
| 9260 | ac_header_compiler=yes |
| 9261 | else |
| 9262 | echo "$as_me: failed program was:" >&5 |
| 9263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9264 | |
| 9265 | ac_header_compiler=no |
| 9266 | fi |
| 9267 | |
| 9268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9269 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9270 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9271 | |
| 9272 | # Is the header present? |
| 9273 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9274 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9275 | cat >conftest.$ac_ext <<_ACEOF |
| 9276 | /* confdefs.h. */ |
| 9277 | _ACEOF |
| 9278 | cat confdefs.h >>conftest.$ac_ext |
| 9279 | cat >>conftest.$ac_ext <<_ACEOF |
| 9280 | /* end confdefs.h. */ |
| 9281 | #include <$ac_header> |
| 9282 | _ACEOF |
| 9283 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9284 | case "(($ac_try" in |
| 9285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9286 | *) ac_try_echo=$ac_try;; |
| 9287 | esac |
| 9288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9289 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9290 | ac_status=$? |
| 9291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9292 | rm -f conftest.er1 |
| 9293 | cat conftest.err >&5 |
| 9294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9295 | (exit $ac_status); } >/dev/null; then |
| 9296 | if test -s conftest.err; then |
| 9297 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9298 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9299 | else |
| 9300 | ac_cpp_err= |
| 9301 | fi |
| 9302 | else |
| 9303 | ac_cpp_err=yes |
| 9304 | fi |
| 9305 | if test -z "$ac_cpp_err"; then |
| 9306 | ac_header_preproc=yes |
| 9307 | else |
| 9308 | echo "$as_me: failed program was:" >&5 |
| 9309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9310 | |
| 9311 | ac_header_preproc=no |
| 9312 | fi |
| 9313 | |
| 9314 | rm -f conftest.err conftest.$ac_ext |
| 9315 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9316 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9317 | |
| 9318 | # So? What about this header? |
| 9319 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9320 | yes:no: ) |
| 9321 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9322 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9323 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9324 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9325 | ac_header_preproc=yes |
| 9326 | ;; |
| 9327 | no:yes:* ) |
| 9328 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9329 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9330 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9331 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9332 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9333 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9334 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9335 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9336 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9337 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9338 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9339 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9340 | ( cat <<\_ASBOX |
| 9341 | ## ----------------------------------- ## |
| 9342 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9343 | ## ----------------------------------- ## |
| 9344 | _ASBOX |
| 9345 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9346 | ;; |
| 9347 | esac |
| 9348 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9349 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9352 | else |
| 9353 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9354 | fi |
| 9355 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9357 | echo "${ECHO_T}$ac_res" >&6; } |
| 9358 | |
| 9359 | fi |
| 9360 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9361 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9362 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9363 | _ACEOF |
| 9364 | |
| 9365 | fi |
| 9366 | |
| 9367 | done |
| 9368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9369 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9370 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9371 | enableval=$enable_ltdl_install; |
| 9372 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9373 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9374 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9375 | |
| 9376 | |
| 9377 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9378 | INSTALL_LTDL_TRUE= |
| 9379 | INSTALL_LTDL_FALSE='#' |
| 9380 | else |
| 9381 | INSTALL_LTDL_TRUE='#' |
| 9382 | INSTALL_LTDL_FALSE= |
| 9383 | fi |
| 9384 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9385 | |
| 9386 | |
| 9387 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9388 | CONVENIENCE_LTDL_TRUE= |
| 9389 | CONVENIENCE_LTDL_FALSE='#' |
| 9390 | else |
| 9391 | CONVENIENCE_LTDL_TRUE='#' |
| 9392 | CONVENIENCE_LTDL_FALSE= |
| 9393 | fi |
| 9394 | |
| 9395 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9396 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9397 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9398 | library_names_spec= |
| 9399 | libname_spec='lib$name' |
| 9400 | soname_spec= |
| 9401 | shrext_cmds=".so" |
| 9402 | postinstall_cmds= |
| 9403 | postuninstall_cmds= |
| 9404 | finish_cmds= |
| 9405 | finish_eval= |
| 9406 | shlibpath_var= |
| 9407 | shlibpath_overrides_runpath=unknown |
| 9408 | version_type=none |
| 9409 | dynamic_linker="$host_os ld.so" |
| 9410 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9411 | if test "$GCC" = yes; then |
| 9412 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9413 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9414 | # if the path contains ";" then we assume it to be the separator |
| 9415 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9416 | # assumed that no part of a normal pathname contains ";" but that should |
| 9417 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9418 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9419 | else |
| 9420 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9421 | fi |
| 9422 | else |
| 9423 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9424 | fi |
| 9425 | need_lib_prefix=unknown |
| 9426 | hardcode_into_libs=no |
| 9427 | |
| 9428 | # when you set need_version to no, make sure it does not cause -set_version |
| 9429 | # flags to be left without arguments |
| 9430 | need_version=unknown |
| 9431 | |
| 9432 | case $host_os in |
| 9433 | aix3*) |
| 9434 | version_type=linux |
| 9435 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9436 | shlibpath_var=LIBPATH |
| 9437 | |
| 9438 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9439 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9440 | ;; |
| 9441 | |
| 9442 | aix4* | aix5*) |
| 9443 | version_type=linux |
| 9444 | need_lib_prefix=no |
| 9445 | need_version=no |
| 9446 | hardcode_into_libs=yes |
| 9447 | if test "$host_cpu" = ia64; then |
| 9448 | # AIX 5 supports IA64 |
| 9449 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9450 | shlibpath_var=LD_LIBRARY_PATH |
| 9451 | else |
| 9452 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9453 | # for dependence libraries. The import file would start with |
| 9454 | # the line `#! .'. This would cause the generated library to |
| 9455 | # depend on `.', always an invalid library. This was fixed in |
| 9456 | # development snapshots of GCC prior to 3.0. |
| 9457 | case $host_os in |
| 9458 | aix4 | aix4.[01] | aix4.[01].*) |
| 9459 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9460 | echo ' yes ' |
| 9461 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9462 | : |
| 9463 | else |
| 9464 | can_build_shared=no |
| 9465 | fi |
| 9466 | ;; |
| 9467 | esac |
| 9468 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9469 | # soname into executable. Probably we can add versioning support to |
| 9470 | # collect2, so additional links can be useful in future. |
| 9471 | if test "$aix_use_runtimelinking" = yes; then |
| 9472 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9473 | # instead of lib<name>.a to let people know that these are not |
| 9474 | # typical AIX shared libraries. |
| 9475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9476 | else |
| 9477 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9478 | # and later when we are not doing run time linking. |
| 9479 | library_names_spec='${libname}${release}.a $libname.a' |
| 9480 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9481 | fi |
| 9482 | shlibpath_var=LIBPATH |
| 9483 | fi |
| 9484 | ;; |
| 9485 | |
| 9486 | amigaos*) |
| 9487 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9488 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9489 | 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' |
| 9490 | ;; |
| 9491 | |
| 9492 | beos*) |
| 9493 | library_names_spec='${libname}${shared_ext}' |
| 9494 | dynamic_linker="$host_os ld.so" |
| 9495 | shlibpath_var=LIBRARY_PATH |
| 9496 | ;; |
| 9497 | |
| 9498 | bsdi[45]*) |
| 9499 | version_type=linux |
| 9500 | need_version=no |
| 9501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9502 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9503 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9504 | shlibpath_var=LD_LIBRARY_PATH |
| 9505 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9506 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9507 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9508 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9509 | # libtool to hard-code these into programs |
| 9510 | ;; |
| 9511 | |
| 9512 | cygwin* | mingw* | pw32*) |
| 9513 | version_type=windows |
| 9514 | shrext_cmds=".dll" |
| 9515 | need_version=no |
| 9516 | need_lib_prefix=no |
| 9517 | |
| 9518 | case $GCC,$host_os in |
| 9519 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9520 | library_names_spec='$libname.dll.a' |
| 9521 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9522 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9523 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9524 | dldir=$destdir/`dirname \$dlpath`~ |
| 9525 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9526 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9527 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9528 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9529 | dlpath=$dir/\$dldll~ |
| 9530 | $rm \$dlpath' |
| 9531 | shlibpath_overrides_runpath=yes |
| 9532 | |
| 9533 | case $host_os in |
| 9534 | cygwin*) |
| 9535 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9536 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9537 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9538 | ;; |
| 9539 | mingw*) |
| 9540 | # MinGW DLLs use traditional 'lib' prefix |
| 9541 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9542 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9543 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9544 | # It is most probably a Windows format PATH printed by |
| 9545 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9546 | # path with ; separators, and with drive letters. We can handle the |
| 9547 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9548 | # especially as we might pass files found there to a mingw objdump, |
| 9549 | # which wouldn't understand a cygwinified path. Ahh. |
| 9550 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9551 | else |
| 9552 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9553 | fi |
| 9554 | ;; |
| 9555 | pw32*) |
| 9556 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9557 | 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] | 9558 | ;; |
| 9559 | esac |
| 9560 | ;; |
| 9561 | |
| 9562 | *) |
| 9563 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9564 | ;; |
| 9565 | esac |
| 9566 | dynamic_linker='Win32 ld.exe' |
| 9567 | # FIXME: first we should search . and the directory the executable is in |
| 9568 | shlibpath_var=PATH |
| 9569 | ;; |
| 9570 | |
| 9571 | darwin* | rhapsody*) |
| 9572 | dynamic_linker="$host_os dyld" |
| 9573 | version_type=darwin |
| 9574 | need_lib_prefix=no |
| 9575 | need_version=no |
| 9576 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9577 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9578 | shlibpath_overrides_runpath=yes |
| 9579 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9580 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9581 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9582 | if test "$GCC" = yes; then |
| 9583 | 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"` |
| 9584 | else |
| 9585 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9586 | fi |
| 9587 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9588 | ;; |
| 9589 | |
| 9590 | dgux*) |
| 9591 | version_type=linux |
| 9592 | need_lib_prefix=no |
| 9593 | need_version=no |
| 9594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9595 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9596 | shlibpath_var=LD_LIBRARY_PATH |
| 9597 | ;; |
| 9598 | |
| 9599 | freebsd1*) |
| 9600 | dynamic_linker=no |
| 9601 | ;; |
| 9602 | |
| 9603 | kfreebsd*-gnu) |
| 9604 | version_type=linux |
| 9605 | need_lib_prefix=no |
| 9606 | need_version=no |
| 9607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9608 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9609 | shlibpath_var=LD_LIBRARY_PATH |
| 9610 | shlibpath_overrides_runpath=no |
| 9611 | hardcode_into_libs=yes |
| 9612 | dynamic_linker='GNU ld.so' |
| 9613 | ;; |
| 9614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9615 | freebsd* | dragonfly*) |
| 9616 | # DragonFly does not have aout. When/if they implement a new |
| 9617 | # versioning mechanism, adjust this. |
| 9618 | if test -x /usr/bin/objformat; then |
| 9619 | objformat=`/usr/bin/objformat` |
| 9620 | else |
| 9621 | case $host_os in |
| 9622 | freebsd[123]*) objformat=aout ;; |
| 9623 | *) objformat=elf ;; |
| 9624 | esac |
| 9625 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9626 | version_type=freebsd-$objformat |
| 9627 | case $version_type in |
| 9628 | freebsd-elf*) |
| 9629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9630 | need_version=no |
| 9631 | need_lib_prefix=no |
| 9632 | ;; |
| 9633 | freebsd-*) |
| 9634 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9635 | need_version=yes |
| 9636 | ;; |
| 9637 | esac |
| 9638 | shlibpath_var=LD_LIBRARY_PATH |
| 9639 | case $host_os in |
| 9640 | freebsd2*) |
| 9641 | shlibpath_overrides_runpath=yes |
| 9642 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9643 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9644 | shlibpath_overrides_runpath=yes |
| 9645 | hardcode_into_libs=yes |
| 9646 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9647 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9648 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9649 | shlibpath_overrides_runpath=no |
| 9650 | hardcode_into_libs=yes |
| 9651 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9652 | freebsd*) # from 4.6 on |
| 9653 | shlibpath_overrides_runpath=yes |
| 9654 | hardcode_into_libs=yes |
| 9655 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9656 | esac |
| 9657 | ;; |
| 9658 | |
| 9659 | gnu*) |
| 9660 | version_type=linux |
| 9661 | need_lib_prefix=no |
| 9662 | need_version=no |
| 9663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9664 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9665 | shlibpath_var=LD_LIBRARY_PATH |
| 9666 | hardcode_into_libs=yes |
| 9667 | ;; |
| 9668 | |
| 9669 | hpux9* | hpux10* | hpux11*) |
| 9670 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9671 | # link against other versions. |
| 9672 | version_type=sunos |
| 9673 | need_lib_prefix=no |
| 9674 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9675 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9676 | ia64*) |
| 9677 | shrext_cmds='.so' |
| 9678 | hardcode_into_libs=yes |
| 9679 | dynamic_linker="$host_os dld.so" |
| 9680 | shlibpath_var=LD_LIBRARY_PATH |
| 9681 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9683 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9684 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9685 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9686 | else |
| 9687 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9688 | fi |
| 9689 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9690 | ;; |
| 9691 | hppa*64*) |
| 9692 | shrext_cmds='.sl' |
| 9693 | hardcode_into_libs=yes |
| 9694 | dynamic_linker="$host_os dld.sl" |
| 9695 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9696 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9698 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9699 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9700 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9701 | ;; |
| 9702 | *) |
| 9703 | shrext_cmds='.sl' |
| 9704 | dynamic_linker="$host_os dld.sl" |
| 9705 | shlibpath_var=SHLIB_PATH |
| 9706 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9708 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9709 | ;; |
| 9710 | esac |
| 9711 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9712 | postinstall_cmds='chmod 555 $lib' |
| 9713 | ;; |
| 9714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9715 | interix3*) |
| 9716 | version_type=linux |
| 9717 | need_lib_prefix=no |
| 9718 | need_version=no |
| 9719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9720 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9721 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9722 | shlibpath_var=LD_LIBRARY_PATH |
| 9723 | shlibpath_overrides_runpath=no |
| 9724 | hardcode_into_libs=yes |
| 9725 | ;; |
| 9726 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9727 | irix5* | irix6* | nonstopux*) |
| 9728 | case $host_os in |
| 9729 | nonstopux*) version_type=nonstopux ;; |
| 9730 | *) |
| 9731 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9732 | version_type=linux |
| 9733 | else |
| 9734 | version_type=irix |
| 9735 | fi ;; |
| 9736 | esac |
| 9737 | need_lib_prefix=no |
| 9738 | need_version=no |
| 9739 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9741 | case $host_os in |
| 9742 | irix5* | nonstopux*) |
| 9743 | libsuff= shlibsuff= |
| 9744 | ;; |
| 9745 | *) |
| 9746 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9747 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9748 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9749 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9750 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9751 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9752 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9753 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9754 | esac |
| 9755 | ;; |
| 9756 | esac |
| 9757 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9758 | shlibpath_overrides_runpath=no |
| 9759 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9760 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9761 | hardcode_into_libs=yes |
| 9762 | ;; |
| 9763 | |
| 9764 | # No shared lib support for Linux oldld, aout, or coff. |
| 9765 | linux*oldld* | linux*aout* | linux*coff*) |
| 9766 | dynamic_linker=no |
| 9767 | ;; |
| 9768 | |
| 9769 | # This must be Linux ELF. |
| 9770 | linux*) |
| 9771 | version_type=linux |
| 9772 | need_lib_prefix=no |
| 9773 | need_version=no |
| 9774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9775 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9776 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9777 | shlibpath_var=LD_LIBRARY_PATH |
| 9778 | shlibpath_overrides_runpath=no |
| 9779 | # This implies no fast_install, which is unacceptable. |
| 9780 | # Some rework will be needed to allow for fast_install |
| 9781 | # before this can be enabled. |
| 9782 | hardcode_into_libs=yes |
| 9783 | |
| 9784 | # Append ld.so.conf contents to the search path |
| 9785 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9786 | 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] | 9787 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9788 | fi |
| 9789 | |
| 9790 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9791 | # powerpc, because MkLinux only supported shared libraries with the |
| 9792 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9793 | # most powerpc-linux boxes support dynamic linking these days and |
| 9794 | # people can always --disable-shared, the test was removed, and we |
| 9795 | # assume the GNU/Linux dynamic linker is in use. |
| 9796 | dynamic_linker='GNU/Linux ld.so' |
| 9797 | ;; |
| 9798 | |
| 9799 | knetbsd*-gnu) |
| 9800 | version_type=linux |
| 9801 | need_lib_prefix=no |
| 9802 | need_version=no |
| 9803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9804 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9805 | shlibpath_var=LD_LIBRARY_PATH |
| 9806 | shlibpath_overrides_runpath=no |
| 9807 | hardcode_into_libs=yes |
| 9808 | dynamic_linker='GNU ld.so' |
| 9809 | ;; |
| 9810 | |
| 9811 | netbsd*) |
| 9812 | version_type=sunos |
| 9813 | need_lib_prefix=no |
| 9814 | need_version=no |
| 9815 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9817 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9818 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9819 | else |
| 9820 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9821 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9822 | dynamic_linker='NetBSD ld.elf_so' |
| 9823 | fi |
| 9824 | shlibpath_var=LD_LIBRARY_PATH |
| 9825 | shlibpath_overrides_runpath=yes |
| 9826 | hardcode_into_libs=yes |
| 9827 | ;; |
| 9828 | |
| 9829 | newsos6) |
| 9830 | version_type=linux |
| 9831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9832 | shlibpath_var=LD_LIBRARY_PATH |
| 9833 | shlibpath_overrides_runpath=yes |
| 9834 | ;; |
| 9835 | |
| 9836 | nto-qnx*) |
| 9837 | version_type=linux |
| 9838 | need_lib_prefix=no |
| 9839 | need_version=no |
| 9840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9841 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9842 | shlibpath_var=LD_LIBRARY_PATH |
| 9843 | shlibpath_overrides_runpath=yes |
| 9844 | ;; |
| 9845 | |
| 9846 | openbsd*) |
| 9847 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9848 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9849 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9850 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9851 | case $host_os in |
| 9852 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9853 | *) need_version=no ;; |
| 9854 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9856 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9857 | shlibpath_var=LD_LIBRARY_PATH |
| 9858 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9859 | case $host_os in |
| 9860 | openbsd2.[89] | openbsd2.[89].*) |
| 9861 | shlibpath_overrides_runpath=no |
| 9862 | ;; |
| 9863 | *) |
| 9864 | shlibpath_overrides_runpath=yes |
| 9865 | ;; |
| 9866 | esac |
| 9867 | else |
| 9868 | shlibpath_overrides_runpath=yes |
| 9869 | fi |
| 9870 | ;; |
| 9871 | |
| 9872 | os2*) |
| 9873 | libname_spec='$name' |
| 9874 | shrext_cmds=".dll" |
| 9875 | need_lib_prefix=no |
| 9876 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9877 | dynamic_linker='OS/2 ld.exe' |
| 9878 | shlibpath_var=LIBPATH |
| 9879 | ;; |
| 9880 | |
| 9881 | osf3* | osf4* | osf5*) |
| 9882 | version_type=osf |
| 9883 | need_lib_prefix=no |
| 9884 | need_version=no |
| 9885 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9887 | shlibpath_var=LD_LIBRARY_PATH |
| 9888 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9889 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9890 | ;; |
| 9891 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9892 | solaris*) |
| 9893 | version_type=linux |
| 9894 | need_lib_prefix=no |
| 9895 | need_version=no |
| 9896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9897 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9898 | shlibpath_var=LD_LIBRARY_PATH |
| 9899 | shlibpath_overrides_runpath=yes |
| 9900 | hardcode_into_libs=yes |
| 9901 | # ldd complains unless libraries are executable |
| 9902 | postinstall_cmds='chmod +x $lib' |
| 9903 | ;; |
| 9904 | |
| 9905 | sunos4*) |
| 9906 | version_type=sunos |
| 9907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9908 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9909 | shlibpath_var=LD_LIBRARY_PATH |
| 9910 | shlibpath_overrides_runpath=yes |
| 9911 | if test "$with_gnu_ld" = yes; then |
| 9912 | need_lib_prefix=no |
| 9913 | fi |
| 9914 | need_version=yes |
| 9915 | ;; |
| 9916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9917 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9918 | version_type=linux |
| 9919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9920 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9921 | shlibpath_var=LD_LIBRARY_PATH |
| 9922 | case $host_vendor in |
| 9923 | sni) |
| 9924 | shlibpath_overrides_runpath=no |
| 9925 | need_lib_prefix=no |
| 9926 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9927 | runpath_var=LD_RUN_PATH |
| 9928 | ;; |
| 9929 | siemens) |
| 9930 | need_lib_prefix=no |
| 9931 | ;; |
| 9932 | motorola) |
| 9933 | need_lib_prefix=no |
| 9934 | need_version=no |
| 9935 | shlibpath_overrides_runpath=no |
| 9936 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9937 | ;; |
| 9938 | esac |
| 9939 | ;; |
| 9940 | |
| 9941 | sysv4*MP*) |
| 9942 | if test -d /usr/nec ;then |
| 9943 | version_type=linux |
| 9944 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9945 | soname_spec='$libname${shared_ext}.$major' |
| 9946 | shlibpath_var=LD_LIBRARY_PATH |
| 9947 | fi |
| 9948 | ;; |
| 9949 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9950 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9951 | version_type=freebsd-elf |
| 9952 | need_lib_prefix=no |
| 9953 | need_version=no |
| 9954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9955 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9956 | shlibpath_var=LD_LIBRARY_PATH |
| 9957 | hardcode_into_libs=yes |
| 9958 | if test "$with_gnu_ld" = yes; then |
| 9959 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9960 | shlibpath_overrides_runpath=no |
| 9961 | else |
| 9962 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9963 | shlibpath_overrides_runpath=yes |
| 9964 | case $host_os in |
| 9965 | sco3.2v5*) |
| 9966 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9967 | ;; |
| 9968 | esac |
| 9969 | fi |
| 9970 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9971 | ;; |
| 9972 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9973 | uts4*) |
| 9974 | version_type=linux |
| 9975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9976 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9977 | shlibpath_var=LD_LIBRARY_PATH |
| 9978 | ;; |
| 9979 | |
| 9980 | *) |
| 9981 | dynamic_linker=no |
| 9982 | ;; |
| 9983 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9984 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9985 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9986 | test "$dynamic_linker" = no && can_build_shared=no |
| 9987 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9988 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9989 | if test "$GCC" = yes; then |
| 9990 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9991 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9993 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9994 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9995 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9996 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9998 | else |
| 9999 | |
| 10000 | module=yes |
| 10001 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10002 | |
| 10003 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10004 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10005 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10006 | if test -n "$libltdl_cv_shlibext"; then |
| 10007 | |
| 10008 | cat >>confdefs.h <<_ACEOF |
| 10009 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10010 | _ACEOF |
| 10011 | |
| 10012 | fi |
| 10013 | |
| 10014 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10015 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10016 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10017 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10019 | else |
| 10020 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10021 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10022 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10023 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10024 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10025 | |
| 10026 | cat >>confdefs.h <<_ACEOF |
| 10027 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10028 | _ACEOF |
| 10029 | |
| 10030 | fi |
| 10031 | |
| 10032 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10033 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10034 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10035 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10037 | else |
| 10038 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10039 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10040 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10041 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10042 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10043 | sys_search_path= |
| 10044 | for dir in $libltdl_cv_sys_search_path; do |
| 10045 | if test -z "$sys_search_path"; then |
| 10046 | sys_search_path="$dir" |
| 10047 | else |
| 10048 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10049 | fi |
| 10050 | done |
| 10051 | |
| 10052 | cat >>confdefs.h <<_ACEOF |
| 10053 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10054 | _ACEOF |
| 10055 | |
| 10056 | fi |
| 10057 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10058 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10059 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10060 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10062 | else |
| 10063 | libltdl_cv_objdir="$objdir" |
| 10064 | if test -n "$objdir"; then |
| 10065 | : |
| 10066 | else |
| 10067 | rm -f .libs 2>/dev/null |
| 10068 | mkdir .libs 2>/dev/null |
| 10069 | if test -d .libs; then |
| 10070 | libltdl_cv_objdir=.libs |
| 10071 | else |
| 10072 | # MS-DOS does not allow filenames that begin with a dot. |
| 10073 | libltdl_cv_objdir=_libs |
| 10074 | fi |
| 10075 | rmdir .libs 2>/dev/null |
| 10076 | fi |
| 10077 | |
| 10078 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10079 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10080 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10081 | |
| 10082 | cat >>confdefs.h <<_ACEOF |
| 10083 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10084 | _ACEOF |
| 10085 | |
| 10086 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10087 | |
| 10088 | |
| 10089 | |
| 10090 | |
| 10091 | # 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] | 10092 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10093 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10094 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10096 | else |
| 10097 | |
| 10098 | # These are sane defaults that work on at least a few old systems. |
| 10099 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10100 | |
| 10101 | # Character class describing NM global symbol codes. |
| 10102 | symcode='[BCDEGRST]' |
| 10103 | |
| 10104 | # Regexp to match symbols that can be accessed directly from C. |
| 10105 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10106 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10107 | # Transform an extracted symbol line into a proper C declaration |
| 10108 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10109 | |
| 10110 | # Transform an extracted symbol line into symbol name and symbol address |
| 10111 | 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'" |
| 10112 | |
| 10113 | # Define system-specific variables. |
| 10114 | case $host_os in |
| 10115 | aix*) |
| 10116 | symcode='[BCDT]' |
| 10117 | ;; |
| 10118 | cygwin* | mingw* | pw32*) |
| 10119 | symcode='[ABCDGISTW]' |
| 10120 | ;; |
| 10121 | hpux*) # Its linker distinguishes data from code symbols |
| 10122 | if test "$host_cpu" = ia64; then |
| 10123 | symcode='[ABCDEGRST]' |
| 10124 | fi |
| 10125 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10126 | 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'" |
| 10127 | ;; |
| 10128 | linux*) |
| 10129 | if test "$host_cpu" = ia64; then |
| 10130 | symcode='[ABCDGIRSTW]' |
| 10131 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10132 | 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'" |
| 10133 | fi |
| 10134 | ;; |
| 10135 | irix* | nonstopux*) |
| 10136 | symcode='[BCDEGRST]' |
| 10137 | ;; |
| 10138 | osf*) |
| 10139 | symcode='[BCDEGQRST]' |
| 10140 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10141 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10142 | symcode='[BDRT]' |
| 10143 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10144 | sco3.2v5*) |
| 10145 | symcode='[DT]' |
| 10146 | ;; |
| 10147 | sysv4.2uw2*) |
| 10148 | symcode='[DT]' |
| 10149 | ;; |
| 10150 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10151 | symcode='[ABDT]' |
| 10152 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10153 | sysv4) |
| 10154 | symcode='[DFNSTU]' |
| 10155 | ;; |
| 10156 | esac |
| 10157 | |
| 10158 | # Handle CRLF in mingw tool chain |
| 10159 | opt_cr= |
| 10160 | case $build_os in |
| 10161 | mingw*) |
| 10162 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10163 | ;; |
| 10164 | esac |
| 10165 | |
| 10166 | # If we're using GNU nm, then use its standard symbol codes. |
| 10167 | case `$NM -V 2>&1` in |
| 10168 | *GNU* | *'with BFD'*) |
| 10169 | symcode='[ABCDGIRSTW]' ;; |
| 10170 | esac |
| 10171 | |
| 10172 | # Try without a prefix undercore, then with it. |
| 10173 | for ac_symprfx in "" "_"; do |
| 10174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10175 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10176 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10177 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10178 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10179 | 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] | 10180 | |
| 10181 | # Check to see that the pipe works correctly. |
| 10182 | pipe_works=no |
| 10183 | |
| 10184 | rm -f conftest* |
| 10185 | cat > conftest.$ac_ext <<EOF |
| 10186 | #ifdef __cplusplus |
| 10187 | extern "C" { |
| 10188 | #endif |
| 10189 | char nm_test_var; |
| 10190 | void nm_test_func(){} |
| 10191 | #ifdef __cplusplus |
| 10192 | } |
| 10193 | #endif |
| 10194 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10195 | EOF |
| 10196 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10198 | (eval $ac_compile) 2>&5 |
| 10199 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10201 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10202 | # Now try to grab the symbols. |
| 10203 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10204 | 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] | 10205 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10206 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10208 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10209 | # Try sorting and uniquifying the output. |
| 10210 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10211 | mv -f "$nlist"T "$nlist" |
| 10212 | else |
| 10213 | rm -f "$nlist"T |
| 10214 | fi |
| 10215 | |
| 10216 | # Make sure that we snagged all the symbols we need. |
| 10217 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10218 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10219 | cat <<EOF > conftest.$ac_ext |
| 10220 | #ifdef __cplusplus |
| 10221 | extern "C" { |
| 10222 | #endif |
| 10223 | |
| 10224 | EOF |
| 10225 | # Now generate the symbol file. |
| 10226 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10227 | |
| 10228 | cat <<EOF >> conftest.$ac_ext |
| 10229 | #if defined (__STDC__) && __STDC__ |
| 10230 | # define lt_ptr_t void * |
| 10231 | #else |
| 10232 | # define lt_ptr_t char * |
| 10233 | # define const |
| 10234 | #endif |
| 10235 | |
| 10236 | /* The mapping between symbol names and symbols. */ |
| 10237 | const struct { |
| 10238 | const char *name; |
| 10239 | lt_ptr_t address; |
| 10240 | } |
| 10241 | lt_preloaded_symbols[] = |
| 10242 | { |
| 10243 | EOF |
| 10244 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10245 | cat <<\EOF >> conftest.$ac_ext |
| 10246 | {0, (lt_ptr_t) 0} |
| 10247 | }; |
| 10248 | |
| 10249 | #ifdef __cplusplus |
| 10250 | } |
| 10251 | #endif |
| 10252 | EOF |
| 10253 | # Now try linking the two files. |
| 10254 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10255 | lt_save_LIBS="$LIBS" |
| 10256 | lt_save_CFLAGS="$CFLAGS" |
| 10257 | LIBS="conftstm.$ac_objext" |
| 10258 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10260 | (eval $ac_link) 2>&5 |
| 10261 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10263 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10264 | pipe_works=yes |
| 10265 | fi |
| 10266 | LIBS="$lt_save_LIBS" |
| 10267 | CFLAGS="$lt_save_CFLAGS" |
| 10268 | else |
| 10269 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10270 | fi |
| 10271 | else |
| 10272 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10273 | fi |
| 10274 | else |
| 10275 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10276 | fi |
| 10277 | else |
| 10278 | echo "$progname: failed program was:" >&5 |
| 10279 | cat conftest.$ac_ext >&5 |
| 10280 | fi |
| 10281 | rm -f conftest* conftst* |
| 10282 | |
| 10283 | # Do not use the global_symbol_pipe unless it works. |
| 10284 | if test "$pipe_works" = yes; then |
| 10285 | break |
| 10286 | else |
| 10287 | lt_cv_sys_global_symbol_pipe= |
| 10288 | fi |
| 10289 | done |
| 10290 | |
| 10291 | fi |
| 10292 | |
| 10293 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10294 | lt_cv_sys_global_symbol_to_cdecl= |
| 10295 | fi |
| 10296 | 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] | 10297 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10298 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10299 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10300 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10301 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10302 | fi |
| 10303 | |
| 10304 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10305 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10306 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10307 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10309 | else |
| 10310 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10311 | libltdl_cv_preloaded_symbols=yes |
| 10312 | else |
| 10313 | libltdl_cv_preloaded_symbols=no |
| 10314 | fi |
| 10315 | |
| 10316 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10317 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10318 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10319 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10320 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10321 | cat >>confdefs.h <<\_ACEOF |
| 10322 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10323 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10324 | |
| 10325 | fi |
| 10326 | |
| 10327 | LIBADD_DL= |
| 10328 | |
| 10329 | ac_ext=c |
| 10330 | ac_cpp='$CPP $CPPFLAGS' |
| 10331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10334 | |
| 10335 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10336 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10337 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10338 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10340 | else |
| 10341 | cat >conftest.$ac_ext <<_ACEOF |
| 10342 | /* confdefs.h. */ |
| 10343 | _ACEOF |
| 10344 | cat confdefs.h >>conftest.$ac_ext |
| 10345 | cat >>conftest.$ac_ext <<_ACEOF |
| 10346 | /* end confdefs.h. */ |
| 10347 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10348 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10349 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10350 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10351 | /* System header to define __stub macros and hopefully few prototypes, |
| 10352 | which can conflict with char shl_load (); below. |
| 10353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10354 | <limits.h> exists even on freestanding compilers. */ |
| 10355 | |
| 10356 | #ifdef __STDC__ |
| 10357 | # include <limits.h> |
| 10358 | #else |
| 10359 | # include <assert.h> |
| 10360 | #endif |
| 10361 | |
| 10362 | #undef shl_load |
| 10363 | |
| 10364 | /* Override any GCC internal prototype to avoid an error. |
| 10365 | Use char because int might match the return type of a GCC |
| 10366 | builtin and then its argument prototype would still apply. */ |
| 10367 | #ifdef __cplusplus |
| 10368 | extern "C" |
| 10369 | #endif |
| 10370 | char shl_load (); |
| 10371 | /* The GNU C library defines this for functions which it implements |
| 10372 | to always fail with ENOSYS. Some functions are actually named |
| 10373 | something starting with __ and the normal name is an alias. */ |
| 10374 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10375 | choke me |
| 10376 | #endif |
| 10377 | |
| 10378 | int |
| 10379 | main () |
| 10380 | { |
| 10381 | return shl_load (); |
| 10382 | ; |
| 10383 | return 0; |
| 10384 | } |
| 10385 | _ACEOF |
| 10386 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10387 | if { (ac_try="$ac_link" |
| 10388 | case "(($ac_try" in |
| 10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10390 | *) ac_try_echo=$ac_try;; |
| 10391 | esac |
| 10392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10393 | (eval "$ac_link") 2>conftest.er1 |
| 10394 | ac_status=$? |
| 10395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10396 | rm -f conftest.er1 |
| 10397 | cat conftest.err >&5 |
| 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10399 | (exit $ac_status); } && |
| 10400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10401 | { (case "(($ac_try" in |
| 10402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10403 | *) ac_try_echo=$ac_try;; |
| 10404 | esac |
| 10405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10406 | (eval "$ac_try") 2>&5 |
| 10407 | ac_status=$? |
| 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10409 | (exit $ac_status); }; } && |
| 10410 | { ac_try='test -s conftest$ac_exeext' |
| 10411 | { (case "(($ac_try" in |
| 10412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10413 | *) ac_try_echo=$ac_try;; |
| 10414 | esac |
| 10415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10416 | (eval "$ac_try") 2>&5 |
| 10417 | ac_status=$? |
| 10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10419 | (exit $ac_status); }; }; then |
| 10420 | ac_cv_func_shl_load=yes |
| 10421 | else |
| 10422 | echo "$as_me: failed program was:" >&5 |
| 10423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10424 | |
| 10425 | ac_cv_func_shl_load=no |
| 10426 | fi |
| 10427 | |
| 10428 | rm -f core conftest.err conftest.$ac_objext \ |
| 10429 | conftest$ac_exeext conftest.$ac_ext |
| 10430 | fi |
| 10431 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10432 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10433 | if test $ac_cv_func_shl_load = yes; then |
| 10434 | |
| 10435 | cat >>confdefs.h <<\_ACEOF |
| 10436 | #define HAVE_SHL_LOAD 1 |
| 10437 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10438 | |
| 10439 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10440 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10441 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10442 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10444 | else |
| 10445 | ac_check_lib_save_LIBS=$LIBS |
| 10446 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10447 | cat >conftest.$ac_ext <<_ACEOF |
| 10448 | /* confdefs.h. */ |
| 10449 | _ACEOF |
| 10450 | cat confdefs.h >>conftest.$ac_ext |
| 10451 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10452 | /* end confdefs.h. */ |
| 10453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10454 | /* Override any GCC internal prototype to avoid an error. |
| 10455 | Use char because int might match the return type of a GCC |
| 10456 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10457 | #ifdef __cplusplus |
| 10458 | extern "C" |
| 10459 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10460 | char shl_load (); |
| 10461 | int |
| 10462 | main () |
| 10463 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10464 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10465 | ; |
| 10466 | return 0; |
| 10467 | } |
| 10468 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10469 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10470 | if { (ac_try="$ac_link" |
| 10471 | case "(($ac_try" in |
| 10472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10473 | *) ac_try_echo=$ac_try;; |
| 10474 | esac |
| 10475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10476 | (eval "$ac_link") 2>conftest.er1 |
| 10477 | ac_status=$? |
| 10478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10479 | rm -f conftest.er1 |
| 10480 | cat conftest.err >&5 |
| 10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10482 | (exit $ac_status); } && |
| 10483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10484 | { (case "(($ac_try" in |
| 10485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10486 | *) ac_try_echo=$ac_try;; |
| 10487 | esac |
| 10488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10489 | (eval "$ac_try") 2>&5 |
| 10490 | ac_status=$? |
| 10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10492 | (exit $ac_status); }; } && |
| 10493 | { ac_try='test -s conftest$ac_exeext' |
| 10494 | { (case "(($ac_try" in |
| 10495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10496 | *) ac_try_echo=$ac_try;; |
| 10497 | esac |
| 10498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10499 | (eval "$ac_try") 2>&5 |
| 10500 | ac_status=$? |
| 10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10502 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10503 | ac_cv_lib_dld_shl_load=yes |
| 10504 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10505 | echo "$as_me: failed program was:" >&5 |
| 10506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10507 | |
| 10508 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10510 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10511 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10512 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10513 | LIBS=$ac_check_lib_save_LIBS |
| 10514 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10515 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10516 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10517 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10518 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10519 | cat >>confdefs.h <<\_ACEOF |
| 10520 | #define HAVE_SHL_LOAD 1 |
| 10521 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10522 | |
| 10523 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10524 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10525 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10526 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10527 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10529 | else |
| 10530 | ac_check_lib_save_LIBS=$LIBS |
| 10531 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10532 | cat >conftest.$ac_ext <<_ACEOF |
| 10533 | /* confdefs.h. */ |
| 10534 | _ACEOF |
| 10535 | cat confdefs.h >>conftest.$ac_ext |
| 10536 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10537 | /* end confdefs.h. */ |
| 10538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10539 | /* Override any GCC internal prototype to avoid an error. |
| 10540 | Use char because int might match the return type of a GCC |
| 10541 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10542 | #ifdef __cplusplus |
| 10543 | extern "C" |
| 10544 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10545 | char dlopen (); |
| 10546 | int |
| 10547 | main () |
| 10548 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10549 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10550 | ; |
| 10551 | return 0; |
| 10552 | } |
| 10553 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10555 | if { (ac_try="$ac_link" |
| 10556 | case "(($ac_try" in |
| 10557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10558 | *) ac_try_echo=$ac_try;; |
| 10559 | esac |
| 10560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10561 | (eval "$ac_link") 2>conftest.er1 |
| 10562 | ac_status=$? |
| 10563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10564 | rm -f conftest.er1 |
| 10565 | cat conftest.err >&5 |
| 10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10567 | (exit $ac_status); } && |
| 10568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10569 | { (case "(($ac_try" in |
| 10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10571 | *) ac_try_echo=$ac_try;; |
| 10572 | esac |
| 10573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10574 | (eval "$ac_try") 2>&5 |
| 10575 | ac_status=$? |
| 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10577 | (exit $ac_status); }; } && |
| 10578 | { ac_try='test -s conftest$ac_exeext' |
| 10579 | { (case "(($ac_try" in |
| 10580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10581 | *) ac_try_echo=$ac_try;; |
| 10582 | esac |
| 10583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10584 | (eval "$ac_try") 2>&5 |
| 10585 | ac_status=$? |
| 10586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10587 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10588 | ac_cv_lib_dl_dlopen=yes |
| 10589 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10590 | echo "$as_me: failed program was:" >&5 |
| 10591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10592 | |
| 10593 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10594 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10595 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10596 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10597 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10598 | LIBS=$ac_check_lib_save_LIBS |
| 10599 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10600 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10601 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10602 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10604 | cat >>confdefs.h <<\_ACEOF |
| 10605 | #define HAVE_LIBDL 1 |
| 10606 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10607 | |
| 10608 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10609 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10610 | cat >conftest.$ac_ext <<_ACEOF |
| 10611 | /* confdefs.h. */ |
| 10612 | _ACEOF |
| 10613 | cat confdefs.h >>conftest.$ac_ext |
| 10614 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10615 | /* end confdefs.h. */ |
| 10616 | #if HAVE_DLFCN_H |
| 10617 | # include <dlfcn.h> |
| 10618 | #endif |
| 10619 | |
| 10620 | int |
| 10621 | main () |
| 10622 | { |
| 10623 | dlopen(0, 0); |
| 10624 | ; |
| 10625 | return 0; |
| 10626 | } |
| 10627 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10628 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10629 | if { (ac_try="$ac_link" |
| 10630 | case "(($ac_try" in |
| 10631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10632 | *) ac_try_echo=$ac_try;; |
| 10633 | esac |
| 10634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10635 | (eval "$ac_link") 2>conftest.er1 |
| 10636 | ac_status=$? |
| 10637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10638 | rm -f conftest.er1 |
| 10639 | cat conftest.err >&5 |
| 10640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10641 | (exit $ac_status); } && |
| 10642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10643 | { (case "(($ac_try" in |
| 10644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10645 | *) ac_try_echo=$ac_try;; |
| 10646 | esac |
| 10647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10648 | (eval "$ac_try") 2>&5 |
| 10649 | ac_status=$? |
| 10650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10651 | (exit $ac_status); }; } && |
| 10652 | { ac_try='test -s conftest$ac_exeext' |
| 10653 | { (case "(($ac_try" in |
| 10654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10655 | *) ac_try_echo=$ac_try;; |
| 10656 | esac |
| 10657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10658 | (eval "$ac_try") 2>&5 |
| 10659 | ac_status=$? |
| 10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10661 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10662 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10663 | cat >>confdefs.h <<\_ACEOF |
| 10664 | #define HAVE_LIBDL 1 |
| 10665 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10666 | libltdl_cv_func_dlopen="yes" |
| 10667 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10668 | echo "$as_me: failed program was:" >&5 |
| 10669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10670 | |
| 10671 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10672 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10673 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10675 | else |
| 10676 | ac_check_lib_save_LIBS=$LIBS |
| 10677 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10678 | cat >conftest.$ac_ext <<_ACEOF |
| 10679 | /* confdefs.h. */ |
| 10680 | _ACEOF |
| 10681 | cat confdefs.h >>conftest.$ac_ext |
| 10682 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10683 | /* end confdefs.h. */ |
| 10684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10685 | /* Override any GCC internal prototype to avoid an error. |
| 10686 | Use char because int might match the return type of a GCC |
| 10687 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10688 | #ifdef __cplusplus |
| 10689 | extern "C" |
| 10690 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10691 | char dlopen (); |
| 10692 | int |
| 10693 | main () |
| 10694 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10695 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10696 | ; |
| 10697 | return 0; |
| 10698 | } |
| 10699 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10700 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10701 | if { (ac_try="$ac_link" |
| 10702 | case "(($ac_try" in |
| 10703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10704 | *) ac_try_echo=$ac_try;; |
| 10705 | esac |
| 10706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10707 | (eval "$ac_link") 2>conftest.er1 |
| 10708 | ac_status=$? |
| 10709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10710 | rm -f conftest.er1 |
| 10711 | cat conftest.err >&5 |
| 10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10713 | (exit $ac_status); } && |
| 10714 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10715 | { (case "(($ac_try" in |
| 10716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10717 | *) ac_try_echo=$ac_try;; |
| 10718 | esac |
| 10719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10720 | (eval "$ac_try") 2>&5 |
| 10721 | ac_status=$? |
| 10722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10723 | (exit $ac_status); }; } && |
| 10724 | { ac_try='test -s conftest$ac_exeext' |
| 10725 | { (case "(($ac_try" in |
| 10726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10727 | *) ac_try_echo=$ac_try;; |
| 10728 | esac |
| 10729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10730 | (eval "$ac_try") 2>&5 |
| 10731 | ac_status=$? |
| 10732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10733 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10734 | ac_cv_lib_svld_dlopen=yes |
| 10735 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10736 | echo "$as_me: failed program was:" >&5 |
| 10737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10738 | |
| 10739 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10740 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10741 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10742 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10743 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10744 | LIBS=$ac_check_lib_save_LIBS |
| 10745 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10746 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10747 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10748 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10749 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10750 | cat >>confdefs.h <<\_ACEOF |
| 10751 | #define HAVE_LIBDL 1 |
| 10752 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10753 | |
| 10754 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10755 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10756 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10757 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10758 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10760 | else |
| 10761 | ac_check_lib_save_LIBS=$LIBS |
| 10762 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10763 | cat >conftest.$ac_ext <<_ACEOF |
| 10764 | /* confdefs.h. */ |
| 10765 | _ACEOF |
| 10766 | cat confdefs.h >>conftest.$ac_ext |
| 10767 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10768 | /* end confdefs.h. */ |
| 10769 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10770 | /* Override any GCC internal prototype to avoid an error. |
| 10771 | Use char because int might match the return type of a GCC |
| 10772 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10773 | #ifdef __cplusplus |
| 10774 | extern "C" |
| 10775 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10776 | char dld_link (); |
| 10777 | int |
| 10778 | main () |
| 10779 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10780 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10781 | ; |
| 10782 | return 0; |
| 10783 | } |
| 10784 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10785 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10786 | if { (ac_try="$ac_link" |
| 10787 | case "(($ac_try" in |
| 10788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10789 | *) ac_try_echo=$ac_try;; |
| 10790 | esac |
| 10791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10792 | (eval "$ac_link") 2>conftest.er1 |
| 10793 | ac_status=$? |
| 10794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10795 | rm -f conftest.er1 |
| 10796 | cat conftest.err >&5 |
| 10797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10798 | (exit $ac_status); } && |
| 10799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10800 | { (case "(($ac_try" in |
| 10801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10802 | *) ac_try_echo=$ac_try;; |
| 10803 | esac |
| 10804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10805 | (eval "$ac_try") 2>&5 |
| 10806 | ac_status=$? |
| 10807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10808 | (exit $ac_status); }; } && |
| 10809 | { ac_try='test -s conftest$ac_exeext' |
| 10810 | { (case "(($ac_try" in |
| 10811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10812 | *) ac_try_echo=$ac_try;; |
| 10813 | esac |
| 10814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10815 | (eval "$ac_try") 2>&5 |
| 10816 | ac_status=$? |
| 10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10818 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10819 | ac_cv_lib_dld_dld_link=yes |
| 10820 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10821 | echo "$as_me: failed program was:" >&5 |
| 10822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10823 | |
| 10824 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10825 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10826 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10827 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10828 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10829 | LIBS=$ac_check_lib_save_LIBS |
| 10830 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10831 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10832 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10833 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10834 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10835 | cat >>confdefs.h <<\_ACEOF |
| 10836 | #define HAVE_DLD 1 |
| 10837 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10838 | |
| 10839 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10840 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10841 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10842 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10843 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10845 | else |
| 10846 | cat >conftest.$ac_ext <<_ACEOF |
| 10847 | /* confdefs.h. */ |
| 10848 | _ACEOF |
| 10849 | cat confdefs.h >>conftest.$ac_ext |
| 10850 | cat >>conftest.$ac_ext <<_ACEOF |
| 10851 | /* end confdefs.h. */ |
| 10852 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10854 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10855 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10856 | /* System header to define __stub macros and hopefully few prototypes, |
| 10857 | which can conflict with char _dyld_func_lookup (); below. |
| 10858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10859 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10860 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10861 | #ifdef __STDC__ |
| 10862 | # include <limits.h> |
| 10863 | #else |
| 10864 | # include <assert.h> |
| 10865 | #endif |
| 10866 | |
| 10867 | #undef _dyld_func_lookup |
| 10868 | |
| 10869 | /* Override any GCC internal prototype to avoid an error. |
| 10870 | Use char because int might match the return type of a GCC |
| 10871 | builtin and then its argument prototype would still apply. */ |
| 10872 | #ifdef __cplusplus |
| 10873 | extern "C" |
| 10874 | #endif |
| 10875 | char _dyld_func_lookup (); |
| 10876 | /* The GNU C library defines this for functions which it implements |
| 10877 | to always fail with ENOSYS. Some functions are actually named |
| 10878 | something starting with __ and the normal name is an alias. */ |
| 10879 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10880 | choke me |
| 10881 | #endif |
| 10882 | |
| 10883 | int |
| 10884 | main () |
| 10885 | { |
| 10886 | return _dyld_func_lookup (); |
| 10887 | ; |
| 10888 | return 0; |
| 10889 | } |
| 10890 | _ACEOF |
| 10891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10892 | if { (ac_try="$ac_link" |
| 10893 | case "(($ac_try" in |
| 10894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10895 | *) ac_try_echo=$ac_try;; |
| 10896 | esac |
| 10897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10898 | (eval "$ac_link") 2>conftest.er1 |
| 10899 | ac_status=$? |
| 10900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10901 | rm -f conftest.er1 |
| 10902 | cat conftest.err >&5 |
| 10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10904 | (exit $ac_status); } && |
| 10905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10906 | { (case "(($ac_try" in |
| 10907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10908 | *) ac_try_echo=$ac_try;; |
| 10909 | esac |
| 10910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10911 | (eval "$ac_try") 2>&5 |
| 10912 | ac_status=$? |
| 10913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10914 | (exit $ac_status); }; } && |
| 10915 | { ac_try='test -s conftest$ac_exeext' |
| 10916 | { (case "(($ac_try" in |
| 10917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10918 | *) ac_try_echo=$ac_try;; |
| 10919 | esac |
| 10920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10921 | (eval "$ac_try") 2>&5 |
| 10922 | ac_status=$? |
| 10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10924 | (exit $ac_status); }; }; then |
| 10925 | ac_cv_func__dyld_func_lookup=yes |
| 10926 | else |
| 10927 | echo "$as_me: failed program was:" >&5 |
| 10928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10929 | |
| 10930 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10931 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10932 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10933 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10934 | conftest$ac_exeext conftest.$ac_ext |
| 10935 | fi |
| 10936 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10937 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10938 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10939 | |
| 10940 | cat >>confdefs.h <<\_ACEOF |
| 10941 | #define HAVE_DYLD 1 |
| 10942 | _ACEOF |
| 10943 | |
| 10944 | fi |
| 10945 | |
| 10946 | |
| 10947 | fi |
| 10948 | |
| 10949 | |
| 10950 | fi |
| 10951 | |
| 10952 | |
| 10953 | fi |
| 10954 | |
| 10955 | rm -f core conftest.err conftest.$ac_objext \ |
| 10956 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10957 | |
| 10958 | fi |
| 10959 | |
| 10960 | |
| 10961 | fi |
| 10962 | |
| 10963 | |
| 10964 | fi |
| 10965 | |
| 10966 | |
| 10967 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10968 | then |
| 10969 | lt_save_LIBS="$LIBS" |
| 10970 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10971 | |
| 10972 | for ac_func in dlerror |
| 10973 | do |
| 10974 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10975 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10976 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10977 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10979 | else |
| 10980 | cat >conftest.$ac_ext <<_ACEOF |
| 10981 | /* confdefs.h. */ |
| 10982 | _ACEOF |
| 10983 | cat confdefs.h >>conftest.$ac_ext |
| 10984 | cat >>conftest.$ac_ext <<_ACEOF |
| 10985 | /* end confdefs.h. */ |
| 10986 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10987 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10988 | #define $ac_func innocuous_$ac_func |
| 10989 | |
| 10990 | /* System header to define __stub macros and hopefully few prototypes, |
| 10991 | which can conflict with char $ac_func (); below. |
| 10992 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10993 | <limits.h> exists even on freestanding compilers. */ |
| 10994 | |
| 10995 | #ifdef __STDC__ |
| 10996 | # include <limits.h> |
| 10997 | #else |
| 10998 | # include <assert.h> |
| 10999 | #endif |
| 11000 | |
| 11001 | #undef $ac_func |
| 11002 | |
| 11003 | /* Override any GCC internal prototype to avoid an error. |
| 11004 | Use char because int might match the return type of a GCC |
| 11005 | builtin and then its argument prototype would still apply. */ |
| 11006 | #ifdef __cplusplus |
| 11007 | extern "C" |
| 11008 | #endif |
| 11009 | char $ac_func (); |
| 11010 | /* The GNU C library defines this for functions which it implements |
| 11011 | to always fail with ENOSYS. Some functions are actually named |
| 11012 | something starting with __ and the normal name is an alias. */ |
| 11013 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11014 | choke me |
| 11015 | #endif |
| 11016 | |
| 11017 | int |
| 11018 | main () |
| 11019 | { |
| 11020 | return $ac_func (); |
| 11021 | ; |
| 11022 | return 0; |
| 11023 | } |
| 11024 | _ACEOF |
| 11025 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11026 | if { (ac_try="$ac_link" |
| 11027 | case "(($ac_try" in |
| 11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11029 | *) ac_try_echo=$ac_try;; |
| 11030 | esac |
| 11031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11032 | (eval "$ac_link") 2>conftest.er1 |
| 11033 | ac_status=$? |
| 11034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11035 | rm -f conftest.er1 |
| 11036 | cat conftest.err >&5 |
| 11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11038 | (exit $ac_status); } && |
| 11039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11040 | { (case "(($ac_try" in |
| 11041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11042 | *) ac_try_echo=$ac_try;; |
| 11043 | esac |
| 11044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11045 | (eval "$ac_try") 2>&5 |
| 11046 | ac_status=$? |
| 11047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11048 | (exit $ac_status); }; } && |
| 11049 | { ac_try='test -s conftest$ac_exeext' |
| 11050 | { (case "(($ac_try" in |
| 11051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11052 | *) ac_try_echo=$ac_try;; |
| 11053 | esac |
| 11054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11055 | (eval "$ac_try") 2>&5 |
| 11056 | ac_status=$? |
| 11057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11058 | (exit $ac_status); }; }; then |
| 11059 | eval "$as_ac_var=yes" |
| 11060 | else |
| 11061 | echo "$as_me: failed program was:" >&5 |
| 11062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11063 | |
| 11064 | eval "$as_ac_var=no" |
| 11065 | fi |
| 11066 | |
| 11067 | rm -f core conftest.err conftest.$ac_objext \ |
| 11068 | conftest$ac_exeext conftest.$ac_ext |
| 11069 | fi |
| 11070 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11071 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11072 | echo "${ECHO_T}$ac_res" >&6; } |
| 11073 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11074 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11075 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11076 | _ACEOF |
| 11077 | |
| 11078 | fi |
| 11079 | done |
| 11080 | |
| 11081 | LIBS="$lt_save_LIBS" |
| 11082 | fi |
| 11083 | ac_ext=c |
| 11084 | ac_cpp='$CPP $CPPFLAGS' |
| 11085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11088 | |
| 11089 | |
| 11090 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11091 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11092 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11093 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11095 | else |
| 11096 | ac_cv_sys_symbol_underscore=no |
| 11097 | cat > conftest.$ac_ext <<EOF |
| 11098 | void nm_test_func(){} |
| 11099 | int main(){nm_test_func;return 0;} |
| 11100 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11102 | (eval $ac_compile) 2>&5 |
| 11103 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11105 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11106 | # Now try to grab the symbols. |
| 11107 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11108 | 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] | 11109 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11110 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11112 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11113 | # See whether the symbols have a leading underscore. |
| 11114 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11115 | ac_cv_sys_symbol_underscore=yes |
| 11116 | else |
| 11117 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11118 | : |
| 11119 | else |
| 11120 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11121 | fi |
| 11122 | fi |
| 11123 | else |
| 11124 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11125 | fi |
| 11126 | else |
| 11127 | echo "configure: failed program was:" >&5 |
| 11128 | cat conftest.c >&5 |
| 11129 | fi |
| 11130 | rm -rf conftest* |
| 11131 | |
| 11132 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11133 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11134 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11135 | |
| 11136 | |
| 11137 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11138 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11139 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11140 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11141 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11142 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11144 | else |
| 11145 | libltdl_cv_need_uscore=unknown |
| 11146 | save_LIBS="$LIBS" |
| 11147 | LIBS="$LIBS $LIBADD_DL" |
| 11148 | if test "$cross_compiling" = yes; then : |
| 11149 | libltdl_cv_need_uscore=cross |
| 11150 | else |
| 11151 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11152 | lt_status=$lt_dlunknown |
| 11153 | cat > conftest.$ac_ext <<EOF |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame^] | 11154 | #line 11154 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11155 | #include "confdefs.h" |
| 11156 | |
| 11157 | #if HAVE_DLFCN_H |
| 11158 | #include <dlfcn.h> |
| 11159 | #endif |
| 11160 | |
| 11161 | #include <stdio.h> |
| 11162 | |
| 11163 | #ifdef RTLD_GLOBAL |
| 11164 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11165 | #else |
| 11166 | # ifdef DL_GLOBAL |
| 11167 | # define LT_DLGLOBAL DL_GLOBAL |
| 11168 | # else |
| 11169 | # define LT_DLGLOBAL 0 |
| 11170 | # endif |
| 11171 | #endif |
| 11172 | |
| 11173 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11174 | find out it does not work in some platform. */ |
| 11175 | #ifndef LT_DLLAZY_OR_NOW |
| 11176 | # ifdef RTLD_LAZY |
| 11177 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11178 | # else |
| 11179 | # ifdef DL_LAZY |
| 11180 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11181 | # else |
| 11182 | # ifdef RTLD_NOW |
| 11183 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11184 | # else |
| 11185 | # ifdef DL_NOW |
| 11186 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11187 | # else |
| 11188 | # define LT_DLLAZY_OR_NOW 0 |
| 11189 | # endif |
| 11190 | # endif |
| 11191 | # endif |
| 11192 | # endif |
| 11193 | #endif |
| 11194 | |
| 11195 | #ifdef __cplusplus |
| 11196 | extern "C" void exit (int); |
| 11197 | #endif |
| 11198 | |
| 11199 | void fnord() { int i=42;} |
| 11200 | int main () |
| 11201 | { |
| 11202 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11203 | int status = $lt_dlunknown; |
| 11204 | |
| 11205 | if (self) |
| 11206 | { |
| 11207 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11208 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11209 | /* dlclose (self); */ |
| 11210 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11211 | else |
| 11212 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11213 | |
| 11214 | exit (status); |
| 11215 | } |
| 11216 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11218 | (eval $ac_link) 2>&5 |
| 11219 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11221 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11222 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11223 | lt_status=$? |
| 11224 | case x$lt_status in |
| 11225 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11226 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11227 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11228 | esac |
| 11229 | else : |
| 11230 | # compilation failed |
| 11231 | |
| 11232 | fi |
| 11233 | fi |
| 11234 | rm -fr conftest* |
| 11235 | |
| 11236 | LIBS="$save_LIBS" |
| 11237 | |
| 11238 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11239 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11240 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11241 | fi |
| 11242 | fi |
| 11243 | |
| 11244 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11245 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11246 | cat >>confdefs.h <<\_ACEOF |
| 11247 | #define NEED_USCORE 1 |
| 11248 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11249 | |
| 11250 | fi |
| 11251 | |
| 11252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11253 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11254 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11255 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11257 | else |
| 11258 | # PORTME does your system automatically load deplibs for dlopen? |
| 11259 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11260 | # For now, we just catch OSes we know something about -- in the |
| 11261 | # future, we'll try test this programmatically. |
| 11262 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11263 | case "$host_os" in |
| 11264 | aix3*|aix4.1.*|aix4.2.*) |
| 11265 | # Unknown whether this is true for these versions of AIX, but |
| 11266 | # we want this `case' here to explicitly catch those versions. |
| 11267 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11268 | ;; |
| 11269 | aix[45]*) |
| 11270 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11271 | ;; |
| 11272 | darwin*) |
| 11273 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11274 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11275 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11276 | ;; |
| 11277 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11278 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11279 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11280 | ;; |
| 11281 | hpux10*|hpux11*) |
| 11282 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11283 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11284 | interix*) |
| 11285 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11286 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11287 | irix[12345]*|irix6.[01]*) |
| 11288 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11289 | # know how it worked for any of those versions. |
| 11290 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11291 | ;; |
| 11292 | irix*) |
| 11293 | # The case above catches anything before 6.2, and it's known that |
| 11294 | # at 6.2 and later dlopen does load deplibs. |
| 11295 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11296 | ;; |
| 11297 | netbsd*) |
| 11298 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11299 | ;; |
| 11300 | openbsd*) |
| 11301 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11302 | ;; |
| 11303 | osf[1234]*) |
| 11304 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11305 | # it did *not* use an RPATH in a shared library to find objects the |
| 11306 | # library depends on, so we explictly say `no'. |
| 11307 | libltdl_cv_sys_dlopen_deplibs=no |
| 11308 | ;; |
| 11309 | osf5.0|osf5.0a|osf5.1) |
| 11310 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11311 | # it even uses RPATH in a shared library to search for shared objects |
| 11312 | # that the library depends on, but there's no easy way to know if that |
| 11313 | # patch is installed. Since this is the case, all we can really |
| 11314 | # say is unknown -- it depends on the patch being installed. If |
| 11315 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11316 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11317 | ;; |
| 11318 | osf*) |
| 11319 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11320 | # the comments above for what we know about them. |
| 11321 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11322 | # is used to find them so we can finally say `yes'. |
| 11323 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11324 | ;; |
| 11325 | solaris*) |
| 11326 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11327 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11328 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11329 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11330 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11331 | esac |
| 11332 | |
| 11333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11334 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11335 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11336 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11337 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11338 | cat >>confdefs.h <<\_ACEOF |
| 11339 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11340 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11341 | |
| 11342 | fi |
| 11343 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11344 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11345 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11346 | do |
| 11347 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11349 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11350 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11353 | fi |
| 11354 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11356 | echo "${ECHO_T}$ac_res" >&6; } |
| 11357 | else |
| 11358 | # Is the header compilable? |
| 11359 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11360 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11361 | cat >conftest.$ac_ext <<_ACEOF |
| 11362 | /* confdefs.h. */ |
| 11363 | _ACEOF |
| 11364 | cat confdefs.h >>conftest.$ac_ext |
| 11365 | cat >>conftest.$ac_ext <<_ACEOF |
| 11366 | /* end confdefs.h. */ |
| 11367 | $ac_includes_default |
| 11368 | #include <$ac_header> |
| 11369 | _ACEOF |
| 11370 | rm -f conftest.$ac_objext |
| 11371 | if { (ac_try="$ac_compile" |
| 11372 | case "(($ac_try" in |
| 11373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11374 | *) ac_try_echo=$ac_try;; |
| 11375 | esac |
| 11376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11377 | (eval "$ac_compile") 2>conftest.er1 |
| 11378 | ac_status=$? |
| 11379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11380 | rm -f conftest.er1 |
| 11381 | cat conftest.err >&5 |
| 11382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11383 | (exit $ac_status); } && |
| 11384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11385 | { (case "(($ac_try" in |
| 11386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11387 | *) ac_try_echo=$ac_try;; |
| 11388 | esac |
| 11389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11390 | (eval "$ac_try") 2>&5 |
| 11391 | ac_status=$? |
| 11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11393 | (exit $ac_status); }; } && |
| 11394 | { ac_try='test -s conftest.$ac_objext' |
| 11395 | { (case "(($ac_try" in |
| 11396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11397 | *) ac_try_echo=$ac_try;; |
| 11398 | esac |
| 11399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11400 | (eval "$ac_try") 2>&5 |
| 11401 | ac_status=$? |
| 11402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11403 | (exit $ac_status); }; }; then |
| 11404 | ac_header_compiler=yes |
| 11405 | else |
| 11406 | echo "$as_me: failed program was:" >&5 |
| 11407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11408 | |
| 11409 | ac_header_compiler=no |
| 11410 | fi |
| 11411 | |
| 11412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11413 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11414 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11415 | |
| 11416 | # Is the header present? |
| 11417 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11418 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11419 | cat >conftest.$ac_ext <<_ACEOF |
| 11420 | /* confdefs.h. */ |
| 11421 | _ACEOF |
| 11422 | cat confdefs.h >>conftest.$ac_ext |
| 11423 | cat >>conftest.$ac_ext <<_ACEOF |
| 11424 | /* end confdefs.h. */ |
| 11425 | #include <$ac_header> |
| 11426 | _ACEOF |
| 11427 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11428 | case "(($ac_try" in |
| 11429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11430 | *) ac_try_echo=$ac_try;; |
| 11431 | esac |
| 11432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11433 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11434 | ac_status=$? |
| 11435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11436 | rm -f conftest.er1 |
| 11437 | cat conftest.err >&5 |
| 11438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11439 | (exit $ac_status); } >/dev/null; then |
| 11440 | if test -s conftest.err; then |
| 11441 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11443 | else |
| 11444 | ac_cpp_err= |
| 11445 | fi |
| 11446 | else |
| 11447 | ac_cpp_err=yes |
| 11448 | fi |
| 11449 | if test -z "$ac_cpp_err"; then |
| 11450 | ac_header_preproc=yes |
| 11451 | else |
| 11452 | echo "$as_me: failed program was:" >&5 |
| 11453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11454 | |
| 11455 | ac_header_preproc=no |
| 11456 | fi |
| 11457 | |
| 11458 | rm -f conftest.err conftest.$ac_ext |
| 11459 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11460 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11461 | |
| 11462 | # So? What about this header? |
| 11463 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11464 | yes:no: ) |
| 11465 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11466 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11467 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11468 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11469 | ac_header_preproc=yes |
| 11470 | ;; |
| 11471 | no:yes:* ) |
| 11472 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11473 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11474 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11475 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11476 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11477 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11478 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11479 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11480 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11481 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11482 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11483 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11484 | ( cat <<\_ASBOX |
| 11485 | ## ----------------------------------- ## |
| 11486 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11487 | ## ----------------------------------- ## |
| 11488 | _ASBOX |
| 11489 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11490 | ;; |
| 11491 | esac |
| 11492 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11494 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11496 | else |
| 11497 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11498 | fi |
| 11499 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11500 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11501 | echo "${ECHO_T}$ac_res" >&6; } |
| 11502 | |
| 11503 | fi |
| 11504 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11505 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11506 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11507 | _ACEOF |
| 11508 | |
| 11509 | fi |
| 11510 | |
| 11511 | done |
| 11512 | |
| 11513 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11514 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11515 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11516 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11518 | else |
| 11519 | cat >conftest.$ac_ext <<_ACEOF |
| 11520 | /* confdefs.h. */ |
| 11521 | _ACEOF |
| 11522 | cat confdefs.h >>conftest.$ac_ext |
| 11523 | cat >>conftest.$ac_ext <<_ACEOF |
| 11524 | /* end confdefs.h. */ |
| 11525 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11526 | # include <argz.h> |
| 11527 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11528 | |
| 11529 | typedef error_t ac__type_new_; |
| 11530 | int |
| 11531 | main () |
| 11532 | { |
| 11533 | if ((ac__type_new_ *) 0) |
| 11534 | return 0; |
| 11535 | if (sizeof (ac__type_new_)) |
| 11536 | return 0; |
| 11537 | ; |
| 11538 | return 0; |
| 11539 | } |
| 11540 | _ACEOF |
| 11541 | rm -f conftest.$ac_objext |
| 11542 | if { (ac_try="$ac_compile" |
| 11543 | case "(($ac_try" in |
| 11544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11545 | *) ac_try_echo=$ac_try;; |
| 11546 | esac |
| 11547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11548 | (eval "$ac_compile") 2>conftest.er1 |
| 11549 | ac_status=$? |
| 11550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11551 | rm -f conftest.er1 |
| 11552 | cat conftest.err >&5 |
| 11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11554 | (exit $ac_status); } && |
| 11555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11556 | { (case "(($ac_try" in |
| 11557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11558 | *) ac_try_echo=$ac_try;; |
| 11559 | esac |
| 11560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11561 | (eval "$ac_try") 2>&5 |
| 11562 | ac_status=$? |
| 11563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11564 | (exit $ac_status); }; } && |
| 11565 | { ac_try='test -s conftest.$ac_objext' |
| 11566 | { (case "(($ac_try" in |
| 11567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11568 | *) ac_try_echo=$ac_try;; |
| 11569 | esac |
| 11570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11571 | (eval "$ac_try") 2>&5 |
| 11572 | ac_status=$? |
| 11573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11574 | (exit $ac_status); }; }; then |
| 11575 | ac_cv_type_error_t=yes |
| 11576 | else |
| 11577 | echo "$as_me: failed program was:" >&5 |
| 11578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11579 | |
| 11580 | ac_cv_type_error_t=no |
| 11581 | fi |
| 11582 | |
| 11583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11584 | fi |
| 11585 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11586 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11587 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11588 | |
| 11589 | cat >>confdefs.h <<_ACEOF |
| 11590 | #define HAVE_ERROR_T 1 |
| 11591 | _ACEOF |
| 11592 | |
| 11593 | |
| 11594 | else |
| 11595 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11596 | cat >>confdefs.h <<\_ACEOF |
| 11597 | #define error_t int |
| 11598 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11599 | |
| 11600 | fi |
| 11601 | |
| 11602 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11603 | |
| 11604 | |
| 11605 | |
| 11606 | |
| 11607 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11608 | 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] | 11609 | do |
| 11610 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11611 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11612 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11613 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11615 | else |
| 11616 | cat >conftest.$ac_ext <<_ACEOF |
| 11617 | /* confdefs.h. */ |
| 11618 | _ACEOF |
| 11619 | cat confdefs.h >>conftest.$ac_ext |
| 11620 | cat >>conftest.$ac_ext <<_ACEOF |
| 11621 | /* end confdefs.h. */ |
| 11622 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11623 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11624 | #define $ac_func innocuous_$ac_func |
| 11625 | |
| 11626 | /* System header to define __stub macros and hopefully few prototypes, |
| 11627 | which can conflict with char $ac_func (); below. |
| 11628 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11629 | <limits.h> exists even on freestanding compilers. */ |
| 11630 | |
| 11631 | #ifdef __STDC__ |
| 11632 | # include <limits.h> |
| 11633 | #else |
| 11634 | # include <assert.h> |
| 11635 | #endif |
| 11636 | |
| 11637 | #undef $ac_func |
| 11638 | |
| 11639 | /* Override any GCC internal prototype to avoid an error. |
| 11640 | Use char because int might match the return type of a GCC |
| 11641 | builtin and then its argument prototype would still apply. */ |
| 11642 | #ifdef __cplusplus |
| 11643 | extern "C" |
| 11644 | #endif |
| 11645 | char $ac_func (); |
| 11646 | /* The GNU C library defines this for functions which it implements |
| 11647 | to always fail with ENOSYS. Some functions are actually named |
| 11648 | something starting with __ and the normal name is an alias. */ |
| 11649 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11650 | choke me |
| 11651 | #endif |
| 11652 | |
| 11653 | int |
| 11654 | main () |
| 11655 | { |
| 11656 | return $ac_func (); |
| 11657 | ; |
| 11658 | return 0; |
| 11659 | } |
| 11660 | _ACEOF |
| 11661 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11662 | if { (ac_try="$ac_link" |
| 11663 | case "(($ac_try" in |
| 11664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11665 | *) ac_try_echo=$ac_try;; |
| 11666 | esac |
| 11667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11668 | (eval "$ac_link") 2>conftest.er1 |
| 11669 | ac_status=$? |
| 11670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11671 | rm -f conftest.er1 |
| 11672 | cat conftest.err >&5 |
| 11673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11674 | (exit $ac_status); } && |
| 11675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11676 | { (case "(($ac_try" in |
| 11677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11678 | *) ac_try_echo=$ac_try;; |
| 11679 | esac |
| 11680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11681 | (eval "$ac_try") 2>&5 |
| 11682 | ac_status=$? |
| 11683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11684 | (exit $ac_status); }; } && |
| 11685 | { ac_try='test -s conftest$ac_exeext' |
| 11686 | { (case "(($ac_try" in |
| 11687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11688 | *) ac_try_echo=$ac_try;; |
| 11689 | esac |
| 11690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11691 | (eval "$ac_try") 2>&5 |
| 11692 | ac_status=$? |
| 11693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11694 | (exit $ac_status); }; }; then |
| 11695 | eval "$as_ac_var=yes" |
| 11696 | else |
| 11697 | echo "$as_me: failed program was:" >&5 |
| 11698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11699 | |
| 11700 | eval "$as_ac_var=no" |
| 11701 | fi |
| 11702 | |
| 11703 | rm -f core conftest.err conftest.$ac_objext \ |
| 11704 | conftest$ac_exeext conftest.$ac_ext |
| 11705 | fi |
| 11706 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11707 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11708 | echo "${ECHO_T}$ac_res" >&6; } |
| 11709 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11710 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11711 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11712 | _ACEOF |
| 11713 | |
| 11714 | fi |
| 11715 | done |
| 11716 | |
| 11717 | |
| 11718 | |
| 11719 | |
| 11720 | |
| 11721 | |
| 11722 | |
| 11723 | |
| 11724 | |
| 11725 | |
| 11726 | |
| 11727 | |
| 11728 | |
| 11729 | |
| 11730 | |
| 11731 | |
| 11732 | |
| 11733 | |
| 11734 | |
| 11735 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11736 | |
| 11737 | |
| 11738 | |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11744 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11745 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11746 | do |
| 11747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11748 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11749 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11751 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11753 | fi |
| 11754 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11755 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11756 | echo "${ECHO_T}$ac_res" >&6; } |
| 11757 | else |
| 11758 | # Is the header compilable? |
| 11759 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11760 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11761 | cat >conftest.$ac_ext <<_ACEOF |
| 11762 | /* confdefs.h. */ |
| 11763 | _ACEOF |
| 11764 | cat confdefs.h >>conftest.$ac_ext |
| 11765 | cat >>conftest.$ac_ext <<_ACEOF |
| 11766 | /* end confdefs.h. */ |
| 11767 | $ac_includes_default |
| 11768 | #include <$ac_header> |
| 11769 | _ACEOF |
| 11770 | rm -f conftest.$ac_objext |
| 11771 | if { (ac_try="$ac_compile" |
| 11772 | case "(($ac_try" in |
| 11773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11774 | *) ac_try_echo=$ac_try;; |
| 11775 | esac |
| 11776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11777 | (eval "$ac_compile") 2>conftest.er1 |
| 11778 | ac_status=$? |
| 11779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11780 | rm -f conftest.er1 |
| 11781 | cat conftest.err >&5 |
| 11782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11783 | (exit $ac_status); } && |
| 11784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11785 | { (case "(($ac_try" in |
| 11786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11787 | *) ac_try_echo=$ac_try;; |
| 11788 | esac |
| 11789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11790 | (eval "$ac_try") 2>&5 |
| 11791 | ac_status=$? |
| 11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11793 | (exit $ac_status); }; } && |
| 11794 | { ac_try='test -s conftest.$ac_objext' |
| 11795 | { (case "(($ac_try" in |
| 11796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11797 | *) ac_try_echo=$ac_try;; |
| 11798 | esac |
| 11799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11800 | (eval "$ac_try") 2>&5 |
| 11801 | ac_status=$? |
| 11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11803 | (exit $ac_status); }; }; then |
| 11804 | ac_header_compiler=yes |
| 11805 | else |
| 11806 | echo "$as_me: failed program was:" >&5 |
| 11807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11808 | |
| 11809 | ac_header_compiler=no |
| 11810 | fi |
| 11811 | |
| 11812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11813 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11814 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11815 | |
| 11816 | # Is the header present? |
| 11817 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11818 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11819 | cat >conftest.$ac_ext <<_ACEOF |
| 11820 | /* confdefs.h. */ |
| 11821 | _ACEOF |
| 11822 | cat confdefs.h >>conftest.$ac_ext |
| 11823 | cat >>conftest.$ac_ext <<_ACEOF |
| 11824 | /* end confdefs.h. */ |
| 11825 | #include <$ac_header> |
| 11826 | _ACEOF |
| 11827 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11828 | case "(($ac_try" in |
| 11829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11830 | *) ac_try_echo=$ac_try;; |
| 11831 | esac |
| 11832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11833 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11834 | ac_status=$? |
| 11835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11836 | rm -f conftest.er1 |
| 11837 | cat conftest.err >&5 |
| 11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11839 | (exit $ac_status); } >/dev/null; then |
| 11840 | if test -s conftest.err; then |
| 11841 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11842 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11843 | else |
| 11844 | ac_cpp_err= |
| 11845 | fi |
| 11846 | else |
| 11847 | ac_cpp_err=yes |
| 11848 | fi |
| 11849 | if test -z "$ac_cpp_err"; then |
| 11850 | ac_header_preproc=yes |
| 11851 | else |
| 11852 | echo "$as_me: failed program was:" >&5 |
| 11853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11854 | |
| 11855 | ac_header_preproc=no |
| 11856 | fi |
| 11857 | |
| 11858 | rm -f conftest.err conftest.$ac_ext |
| 11859 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11860 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11861 | |
| 11862 | # So? What about this header? |
| 11863 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11864 | yes:no: ) |
| 11865 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11866 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11867 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11868 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11869 | ac_header_preproc=yes |
| 11870 | ;; |
| 11871 | no:yes:* ) |
| 11872 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11873 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11874 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11875 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11876 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11877 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11878 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11879 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11880 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11881 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11882 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11883 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11884 | ( cat <<\_ASBOX |
| 11885 | ## ----------------------------------- ## |
| 11886 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11887 | ## ----------------------------------- ## |
| 11888 | _ASBOX |
| 11889 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11890 | ;; |
| 11891 | esac |
| 11892 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11893 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11894 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11896 | else |
| 11897 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11898 | fi |
| 11899 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11900 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11901 | echo "${ECHO_T}$ac_res" >&6; } |
| 11902 | |
| 11903 | fi |
| 11904 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11905 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11906 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11907 | _ACEOF |
| 11908 | |
| 11909 | fi |
| 11910 | |
| 11911 | done |
| 11912 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11913 | |
| 11914 | |
| 11915 | |
| 11916 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11917 | 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] | 11918 | do |
| 11919 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11920 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11921 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11925 | fi |
| 11926 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11927 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11928 | echo "${ECHO_T}$ac_res" >&6; } |
| 11929 | else |
| 11930 | # Is the header compilable? |
| 11931 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11932 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11933 | cat >conftest.$ac_ext <<_ACEOF |
| 11934 | /* confdefs.h. */ |
| 11935 | _ACEOF |
| 11936 | cat confdefs.h >>conftest.$ac_ext |
| 11937 | cat >>conftest.$ac_ext <<_ACEOF |
| 11938 | /* end confdefs.h. */ |
| 11939 | $ac_includes_default |
| 11940 | #include <$ac_header> |
| 11941 | _ACEOF |
| 11942 | rm -f conftest.$ac_objext |
| 11943 | if { (ac_try="$ac_compile" |
| 11944 | case "(($ac_try" in |
| 11945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11946 | *) ac_try_echo=$ac_try;; |
| 11947 | esac |
| 11948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11949 | (eval "$ac_compile") 2>conftest.er1 |
| 11950 | ac_status=$? |
| 11951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11952 | rm -f conftest.er1 |
| 11953 | cat conftest.err >&5 |
| 11954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11955 | (exit $ac_status); } && |
| 11956 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11957 | { (case "(($ac_try" in |
| 11958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11959 | *) ac_try_echo=$ac_try;; |
| 11960 | esac |
| 11961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11962 | (eval "$ac_try") 2>&5 |
| 11963 | ac_status=$? |
| 11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11965 | (exit $ac_status); }; } && |
| 11966 | { ac_try='test -s conftest.$ac_objext' |
| 11967 | { (case "(($ac_try" in |
| 11968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11969 | *) ac_try_echo=$ac_try;; |
| 11970 | esac |
| 11971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11972 | (eval "$ac_try") 2>&5 |
| 11973 | ac_status=$? |
| 11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11975 | (exit $ac_status); }; }; then |
| 11976 | ac_header_compiler=yes |
| 11977 | else |
| 11978 | echo "$as_me: failed program was:" >&5 |
| 11979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11980 | |
| 11981 | ac_header_compiler=no |
| 11982 | fi |
| 11983 | |
| 11984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11985 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11986 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11987 | |
| 11988 | # Is the header present? |
| 11989 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11990 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11991 | cat >conftest.$ac_ext <<_ACEOF |
| 11992 | /* confdefs.h. */ |
| 11993 | _ACEOF |
| 11994 | cat confdefs.h >>conftest.$ac_ext |
| 11995 | cat >>conftest.$ac_ext <<_ACEOF |
| 11996 | /* end confdefs.h. */ |
| 11997 | #include <$ac_header> |
| 11998 | _ACEOF |
| 11999 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12000 | case "(($ac_try" in |
| 12001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12002 | *) ac_try_echo=$ac_try;; |
| 12003 | esac |
| 12004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12005 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12006 | ac_status=$? |
| 12007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12008 | rm -f conftest.er1 |
| 12009 | cat conftest.err >&5 |
| 12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12011 | (exit $ac_status); } >/dev/null; then |
| 12012 | if test -s conftest.err; then |
| 12013 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12015 | else |
| 12016 | ac_cpp_err= |
| 12017 | fi |
| 12018 | else |
| 12019 | ac_cpp_err=yes |
| 12020 | fi |
| 12021 | if test -z "$ac_cpp_err"; then |
| 12022 | ac_header_preproc=yes |
| 12023 | else |
| 12024 | echo "$as_me: failed program was:" >&5 |
| 12025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12026 | |
| 12027 | ac_header_preproc=no |
| 12028 | fi |
| 12029 | |
| 12030 | rm -f conftest.err conftest.$ac_ext |
| 12031 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12032 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12033 | |
| 12034 | # So? What about this header? |
| 12035 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12036 | yes:no: ) |
| 12037 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12038 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12040 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12041 | ac_header_preproc=yes |
| 12042 | ;; |
| 12043 | no:yes:* ) |
| 12044 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12045 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12046 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12047 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12048 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12049 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12050 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12051 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12054 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12055 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12056 | ( cat <<\_ASBOX |
| 12057 | ## ----------------------------------- ## |
| 12058 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12059 | ## ----------------------------------- ## |
| 12060 | _ASBOX |
| 12061 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12062 | ;; |
| 12063 | esac |
| 12064 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12066 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12068 | else |
| 12069 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12070 | fi |
| 12071 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12072 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12073 | echo "${ECHO_T}$ac_res" >&6; } |
| 12074 | |
| 12075 | fi |
| 12076 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12077 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12078 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12079 | _ACEOF |
| 12080 | |
| 12081 | fi |
| 12082 | |
| 12083 | done |
| 12084 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12085 | |
| 12086 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12087 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12088 | do |
| 12089 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12090 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12091 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12093 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12095 | fi |
| 12096 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12097 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12098 | echo "${ECHO_T}$ac_res" >&6; } |
| 12099 | else |
| 12100 | # Is the header compilable? |
| 12101 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12102 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12103 | cat >conftest.$ac_ext <<_ACEOF |
| 12104 | /* confdefs.h. */ |
| 12105 | _ACEOF |
| 12106 | cat confdefs.h >>conftest.$ac_ext |
| 12107 | cat >>conftest.$ac_ext <<_ACEOF |
| 12108 | /* end confdefs.h. */ |
| 12109 | $ac_includes_default |
| 12110 | #include <$ac_header> |
| 12111 | _ACEOF |
| 12112 | rm -f conftest.$ac_objext |
| 12113 | if { (ac_try="$ac_compile" |
| 12114 | case "(($ac_try" in |
| 12115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12116 | *) ac_try_echo=$ac_try;; |
| 12117 | esac |
| 12118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12119 | (eval "$ac_compile") 2>conftest.er1 |
| 12120 | ac_status=$? |
| 12121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12122 | rm -f conftest.er1 |
| 12123 | cat conftest.err >&5 |
| 12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12125 | (exit $ac_status); } && |
| 12126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12127 | { (case "(($ac_try" in |
| 12128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12129 | *) ac_try_echo=$ac_try;; |
| 12130 | esac |
| 12131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12132 | (eval "$ac_try") 2>&5 |
| 12133 | ac_status=$? |
| 12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12135 | (exit $ac_status); }; } && |
| 12136 | { ac_try='test -s conftest.$ac_objext' |
| 12137 | { (case "(($ac_try" in |
| 12138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12139 | *) ac_try_echo=$ac_try;; |
| 12140 | esac |
| 12141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12142 | (eval "$ac_try") 2>&5 |
| 12143 | ac_status=$? |
| 12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12145 | (exit $ac_status); }; }; then |
| 12146 | ac_header_compiler=yes |
| 12147 | else |
| 12148 | echo "$as_me: failed program was:" >&5 |
| 12149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12150 | |
| 12151 | ac_header_compiler=no |
| 12152 | fi |
| 12153 | |
| 12154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12155 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12156 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12157 | |
| 12158 | # Is the header present? |
| 12159 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12160 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12161 | cat >conftest.$ac_ext <<_ACEOF |
| 12162 | /* confdefs.h. */ |
| 12163 | _ACEOF |
| 12164 | cat confdefs.h >>conftest.$ac_ext |
| 12165 | cat >>conftest.$ac_ext <<_ACEOF |
| 12166 | /* end confdefs.h. */ |
| 12167 | #include <$ac_header> |
| 12168 | _ACEOF |
| 12169 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12170 | case "(($ac_try" in |
| 12171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12172 | *) ac_try_echo=$ac_try;; |
| 12173 | esac |
| 12174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12175 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12176 | ac_status=$? |
| 12177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12178 | rm -f conftest.er1 |
| 12179 | cat conftest.err >&5 |
| 12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12181 | (exit $ac_status); } >/dev/null; then |
| 12182 | if test -s conftest.err; then |
| 12183 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12185 | else |
| 12186 | ac_cpp_err= |
| 12187 | fi |
| 12188 | else |
| 12189 | ac_cpp_err=yes |
| 12190 | fi |
| 12191 | if test -z "$ac_cpp_err"; then |
| 12192 | ac_header_preproc=yes |
| 12193 | else |
| 12194 | echo "$as_me: failed program was:" >&5 |
| 12195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12196 | |
| 12197 | ac_header_preproc=no |
| 12198 | fi |
| 12199 | |
| 12200 | rm -f conftest.err conftest.$ac_ext |
| 12201 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12202 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12203 | |
| 12204 | # So? What about this header? |
| 12205 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12206 | yes:no: ) |
| 12207 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12208 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12209 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12210 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12211 | ac_header_preproc=yes |
| 12212 | ;; |
| 12213 | no:yes:* ) |
| 12214 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12215 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12216 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12217 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12218 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12219 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12220 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12221 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12222 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12223 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12224 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12225 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12226 | ( cat <<\_ASBOX |
| 12227 | ## ----------------------------------- ## |
| 12228 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12229 | ## ----------------------------------- ## |
| 12230 | _ASBOX |
| 12231 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12232 | ;; |
| 12233 | esac |
| 12234 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12236 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12238 | else |
| 12239 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12240 | fi |
| 12241 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12242 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12243 | echo "${ECHO_T}$ac_res" >&6; } |
| 12244 | |
| 12245 | fi |
| 12246 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12247 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12248 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12249 | _ACEOF |
| 12250 | break |
| 12251 | fi |
| 12252 | |
| 12253 | done |
| 12254 | |
| 12255 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12256 | |
| 12257 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12258 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12259 | do |
| 12260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12261 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12263 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12265 | else |
| 12266 | cat >conftest.$ac_ext <<_ACEOF |
| 12267 | /* confdefs.h. */ |
| 12268 | _ACEOF |
| 12269 | cat confdefs.h >>conftest.$ac_ext |
| 12270 | cat >>conftest.$ac_ext <<_ACEOF |
| 12271 | /* end confdefs.h. */ |
| 12272 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12274 | #define $ac_func innocuous_$ac_func |
| 12275 | |
| 12276 | /* System header to define __stub macros and hopefully few prototypes, |
| 12277 | which can conflict with char $ac_func (); below. |
| 12278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12279 | <limits.h> exists even on freestanding compilers. */ |
| 12280 | |
| 12281 | #ifdef __STDC__ |
| 12282 | # include <limits.h> |
| 12283 | #else |
| 12284 | # include <assert.h> |
| 12285 | #endif |
| 12286 | |
| 12287 | #undef $ac_func |
| 12288 | |
| 12289 | /* Override any GCC internal prototype to avoid an error. |
| 12290 | Use char because int might match the return type of a GCC |
| 12291 | builtin and then its argument prototype would still apply. */ |
| 12292 | #ifdef __cplusplus |
| 12293 | extern "C" |
| 12294 | #endif |
| 12295 | char $ac_func (); |
| 12296 | /* The GNU C library defines this for functions which it implements |
| 12297 | to always fail with ENOSYS. Some functions are actually named |
| 12298 | something starting with __ and the normal name is an alias. */ |
| 12299 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12300 | choke me |
| 12301 | #endif |
| 12302 | |
| 12303 | int |
| 12304 | main () |
| 12305 | { |
| 12306 | return $ac_func (); |
| 12307 | ; |
| 12308 | return 0; |
| 12309 | } |
| 12310 | _ACEOF |
| 12311 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12312 | if { (ac_try="$ac_link" |
| 12313 | case "(($ac_try" in |
| 12314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12315 | *) ac_try_echo=$ac_try;; |
| 12316 | esac |
| 12317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12318 | (eval "$ac_link") 2>conftest.er1 |
| 12319 | ac_status=$? |
| 12320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12321 | rm -f conftest.er1 |
| 12322 | cat conftest.err >&5 |
| 12323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12324 | (exit $ac_status); } && |
| 12325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12326 | { (case "(($ac_try" in |
| 12327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12328 | *) ac_try_echo=$ac_try;; |
| 12329 | esac |
| 12330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12331 | (eval "$ac_try") 2>&5 |
| 12332 | ac_status=$? |
| 12333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12334 | (exit $ac_status); }; } && |
| 12335 | { ac_try='test -s conftest$ac_exeext' |
| 12336 | { (case "(($ac_try" in |
| 12337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12338 | *) ac_try_echo=$ac_try;; |
| 12339 | esac |
| 12340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12341 | (eval "$ac_try") 2>&5 |
| 12342 | ac_status=$? |
| 12343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12344 | (exit $ac_status); }; }; then |
| 12345 | eval "$as_ac_var=yes" |
| 12346 | else |
| 12347 | echo "$as_me: failed program was:" >&5 |
| 12348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12349 | |
| 12350 | eval "$as_ac_var=no" |
| 12351 | fi |
| 12352 | |
| 12353 | rm -f core conftest.err conftest.$ac_objext \ |
| 12354 | conftest$ac_exeext conftest.$ac_ext |
| 12355 | fi |
| 12356 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12358 | echo "${ECHO_T}$ac_res" >&6; } |
| 12359 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12360 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12362 | _ACEOF |
| 12363 | break |
| 12364 | fi |
| 12365 | done |
| 12366 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12367 | |
| 12368 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12369 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12370 | do |
| 12371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12372 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12374 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12376 | else |
| 12377 | cat >conftest.$ac_ext <<_ACEOF |
| 12378 | /* confdefs.h. */ |
| 12379 | _ACEOF |
| 12380 | cat confdefs.h >>conftest.$ac_ext |
| 12381 | cat >>conftest.$ac_ext <<_ACEOF |
| 12382 | /* end confdefs.h. */ |
| 12383 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12385 | #define $ac_func innocuous_$ac_func |
| 12386 | |
| 12387 | /* System header to define __stub macros and hopefully few prototypes, |
| 12388 | which can conflict with char $ac_func (); below. |
| 12389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12390 | <limits.h> exists even on freestanding compilers. */ |
| 12391 | |
| 12392 | #ifdef __STDC__ |
| 12393 | # include <limits.h> |
| 12394 | #else |
| 12395 | # include <assert.h> |
| 12396 | #endif |
| 12397 | |
| 12398 | #undef $ac_func |
| 12399 | |
| 12400 | /* Override any GCC internal prototype to avoid an error. |
| 12401 | Use char because int might match the return type of a GCC |
| 12402 | builtin and then its argument prototype would still apply. */ |
| 12403 | #ifdef __cplusplus |
| 12404 | extern "C" |
| 12405 | #endif |
| 12406 | char $ac_func (); |
| 12407 | /* The GNU C library defines this for functions which it implements |
| 12408 | to always fail with ENOSYS. Some functions are actually named |
| 12409 | something starting with __ and the normal name is an alias. */ |
| 12410 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12411 | choke me |
| 12412 | #endif |
| 12413 | |
| 12414 | int |
| 12415 | main () |
| 12416 | { |
| 12417 | return $ac_func (); |
| 12418 | ; |
| 12419 | return 0; |
| 12420 | } |
| 12421 | _ACEOF |
| 12422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12423 | if { (ac_try="$ac_link" |
| 12424 | case "(($ac_try" in |
| 12425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12426 | *) ac_try_echo=$ac_try;; |
| 12427 | esac |
| 12428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12429 | (eval "$ac_link") 2>conftest.er1 |
| 12430 | ac_status=$? |
| 12431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12432 | rm -f conftest.er1 |
| 12433 | cat conftest.err >&5 |
| 12434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12435 | (exit $ac_status); } && |
| 12436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12437 | { (case "(($ac_try" in |
| 12438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12439 | *) ac_try_echo=$ac_try;; |
| 12440 | esac |
| 12441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12442 | (eval "$ac_try") 2>&5 |
| 12443 | ac_status=$? |
| 12444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12445 | (exit $ac_status); }; } && |
| 12446 | { ac_try='test -s conftest$ac_exeext' |
| 12447 | { (case "(($ac_try" in |
| 12448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12449 | *) ac_try_echo=$ac_try;; |
| 12450 | esac |
| 12451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12452 | (eval "$ac_try") 2>&5 |
| 12453 | ac_status=$? |
| 12454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12455 | (exit $ac_status); }; }; then |
| 12456 | eval "$as_ac_var=yes" |
| 12457 | else |
| 12458 | echo "$as_me: failed program was:" >&5 |
| 12459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12460 | |
| 12461 | eval "$as_ac_var=no" |
| 12462 | fi |
| 12463 | |
| 12464 | rm -f core conftest.err conftest.$ac_objext \ |
| 12465 | conftest$ac_exeext conftest.$ac_ext |
| 12466 | fi |
| 12467 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12468 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12469 | echo "${ECHO_T}$ac_res" >&6; } |
| 12470 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12471 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12472 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12473 | _ACEOF |
| 12474 | break |
| 12475 | fi |
| 12476 | done |
| 12477 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12478 | |
| 12479 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12480 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12481 | do |
| 12482 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12483 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12484 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12485 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12487 | else |
| 12488 | cat >conftest.$ac_ext <<_ACEOF |
| 12489 | /* confdefs.h. */ |
| 12490 | _ACEOF |
| 12491 | cat confdefs.h >>conftest.$ac_ext |
| 12492 | cat >>conftest.$ac_ext <<_ACEOF |
| 12493 | /* end confdefs.h. */ |
| 12494 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12495 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12496 | #define $ac_func innocuous_$ac_func |
| 12497 | |
| 12498 | /* System header to define __stub macros and hopefully few prototypes, |
| 12499 | which can conflict with char $ac_func (); below. |
| 12500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12501 | <limits.h> exists even on freestanding compilers. */ |
| 12502 | |
| 12503 | #ifdef __STDC__ |
| 12504 | # include <limits.h> |
| 12505 | #else |
| 12506 | # include <assert.h> |
| 12507 | #endif |
| 12508 | |
| 12509 | #undef $ac_func |
| 12510 | |
| 12511 | /* Override any GCC internal prototype to avoid an error. |
| 12512 | Use char because int might match the return type of a GCC |
| 12513 | builtin and then its argument prototype would still apply. */ |
| 12514 | #ifdef __cplusplus |
| 12515 | extern "C" |
| 12516 | #endif |
| 12517 | char $ac_func (); |
| 12518 | /* The GNU C library defines this for functions which it implements |
| 12519 | to always fail with ENOSYS. Some functions are actually named |
| 12520 | something starting with __ and the normal name is an alias. */ |
| 12521 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12522 | choke me |
| 12523 | #endif |
| 12524 | |
| 12525 | int |
| 12526 | main () |
| 12527 | { |
| 12528 | return $ac_func (); |
| 12529 | ; |
| 12530 | return 0; |
| 12531 | } |
| 12532 | _ACEOF |
| 12533 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12534 | if { (ac_try="$ac_link" |
| 12535 | case "(($ac_try" in |
| 12536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12537 | *) ac_try_echo=$ac_try;; |
| 12538 | esac |
| 12539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12540 | (eval "$ac_link") 2>conftest.er1 |
| 12541 | ac_status=$? |
| 12542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12543 | rm -f conftest.er1 |
| 12544 | cat conftest.err >&5 |
| 12545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12546 | (exit $ac_status); } && |
| 12547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12548 | { (case "(($ac_try" in |
| 12549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12550 | *) ac_try_echo=$ac_try;; |
| 12551 | esac |
| 12552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12553 | (eval "$ac_try") 2>&5 |
| 12554 | ac_status=$? |
| 12555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12556 | (exit $ac_status); }; } && |
| 12557 | { ac_try='test -s conftest$ac_exeext' |
| 12558 | { (case "(($ac_try" in |
| 12559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12560 | *) ac_try_echo=$ac_try;; |
| 12561 | esac |
| 12562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12563 | (eval "$ac_try") 2>&5 |
| 12564 | ac_status=$? |
| 12565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12566 | (exit $ac_status); }; }; then |
| 12567 | eval "$as_ac_var=yes" |
| 12568 | else |
| 12569 | echo "$as_me: failed program was:" >&5 |
| 12570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12571 | |
| 12572 | eval "$as_ac_var=no" |
| 12573 | fi |
| 12574 | |
| 12575 | rm -f core conftest.err conftest.$ac_objext \ |
| 12576 | conftest$ac_exeext conftest.$ac_ext |
| 12577 | fi |
| 12578 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12579 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12580 | echo "${ECHO_T}$ac_res" >&6; } |
| 12581 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12582 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12583 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12584 | _ACEOF |
| 12585 | break |
| 12586 | fi |
| 12587 | done |
| 12588 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12589 | |
| 12590 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12591 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12592 | do |
| 12593 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12594 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12595 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12596 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12598 | else |
| 12599 | cat >conftest.$ac_ext <<_ACEOF |
| 12600 | /* confdefs.h. */ |
| 12601 | _ACEOF |
| 12602 | cat confdefs.h >>conftest.$ac_ext |
| 12603 | cat >>conftest.$ac_ext <<_ACEOF |
| 12604 | /* end confdefs.h. */ |
| 12605 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12606 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12607 | #define $ac_func innocuous_$ac_func |
| 12608 | |
| 12609 | /* System header to define __stub macros and hopefully few prototypes, |
| 12610 | which can conflict with char $ac_func (); below. |
| 12611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12612 | <limits.h> exists even on freestanding compilers. */ |
| 12613 | |
| 12614 | #ifdef __STDC__ |
| 12615 | # include <limits.h> |
| 12616 | #else |
| 12617 | # include <assert.h> |
| 12618 | #endif |
| 12619 | |
| 12620 | #undef $ac_func |
| 12621 | |
| 12622 | /* Override any GCC internal prototype to avoid an error. |
| 12623 | Use char because int might match the return type of a GCC |
| 12624 | builtin and then its argument prototype would still apply. */ |
| 12625 | #ifdef __cplusplus |
| 12626 | extern "C" |
| 12627 | #endif |
| 12628 | char $ac_func (); |
| 12629 | /* The GNU C library defines this for functions which it implements |
| 12630 | to always fail with ENOSYS. Some functions are actually named |
| 12631 | something starting with __ and the normal name is an alias. */ |
| 12632 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12633 | choke me |
| 12634 | #endif |
| 12635 | |
| 12636 | int |
| 12637 | main () |
| 12638 | { |
| 12639 | return $ac_func (); |
| 12640 | ; |
| 12641 | return 0; |
| 12642 | } |
| 12643 | _ACEOF |
| 12644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12645 | if { (ac_try="$ac_link" |
| 12646 | case "(($ac_try" in |
| 12647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12648 | *) ac_try_echo=$ac_try;; |
| 12649 | esac |
| 12650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12651 | (eval "$ac_link") 2>conftest.er1 |
| 12652 | ac_status=$? |
| 12653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12654 | rm -f conftest.er1 |
| 12655 | cat conftest.err >&5 |
| 12656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12657 | (exit $ac_status); } && |
| 12658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12659 | { (case "(($ac_try" in |
| 12660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12661 | *) ac_try_echo=$ac_try;; |
| 12662 | esac |
| 12663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12664 | (eval "$ac_try") 2>&5 |
| 12665 | ac_status=$? |
| 12666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12667 | (exit $ac_status); }; } && |
| 12668 | { ac_try='test -s conftest$ac_exeext' |
| 12669 | { (case "(($ac_try" in |
| 12670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12671 | *) ac_try_echo=$ac_try;; |
| 12672 | esac |
| 12673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12674 | (eval "$ac_try") 2>&5 |
| 12675 | ac_status=$? |
| 12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12677 | (exit $ac_status); }; }; then |
| 12678 | eval "$as_ac_var=yes" |
| 12679 | else |
| 12680 | echo "$as_me: failed program was:" >&5 |
| 12681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12682 | |
| 12683 | eval "$as_ac_var=no" |
| 12684 | fi |
| 12685 | |
| 12686 | rm -f core conftest.err conftest.$ac_objext \ |
| 12687 | conftest$ac_exeext conftest.$ac_ext |
| 12688 | fi |
| 12689 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12690 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12691 | echo "${ECHO_T}$ac_res" >&6; } |
| 12692 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12693 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12694 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12695 | _ACEOF |
| 12696 | |
| 12697 | fi |
| 12698 | done |
| 12699 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12700 | |
| 12701 | |
| 12702 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12703 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12704 | do |
| 12705 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12706 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12707 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12708 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12710 | else |
| 12711 | cat >conftest.$ac_ext <<_ACEOF |
| 12712 | /* confdefs.h. */ |
| 12713 | _ACEOF |
| 12714 | cat confdefs.h >>conftest.$ac_ext |
| 12715 | cat >>conftest.$ac_ext <<_ACEOF |
| 12716 | /* end confdefs.h. */ |
| 12717 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12719 | #define $ac_func innocuous_$ac_func |
| 12720 | |
| 12721 | /* System header to define __stub macros and hopefully few prototypes, |
| 12722 | which can conflict with char $ac_func (); below. |
| 12723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12724 | <limits.h> exists even on freestanding compilers. */ |
| 12725 | |
| 12726 | #ifdef __STDC__ |
| 12727 | # include <limits.h> |
| 12728 | #else |
| 12729 | # include <assert.h> |
| 12730 | #endif |
| 12731 | |
| 12732 | #undef $ac_func |
| 12733 | |
| 12734 | /* Override any GCC internal prototype to avoid an error. |
| 12735 | Use char because int might match the return type of a GCC |
| 12736 | builtin and then its argument prototype would still apply. */ |
| 12737 | #ifdef __cplusplus |
| 12738 | extern "C" |
| 12739 | #endif |
| 12740 | char $ac_func (); |
| 12741 | /* The GNU C library defines this for functions which it implements |
| 12742 | to always fail with ENOSYS. Some functions are actually named |
| 12743 | something starting with __ and the normal name is an alias. */ |
| 12744 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12745 | choke me |
| 12746 | #endif |
| 12747 | |
| 12748 | int |
| 12749 | main () |
| 12750 | { |
| 12751 | return $ac_func (); |
| 12752 | ; |
| 12753 | return 0; |
| 12754 | } |
| 12755 | _ACEOF |
| 12756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12757 | if { (ac_try="$ac_link" |
| 12758 | case "(($ac_try" in |
| 12759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12760 | *) ac_try_echo=$ac_try;; |
| 12761 | esac |
| 12762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12763 | (eval "$ac_link") 2>conftest.er1 |
| 12764 | ac_status=$? |
| 12765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12766 | rm -f conftest.er1 |
| 12767 | cat conftest.err >&5 |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); } && |
| 12770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12771 | { (case "(($ac_try" in |
| 12772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12773 | *) ac_try_echo=$ac_try;; |
| 12774 | esac |
| 12775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12776 | (eval "$ac_try") 2>&5 |
| 12777 | ac_status=$? |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12779 | (exit $ac_status); }; } && |
| 12780 | { ac_try='test -s conftest$ac_exeext' |
| 12781 | { (case "(($ac_try" in |
| 12782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12783 | *) ac_try_echo=$ac_try;; |
| 12784 | esac |
| 12785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12786 | (eval "$ac_try") 2>&5 |
| 12787 | ac_status=$? |
| 12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12789 | (exit $ac_status); }; }; then |
| 12790 | eval "$as_ac_var=yes" |
| 12791 | else |
| 12792 | echo "$as_me: failed program was:" >&5 |
| 12793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12794 | |
| 12795 | eval "$as_ac_var=no" |
| 12796 | fi |
| 12797 | |
| 12798 | rm -f core conftest.err conftest.$ac_objext \ |
| 12799 | conftest$ac_exeext conftest.$ac_ext |
| 12800 | fi |
| 12801 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12802 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12803 | echo "${ECHO_T}$ac_res" >&6; } |
| 12804 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12805 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12806 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12807 | _ACEOF |
| 12808 | |
| 12809 | fi |
| 12810 | done |
| 12811 | |
| 12812 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12813 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12814 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12815 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 12816 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12817 | LLVMGCCCOMMAND="$LLVMGCC" |
| 12818 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12819 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12820 | |
| 12821 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12822 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12823 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 12824 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12825 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12827 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 12828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12829 | else |
| 12830 | case $LLVMGCC in |
| 12831 | [\\/]* | ?:[\\/]*) |
| 12832 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 12833 | ;; |
| 12834 | *) |
| 12835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12836 | for as_dir in $PATH |
| 12837 | do |
| 12838 | IFS=$as_save_IFS |
| 12839 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12840 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12841 | 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] | 12842 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12843 | 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] | 12844 | break 2 |
| 12845 | fi |
| 12846 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12847 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12848 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12849 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12850 | ;; |
| 12851 | esac |
| 12852 | fi |
| 12853 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12854 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12855 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 12856 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12857 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12858 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12859 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12860 | fi |
| 12861 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12862 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12863 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 12864 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12865 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12867 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 12868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12869 | else |
| 12870 | case $LLVMGXX in |
| 12871 | [\\/]* | ?:[\\/]*) |
| 12872 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 12873 | ;; |
| 12874 | *) |
| 12875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12876 | for as_dir in $PATH |
| 12877 | do |
| 12878 | IFS=$as_save_IFS |
| 12879 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12881 | 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] | 12882 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12883 | 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] | 12884 | break 2 |
| 12885 | fi |
| 12886 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12887 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12888 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12889 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12890 | ;; |
| 12891 | esac |
| 12892 | fi |
| 12893 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12894 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12895 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 12896 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12897 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12898 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12899 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12900 | fi |
| 12901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12902 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12903 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12904 | if test -z "$LLVMGCC"; then |
| 12905 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12906 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12907 | fi |
| 12908 | if test -z "$LLVMGXX"; then |
| 12909 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12910 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12911 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12912 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12913 | LLVMGCC=$LLVMGCC |
| 12914 | |
| 12915 | LLVMGXX=$LLVMGXX |
| 12916 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12917 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12918 | |
| 12919 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12920 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12921 | fi |
| 12922 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12923 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 12924 | # Check whether --with-llvmcc was given. |
| 12925 | if test "${with_llvmcc+set}" = set; then |
| 12926 | withval=$with_llvmcc; |
| 12927 | else |
| 12928 | with_llvmcc=check |
| 12929 | fi |
| 12930 | |
| 12931 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 12932 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 12933 | if test "$with_llvmcc" != "check"; then |
| 12934 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 12935 | test "$with_llvmcc" != "clang" && |
| 12936 | test "$with_llvmcc" != "none"); then |
| 12937 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 12938 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 12939 | { (exit 1); exit 1; }; } |
| 12940 | fi |
| 12941 | WITH_LLVMCC="$with_llvmcc" |
| 12942 | elif test -n "$LLVMGCC"; then |
| 12943 | WITH_LLVMCC=llvm-gcc |
| 12944 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 12945 | WITH_LLVMCC=clang |
| 12946 | else |
| 12947 | WITH_LLVMCC=none |
| 12948 | fi |
| 12949 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 12950 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 12951 | LLVMCC_OPTION=$WITH_LLVMCC |
| 12952 | |
| 12953 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12954 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12955 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12956 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12957 | ICC=no |
| 12958 | IXX=no |
| 12959 | case $CC in |
| 12960 | icc*|icpc*) |
| 12961 | ICC=yes |
| 12962 | IXX=yes |
| 12963 | ;; |
| 12964 | *) |
| 12965 | ;; |
| 12966 | esac |
| 12967 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12968 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12969 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12970 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12971 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12972 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12973 | fi |
| 12974 | |
| 12975 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12976 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12977 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 12978 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 12979 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12980 | fi |
| 12981 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12982 | if test "$GCC" = "yes" |
| 12983 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12984 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12985 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12986 | #error Unsupported GCC version |
| 12987 | #endif |
| 12988 | |
| 12989 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12990 | rm -f conftest.$ac_objext |
| 12991 | if { (ac_try="$ac_compile" |
| 12992 | case "(($ac_try" in |
| 12993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12994 | *) ac_try_echo=$ac_try;; |
| 12995 | esac |
| 12996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12997 | (eval "$ac_compile") 2>conftest.er1 |
| 12998 | ac_status=$? |
| 12999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13000 | rm -f conftest.er1 |
| 13001 | cat conftest.err >&5 |
| 13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13003 | (exit $ac_status); } && |
| 13004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13005 | { (case "(($ac_try" in |
| 13006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13007 | *) ac_try_echo=$ac_try;; |
| 13008 | esac |
| 13009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13010 | (eval "$ac_try") 2>&5 |
| 13011 | ac_status=$? |
| 13012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13013 | (exit $ac_status); }; } && |
| 13014 | { ac_try='test -s conftest.$ac_objext' |
| 13015 | { (case "(($ac_try" in |
| 13016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13017 | *) ac_try_echo=$ac_try;; |
| 13018 | esac |
| 13019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13020 | (eval "$ac_try") 2>&5 |
| 13021 | ac_status=$? |
| 13022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13023 | (exit $ac_status); }; }; then |
| 13024 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13025 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13026 | echo "$as_me: failed program was:" >&5 |
| 13027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13028 | |
| 13029 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13030 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13031 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13033 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13035 | fi |
| 13036 | |
| 13037 | if test -z "$llvm_cv_gnu_make_command" |
| 13038 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13039 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13040 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13041 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13042 | fi |
| 13043 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13044 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13045 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13046 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13047 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13048 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13049 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13050 | |
| 13051 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13052 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13053 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13054 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13055 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13056 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13057 | |
| 13058 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13059 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13060 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13062 | else |
| 13063 | ac_check_lib_save_LIBS=$LIBS |
| 13064 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13065 | cat >conftest.$ac_ext <<_ACEOF |
| 13066 | /* confdefs.h. */ |
| 13067 | _ACEOF |
| 13068 | cat confdefs.h >>conftest.$ac_ext |
| 13069 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13070 | /* end confdefs.h. */ |
| 13071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13072 | /* Override any GCC internal prototype to avoid an error. |
| 13073 | Use char because int might match the return type of a GCC |
| 13074 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13075 | #ifdef __cplusplus |
| 13076 | extern "C" |
| 13077 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13078 | char sin (); |
| 13079 | int |
| 13080 | main () |
| 13081 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13082 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13083 | ; |
| 13084 | return 0; |
| 13085 | } |
| 13086 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13087 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13088 | if { (ac_try="$ac_link" |
| 13089 | case "(($ac_try" in |
| 13090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13091 | *) ac_try_echo=$ac_try;; |
| 13092 | esac |
| 13093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13094 | (eval "$ac_link") 2>conftest.er1 |
| 13095 | ac_status=$? |
| 13096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13097 | rm -f conftest.er1 |
| 13098 | cat conftest.err >&5 |
| 13099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13100 | (exit $ac_status); } && |
| 13101 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13102 | { (case "(($ac_try" in |
| 13103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13104 | *) ac_try_echo=$ac_try;; |
| 13105 | esac |
| 13106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13107 | (eval "$ac_try") 2>&5 |
| 13108 | ac_status=$? |
| 13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13110 | (exit $ac_status); }; } && |
| 13111 | { ac_try='test -s conftest$ac_exeext' |
| 13112 | { (case "(($ac_try" in |
| 13113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13114 | *) ac_try_echo=$ac_try;; |
| 13115 | esac |
| 13116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13117 | (eval "$ac_try") 2>&5 |
| 13118 | ac_status=$? |
| 13119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13120 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13121 | ac_cv_lib_m_sin=yes |
| 13122 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13123 | echo "$as_me: failed program was:" >&5 |
| 13124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13125 | |
| 13126 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13127 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13128 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13129 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13130 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13131 | LIBS=$ac_check_lib_save_LIBS |
| 13132 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13133 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13134 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13135 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13136 | cat >>confdefs.h <<_ACEOF |
| 13137 | #define HAVE_LIBM 1 |
| 13138 | _ACEOF |
| 13139 | |
| 13140 | LIBS="-lm $LIBS" |
| 13141 | |
| 13142 | fi |
| 13143 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13144 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13145 | |
| 13146 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13147 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13148 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13150 | else |
| 13151 | ac_check_lib_save_LIBS=$LIBS |
| 13152 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13153 | cat >conftest.$ac_ext <<_ACEOF |
| 13154 | /* confdefs.h. */ |
| 13155 | _ACEOF |
| 13156 | cat confdefs.h >>conftest.$ac_ext |
| 13157 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13158 | /* end confdefs.h. */ |
| 13159 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13160 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13161 | int |
| 13162 | main () |
| 13163 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13164 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13165 | ; |
| 13166 | return 0; |
| 13167 | } |
| 13168 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13170 | if { (ac_try="$ac_link" |
| 13171 | case "(($ac_try" in |
| 13172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13173 | *) ac_try_echo=$ac_try;; |
| 13174 | esac |
| 13175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13176 | (eval "$ac_link") 2>conftest.er1 |
| 13177 | ac_status=$? |
| 13178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13179 | rm -f conftest.er1 |
| 13180 | cat conftest.err >&5 |
| 13181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13182 | (exit $ac_status); } && |
| 13183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13184 | { (case "(($ac_try" in |
| 13185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13186 | *) ac_try_echo=$ac_try;; |
| 13187 | esac |
| 13188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13189 | (eval "$ac_try") 2>&5 |
| 13190 | ac_status=$? |
| 13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13192 | (exit $ac_status); }; } && |
| 13193 | { ac_try='test -s conftest$ac_exeext' |
| 13194 | { (case "(($ac_try" in |
| 13195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13196 | *) ac_try_echo=$ac_try;; |
| 13197 | esac |
| 13198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13199 | (eval "$ac_try") 2>&5 |
| 13200 | ac_status=$? |
| 13201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13202 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13203 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13204 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13205 | echo "$as_me: failed program was:" >&5 |
| 13206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13207 | |
| 13208 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13209 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13210 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13211 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13212 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13213 | LIBS=$ac_check_lib_save_LIBS |
| 13214 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13215 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13216 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13217 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13218 | cat >>confdefs.h <<_ACEOF |
| 13219 | #define HAVE_LIBIMAGEHLP 1 |
| 13220 | _ACEOF |
| 13221 | |
| 13222 | LIBS="-limagehlp $LIBS" |
| 13223 | |
| 13224 | fi |
| 13225 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13226 | |
| 13227 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13228 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13229 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13231 | else |
| 13232 | ac_check_lib_save_LIBS=$LIBS |
| 13233 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13234 | cat >conftest.$ac_ext <<_ACEOF |
| 13235 | /* confdefs.h. */ |
| 13236 | _ACEOF |
| 13237 | cat confdefs.h >>conftest.$ac_ext |
| 13238 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13239 | /* end confdefs.h. */ |
| 13240 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13241 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13242 | int |
| 13243 | main () |
| 13244 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13245 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13246 | ; |
| 13247 | return 0; |
| 13248 | } |
| 13249 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13250 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13251 | if { (ac_try="$ac_link" |
| 13252 | case "(($ac_try" in |
| 13253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13254 | *) ac_try_echo=$ac_try;; |
| 13255 | esac |
| 13256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13257 | (eval "$ac_link") 2>conftest.er1 |
| 13258 | ac_status=$? |
| 13259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13260 | rm -f conftest.er1 |
| 13261 | cat conftest.err >&5 |
| 13262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13263 | (exit $ac_status); } && |
| 13264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13265 | { (case "(($ac_try" in |
| 13266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13267 | *) ac_try_echo=$ac_try;; |
| 13268 | esac |
| 13269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13270 | (eval "$ac_try") 2>&5 |
| 13271 | ac_status=$? |
| 13272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13273 | (exit $ac_status); }; } && |
| 13274 | { ac_try='test -s conftest$ac_exeext' |
| 13275 | { (case "(($ac_try" in |
| 13276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13277 | *) ac_try_echo=$ac_try;; |
| 13278 | esac |
| 13279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13280 | (eval "$ac_try") 2>&5 |
| 13281 | ac_status=$? |
| 13282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13283 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13284 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13285 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13286 | echo "$as_me: failed program was:" >&5 |
| 13287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13288 | |
| 13289 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13290 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13291 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13292 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13293 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13294 | LIBS=$ac_check_lib_save_LIBS |
| 13295 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13296 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13297 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13298 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13299 | cat >>confdefs.h <<_ACEOF |
| 13300 | #define HAVE_LIBPSAPI 1 |
| 13301 | _ACEOF |
| 13302 | |
| 13303 | LIBS="-lpsapi $LIBS" |
| 13304 | |
| 13305 | fi |
| 13306 | |
| 13307 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13308 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13309 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13310 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13311 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13313 | else |
| 13314 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13315 | cat >conftest.$ac_ext <<_ACEOF |
| 13316 | /* confdefs.h. */ |
| 13317 | _ACEOF |
| 13318 | cat confdefs.h >>conftest.$ac_ext |
| 13319 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13320 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13322 | /* Override any GCC internal prototype to avoid an error. |
| 13323 | Use char because int might match the return type of a GCC |
| 13324 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13325 | #ifdef __cplusplus |
| 13326 | extern "C" |
| 13327 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13328 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13329 | int |
| 13330 | main () |
| 13331 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13332 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13333 | ; |
| 13334 | return 0; |
| 13335 | } |
| 13336 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13337 | for ac_lib in '' dl; do |
| 13338 | if test -z "$ac_lib"; then |
| 13339 | ac_res="none required" |
| 13340 | else |
| 13341 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13342 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13343 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13345 | if { (ac_try="$ac_link" |
| 13346 | case "(($ac_try" in |
| 13347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13348 | *) ac_try_echo=$ac_try;; |
| 13349 | esac |
| 13350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13351 | (eval "$ac_link") 2>conftest.er1 |
| 13352 | ac_status=$? |
| 13353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13354 | rm -f conftest.er1 |
| 13355 | cat conftest.err >&5 |
| 13356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13357 | (exit $ac_status); } && |
| 13358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13359 | { (case "(($ac_try" in |
| 13360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13361 | *) ac_try_echo=$ac_try;; |
| 13362 | esac |
| 13363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13364 | (eval "$ac_try") 2>&5 |
| 13365 | ac_status=$? |
| 13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13367 | (exit $ac_status); }; } && |
| 13368 | { ac_try='test -s conftest$ac_exeext' |
| 13369 | { (case "(($ac_try" in |
| 13370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13371 | *) ac_try_echo=$ac_try;; |
| 13372 | esac |
| 13373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13374 | (eval "$ac_try") 2>&5 |
| 13375 | ac_status=$? |
| 13376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13377 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13378 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13379 | else |
| 13380 | echo "$as_me: failed program was:" >&5 |
| 13381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13382 | |
| 13383 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13384 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13385 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13386 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13387 | conftest$ac_exeext |
| 13388 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13389 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13390 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13391 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13392 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13393 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13394 | else |
| 13395 | ac_cv_search_dlopen=no |
| 13396 | fi |
| 13397 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13398 | LIBS=$ac_func_search_save_LIBS |
| 13399 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13400 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13401 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13402 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13403 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13404 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13405 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13406 | cat >>confdefs.h <<\_ACEOF |
| 13407 | #define HAVE_DLOPEN 1 |
| 13408 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13409 | |
| 13410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13411 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13412 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13413 | fi |
| 13414 | |
| 13415 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13416 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13417 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13418 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13419 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13421 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13422 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13423 | cat >conftest.$ac_ext <<_ACEOF |
| 13424 | /* confdefs.h. */ |
| 13425 | _ACEOF |
| 13426 | cat confdefs.h >>conftest.$ac_ext |
| 13427 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13428 | /* end confdefs.h. */ |
| 13429 | |
| 13430 | /* Override any GCC internal prototype to avoid an error. |
| 13431 | Use char because int might match the return type of a GCC |
| 13432 | builtin and then its argument prototype would still apply. */ |
| 13433 | #ifdef __cplusplus |
| 13434 | extern "C" |
| 13435 | #endif |
| 13436 | char ffi_call (); |
| 13437 | int |
| 13438 | main () |
| 13439 | { |
| 13440 | return ffi_call (); |
| 13441 | ; |
| 13442 | return 0; |
| 13443 | } |
| 13444 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13445 | for ac_lib in '' ffi; do |
| 13446 | if test -z "$ac_lib"; then |
| 13447 | ac_res="none required" |
| 13448 | else |
| 13449 | ac_res=-l$ac_lib |
| 13450 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13451 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13452 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13453 | if { (ac_try="$ac_link" |
| 13454 | case "(($ac_try" in |
| 13455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13456 | *) ac_try_echo=$ac_try;; |
| 13457 | esac |
| 13458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13459 | (eval "$ac_link") 2>conftest.er1 |
| 13460 | ac_status=$? |
| 13461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13462 | rm -f conftest.er1 |
| 13463 | cat conftest.err >&5 |
| 13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13465 | (exit $ac_status); } && |
| 13466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13467 | { (case "(($ac_try" in |
| 13468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13469 | *) ac_try_echo=$ac_try;; |
| 13470 | esac |
| 13471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13472 | (eval "$ac_try") 2>&5 |
| 13473 | ac_status=$? |
| 13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13475 | (exit $ac_status); }; } && |
| 13476 | { ac_try='test -s conftest$ac_exeext' |
| 13477 | { (case "(($ac_try" in |
| 13478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13479 | *) ac_try_echo=$ac_try;; |
| 13480 | esac |
| 13481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13482 | (eval "$ac_try") 2>&5 |
| 13483 | ac_status=$? |
| 13484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13485 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13486 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13487 | else |
| 13488 | echo "$as_me: failed program was:" >&5 |
| 13489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13490 | |
| 13491 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13492 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13493 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13494 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13495 | conftest$ac_exeext |
| 13496 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13497 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13498 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13499 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13500 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13501 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13502 | else |
| 13503 | ac_cv_search_ffi_call=no |
| 13504 | fi |
| 13505 | rm conftest.$ac_ext |
| 13506 | LIBS=$ac_func_search_save_LIBS |
| 13507 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13508 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13509 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13510 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13511 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13512 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13513 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13514 | cat >>confdefs.h <<\_ACEOF |
| 13515 | #define HAVE_FFI_CALL 1 |
| 13516 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13517 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13518 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13519 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13520 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13521 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13522 | fi |
| 13523 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13524 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13525 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13526 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13527 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13528 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13530 | else |
| 13531 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13532 | cat >conftest.$ac_ext <<_ACEOF |
| 13533 | /* confdefs.h. */ |
| 13534 | _ACEOF |
| 13535 | cat confdefs.h >>conftest.$ac_ext |
| 13536 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13537 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13539 | /* Override any GCC internal prototype to avoid an error. |
| 13540 | Use char because int might match the return type of a GCC |
| 13541 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13542 | #ifdef __cplusplus |
| 13543 | extern "C" |
| 13544 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13545 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13546 | int |
| 13547 | main () |
| 13548 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13549 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13550 | ; |
| 13551 | return 0; |
| 13552 | } |
| 13553 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13554 | for ac_lib in '' malloc; do |
| 13555 | if test -z "$ac_lib"; then |
| 13556 | ac_res="none required" |
| 13557 | else |
| 13558 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13559 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13560 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13561 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13562 | if { (ac_try="$ac_link" |
| 13563 | case "(($ac_try" in |
| 13564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13565 | *) ac_try_echo=$ac_try;; |
| 13566 | esac |
| 13567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13568 | (eval "$ac_link") 2>conftest.er1 |
| 13569 | ac_status=$? |
| 13570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13571 | rm -f conftest.er1 |
| 13572 | cat conftest.err >&5 |
| 13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13574 | (exit $ac_status); } && |
| 13575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13576 | { (case "(($ac_try" in |
| 13577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13578 | *) ac_try_echo=$ac_try;; |
| 13579 | esac |
| 13580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13581 | (eval "$ac_try") 2>&5 |
| 13582 | ac_status=$? |
| 13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13584 | (exit $ac_status); }; } && |
| 13585 | { ac_try='test -s conftest$ac_exeext' |
| 13586 | { (case "(($ac_try" in |
| 13587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13588 | *) ac_try_echo=$ac_try;; |
| 13589 | esac |
| 13590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13591 | (eval "$ac_try") 2>&5 |
| 13592 | ac_status=$? |
| 13593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13594 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13595 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13596 | else |
| 13597 | echo "$as_me: failed program was:" >&5 |
| 13598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13599 | |
| 13600 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13601 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13602 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13603 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13604 | conftest$ac_exeext |
| 13605 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13606 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13607 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13608 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13609 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13610 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13611 | else |
| 13612 | ac_cv_search_mallinfo=no |
| 13613 | fi |
| 13614 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13615 | LIBS=$ac_func_search_save_LIBS |
| 13616 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13617 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13618 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13619 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13620 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13621 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13622 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13623 | cat >>confdefs.h <<\_ACEOF |
| 13624 | #define HAVE_MALLINFO 1 |
| 13625 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13626 | |
| 13627 | fi |
| 13628 | |
| 13629 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13630 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13631 | |
| 13632 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13633 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13634 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13636 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13637 | ac_check_lib_save_LIBS=$LIBS |
| 13638 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13639 | cat >conftest.$ac_ext <<_ACEOF |
| 13640 | /* confdefs.h. */ |
| 13641 | _ACEOF |
| 13642 | cat confdefs.h >>conftest.$ac_ext |
| 13643 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13644 | /* end confdefs.h. */ |
| 13645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13646 | /* Override any GCC internal prototype to avoid an error. |
| 13647 | Use char because int might match the return type of a GCC |
| 13648 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13649 | #ifdef __cplusplus |
| 13650 | extern "C" |
| 13651 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13652 | char pthread_mutex_init (); |
| 13653 | int |
| 13654 | main () |
| 13655 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13656 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13657 | ; |
| 13658 | return 0; |
| 13659 | } |
| 13660 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13661 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13662 | if { (ac_try="$ac_link" |
| 13663 | case "(($ac_try" in |
| 13664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13665 | *) ac_try_echo=$ac_try;; |
| 13666 | esac |
| 13667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13668 | (eval "$ac_link") 2>conftest.er1 |
| 13669 | ac_status=$? |
| 13670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13671 | rm -f conftest.er1 |
| 13672 | cat conftest.err >&5 |
| 13673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13674 | (exit $ac_status); } && |
| 13675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13676 | { (case "(($ac_try" in |
| 13677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13678 | *) ac_try_echo=$ac_try;; |
| 13679 | esac |
| 13680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13681 | (eval "$ac_try") 2>&5 |
| 13682 | ac_status=$? |
| 13683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13684 | (exit $ac_status); }; } && |
| 13685 | { ac_try='test -s conftest$ac_exeext' |
| 13686 | { (case "(($ac_try" in |
| 13687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13688 | *) ac_try_echo=$ac_try;; |
| 13689 | esac |
| 13690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13691 | (eval "$ac_try") 2>&5 |
| 13692 | ac_status=$? |
| 13693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13694 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13695 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13696 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13697 | echo "$as_me: failed program was:" >&5 |
| 13698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13699 | |
| 13700 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13701 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13702 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13703 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13704 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13705 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13706 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13707 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13708 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13709 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13710 | cat >>confdefs.h <<_ACEOF |
| 13711 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13712 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13713 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13714 | LIBS="-lpthread $LIBS" |
| 13715 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13716 | fi |
| 13717 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13718 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13719 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13720 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13722 | else |
| 13723 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13724 | cat >conftest.$ac_ext <<_ACEOF |
| 13725 | /* confdefs.h. */ |
| 13726 | _ACEOF |
| 13727 | cat confdefs.h >>conftest.$ac_ext |
| 13728 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13729 | /* end confdefs.h. */ |
| 13730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13731 | /* Override any GCC internal prototype to avoid an error. |
| 13732 | Use char because int might match the return type of a GCC |
| 13733 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13734 | #ifdef __cplusplus |
| 13735 | extern "C" |
| 13736 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13737 | char pthread_mutex_lock (); |
| 13738 | int |
| 13739 | main () |
| 13740 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13741 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13742 | ; |
| 13743 | return 0; |
| 13744 | } |
| 13745 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13746 | for ac_lib in '' pthread; do |
| 13747 | if test -z "$ac_lib"; then |
| 13748 | ac_res="none required" |
| 13749 | else |
| 13750 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13751 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13752 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13753 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13754 | if { (ac_try="$ac_link" |
| 13755 | case "(($ac_try" in |
| 13756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13757 | *) ac_try_echo=$ac_try;; |
| 13758 | esac |
| 13759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13760 | (eval "$ac_link") 2>conftest.er1 |
| 13761 | ac_status=$? |
| 13762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13763 | rm -f conftest.er1 |
| 13764 | cat conftest.err >&5 |
| 13765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13766 | (exit $ac_status); } && |
| 13767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13768 | { (case "(($ac_try" in |
| 13769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13770 | *) ac_try_echo=$ac_try;; |
| 13771 | esac |
| 13772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13773 | (eval "$ac_try") 2>&5 |
| 13774 | ac_status=$? |
| 13775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13776 | (exit $ac_status); }; } && |
| 13777 | { ac_try='test -s conftest$ac_exeext' |
| 13778 | { (case "(($ac_try" in |
| 13779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13780 | *) ac_try_echo=$ac_try;; |
| 13781 | esac |
| 13782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13783 | (eval "$ac_try") 2>&5 |
| 13784 | ac_status=$? |
| 13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13786 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13787 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13788 | else |
| 13789 | echo "$as_me: failed program was:" >&5 |
| 13790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13791 | |
| 13792 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13793 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13794 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13795 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13796 | conftest$ac_exeext |
| 13797 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13798 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13799 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13800 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13801 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13802 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13803 | else |
| 13804 | ac_cv_search_pthread_mutex_lock=no |
| 13805 | fi |
| 13806 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13807 | LIBS=$ac_func_search_save_LIBS |
| 13808 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13809 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 13810 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13811 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13812 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13813 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13815 | cat >>confdefs.h <<\_ACEOF |
| 13816 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 13817 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13818 | |
| 13819 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13820 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13821 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 13822 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 13823 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13825 | else |
| 13826 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13827 | cat >conftest.$ac_ext <<_ACEOF |
| 13828 | /* confdefs.h. */ |
| 13829 | _ACEOF |
| 13830 | cat confdefs.h >>conftest.$ac_ext |
| 13831 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13832 | /* end confdefs.h. */ |
| 13833 | |
| 13834 | /* Override any GCC internal prototype to avoid an error. |
| 13835 | Use char because int might match the return type of a GCC |
| 13836 | builtin and then its argument prototype would still apply. */ |
| 13837 | #ifdef __cplusplus |
| 13838 | extern "C" |
| 13839 | #endif |
| 13840 | char pthread_rwlock_init (); |
| 13841 | int |
| 13842 | main () |
| 13843 | { |
| 13844 | return pthread_rwlock_init (); |
| 13845 | ; |
| 13846 | return 0; |
| 13847 | } |
| 13848 | _ACEOF |
| 13849 | for ac_lib in '' pthread; do |
| 13850 | if test -z "$ac_lib"; then |
| 13851 | ac_res="none required" |
| 13852 | else |
| 13853 | ac_res=-l$ac_lib |
| 13854 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13855 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13857 | if { (ac_try="$ac_link" |
| 13858 | case "(($ac_try" in |
| 13859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13860 | *) ac_try_echo=$ac_try;; |
| 13861 | esac |
| 13862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13863 | (eval "$ac_link") 2>conftest.er1 |
| 13864 | ac_status=$? |
| 13865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13866 | rm -f conftest.er1 |
| 13867 | cat conftest.err >&5 |
| 13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13869 | (exit $ac_status); } && |
| 13870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13871 | { (case "(($ac_try" in |
| 13872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13873 | *) ac_try_echo=$ac_try;; |
| 13874 | esac |
| 13875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13876 | (eval "$ac_try") 2>&5 |
| 13877 | ac_status=$? |
| 13878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13879 | (exit $ac_status); }; } && |
| 13880 | { ac_try='test -s conftest$ac_exeext' |
| 13881 | { (case "(($ac_try" in |
| 13882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13883 | *) ac_try_echo=$ac_try;; |
| 13884 | esac |
| 13885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13886 | (eval "$ac_try") 2>&5 |
| 13887 | ac_status=$? |
| 13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13889 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13890 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13891 | else |
| 13892 | echo "$as_me: failed program was:" >&5 |
| 13893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13894 | |
| 13895 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13896 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13897 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13898 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13899 | conftest$ac_exeext |
| 13900 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13901 | break |
| 13902 | fi |
| 13903 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13904 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13905 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13906 | else |
| 13907 | ac_cv_search_pthread_rwlock_init=no |
| 13908 | fi |
| 13909 | rm conftest.$ac_ext |
| 13910 | LIBS=$ac_func_search_save_LIBS |
| 13911 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13912 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13913 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13914 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13915 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13916 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13917 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13918 | cat >>confdefs.h <<\_ACEOF |
| 13919 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13920 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13921 | |
| 13922 | fi |
| 13923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13924 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13925 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13926 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13928 | else |
| 13929 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13930 | cat >conftest.$ac_ext <<_ACEOF |
| 13931 | /* confdefs.h. */ |
| 13932 | _ACEOF |
| 13933 | cat confdefs.h >>conftest.$ac_ext |
| 13934 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13935 | /* end confdefs.h. */ |
| 13936 | |
| 13937 | /* Override any GCC internal prototype to avoid an error. |
| 13938 | Use char because int might match the return type of a GCC |
| 13939 | builtin and then its argument prototype would still apply. */ |
| 13940 | #ifdef __cplusplus |
| 13941 | extern "C" |
| 13942 | #endif |
| 13943 | char pthread_getspecific (); |
| 13944 | int |
| 13945 | main () |
| 13946 | { |
| 13947 | return pthread_getspecific (); |
| 13948 | ; |
| 13949 | return 0; |
| 13950 | } |
| 13951 | _ACEOF |
| 13952 | for ac_lib in '' pthread; do |
| 13953 | if test -z "$ac_lib"; then |
| 13954 | ac_res="none required" |
| 13955 | else |
| 13956 | ac_res=-l$ac_lib |
| 13957 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13958 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13960 | if { (ac_try="$ac_link" |
| 13961 | case "(($ac_try" in |
| 13962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13963 | *) ac_try_echo=$ac_try;; |
| 13964 | esac |
| 13965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13966 | (eval "$ac_link") 2>conftest.er1 |
| 13967 | ac_status=$? |
| 13968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13969 | rm -f conftest.er1 |
| 13970 | cat conftest.err >&5 |
| 13971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13972 | (exit $ac_status); } && |
| 13973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13974 | { (case "(($ac_try" in |
| 13975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13976 | *) ac_try_echo=$ac_try;; |
| 13977 | esac |
| 13978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13979 | (eval "$ac_try") 2>&5 |
| 13980 | ac_status=$? |
| 13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13982 | (exit $ac_status); }; } && |
| 13983 | { ac_try='test -s conftest$ac_exeext' |
| 13984 | { (case "(($ac_try" in |
| 13985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13986 | *) ac_try_echo=$ac_try;; |
| 13987 | esac |
| 13988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13989 | (eval "$ac_try") 2>&5 |
| 13990 | ac_status=$? |
| 13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13992 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13993 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13994 | else |
| 13995 | echo "$as_me: failed program was:" >&5 |
| 13996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13997 | |
| 13998 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13999 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14000 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14001 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14002 | conftest$ac_exeext |
| 14003 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14004 | break |
| 14005 | fi |
| 14006 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14007 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14008 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14009 | else |
| 14010 | ac_cv_search_pthread_getspecific=no |
| 14011 | fi |
| 14012 | rm conftest.$ac_ext |
| 14013 | LIBS=$ac_func_search_save_LIBS |
| 14014 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14015 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14016 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14017 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14018 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14019 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14021 | cat >>confdefs.h <<\_ACEOF |
| 14022 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14023 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14024 | |
| 14025 | fi |
| 14026 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14027 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14028 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14029 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14030 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14031 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14032 | withval=$with_udis86; |
| 14033 | USE_UDIS86=1 |
| 14034 | |
| 14035 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14036 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14037 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14038 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14039 | |
| 14040 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14041 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14042 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14044 | else |
| 14045 | ac_check_lib_save_LIBS=$LIBS |
| 14046 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14047 | cat >conftest.$ac_ext <<_ACEOF |
| 14048 | /* confdefs.h. */ |
| 14049 | _ACEOF |
| 14050 | cat confdefs.h >>conftest.$ac_ext |
| 14051 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14052 | /* end confdefs.h. */ |
| 14053 | |
| 14054 | /* Override any GCC internal prototype to avoid an error. |
| 14055 | Use char because int might match the return type of a GCC |
| 14056 | builtin and then its argument prototype would still apply. */ |
| 14057 | #ifdef __cplusplus |
| 14058 | extern "C" |
| 14059 | #endif |
| 14060 | char ud_init (); |
| 14061 | int |
| 14062 | main () |
| 14063 | { |
| 14064 | return ud_init (); |
| 14065 | ; |
| 14066 | return 0; |
| 14067 | } |
| 14068 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14069 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14070 | if { (ac_try="$ac_link" |
| 14071 | case "(($ac_try" in |
| 14072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14073 | *) ac_try_echo=$ac_try;; |
| 14074 | esac |
| 14075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14076 | (eval "$ac_link") 2>conftest.er1 |
| 14077 | ac_status=$? |
| 14078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14079 | rm -f conftest.er1 |
| 14080 | cat conftest.err >&5 |
| 14081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14082 | (exit $ac_status); } && |
| 14083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14084 | { (case "(($ac_try" in |
| 14085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14086 | *) ac_try_echo=$ac_try;; |
| 14087 | esac |
| 14088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14089 | (eval "$ac_try") 2>&5 |
| 14090 | ac_status=$? |
| 14091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14092 | (exit $ac_status); }; } && |
| 14093 | { ac_try='test -s conftest$ac_exeext' |
| 14094 | { (case "(($ac_try" in |
| 14095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14096 | *) ac_try_echo=$ac_try;; |
| 14097 | esac |
| 14098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14099 | (eval "$ac_try") 2>&5 |
| 14100 | ac_status=$? |
| 14101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14102 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14103 | ac_cv_lib_udis86_ud_init=yes |
| 14104 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14105 | echo "$as_me: failed program was:" >&5 |
| 14106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14107 | |
| 14108 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14109 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14110 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14111 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14112 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14113 | LIBS=$ac_check_lib_save_LIBS |
| 14114 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14115 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14116 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14117 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14118 | cat >>confdefs.h <<_ACEOF |
| 14119 | #define HAVE_LIBUDIS86 1 |
| 14120 | _ACEOF |
| 14121 | |
| 14122 | LIBS="-ludis86 $LIBS" |
| 14123 | |
| 14124 | else |
| 14125 | |
| 14126 | echo "Error! You need to have libudis86 around." |
| 14127 | exit -1 |
| 14128 | |
| 14129 | fi |
| 14130 | |
| 14131 | |
| 14132 | else |
| 14133 | USE_UDIS86=0 |
| 14134 | |
| 14135 | fi |
| 14136 | |
| 14137 | |
| 14138 | cat >>confdefs.h <<_ACEOF |
| 14139 | #define USE_UDIS86 $USE_UDIS86 |
| 14140 | _ACEOF |
| 14141 | |
| 14142 | |
| 14143 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14144 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14145 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14146 | withval=$with_oprofile; |
| 14147 | USE_OPROFILE=1 |
| 14148 | |
| 14149 | case "$withval" in |
| 14150 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14151 | no) llvm_cv_oppath= |
| 14152 | USE_OPROFILE=0 |
| 14153 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14154 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14155 | CPPFLAGS="-I${withval}/include";; |
| 14156 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14157 | if test -n "$llvm_cv_oppath" ; then |
| 14158 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14159 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14160 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14161 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14163 | else |
| 14164 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14165 | cat >conftest.$ac_ext <<_ACEOF |
| 14166 | /* confdefs.h. */ |
| 14167 | _ACEOF |
| 14168 | cat confdefs.h >>conftest.$ac_ext |
| 14169 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14170 | /* end confdefs.h. */ |
| 14171 | |
| 14172 | /* Override any GCC internal prototype to avoid an error. |
| 14173 | Use char because int might match the return type of a GCC |
| 14174 | builtin and then its argument prototype would still apply. */ |
| 14175 | #ifdef __cplusplus |
| 14176 | extern "C" |
| 14177 | #endif |
| 14178 | char bfd_init (); |
| 14179 | int |
| 14180 | main () |
| 14181 | { |
| 14182 | return bfd_init (); |
| 14183 | ; |
| 14184 | return 0; |
| 14185 | } |
| 14186 | _ACEOF |
| 14187 | for ac_lib in '' bfd; do |
| 14188 | if test -z "$ac_lib"; then |
| 14189 | ac_res="none required" |
| 14190 | else |
| 14191 | ac_res=-l$ac_lib |
| 14192 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14193 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14194 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14195 | if { (ac_try="$ac_link" |
| 14196 | case "(($ac_try" in |
| 14197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14198 | *) ac_try_echo=$ac_try;; |
| 14199 | esac |
| 14200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14201 | (eval "$ac_link") 2>conftest.er1 |
| 14202 | ac_status=$? |
| 14203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14204 | rm -f conftest.er1 |
| 14205 | cat conftest.err >&5 |
| 14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14207 | (exit $ac_status); } && |
| 14208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14209 | { (case "(($ac_try" in |
| 14210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14211 | *) ac_try_echo=$ac_try;; |
| 14212 | esac |
| 14213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14214 | (eval "$ac_try") 2>&5 |
| 14215 | ac_status=$? |
| 14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14217 | (exit $ac_status); }; } && |
| 14218 | { ac_try='test -s conftest$ac_exeext' |
| 14219 | { (case "(($ac_try" in |
| 14220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14221 | *) ac_try_echo=$ac_try;; |
| 14222 | esac |
| 14223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14224 | (eval "$ac_try") 2>&5 |
| 14225 | ac_status=$? |
| 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14227 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14228 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14229 | else |
| 14230 | echo "$as_me: failed program was:" >&5 |
| 14231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14232 | |
| 14233 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14234 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14235 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14236 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14237 | conftest$ac_exeext |
| 14238 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14239 | break |
| 14240 | fi |
| 14241 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14242 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14243 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14244 | else |
| 14245 | ac_cv_search_bfd_init=no |
| 14246 | fi |
| 14247 | rm conftest.$ac_ext |
| 14248 | LIBS=$ac_func_search_save_LIBS |
| 14249 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14250 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14251 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14252 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14253 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14254 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14255 | |
| 14256 | fi |
| 14257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14258 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14259 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14260 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14262 | else |
| 14263 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14264 | cat >conftest.$ac_ext <<_ACEOF |
| 14265 | /* confdefs.h. */ |
| 14266 | _ACEOF |
| 14267 | cat confdefs.h >>conftest.$ac_ext |
| 14268 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14269 | /* end confdefs.h. */ |
| 14270 | |
| 14271 | /* Override any GCC internal prototype to avoid an error. |
| 14272 | Use char because int might match the return type of a GCC |
| 14273 | builtin and then its argument prototype would still apply. */ |
| 14274 | #ifdef __cplusplus |
| 14275 | extern "C" |
| 14276 | #endif |
| 14277 | char op_open_agent (); |
| 14278 | int |
| 14279 | main () |
| 14280 | { |
| 14281 | return op_open_agent (); |
| 14282 | ; |
| 14283 | return 0; |
| 14284 | } |
| 14285 | _ACEOF |
| 14286 | for ac_lib in '' opagent; do |
| 14287 | if test -z "$ac_lib"; then |
| 14288 | ac_res="none required" |
| 14289 | else |
| 14290 | ac_res=-l$ac_lib |
| 14291 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14292 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14294 | if { (ac_try="$ac_link" |
| 14295 | case "(($ac_try" in |
| 14296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14297 | *) ac_try_echo=$ac_try;; |
| 14298 | esac |
| 14299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14300 | (eval "$ac_link") 2>conftest.er1 |
| 14301 | ac_status=$? |
| 14302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14303 | rm -f conftest.er1 |
| 14304 | cat conftest.err >&5 |
| 14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14306 | (exit $ac_status); } && |
| 14307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14308 | { (case "(($ac_try" in |
| 14309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14310 | *) ac_try_echo=$ac_try;; |
| 14311 | esac |
| 14312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14313 | (eval "$ac_try") 2>&5 |
| 14314 | ac_status=$? |
| 14315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14316 | (exit $ac_status); }; } && |
| 14317 | { ac_try='test -s conftest$ac_exeext' |
| 14318 | { (case "(($ac_try" in |
| 14319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14320 | *) ac_try_echo=$ac_try;; |
| 14321 | esac |
| 14322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14323 | (eval "$ac_try") 2>&5 |
| 14324 | ac_status=$? |
| 14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14326 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14327 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14328 | else |
| 14329 | echo "$as_me: failed program was:" >&5 |
| 14330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14331 | |
| 14332 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14334 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14335 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14336 | conftest$ac_exeext |
| 14337 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14338 | break |
| 14339 | fi |
| 14340 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14341 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14342 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14343 | else |
| 14344 | ac_cv_search_op_open_agent=no |
| 14345 | fi |
| 14346 | rm conftest.$ac_ext |
| 14347 | LIBS=$ac_func_search_save_LIBS |
| 14348 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14349 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14350 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14351 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14352 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14353 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14354 | |
| 14355 | else |
| 14356 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14357 | echo "Error! You need to have libopagent around." |
| 14358 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14359 | |
| 14360 | fi |
| 14361 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14362 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14363 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14364 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14365 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14367 | fi |
| 14368 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14369 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14370 | else |
| 14371 | # Is the header compilable? |
| 14372 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14373 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14374 | cat >conftest.$ac_ext <<_ACEOF |
| 14375 | /* confdefs.h. */ |
| 14376 | _ACEOF |
| 14377 | cat confdefs.h >>conftest.$ac_ext |
| 14378 | cat >>conftest.$ac_ext <<_ACEOF |
| 14379 | /* end confdefs.h. */ |
| 14380 | $ac_includes_default |
| 14381 | #include <opagent.h> |
| 14382 | _ACEOF |
| 14383 | rm -f conftest.$ac_objext |
| 14384 | if { (ac_try="$ac_compile" |
| 14385 | case "(($ac_try" in |
| 14386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14387 | *) ac_try_echo=$ac_try;; |
| 14388 | esac |
| 14389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14390 | (eval "$ac_compile") 2>conftest.er1 |
| 14391 | ac_status=$? |
| 14392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14393 | rm -f conftest.er1 |
| 14394 | cat conftest.err >&5 |
| 14395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14396 | (exit $ac_status); } && |
| 14397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14398 | { (case "(($ac_try" in |
| 14399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14400 | *) ac_try_echo=$ac_try;; |
| 14401 | esac |
| 14402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14403 | (eval "$ac_try") 2>&5 |
| 14404 | ac_status=$? |
| 14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14406 | (exit $ac_status); }; } && |
| 14407 | { ac_try='test -s conftest.$ac_objext' |
| 14408 | { (case "(($ac_try" in |
| 14409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14410 | *) ac_try_echo=$ac_try;; |
| 14411 | esac |
| 14412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14413 | (eval "$ac_try") 2>&5 |
| 14414 | ac_status=$? |
| 14415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14416 | (exit $ac_status); }; }; then |
| 14417 | ac_header_compiler=yes |
| 14418 | else |
| 14419 | echo "$as_me: failed program was:" >&5 |
| 14420 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14421 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14422 | ac_header_compiler=no |
| 14423 | fi |
| 14424 | |
| 14425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14426 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14427 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14428 | |
| 14429 | # Is the header present? |
| 14430 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14431 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14432 | cat >conftest.$ac_ext <<_ACEOF |
| 14433 | /* confdefs.h. */ |
| 14434 | _ACEOF |
| 14435 | cat confdefs.h >>conftest.$ac_ext |
| 14436 | cat >>conftest.$ac_ext <<_ACEOF |
| 14437 | /* end confdefs.h. */ |
| 14438 | #include <opagent.h> |
| 14439 | _ACEOF |
| 14440 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14447 | ac_status=$? |
| 14448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14449 | rm -f conftest.er1 |
| 14450 | cat conftest.err >&5 |
| 14451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14452 | (exit $ac_status); } >/dev/null; then |
| 14453 | if test -s conftest.err; then |
| 14454 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14456 | else |
| 14457 | ac_cpp_err= |
| 14458 | fi |
| 14459 | else |
| 14460 | ac_cpp_err=yes |
| 14461 | fi |
| 14462 | if test -z "$ac_cpp_err"; then |
| 14463 | ac_header_preproc=yes |
| 14464 | else |
| 14465 | echo "$as_me: failed program was:" >&5 |
| 14466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14467 | |
| 14468 | ac_header_preproc=no |
| 14469 | fi |
| 14470 | |
| 14471 | rm -f conftest.err conftest.$ac_ext |
| 14472 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14473 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14474 | |
| 14475 | # So? What about this header? |
| 14476 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14477 | yes:no: ) |
| 14478 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14479 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14480 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14481 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14482 | ac_header_preproc=yes |
| 14483 | ;; |
| 14484 | no:yes:* ) |
| 14485 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14486 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14487 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14488 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14489 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14490 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14491 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14492 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14493 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14494 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14495 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14496 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14497 | ( cat <<\_ASBOX |
| 14498 | ## ----------------------------------- ## |
| 14499 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14500 | ## ----------------------------------- ## |
| 14501 | _ASBOX |
| 14502 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14503 | ;; |
| 14504 | esac |
| 14505 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14506 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14507 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14509 | else |
| 14510 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14511 | fi |
| 14512 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14513 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14514 | |
| 14515 | fi |
| 14516 | if test $ac_cv_header_opagent_h = yes; then |
| 14517 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14518 | else |
| 14519 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14520 | echo "Error! You need to have opagent.h around." |
| 14521 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14522 | |
| 14523 | fi |
| 14524 | |
| 14525 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14526 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14527 | |
| 14528 | else |
| 14529 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14530 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14531 | |
| 14532 | |
| 14533 | fi |
| 14534 | |
| 14535 | |
| 14536 | cat >>confdefs.h <<_ACEOF |
| 14537 | #define USE_OPROFILE $USE_OPROFILE |
| 14538 | _ACEOF |
| 14539 | |
| 14540 | |
| 14541 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14542 | |
| 14543 | |
| 14544 | |
| 14545 | |
| 14546 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14547 | ac_header_dirent=no |
| 14548 | 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] | 14549 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14550 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14551 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14554 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14555 | cat >conftest.$ac_ext <<_ACEOF |
| 14556 | /* confdefs.h. */ |
| 14557 | _ACEOF |
| 14558 | cat confdefs.h >>conftest.$ac_ext |
| 14559 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14560 | /* end confdefs.h. */ |
| 14561 | #include <sys/types.h> |
| 14562 | #include <$ac_hdr> |
| 14563 | |
| 14564 | int |
| 14565 | main () |
| 14566 | { |
| 14567 | if ((DIR *) 0) |
| 14568 | return 0; |
| 14569 | ; |
| 14570 | return 0; |
| 14571 | } |
| 14572 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14573 | rm -f conftest.$ac_objext |
| 14574 | if { (ac_try="$ac_compile" |
| 14575 | case "(($ac_try" in |
| 14576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14577 | *) ac_try_echo=$ac_try;; |
| 14578 | esac |
| 14579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14580 | (eval "$ac_compile") 2>conftest.er1 |
| 14581 | ac_status=$? |
| 14582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14583 | rm -f conftest.er1 |
| 14584 | cat conftest.err >&5 |
| 14585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14586 | (exit $ac_status); } && |
| 14587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14588 | { (case "(($ac_try" in |
| 14589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14590 | *) ac_try_echo=$ac_try;; |
| 14591 | esac |
| 14592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14593 | (eval "$ac_try") 2>&5 |
| 14594 | ac_status=$? |
| 14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14596 | (exit $ac_status); }; } && |
| 14597 | { ac_try='test -s conftest.$ac_objext' |
| 14598 | { (case "(($ac_try" in |
| 14599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14600 | *) ac_try_echo=$ac_try;; |
| 14601 | esac |
| 14602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14603 | (eval "$ac_try") 2>&5 |
| 14604 | ac_status=$? |
| 14605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14606 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14607 | eval "$as_ac_Header=yes" |
| 14608 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14609 | echo "$as_me: failed program was:" >&5 |
| 14610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14611 | |
| 14612 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14613 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14616 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14617 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14618 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14619 | echo "${ECHO_T}$ac_res" >&6; } |
| 14620 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14621 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14622 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14623 | _ACEOF |
| 14624 | |
| 14625 | ac_header_dirent=$ac_hdr; break |
| 14626 | fi |
| 14627 | |
| 14628 | done |
| 14629 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14630 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14631 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14632 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14633 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14635 | else |
| 14636 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14637 | cat >conftest.$ac_ext <<_ACEOF |
| 14638 | /* confdefs.h. */ |
| 14639 | _ACEOF |
| 14640 | cat confdefs.h >>conftest.$ac_ext |
| 14641 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14642 | /* end confdefs.h. */ |
| 14643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14644 | /* Override any GCC internal prototype to avoid an error. |
| 14645 | Use char because int might match the return type of a GCC |
| 14646 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14647 | #ifdef __cplusplus |
| 14648 | extern "C" |
| 14649 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14650 | char opendir (); |
| 14651 | int |
| 14652 | main () |
| 14653 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14654 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14655 | ; |
| 14656 | return 0; |
| 14657 | } |
| 14658 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14659 | for ac_lib in '' dir; do |
| 14660 | if test -z "$ac_lib"; then |
| 14661 | ac_res="none required" |
| 14662 | else |
| 14663 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14664 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14665 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14666 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14667 | if { (ac_try="$ac_link" |
| 14668 | case "(($ac_try" in |
| 14669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14670 | *) ac_try_echo=$ac_try;; |
| 14671 | esac |
| 14672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14673 | (eval "$ac_link") 2>conftest.er1 |
| 14674 | ac_status=$? |
| 14675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14676 | rm -f conftest.er1 |
| 14677 | cat conftest.err >&5 |
| 14678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14679 | (exit $ac_status); } && |
| 14680 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14681 | { (case "(($ac_try" in |
| 14682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14683 | *) ac_try_echo=$ac_try;; |
| 14684 | esac |
| 14685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14686 | (eval "$ac_try") 2>&5 |
| 14687 | ac_status=$? |
| 14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14689 | (exit $ac_status); }; } && |
| 14690 | { ac_try='test -s conftest$ac_exeext' |
| 14691 | { (case "(($ac_try" in |
| 14692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14693 | *) ac_try_echo=$ac_try;; |
| 14694 | esac |
| 14695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14696 | (eval "$ac_try") 2>&5 |
| 14697 | ac_status=$? |
| 14698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14699 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14700 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14701 | else |
| 14702 | echo "$as_me: failed program was:" >&5 |
| 14703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14704 | |
| 14705 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14706 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14707 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14708 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14709 | conftest$ac_exeext |
| 14710 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14711 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14712 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14713 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14714 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14715 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14716 | else |
| 14717 | ac_cv_search_opendir=no |
| 14718 | fi |
| 14719 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14720 | LIBS=$ac_func_search_save_LIBS |
| 14721 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14722 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14723 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14724 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14725 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14726 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14727 | |
| 14728 | fi |
| 14729 | |
| 14730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14731 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14732 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14733 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14735 | else |
| 14736 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14737 | cat >conftest.$ac_ext <<_ACEOF |
| 14738 | /* confdefs.h. */ |
| 14739 | _ACEOF |
| 14740 | cat confdefs.h >>conftest.$ac_ext |
| 14741 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14742 | /* end confdefs.h. */ |
| 14743 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14744 | /* Override any GCC internal prototype to avoid an error. |
| 14745 | Use char because int might match the return type of a GCC |
| 14746 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14747 | #ifdef __cplusplus |
| 14748 | extern "C" |
| 14749 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14750 | char opendir (); |
| 14751 | int |
| 14752 | main () |
| 14753 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14754 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14755 | ; |
| 14756 | return 0; |
| 14757 | } |
| 14758 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14759 | for ac_lib in '' x; do |
| 14760 | if test -z "$ac_lib"; then |
| 14761 | ac_res="none required" |
| 14762 | else |
| 14763 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14764 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14765 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14766 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14767 | if { (ac_try="$ac_link" |
| 14768 | case "(($ac_try" in |
| 14769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14770 | *) ac_try_echo=$ac_try;; |
| 14771 | esac |
| 14772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14773 | (eval "$ac_link") 2>conftest.er1 |
| 14774 | ac_status=$? |
| 14775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14776 | rm -f conftest.er1 |
| 14777 | cat conftest.err >&5 |
| 14778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14779 | (exit $ac_status); } && |
| 14780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14781 | { (case "(($ac_try" in |
| 14782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14783 | *) ac_try_echo=$ac_try;; |
| 14784 | esac |
| 14785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14786 | (eval "$ac_try") 2>&5 |
| 14787 | ac_status=$? |
| 14788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14789 | (exit $ac_status); }; } && |
| 14790 | { ac_try='test -s conftest$ac_exeext' |
| 14791 | { (case "(($ac_try" in |
| 14792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14793 | *) ac_try_echo=$ac_try;; |
| 14794 | esac |
| 14795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14796 | (eval "$ac_try") 2>&5 |
| 14797 | ac_status=$? |
| 14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14799 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14800 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14801 | else |
| 14802 | echo "$as_me: failed program was:" >&5 |
| 14803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14804 | |
| 14805 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14806 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14807 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14808 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14809 | conftest$ac_exeext |
| 14810 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14811 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14812 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14813 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14814 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14815 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14816 | else |
| 14817 | ac_cv_search_opendir=no |
| 14818 | fi |
| 14819 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14820 | LIBS=$ac_func_search_save_LIBS |
| 14821 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14822 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14823 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14824 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14825 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14826 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14827 | |
| 14828 | fi |
| 14829 | |
| 14830 | fi |
| 14831 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14832 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14833 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14834 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14836 | else |
| 14837 | ac_ext=c |
| 14838 | ac_cpp='$CPP $CPPFLAGS' |
| 14839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14842 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14843 | cat >conftest.$ac_ext <<_ACEOF |
| 14844 | /* confdefs.h. */ |
| 14845 | _ACEOF |
| 14846 | cat confdefs.h >>conftest.$ac_ext |
| 14847 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14848 | /* end confdefs.h. */ |
| 14849 | #include <sys/mman.h> |
| 14850 | #include <unistd.h> |
| 14851 | #include <fcntl.h> |
| 14852 | int |
| 14853 | main () |
| 14854 | { |
| 14855 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14856 | ; |
| 14857 | return 0; |
| 14858 | } |
| 14859 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14860 | rm -f conftest.$ac_objext |
| 14861 | if { (ac_try="$ac_compile" |
| 14862 | case "(($ac_try" in |
| 14863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14864 | *) ac_try_echo=$ac_try;; |
| 14865 | esac |
| 14866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14867 | (eval "$ac_compile") 2>conftest.er1 |
| 14868 | ac_status=$? |
| 14869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14870 | rm -f conftest.er1 |
| 14871 | cat conftest.err >&5 |
| 14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14873 | (exit $ac_status); } && |
| 14874 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14875 | { (case "(($ac_try" in |
| 14876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14877 | *) ac_try_echo=$ac_try;; |
| 14878 | esac |
| 14879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14880 | (eval "$ac_try") 2>&5 |
| 14881 | ac_status=$? |
| 14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14883 | (exit $ac_status); }; } && |
| 14884 | { ac_try='test -s conftest.$ac_objext' |
| 14885 | { (case "(($ac_try" in |
| 14886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14887 | *) ac_try_echo=$ac_try;; |
| 14888 | esac |
| 14889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14890 | (eval "$ac_try") 2>&5 |
| 14891 | ac_status=$? |
| 14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14893 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14894 | ac_cv_header_mmap_anon=yes |
| 14895 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14896 | echo "$as_me: failed program was:" >&5 |
| 14897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14898 | |
| 14899 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14900 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14903 | ac_ext=c |
| 14904 | ac_cpp='$CPP $CPPFLAGS' |
| 14905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14908 | |
| 14909 | |
| 14910 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14911 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14912 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14913 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14914 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14915 | cat >>confdefs.h <<\_ACEOF |
| 14916 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14917 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14918 | |
| 14919 | fi |
| 14920 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14921 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14922 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14923 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14925 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14926 | cat >conftest.$ac_ext <<_ACEOF |
| 14927 | /* confdefs.h. */ |
| 14928 | _ACEOF |
| 14929 | cat confdefs.h >>conftest.$ac_ext |
| 14930 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14931 | /* end confdefs.h. */ |
| 14932 | #include <sys/types.h> |
| 14933 | #include <sys/stat.h> |
| 14934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14935 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14936 | # if S_ISBLK (S_IFDIR) |
| 14937 | You lose. |
| 14938 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14939 | #endif |
| 14940 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14941 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14942 | # if S_ISBLK (S_IFCHR) |
| 14943 | You lose. |
| 14944 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14945 | #endif |
| 14946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14947 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14948 | # if S_ISLNK (S_IFREG) |
| 14949 | You lose. |
| 14950 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14951 | #endif |
| 14952 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14953 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14954 | # if S_ISSOCK (S_IFREG) |
| 14955 | You lose. |
| 14956 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14957 | #endif |
| 14958 | |
| 14959 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14961 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14962 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14963 | else |
| 14964 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14965 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14966 | rm -f conftest* |
| 14967 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14968 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14969 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14970 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14971 | if test $ac_cv_header_stat_broken = yes; then |
| 14972 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14973 | cat >>confdefs.h <<\_ACEOF |
| 14974 | #define STAT_MACROS_BROKEN 1 |
| 14975 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14976 | |
| 14977 | fi |
| 14978 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14979 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 14980 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 14981 | if test "${ac_cv_header_stdc+set}" = set; then |
| 14982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14983 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14984 | cat >conftest.$ac_ext <<_ACEOF |
| 14985 | /* confdefs.h. */ |
| 14986 | _ACEOF |
| 14987 | cat confdefs.h >>conftest.$ac_ext |
| 14988 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14989 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14990 | #include <stdlib.h> |
| 14991 | #include <stdarg.h> |
| 14992 | #include <string.h> |
| 14993 | #include <float.h> |
| 14994 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14995 | int |
| 14996 | main () |
| 14997 | { |
| 14998 | |
| 14999 | ; |
| 15000 | return 0; |
| 15001 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15002 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15003 | rm -f conftest.$ac_objext |
| 15004 | if { (ac_try="$ac_compile" |
| 15005 | case "(($ac_try" in |
| 15006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15007 | *) ac_try_echo=$ac_try;; |
| 15008 | esac |
| 15009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15010 | (eval "$ac_compile") 2>conftest.er1 |
| 15011 | ac_status=$? |
| 15012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15013 | rm -f conftest.er1 |
| 15014 | cat conftest.err >&5 |
| 15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15016 | (exit $ac_status); } && |
| 15017 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15018 | { (case "(($ac_try" in |
| 15019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15020 | *) ac_try_echo=$ac_try;; |
| 15021 | esac |
| 15022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15023 | (eval "$ac_try") 2>&5 |
| 15024 | ac_status=$? |
| 15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15026 | (exit $ac_status); }; } && |
| 15027 | { ac_try='test -s conftest.$ac_objext' |
| 15028 | { (case "(($ac_try" in |
| 15029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15030 | *) ac_try_echo=$ac_try;; |
| 15031 | esac |
| 15032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15033 | (eval "$ac_try") 2>&5 |
| 15034 | ac_status=$? |
| 15035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15036 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15037 | ac_cv_header_stdc=yes |
| 15038 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15039 | echo "$as_me: failed program was:" >&5 |
| 15040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15041 | |
| 15042 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15043 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15046 | |
| 15047 | if test $ac_cv_header_stdc = yes; then |
| 15048 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15049 | cat >conftest.$ac_ext <<_ACEOF |
| 15050 | /* confdefs.h. */ |
| 15051 | _ACEOF |
| 15052 | cat confdefs.h >>conftest.$ac_ext |
| 15053 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15054 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15055 | #include <string.h> |
| 15056 | |
| 15057 | _ACEOF |
| 15058 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15059 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15060 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15061 | else |
| 15062 | ac_cv_header_stdc=no |
| 15063 | fi |
| 15064 | rm -f conftest* |
| 15065 | |
| 15066 | fi |
| 15067 | |
| 15068 | if test $ac_cv_header_stdc = yes; then |
| 15069 | # 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] | 15070 | cat >conftest.$ac_ext <<_ACEOF |
| 15071 | /* confdefs.h. */ |
| 15072 | _ACEOF |
| 15073 | cat confdefs.h >>conftest.$ac_ext |
| 15074 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15075 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15076 | #include <stdlib.h> |
| 15077 | |
| 15078 | _ACEOF |
| 15079 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15080 | $EGREP "free" >/dev/null 2>&1; then |
| 15081 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15082 | else |
| 15083 | ac_cv_header_stdc=no |
| 15084 | fi |
| 15085 | rm -f conftest* |
| 15086 | |
| 15087 | fi |
| 15088 | |
| 15089 | if test $ac_cv_header_stdc = yes; then |
| 15090 | # /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] | 15091 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15092 | : |
| 15093 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15094 | cat >conftest.$ac_ext <<_ACEOF |
| 15095 | /* confdefs.h. */ |
| 15096 | _ACEOF |
| 15097 | cat confdefs.h >>conftest.$ac_ext |
| 15098 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15099 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15100 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15101 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15102 | #if ((' ' & 0x0FF) == 0x020) |
| 15103 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15104 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15105 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15106 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15107 | (('a' <= (c) && (c) <= 'i') \ |
| 15108 | || ('j' <= (c) && (c) <= 'r') \ |
| 15109 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15110 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15111 | #endif |
| 15112 | |
| 15113 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15114 | int |
| 15115 | main () |
| 15116 | { |
| 15117 | int i; |
| 15118 | for (i = 0; i < 256; i++) |
| 15119 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15120 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15121 | return 2; |
| 15122 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15123 | } |
| 15124 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15125 | rm -f conftest$ac_exeext |
| 15126 | if { (ac_try="$ac_link" |
| 15127 | case "(($ac_try" in |
| 15128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15129 | *) ac_try_echo=$ac_try;; |
| 15130 | esac |
| 15131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15132 | (eval "$ac_link") 2>&5 |
| 15133 | ac_status=$? |
| 15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15135 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15136 | { (case "(($ac_try" in |
| 15137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15138 | *) ac_try_echo=$ac_try;; |
| 15139 | esac |
| 15140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15141 | (eval "$ac_try") 2>&5 |
| 15142 | ac_status=$? |
| 15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15144 | (exit $ac_status); }; }; then |
| 15145 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15146 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15147 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15148 | echo "$as_me: failed program was:" >&5 |
| 15149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15150 | |
| 15151 | ( exit $ac_status ) |
| 15152 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15153 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15154 | 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] | 15155 | fi |
| 15156 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15157 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15158 | fi |
| 15159 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15160 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15161 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15162 | if test $ac_cv_header_stdc = yes; then |
| 15163 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15164 | cat >>confdefs.h <<\_ACEOF |
| 15165 | #define STDC_HEADERS 1 |
| 15166 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15167 | |
| 15168 | fi |
| 15169 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15170 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15171 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15172 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15174 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15175 | cat >conftest.$ac_ext <<_ACEOF |
| 15176 | /* confdefs.h. */ |
| 15177 | _ACEOF |
| 15178 | cat confdefs.h >>conftest.$ac_ext |
| 15179 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15180 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15181 | #include <sys/types.h> |
| 15182 | #include <sys/wait.h> |
| 15183 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15184 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15185 | #endif |
| 15186 | #ifndef WIFEXITED |
| 15187 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15188 | #endif |
| 15189 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15190 | int |
| 15191 | main () |
| 15192 | { |
| 15193 | int s; |
| 15194 | wait (&s); |
| 15195 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15196 | ; |
| 15197 | return 0; |
| 15198 | } |
| 15199 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15200 | rm -f conftest.$ac_objext |
| 15201 | if { (ac_try="$ac_compile" |
| 15202 | case "(($ac_try" in |
| 15203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15204 | *) ac_try_echo=$ac_try;; |
| 15205 | esac |
| 15206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15207 | (eval "$ac_compile") 2>conftest.er1 |
| 15208 | ac_status=$? |
| 15209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15210 | rm -f conftest.er1 |
| 15211 | cat conftest.err >&5 |
| 15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15213 | (exit $ac_status); } && |
| 15214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15215 | { (case "(($ac_try" in |
| 15216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15217 | *) ac_try_echo=$ac_try;; |
| 15218 | esac |
| 15219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15220 | (eval "$ac_try") 2>&5 |
| 15221 | ac_status=$? |
| 15222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15223 | (exit $ac_status); }; } && |
| 15224 | { ac_try='test -s conftest.$ac_objext' |
| 15225 | { (case "(($ac_try" in |
| 15226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15227 | *) ac_try_echo=$ac_try;; |
| 15228 | esac |
| 15229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15230 | (eval "$ac_try") 2>&5 |
| 15231 | ac_status=$? |
| 15232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15233 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15234 | ac_cv_header_sys_wait_h=yes |
| 15235 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15236 | echo "$as_me: failed program was:" >&5 |
| 15237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15238 | |
| 15239 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15240 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15243 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15244 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15245 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15246 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15247 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15248 | cat >>confdefs.h <<\_ACEOF |
| 15249 | #define HAVE_SYS_WAIT_H 1 |
| 15250 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15251 | |
| 15252 | fi |
| 15253 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15254 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15255 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15256 | if test "${ac_cv_header_time+set}" = set; then |
| 15257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15258 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15259 | cat >conftest.$ac_ext <<_ACEOF |
| 15260 | /* confdefs.h. */ |
| 15261 | _ACEOF |
| 15262 | cat confdefs.h >>conftest.$ac_ext |
| 15263 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15264 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15265 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15266 | #include <sys/time.h> |
| 15267 | #include <time.h> |
| 15268 | |
| 15269 | int |
| 15270 | main () |
| 15271 | { |
| 15272 | if ((struct tm *) 0) |
| 15273 | return 0; |
| 15274 | ; |
| 15275 | return 0; |
| 15276 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15277 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15278 | rm -f conftest.$ac_objext |
| 15279 | if { (ac_try="$ac_compile" |
| 15280 | case "(($ac_try" in |
| 15281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15282 | *) ac_try_echo=$ac_try;; |
| 15283 | esac |
| 15284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15285 | (eval "$ac_compile") 2>conftest.er1 |
| 15286 | ac_status=$? |
| 15287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15288 | rm -f conftest.er1 |
| 15289 | cat conftest.err >&5 |
| 15290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15291 | (exit $ac_status); } && |
| 15292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15293 | { (case "(($ac_try" in |
| 15294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15295 | *) ac_try_echo=$ac_try;; |
| 15296 | esac |
| 15297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15298 | (eval "$ac_try") 2>&5 |
| 15299 | ac_status=$? |
| 15300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15301 | (exit $ac_status); }; } && |
| 15302 | { ac_try='test -s conftest.$ac_objext' |
| 15303 | { (case "(($ac_try" in |
| 15304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15305 | *) ac_try_echo=$ac_try;; |
| 15306 | esac |
| 15307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15308 | (eval "$ac_try") 2>&5 |
| 15309 | ac_status=$? |
| 15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15311 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15312 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15313 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15314 | echo "$as_me: failed program was:" >&5 |
| 15315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15316 | |
| 15317 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15318 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15321 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15322 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15323 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15324 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15325 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15326 | cat >>confdefs.h <<\_ACEOF |
| 15327 | #define TIME_WITH_SYS_TIME 1 |
| 15328 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15329 | |
| 15330 | fi |
| 15331 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15332 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15333 | |
| 15334 | |
| 15335 | |
| 15336 | |
| 15337 | |
| 15338 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15339 | 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] | 15340 | do |
| 15341 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15342 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15343 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15347 | fi |
| 15348 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15349 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15350 | echo "${ECHO_T}$ac_res" >&6; } |
| 15351 | else |
| 15352 | # Is the header compilable? |
| 15353 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15354 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15355 | cat >conftest.$ac_ext <<_ACEOF |
| 15356 | /* confdefs.h. */ |
| 15357 | _ACEOF |
| 15358 | cat confdefs.h >>conftest.$ac_ext |
| 15359 | cat >>conftest.$ac_ext <<_ACEOF |
| 15360 | /* end confdefs.h. */ |
| 15361 | $ac_includes_default |
| 15362 | #include <$ac_header> |
| 15363 | _ACEOF |
| 15364 | rm -f conftest.$ac_objext |
| 15365 | if { (ac_try="$ac_compile" |
| 15366 | case "(($ac_try" in |
| 15367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15368 | *) ac_try_echo=$ac_try;; |
| 15369 | esac |
| 15370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15371 | (eval "$ac_compile") 2>conftest.er1 |
| 15372 | ac_status=$? |
| 15373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15374 | rm -f conftest.er1 |
| 15375 | cat conftest.err >&5 |
| 15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15377 | (exit $ac_status); } && |
| 15378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15379 | { (case "(($ac_try" in |
| 15380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15381 | *) ac_try_echo=$ac_try;; |
| 15382 | esac |
| 15383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15384 | (eval "$ac_try") 2>&5 |
| 15385 | ac_status=$? |
| 15386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15387 | (exit $ac_status); }; } && |
| 15388 | { ac_try='test -s conftest.$ac_objext' |
| 15389 | { (case "(($ac_try" in |
| 15390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15391 | *) ac_try_echo=$ac_try;; |
| 15392 | esac |
| 15393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15394 | (eval "$ac_try") 2>&5 |
| 15395 | ac_status=$? |
| 15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15397 | (exit $ac_status); }; }; then |
| 15398 | ac_header_compiler=yes |
| 15399 | else |
| 15400 | echo "$as_me: failed program was:" >&5 |
| 15401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15402 | |
| 15403 | ac_header_compiler=no |
| 15404 | fi |
| 15405 | |
| 15406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15407 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15408 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15409 | |
| 15410 | # Is the header present? |
| 15411 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15412 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15413 | cat >conftest.$ac_ext <<_ACEOF |
| 15414 | /* confdefs.h. */ |
| 15415 | _ACEOF |
| 15416 | cat confdefs.h >>conftest.$ac_ext |
| 15417 | cat >>conftest.$ac_ext <<_ACEOF |
| 15418 | /* end confdefs.h. */ |
| 15419 | #include <$ac_header> |
| 15420 | _ACEOF |
| 15421 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15422 | case "(($ac_try" in |
| 15423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15424 | *) ac_try_echo=$ac_try;; |
| 15425 | esac |
| 15426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15427 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15428 | ac_status=$? |
| 15429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15430 | rm -f conftest.er1 |
| 15431 | cat conftest.err >&5 |
| 15432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15433 | (exit $ac_status); } >/dev/null; then |
| 15434 | if test -s conftest.err; then |
| 15435 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15436 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15437 | else |
| 15438 | ac_cpp_err= |
| 15439 | fi |
| 15440 | else |
| 15441 | ac_cpp_err=yes |
| 15442 | fi |
| 15443 | if test -z "$ac_cpp_err"; then |
| 15444 | ac_header_preproc=yes |
| 15445 | else |
| 15446 | echo "$as_me: failed program was:" >&5 |
| 15447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15448 | |
| 15449 | ac_header_preproc=no |
| 15450 | fi |
| 15451 | |
| 15452 | rm -f conftest.err conftest.$ac_ext |
| 15453 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15454 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15455 | |
| 15456 | # So? What about this header? |
| 15457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15458 | yes:no: ) |
| 15459 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15460 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15462 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15463 | ac_header_preproc=yes |
| 15464 | ;; |
| 15465 | no:yes:* ) |
| 15466 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15467 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15468 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15469 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15470 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15471 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15472 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15473 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15475 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15476 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15477 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15478 | ( cat <<\_ASBOX |
| 15479 | ## ----------------------------------- ## |
| 15480 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15481 | ## ----------------------------------- ## |
| 15482 | _ASBOX |
| 15483 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15484 | ;; |
| 15485 | esac |
| 15486 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15488 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15490 | else |
| 15491 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15492 | fi |
| 15493 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15494 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15495 | echo "${ECHO_T}$ac_res" >&6; } |
| 15496 | |
| 15497 | fi |
| 15498 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15499 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15500 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15501 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15502 | |
| 15503 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15504 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15505 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15506 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15507 | |
| 15508 | |
| 15509 | |
| 15510 | |
| 15511 | |
| 15512 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15513 | 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] | 15514 | do |
| 15515 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15516 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15517 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15518 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15519 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15521 | fi |
| 15522 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15523 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15524 | echo "${ECHO_T}$ac_res" >&6; } |
| 15525 | else |
| 15526 | # Is the header compilable? |
| 15527 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15528 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15529 | cat >conftest.$ac_ext <<_ACEOF |
| 15530 | /* confdefs.h. */ |
| 15531 | _ACEOF |
| 15532 | cat confdefs.h >>conftest.$ac_ext |
| 15533 | cat >>conftest.$ac_ext <<_ACEOF |
| 15534 | /* end confdefs.h. */ |
| 15535 | $ac_includes_default |
| 15536 | #include <$ac_header> |
| 15537 | _ACEOF |
| 15538 | rm -f conftest.$ac_objext |
| 15539 | if { (ac_try="$ac_compile" |
| 15540 | case "(($ac_try" in |
| 15541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15542 | *) ac_try_echo=$ac_try;; |
| 15543 | esac |
| 15544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15545 | (eval "$ac_compile") 2>conftest.er1 |
| 15546 | ac_status=$? |
| 15547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15548 | rm -f conftest.er1 |
| 15549 | cat conftest.err >&5 |
| 15550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15551 | (exit $ac_status); } && |
| 15552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15553 | { (case "(($ac_try" in |
| 15554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15555 | *) ac_try_echo=$ac_try;; |
| 15556 | esac |
| 15557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15558 | (eval "$ac_try") 2>&5 |
| 15559 | ac_status=$? |
| 15560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15561 | (exit $ac_status); }; } && |
| 15562 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 15569 | ac_status=$? |
| 15570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15571 | (exit $ac_status); }; }; then |
| 15572 | ac_header_compiler=yes |
| 15573 | else |
| 15574 | echo "$as_me: failed program was:" >&5 |
| 15575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15576 | |
| 15577 | ac_header_compiler=no |
| 15578 | fi |
| 15579 | |
| 15580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15581 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15582 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15583 | |
| 15584 | # Is the header present? |
| 15585 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15586 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15587 | cat >conftest.$ac_ext <<_ACEOF |
| 15588 | /* confdefs.h. */ |
| 15589 | _ACEOF |
| 15590 | cat confdefs.h >>conftest.$ac_ext |
| 15591 | cat >>conftest.$ac_ext <<_ACEOF |
| 15592 | /* end confdefs.h. */ |
| 15593 | #include <$ac_header> |
| 15594 | _ACEOF |
| 15595 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15596 | case "(($ac_try" in |
| 15597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15598 | *) ac_try_echo=$ac_try;; |
| 15599 | esac |
| 15600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15601 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15602 | ac_status=$? |
| 15603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15604 | rm -f conftest.er1 |
| 15605 | cat conftest.err >&5 |
| 15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15607 | (exit $ac_status); } >/dev/null; then |
| 15608 | if test -s conftest.err; then |
| 15609 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15610 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15611 | else |
| 15612 | ac_cpp_err= |
| 15613 | fi |
| 15614 | else |
| 15615 | ac_cpp_err=yes |
| 15616 | fi |
| 15617 | if test -z "$ac_cpp_err"; then |
| 15618 | ac_header_preproc=yes |
| 15619 | else |
| 15620 | echo "$as_me: failed program was:" >&5 |
| 15621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15622 | |
| 15623 | ac_header_preproc=no |
| 15624 | fi |
| 15625 | |
| 15626 | rm -f conftest.err conftest.$ac_ext |
| 15627 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15628 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15629 | |
| 15630 | # So? What about this header? |
| 15631 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15632 | yes:no: ) |
| 15633 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15634 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15636 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15637 | ac_header_preproc=yes |
| 15638 | ;; |
| 15639 | no:yes:* ) |
| 15640 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15641 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15642 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15643 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15644 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15645 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15646 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15647 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15649 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15650 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15651 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15652 | ( cat <<\_ASBOX |
| 15653 | ## ----------------------------------- ## |
| 15654 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15655 | ## ----------------------------------- ## |
| 15656 | _ASBOX |
| 15657 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15658 | ;; |
| 15659 | esac |
| 15660 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15662 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15664 | else |
| 15665 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15666 | fi |
| 15667 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15668 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15669 | echo "${ECHO_T}$ac_res" >&6; } |
| 15670 | |
| 15671 | fi |
| 15672 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15673 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15674 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15675 | _ACEOF |
| 15676 | |
| 15677 | fi |
| 15678 | |
| 15679 | done |
| 15680 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15681 | |
| 15682 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15683 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15684 | do |
| 15685 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15686 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15687 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15688 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15689 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15691 | fi |
| 15692 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15693 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15694 | echo "${ECHO_T}$ac_res" >&6; } |
| 15695 | else |
| 15696 | # Is the header compilable? |
| 15697 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15698 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15699 | cat >conftest.$ac_ext <<_ACEOF |
| 15700 | /* confdefs.h. */ |
| 15701 | _ACEOF |
| 15702 | cat confdefs.h >>conftest.$ac_ext |
| 15703 | cat >>conftest.$ac_ext <<_ACEOF |
| 15704 | /* end confdefs.h. */ |
| 15705 | $ac_includes_default |
| 15706 | #include <$ac_header> |
| 15707 | _ACEOF |
| 15708 | rm -f conftest.$ac_objext |
| 15709 | if { (ac_try="$ac_compile" |
| 15710 | case "(($ac_try" in |
| 15711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15712 | *) ac_try_echo=$ac_try;; |
| 15713 | esac |
| 15714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15715 | (eval "$ac_compile") 2>conftest.er1 |
| 15716 | ac_status=$? |
| 15717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15718 | rm -f conftest.er1 |
| 15719 | cat conftest.err >&5 |
| 15720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15721 | (exit $ac_status); } && |
| 15722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15723 | { (case "(($ac_try" in |
| 15724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15725 | *) ac_try_echo=$ac_try;; |
| 15726 | esac |
| 15727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15728 | (eval "$ac_try") 2>&5 |
| 15729 | ac_status=$? |
| 15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15731 | (exit $ac_status); }; } && |
| 15732 | { ac_try='test -s conftest.$ac_objext' |
| 15733 | { (case "(($ac_try" in |
| 15734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15735 | *) ac_try_echo=$ac_try;; |
| 15736 | esac |
| 15737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15738 | (eval "$ac_try") 2>&5 |
| 15739 | ac_status=$? |
| 15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15741 | (exit $ac_status); }; }; then |
| 15742 | ac_header_compiler=yes |
| 15743 | else |
| 15744 | echo "$as_me: failed program was:" >&5 |
| 15745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15746 | |
| 15747 | ac_header_compiler=no |
| 15748 | fi |
| 15749 | |
| 15750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15751 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15752 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15753 | |
| 15754 | # Is the header present? |
| 15755 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15756 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15757 | cat >conftest.$ac_ext <<_ACEOF |
| 15758 | /* confdefs.h. */ |
| 15759 | _ACEOF |
| 15760 | cat confdefs.h >>conftest.$ac_ext |
| 15761 | cat >>conftest.$ac_ext <<_ACEOF |
| 15762 | /* end confdefs.h. */ |
| 15763 | #include <$ac_header> |
| 15764 | _ACEOF |
| 15765 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15766 | case "(($ac_try" in |
| 15767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15768 | *) ac_try_echo=$ac_try;; |
| 15769 | esac |
| 15770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15772 | ac_status=$? |
| 15773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15774 | rm -f conftest.er1 |
| 15775 | cat conftest.err >&5 |
| 15776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15777 | (exit $ac_status); } >/dev/null; then |
| 15778 | if test -s conftest.err; then |
| 15779 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15780 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15781 | else |
| 15782 | ac_cpp_err= |
| 15783 | fi |
| 15784 | else |
| 15785 | ac_cpp_err=yes |
| 15786 | fi |
| 15787 | if test -z "$ac_cpp_err"; then |
| 15788 | ac_header_preproc=yes |
| 15789 | else |
| 15790 | echo "$as_me: failed program was:" >&5 |
| 15791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15792 | |
| 15793 | ac_header_preproc=no |
| 15794 | fi |
| 15795 | |
| 15796 | rm -f conftest.err conftest.$ac_ext |
| 15797 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15798 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15799 | |
| 15800 | # So? What about this header? |
| 15801 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15802 | yes:no: ) |
| 15803 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15804 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15805 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15806 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15807 | ac_header_preproc=yes |
| 15808 | ;; |
| 15809 | no:yes:* ) |
| 15810 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15811 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15812 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15813 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15814 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15815 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15816 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15817 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15819 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15820 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15821 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15822 | ( cat <<\_ASBOX |
| 15823 | ## ----------------------------------- ## |
| 15824 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15825 | ## ----------------------------------- ## |
| 15826 | _ASBOX |
| 15827 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15828 | ;; |
| 15829 | esac |
| 15830 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15832 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15834 | else |
| 15835 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15836 | fi |
| 15837 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15838 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15839 | echo "${ECHO_T}$ac_res" >&6; } |
| 15840 | |
| 15841 | fi |
| 15842 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15843 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15844 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15845 | _ACEOF |
| 15846 | |
| 15847 | fi |
| 15848 | |
| 15849 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15850 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15851 | |
| 15852 | |
| 15853 | |
| 15854 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15855 | 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] | 15856 | do |
| 15857 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15858 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15859 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15861 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15863 | fi |
| 15864 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15865 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15866 | echo "${ECHO_T}$ac_res" >&6; } |
| 15867 | else |
| 15868 | # Is the header compilable? |
| 15869 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15870 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15871 | cat >conftest.$ac_ext <<_ACEOF |
| 15872 | /* confdefs.h. */ |
| 15873 | _ACEOF |
| 15874 | cat confdefs.h >>conftest.$ac_ext |
| 15875 | cat >>conftest.$ac_ext <<_ACEOF |
| 15876 | /* end confdefs.h. */ |
| 15877 | $ac_includes_default |
| 15878 | #include <$ac_header> |
| 15879 | _ACEOF |
| 15880 | rm -f conftest.$ac_objext |
| 15881 | if { (ac_try="$ac_compile" |
| 15882 | case "(($ac_try" in |
| 15883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15884 | *) ac_try_echo=$ac_try;; |
| 15885 | esac |
| 15886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15887 | (eval "$ac_compile") 2>conftest.er1 |
| 15888 | ac_status=$? |
| 15889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15890 | rm -f conftest.er1 |
| 15891 | cat conftest.err >&5 |
| 15892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15893 | (exit $ac_status); } && |
| 15894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15895 | { (case "(($ac_try" in |
| 15896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15897 | *) ac_try_echo=$ac_try;; |
| 15898 | esac |
| 15899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15900 | (eval "$ac_try") 2>&5 |
| 15901 | ac_status=$? |
| 15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15903 | (exit $ac_status); }; } && |
| 15904 | { ac_try='test -s conftest.$ac_objext' |
| 15905 | { (case "(($ac_try" in |
| 15906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15907 | *) ac_try_echo=$ac_try;; |
| 15908 | esac |
| 15909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15910 | (eval "$ac_try") 2>&5 |
| 15911 | ac_status=$? |
| 15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15913 | (exit $ac_status); }; }; then |
| 15914 | ac_header_compiler=yes |
| 15915 | else |
| 15916 | echo "$as_me: failed program was:" >&5 |
| 15917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15918 | |
| 15919 | ac_header_compiler=no |
| 15920 | fi |
| 15921 | |
| 15922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15923 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15924 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15925 | |
| 15926 | # Is the header present? |
| 15927 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15928 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15929 | cat >conftest.$ac_ext <<_ACEOF |
| 15930 | /* confdefs.h. */ |
| 15931 | _ACEOF |
| 15932 | cat confdefs.h >>conftest.$ac_ext |
| 15933 | cat >>conftest.$ac_ext <<_ACEOF |
| 15934 | /* end confdefs.h. */ |
| 15935 | #include <$ac_header> |
| 15936 | _ACEOF |
| 15937 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15938 | case "(($ac_try" in |
| 15939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15940 | *) ac_try_echo=$ac_try;; |
| 15941 | esac |
| 15942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15943 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15944 | ac_status=$? |
| 15945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15946 | rm -f conftest.er1 |
| 15947 | cat conftest.err >&5 |
| 15948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15949 | (exit $ac_status); } >/dev/null; then |
| 15950 | if test -s conftest.err; then |
| 15951 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15952 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15953 | else |
| 15954 | ac_cpp_err= |
| 15955 | fi |
| 15956 | else |
| 15957 | ac_cpp_err=yes |
| 15958 | fi |
| 15959 | if test -z "$ac_cpp_err"; then |
| 15960 | ac_header_preproc=yes |
| 15961 | else |
| 15962 | echo "$as_me: failed program was:" >&5 |
| 15963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15964 | |
| 15965 | ac_header_preproc=no |
| 15966 | fi |
| 15967 | |
| 15968 | rm -f conftest.err conftest.$ac_ext |
| 15969 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15970 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15971 | |
| 15972 | # So? What about this header? |
| 15973 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15974 | yes:no: ) |
| 15975 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15976 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15977 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15978 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15979 | ac_header_preproc=yes |
| 15980 | ;; |
| 15981 | no:yes:* ) |
| 15982 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15983 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15984 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15985 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15986 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15987 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15988 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15989 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15990 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15991 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15992 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15993 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15994 | ( cat <<\_ASBOX |
| 15995 | ## ----------------------------------- ## |
| 15996 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15997 | ## ----------------------------------- ## |
| 15998 | _ASBOX |
| 15999 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16000 | ;; |
| 16001 | esac |
| 16002 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16003 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16004 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16006 | else |
| 16007 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16008 | fi |
| 16009 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16010 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16011 | echo "${ECHO_T}$ac_res" >&6; } |
| 16012 | |
| 16013 | fi |
| 16014 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16015 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16016 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16017 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16018 | |
| 16019 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16020 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16021 | done |
| 16022 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16023 | |
| 16024 | |
| 16025 | |
| 16026 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16027 | 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] | 16028 | do |
| 16029 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16031 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16032 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16033 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16035 | fi |
| 16036 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16037 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16038 | echo "${ECHO_T}$ac_res" >&6; } |
| 16039 | else |
| 16040 | # Is the header compilable? |
| 16041 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16042 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16043 | cat >conftest.$ac_ext <<_ACEOF |
| 16044 | /* confdefs.h. */ |
| 16045 | _ACEOF |
| 16046 | cat confdefs.h >>conftest.$ac_ext |
| 16047 | cat >>conftest.$ac_ext <<_ACEOF |
| 16048 | /* end confdefs.h. */ |
| 16049 | $ac_includes_default |
| 16050 | #include <$ac_header> |
| 16051 | _ACEOF |
| 16052 | rm -f conftest.$ac_objext |
| 16053 | if { (ac_try="$ac_compile" |
| 16054 | case "(($ac_try" in |
| 16055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16056 | *) ac_try_echo=$ac_try;; |
| 16057 | esac |
| 16058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16059 | (eval "$ac_compile") 2>conftest.er1 |
| 16060 | ac_status=$? |
| 16061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16062 | rm -f conftest.er1 |
| 16063 | cat conftest.err >&5 |
| 16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16065 | (exit $ac_status); } && |
| 16066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16067 | { (case "(($ac_try" in |
| 16068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16069 | *) ac_try_echo=$ac_try;; |
| 16070 | esac |
| 16071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16072 | (eval "$ac_try") 2>&5 |
| 16073 | ac_status=$? |
| 16074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16075 | (exit $ac_status); }; } && |
| 16076 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 16083 | ac_status=$? |
| 16084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16085 | (exit $ac_status); }; }; then |
| 16086 | ac_header_compiler=yes |
| 16087 | else |
| 16088 | echo "$as_me: failed program was:" >&5 |
| 16089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16090 | |
| 16091 | ac_header_compiler=no |
| 16092 | fi |
| 16093 | |
| 16094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16095 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16096 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16097 | |
| 16098 | # Is the header present? |
| 16099 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16100 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16101 | cat >conftest.$ac_ext <<_ACEOF |
| 16102 | /* confdefs.h. */ |
| 16103 | _ACEOF |
| 16104 | cat confdefs.h >>conftest.$ac_ext |
| 16105 | cat >>conftest.$ac_ext <<_ACEOF |
| 16106 | /* end confdefs.h. */ |
| 16107 | #include <$ac_header> |
| 16108 | _ACEOF |
| 16109 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16110 | case "(($ac_try" in |
| 16111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16112 | *) ac_try_echo=$ac_try;; |
| 16113 | esac |
| 16114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16115 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16116 | ac_status=$? |
| 16117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16118 | rm -f conftest.er1 |
| 16119 | cat conftest.err >&5 |
| 16120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16121 | (exit $ac_status); } >/dev/null; then |
| 16122 | if test -s conftest.err; then |
| 16123 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16124 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16125 | else |
| 16126 | ac_cpp_err= |
| 16127 | fi |
| 16128 | else |
| 16129 | ac_cpp_err=yes |
| 16130 | fi |
| 16131 | if test -z "$ac_cpp_err"; then |
| 16132 | ac_header_preproc=yes |
| 16133 | else |
| 16134 | echo "$as_me: failed program was:" >&5 |
| 16135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16136 | |
| 16137 | ac_header_preproc=no |
| 16138 | fi |
| 16139 | |
| 16140 | rm -f conftest.err conftest.$ac_ext |
| 16141 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16142 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16143 | |
| 16144 | # So? What about this header? |
| 16145 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16146 | yes:no: ) |
| 16147 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16148 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16149 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16150 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16151 | ac_header_preproc=yes |
| 16152 | ;; |
| 16153 | no:yes:* ) |
| 16154 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16155 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16156 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16157 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16158 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16159 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16160 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16161 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16163 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16164 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16165 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16166 | ( cat <<\_ASBOX |
| 16167 | ## ----------------------------------- ## |
| 16168 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16169 | ## ----------------------------------- ## |
| 16170 | _ASBOX |
| 16171 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16172 | ;; |
| 16173 | esac |
| 16174 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16176 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16178 | else |
| 16179 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16180 | fi |
| 16181 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16183 | echo "${ECHO_T}$ac_res" >&6; } |
| 16184 | |
| 16185 | fi |
| 16186 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16187 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16188 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16189 | _ACEOF |
| 16190 | |
| 16191 | fi |
| 16192 | |
| 16193 | done |
| 16194 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16195 | |
| 16196 | for ac_header in valgrind/valgrind.h |
| 16197 | do |
| 16198 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16199 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16200 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16204 | fi |
| 16205 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16206 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16207 | echo "${ECHO_T}$ac_res" >&6; } |
| 16208 | else |
| 16209 | # Is the header compilable? |
| 16210 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16211 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16212 | cat >conftest.$ac_ext <<_ACEOF |
| 16213 | /* confdefs.h. */ |
| 16214 | _ACEOF |
| 16215 | cat confdefs.h >>conftest.$ac_ext |
| 16216 | cat >>conftest.$ac_ext <<_ACEOF |
| 16217 | /* end confdefs.h. */ |
| 16218 | $ac_includes_default |
| 16219 | #include <$ac_header> |
| 16220 | _ACEOF |
| 16221 | rm -f conftest.$ac_objext |
| 16222 | if { (ac_try="$ac_compile" |
| 16223 | case "(($ac_try" in |
| 16224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16225 | *) ac_try_echo=$ac_try;; |
| 16226 | esac |
| 16227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16228 | (eval "$ac_compile") 2>conftest.er1 |
| 16229 | ac_status=$? |
| 16230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16231 | rm -f conftest.er1 |
| 16232 | cat conftest.err >&5 |
| 16233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16234 | (exit $ac_status); } && |
| 16235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16236 | { (case "(($ac_try" in |
| 16237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16238 | *) ac_try_echo=$ac_try;; |
| 16239 | esac |
| 16240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16241 | (eval "$ac_try") 2>&5 |
| 16242 | ac_status=$? |
| 16243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16244 | (exit $ac_status); }; } && |
| 16245 | { ac_try='test -s conftest.$ac_objext' |
| 16246 | { (case "(($ac_try" in |
| 16247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16248 | *) ac_try_echo=$ac_try;; |
| 16249 | esac |
| 16250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16251 | (eval "$ac_try") 2>&5 |
| 16252 | ac_status=$? |
| 16253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16254 | (exit $ac_status); }; }; then |
| 16255 | ac_header_compiler=yes |
| 16256 | else |
| 16257 | echo "$as_me: failed program was:" >&5 |
| 16258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16259 | |
| 16260 | ac_header_compiler=no |
| 16261 | fi |
| 16262 | |
| 16263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16264 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16265 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16266 | |
| 16267 | # Is the header present? |
| 16268 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16269 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16270 | cat >conftest.$ac_ext <<_ACEOF |
| 16271 | /* confdefs.h. */ |
| 16272 | _ACEOF |
| 16273 | cat confdefs.h >>conftest.$ac_ext |
| 16274 | cat >>conftest.$ac_ext <<_ACEOF |
| 16275 | /* end confdefs.h. */ |
| 16276 | #include <$ac_header> |
| 16277 | _ACEOF |
| 16278 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16279 | case "(($ac_try" in |
| 16280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16281 | *) ac_try_echo=$ac_try;; |
| 16282 | esac |
| 16283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16284 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16285 | ac_status=$? |
| 16286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16287 | rm -f conftest.er1 |
| 16288 | cat conftest.err >&5 |
| 16289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16290 | (exit $ac_status); } >/dev/null; then |
| 16291 | if test -s conftest.err; then |
| 16292 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16293 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16294 | else |
| 16295 | ac_cpp_err= |
| 16296 | fi |
| 16297 | else |
| 16298 | ac_cpp_err=yes |
| 16299 | fi |
| 16300 | if test -z "$ac_cpp_err"; then |
| 16301 | ac_header_preproc=yes |
| 16302 | else |
| 16303 | echo "$as_me: failed program was:" >&5 |
| 16304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16305 | |
| 16306 | ac_header_preproc=no |
| 16307 | fi |
| 16308 | |
| 16309 | rm -f conftest.err conftest.$ac_ext |
| 16310 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16311 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16312 | |
| 16313 | # So? What about this header? |
| 16314 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16315 | yes:no: ) |
| 16316 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16317 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16318 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16319 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16320 | ac_header_preproc=yes |
| 16321 | ;; |
| 16322 | no:yes:* ) |
| 16323 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16324 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16325 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16326 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16327 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16328 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16329 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16330 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16332 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16333 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16334 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16335 | ( cat <<\_ASBOX |
| 16336 | ## ----------------------------------- ## |
| 16337 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16338 | ## ----------------------------------- ## |
| 16339 | _ASBOX |
| 16340 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16341 | ;; |
| 16342 | esac |
| 16343 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16347 | else |
| 16348 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16349 | fi |
| 16350 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16351 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16352 | echo "${ECHO_T}$ac_res" >&6; } |
| 16353 | |
| 16354 | fi |
| 16355 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16356 | cat >>confdefs.h <<_ACEOF |
| 16357 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16358 | _ACEOF |
| 16359 | |
| 16360 | fi |
| 16361 | |
| 16362 | done |
| 16363 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16364 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16365 | |
| 16366 | for ac_header in pthread.h |
| 16367 | do |
| 16368 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16370 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16372 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16374 | fi |
| 16375 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16376 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16377 | echo "${ECHO_T}$ac_res" >&6; } |
| 16378 | else |
| 16379 | # Is the header compilable? |
| 16380 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16381 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16382 | cat >conftest.$ac_ext <<_ACEOF |
| 16383 | /* confdefs.h. */ |
| 16384 | _ACEOF |
| 16385 | cat confdefs.h >>conftest.$ac_ext |
| 16386 | cat >>conftest.$ac_ext <<_ACEOF |
| 16387 | /* end confdefs.h. */ |
| 16388 | $ac_includes_default |
| 16389 | #include <$ac_header> |
| 16390 | _ACEOF |
| 16391 | rm -f conftest.$ac_objext |
| 16392 | if { (ac_try="$ac_compile" |
| 16393 | case "(($ac_try" in |
| 16394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16395 | *) ac_try_echo=$ac_try;; |
| 16396 | esac |
| 16397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16398 | (eval "$ac_compile") 2>conftest.er1 |
| 16399 | ac_status=$? |
| 16400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16401 | rm -f conftest.er1 |
| 16402 | cat conftest.err >&5 |
| 16403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16404 | (exit $ac_status); } && |
| 16405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16406 | { (case "(($ac_try" in |
| 16407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16408 | *) ac_try_echo=$ac_try;; |
| 16409 | esac |
| 16410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16411 | (eval "$ac_try") 2>&5 |
| 16412 | ac_status=$? |
| 16413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16414 | (exit $ac_status); }; } && |
| 16415 | { ac_try='test -s conftest.$ac_objext' |
| 16416 | { (case "(($ac_try" in |
| 16417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16418 | *) ac_try_echo=$ac_try;; |
| 16419 | esac |
| 16420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16421 | (eval "$ac_try") 2>&5 |
| 16422 | ac_status=$? |
| 16423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16424 | (exit $ac_status); }; }; then |
| 16425 | ac_header_compiler=yes |
| 16426 | else |
| 16427 | echo "$as_me: failed program was:" >&5 |
| 16428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16429 | |
| 16430 | ac_header_compiler=no |
| 16431 | fi |
| 16432 | |
| 16433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16434 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16435 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16436 | |
| 16437 | # Is the header present? |
| 16438 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16439 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16440 | cat >conftest.$ac_ext <<_ACEOF |
| 16441 | /* confdefs.h. */ |
| 16442 | _ACEOF |
| 16443 | cat confdefs.h >>conftest.$ac_ext |
| 16444 | cat >>conftest.$ac_ext <<_ACEOF |
| 16445 | /* end confdefs.h. */ |
| 16446 | #include <$ac_header> |
| 16447 | _ACEOF |
| 16448 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16449 | case "(($ac_try" in |
| 16450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16451 | *) ac_try_echo=$ac_try;; |
| 16452 | esac |
| 16453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16454 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16455 | ac_status=$? |
| 16456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16457 | rm -f conftest.er1 |
| 16458 | cat conftest.err >&5 |
| 16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16460 | (exit $ac_status); } >/dev/null; then |
| 16461 | if test -s conftest.err; then |
| 16462 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16464 | else |
| 16465 | ac_cpp_err= |
| 16466 | fi |
| 16467 | else |
| 16468 | ac_cpp_err=yes |
| 16469 | fi |
| 16470 | if test -z "$ac_cpp_err"; then |
| 16471 | ac_header_preproc=yes |
| 16472 | else |
| 16473 | echo "$as_me: failed program was:" >&5 |
| 16474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16475 | |
| 16476 | ac_header_preproc=no |
| 16477 | fi |
| 16478 | |
| 16479 | rm -f conftest.err conftest.$ac_ext |
| 16480 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16481 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16482 | |
| 16483 | # So? What about this header? |
| 16484 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16485 | yes:no: ) |
| 16486 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16487 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16488 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16489 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16490 | ac_header_preproc=yes |
| 16491 | ;; |
| 16492 | no:yes:* ) |
| 16493 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16494 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16495 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16496 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16497 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16498 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16499 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16500 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16501 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16502 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16503 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16504 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16505 | ( cat <<\_ASBOX |
| 16506 | ## ----------------------------------- ## |
| 16507 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16508 | ## ----------------------------------- ## |
| 16509 | _ASBOX |
| 16510 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16511 | ;; |
| 16512 | esac |
| 16513 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16515 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16517 | else |
| 16518 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16519 | fi |
| 16520 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16522 | echo "${ECHO_T}$ac_res" >&6; } |
| 16523 | |
| 16524 | fi |
| 16525 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16526 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16527 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16528 | _ACEOF |
| 16529 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16530 | |
| 16531 | else |
| 16532 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16533 | |
| 16534 | fi |
| 16535 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16536 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16537 | |
| 16538 | else |
| 16539 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16540 | |
| 16541 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16542 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16543 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16544 | |
| 16545 | |
| 16546 | for ac_header in ffi.h ffi/ffi.h |
| 16547 | do |
| 16548 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16550 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16554 | fi |
| 16555 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16556 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16557 | echo "${ECHO_T}$ac_res" >&6; } |
| 16558 | else |
| 16559 | # Is the header compilable? |
| 16560 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16561 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16562 | cat >conftest.$ac_ext <<_ACEOF |
| 16563 | /* confdefs.h. */ |
| 16564 | _ACEOF |
| 16565 | cat confdefs.h >>conftest.$ac_ext |
| 16566 | cat >>conftest.$ac_ext <<_ACEOF |
| 16567 | /* end confdefs.h. */ |
| 16568 | $ac_includes_default |
| 16569 | #include <$ac_header> |
| 16570 | _ACEOF |
| 16571 | rm -f conftest.$ac_objext |
| 16572 | if { (ac_try="$ac_compile" |
| 16573 | case "(($ac_try" in |
| 16574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16575 | *) ac_try_echo=$ac_try;; |
| 16576 | esac |
| 16577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16578 | (eval "$ac_compile") 2>conftest.er1 |
| 16579 | ac_status=$? |
| 16580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16581 | rm -f conftest.er1 |
| 16582 | cat conftest.err >&5 |
| 16583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16584 | (exit $ac_status); } && |
| 16585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 16592 | ac_status=$? |
| 16593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16594 | (exit $ac_status); }; } && |
| 16595 | { ac_try='test -s conftest.$ac_objext' |
| 16596 | { (case "(($ac_try" in |
| 16597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16598 | *) ac_try_echo=$ac_try;; |
| 16599 | esac |
| 16600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16601 | (eval "$ac_try") 2>&5 |
| 16602 | ac_status=$? |
| 16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16604 | (exit $ac_status); }; }; then |
| 16605 | ac_header_compiler=yes |
| 16606 | else |
| 16607 | echo "$as_me: failed program was:" >&5 |
| 16608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16609 | |
| 16610 | ac_header_compiler=no |
| 16611 | fi |
| 16612 | |
| 16613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16614 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16615 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16616 | |
| 16617 | # Is the header present? |
| 16618 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16619 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16620 | cat >conftest.$ac_ext <<_ACEOF |
| 16621 | /* confdefs.h. */ |
| 16622 | _ACEOF |
| 16623 | cat confdefs.h >>conftest.$ac_ext |
| 16624 | cat >>conftest.$ac_ext <<_ACEOF |
| 16625 | /* end confdefs.h. */ |
| 16626 | #include <$ac_header> |
| 16627 | _ACEOF |
| 16628 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16629 | case "(($ac_try" in |
| 16630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16631 | *) ac_try_echo=$ac_try;; |
| 16632 | esac |
| 16633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16634 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16635 | ac_status=$? |
| 16636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16637 | rm -f conftest.er1 |
| 16638 | cat conftest.err >&5 |
| 16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16640 | (exit $ac_status); } >/dev/null; then |
| 16641 | if test -s conftest.err; then |
| 16642 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16643 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16644 | else |
| 16645 | ac_cpp_err= |
| 16646 | fi |
| 16647 | else |
| 16648 | ac_cpp_err=yes |
| 16649 | fi |
| 16650 | if test -z "$ac_cpp_err"; then |
| 16651 | ac_header_preproc=yes |
| 16652 | else |
| 16653 | echo "$as_me: failed program was:" >&5 |
| 16654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16655 | |
| 16656 | ac_header_preproc=no |
| 16657 | fi |
| 16658 | |
| 16659 | rm -f conftest.err conftest.$ac_ext |
| 16660 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16661 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16662 | |
| 16663 | # So? What about this header? |
| 16664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16665 | yes:no: ) |
| 16666 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16667 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16668 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16669 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16670 | ac_header_preproc=yes |
| 16671 | ;; |
| 16672 | no:yes:* ) |
| 16673 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16674 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16675 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16676 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16677 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16678 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16679 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16680 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16682 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16683 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16684 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16685 | ( cat <<\_ASBOX |
| 16686 | ## ----------------------------------- ## |
| 16687 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16688 | ## ----------------------------------- ## |
| 16689 | _ASBOX |
| 16690 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16691 | ;; |
| 16692 | esac |
| 16693 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16695 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16697 | else |
| 16698 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16699 | fi |
| 16700 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16701 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16702 | echo "${ECHO_T}$ac_res" >&6; } |
| 16703 | |
| 16704 | fi |
| 16705 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16706 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16707 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16708 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16709 | |
| 16710 | fi |
| 16711 | |
| 16712 | done |
| 16713 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16714 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16715 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16716 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16717 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16718 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16719 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16720 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16721 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16723 | else |
| 16724 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16725 | ac_ext=cpp |
| 16726 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16730 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16731 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16732 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16733 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16734 | ac_cv_huge_val_sanity=yes |
| 16735 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16736 | cat >conftest.$ac_ext <<_ACEOF |
| 16737 | /* confdefs.h. */ |
| 16738 | _ACEOF |
| 16739 | cat confdefs.h >>conftest.$ac_ext |
| 16740 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16741 | /* end confdefs.h. */ |
| 16742 | #include <math.h> |
| 16743 | int |
| 16744 | main () |
| 16745 | { |
| 16746 | double x = HUGE_VAL; return x != x; |
| 16747 | ; |
| 16748 | return 0; |
| 16749 | } |
| 16750 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16751 | rm -f conftest$ac_exeext |
| 16752 | if { (ac_try="$ac_link" |
| 16753 | case "(($ac_try" in |
| 16754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16755 | *) ac_try_echo=$ac_try;; |
| 16756 | esac |
| 16757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16758 | (eval "$ac_link") 2>&5 |
| 16759 | ac_status=$? |
| 16760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16762 | { (case "(($ac_try" in |
| 16763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16764 | *) ac_try_echo=$ac_try;; |
| 16765 | esac |
| 16766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16767 | (eval "$ac_try") 2>&5 |
| 16768 | ac_status=$? |
| 16769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16770 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16771 | ac_cv_huge_val_sanity=yes |
| 16772 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16773 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16774 | echo "$as_me: failed program was:" >&5 |
| 16775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16776 | |
| 16777 | ( exit $ac_status ) |
| 16778 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16779 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16780 | 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] | 16781 | fi |
| 16782 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16783 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16784 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16785 | ac_ext=c |
| 16786 | ac_cpp='$CPP $CPPFLAGS' |
| 16787 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16788 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16789 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16790 | |
| 16791 | |
| 16792 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16793 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16794 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16795 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16796 | |
| 16797 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16798 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16799 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16800 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16802 | else |
| 16803 | cat >conftest.$ac_ext <<_ACEOF |
| 16804 | /* confdefs.h. */ |
| 16805 | _ACEOF |
| 16806 | cat confdefs.h >>conftest.$ac_ext |
| 16807 | cat >>conftest.$ac_ext <<_ACEOF |
| 16808 | /* end confdefs.h. */ |
| 16809 | $ac_includes_default |
| 16810 | typedef pid_t ac__type_new_; |
| 16811 | int |
| 16812 | main () |
| 16813 | { |
| 16814 | if ((ac__type_new_ *) 0) |
| 16815 | return 0; |
| 16816 | if (sizeof (ac__type_new_)) |
| 16817 | return 0; |
| 16818 | ; |
| 16819 | return 0; |
| 16820 | } |
| 16821 | _ACEOF |
| 16822 | rm -f conftest.$ac_objext |
| 16823 | if { (ac_try="$ac_compile" |
| 16824 | case "(($ac_try" in |
| 16825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16826 | *) ac_try_echo=$ac_try;; |
| 16827 | esac |
| 16828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16829 | (eval "$ac_compile") 2>conftest.er1 |
| 16830 | ac_status=$? |
| 16831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16832 | rm -f conftest.er1 |
| 16833 | cat conftest.err >&5 |
| 16834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16835 | (exit $ac_status); } && |
| 16836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16837 | { (case "(($ac_try" in |
| 16838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16839 | *) ac_try_echo=$ac_try;; |
| 16840 | esac |
| 16841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16842 | (eval "$ac_try") 2>&5 |
| 16843 | ac_status=$? |
| 16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16845 | (exit $ac_status); }; } && |
| 16846 | { ac_try='test -s conftest.$ac_objext' |
| 16847 | { (case "(($ac_try" in |
| 16848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16849 | *) ac_try_echo=$ac_try;; |
| 16850 | esac |
| 16851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16852 | (eval "$ac_try") 2>&5 |
| 16853 | ac_status=$? |
| 16854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16855 | (exit $ac_status); }; }; then |
| 16856 | ac_cv_type_pid_t=yes |
| 16857 | else |
| 16858 | echo "$as_me: failed program was:" >&5 |
| 16859 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16860 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16861 | ac_cv_type_pid_t=no |
| 16862 | fi |
| 16863 | |
| 16864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16865 | fi |
| 16866 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16867 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16868 | if test $ac_cv_type_pid_t = yes; then |
| 16869 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16870 | else |
| 16871 | |
| 16872 | cat >>confdefs.h <<_ACEOF |
| 16873 | #define pid_t int |
| 16874 | _ACEOF |
| 16875 | |
| 16876 | fi |
| 16877 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16878 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16879 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16880 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16882 | else |
| 16883 | cat >conftest.$ac_ext <<_ACEOF |
| 16884 | /* confdefs.h. */ |
| 16885 | _ACEOF |
| 16886 | cat confdefs.h >>conftest.$ac_ext |
| 16887 | cat >>conftest.$ac_ext <<_ACEOF |
| 16888 | /* end confdefs.h. */ |
| 16889 | $ac_includes_default |
| 16890 | typedef size_t ac__type_new_; |
| 16891 | int |
| 16892 | main () |
| 16893 | { |
| 16894 | if ((ac__type_new_ *) 0) |
| 16895 | return 0; |
| 16896 | if (sizeof (ac__type_new_)) |
| 16897 | return 0; |
| 16898 | ; |
| 16899 | return 0; |
| 16900 | } |
| 16901 | _ACEOF |
| 16902 | rm -f conftest.$ac_objext |
| 16903 | if { (ac_try="$ac_compile" |
| 16904 | case "(($ac_try" in |
| 16905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16906 | *) ac_try_echo=$ac_try;; |
| 16907 | esac |
| 16908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16909 | (eval "$ac_compile") 2>conftest.er1 |
| 16910 | ac_status=$? |
| 16911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16912 | rm -f conftest.er1 |
| 16913 | cat conftest.err >&5 |
| 16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16915 | (exit $ac_status); } && |
| 16916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16917 | { (case "(($ac_try" in |
| 16918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16919 | *) ac_try_echo=$ac_try;; |
| 16920 | esac |
| 16921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16922 | (eval "$ac_try") 2>&5 |
| 16923 | ac_status=$? |
| 16924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16925 | (exit $ac_status); }; } && |
| 16926 | { ac_try='test -s conftest.$ac_objext' |
| 16927 | { (case "(($ac_try" in |
| 16928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16929 | *) ac_try_echo=$ac_try;; |
| 16930 | esac |
| 16931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16932 | (eval "$ac_try") 2>&5 |
| 16933 | ac_status=$? |
| 16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16935 | (exit $ac_status); }; }; then |
| 16936 | ac_cv_type_size_t=yes |
| 16937 | else |
| 16938 | echo "$as_me: failed program was:" >&5 |
| 16939 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16940 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16941 | ac_cv_type_size_t=no |
| 16942 | fi |
| 16943 | |
| 16944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16945 | fi |
| 16946 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16947 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16948 | if test $ac_cv_type_size_t = yes; then |
| 16949 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16950 | else |
| 16951 | |
| 16952 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16953 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16954 | _ACEOF |
| 16955 | |
| 16956 | fi |
| 16957 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16958 | |
| 16959 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16960 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16961 | _ACEOF |
| 16962 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16963 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16964 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16965 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16967 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16968 | cat >conftest.$ac_ext <<_ACEOF |
| 16969 | /* confdefs.h. */ |
| 16970 | _ACEOF |
| 16971 | cat confdefs.h >>conftest.$ac_ext |
| 16972 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16973 | /* end confdefs.h. */ |
| 16974 | #include <sys/types.h> |
| 16975 | #include <time.h> |
| 16976 | |
| 16977 | int |
| 16978 | main () |
| 16979 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16980 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16981 | ; |
| 16982 | return 0; |
| 16983 | } |
| 16984 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16985 | rm -f conftest.$ac_objext |
| 16986 | if { (ac_try="$ac_compile" |
| 16987 | case "(($ac_try" in |
| 16988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16989 | *) ac_try_echo=$ac_try;; |
| 16990 | esac |
| 16991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16992 | (eval "$ac_compile") 2>conftest.er1 |
| 16993 | ac_status=$? |
| 16994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16995 | rm -f conftest.er1 |
| 16996 | cat conftest.err >&5 |
| 16997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16998 | (exit $ac_status); } && |
| 16999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17000 | { (case "(($ac_try" in |
| 17001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17002 | *) ac_try_echo=$ac_try;; |
| 17003 | esac |
| 17004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17005 | (eval "$ac_try") 2>&5 |
| 17006 | ac_status=$? |
| 17007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17008 | (exit $ac_status); }; } && |
| 17009 | { ac_try='test -s conftest.$ac_objext' |
| 17010 | { (case "(($ac_try" in |
| 17011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17012 | *) ac_try_echo=$ac_try;; |
| 17013 | esac |
| 17014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17015 | (eval "$ac_try") 2>&5 |
| 17016 | ac_status=$? |
| 17017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17018 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17019 | ac_cv_struct_tm=time.h |
| 17020 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17021 | echo "$as_me: failed program was:" >&5 |
| 17022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17023 | |
| 17024 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17025 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17028 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17029 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17030 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17031 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17032 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17033 | cat >>confdefs.h <<\_ACEOF |
| 17034 | #define TM_IN_SYS_TIME 1 |
| 17035 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17036 | |
| 17037 | fi |
| 17038 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17039 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17040 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17041 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17043 | else |
| 17044 | cat >conftest.$ac_ext <<_ACEOF |
| 17045 | /* confdefs.h. */ |
| 17046 | _ACEOF |
| 17047 | cat confdefs.h >>conftest.$ac_ext |
| 17048 | cat >>conftest.$ac_ext <<_ACEOF |
| 17049 | /* end confdefs.h. */ |
| 17050 | $ac_includes_default |
| 17051 | typedef int64_t ac__type_new_; |
| 17052 | int |
| 17053 | main () |
| 17054 | { |
| 17055 | if ((ac__type_new_ *) 0) |
| 17056 | return 0; |
| 17057 | if (sizeof (ac__type_new_)) |
| 17058 | return 0; |
| 17059 | ; |
| 17060 | return 0; |
| 17061 | } |
| 17062 | _ACEOF |
| 17063 | rm -f conftest.$ac_objext |
| 17064 | if { (ac_try="$ac_compile" |
| 17065 | case "(($ac_try" in |
| 17066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17067 | *) ac_try_echo=$ac_try;; |
| 17068 | esac |
| 17069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17070 | (eval "$ac_compile") 2>conftest.er1 |
| 17071 | ac_status=$? |
| 17072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17073 | rm -f conftest.er1 |
| 17074 | cat conftest.err >&5 |
| 17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17076 | (exit $ac_status); } && |
| 17077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17078 | { (case "(($ac_try" in |
| 17079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17080 | *) ac_try_echo=$ac_try;; |
| 17081 | esac |
| 17082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17083 | (eval "$ac_try") 2>&5 |
| 17084 | ac_status=$? |
| 17085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17086 | (exit $ac_status); }; } && |
| 17087 | { ac_try='test -s conftest.$ac_objext' |
| 17088 | { (case "(($ac_try" in |
| 17089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17090 | *) ac_try_echo=$ac_try;; |
| 17091 | esac |
| 17092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17093 | (eval "$ac_try") 2>&5 |
| 17094 | ac_status=$? |
| 17095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17096 | (exit $ac_status); }; }; then |
| 17097 | ac_cv_type_int64_t=yes |
| 17098 | else |
| 17099 | echo "$as_me: failed program was:" >&5 |
| 17100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17101 | |
| 17102 | ac_cv_type_int64_t=no |
| 17103 | fi |
| 17104 | |
| 17105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17106 | fi |
| 17107 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17108 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17109 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17110 | |
| 17111 | cat >>confdefs.h <<_ACEOF |
| 17112 | #define HAVE_INT64_T 1 |
| 17113 | _ACEOF |
| 17114 | |
| 17115 | |
| 17116 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17117 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17118 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17119 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17120 | fi |
| 17121 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17122 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17123 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17124 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17126 | else |
| 17127 | cat >conftest.$ac_ext <<_ACEOF |
| 17128 | /* confdefs.h. */ |
| 17129 | _ACEOF |
| 17130 | cat confdefs.h >>conftest.$ac_ext |
| 17131 | cat >>conftest.$ac_ext <<_ACEOF |
| 17132 | /* end confdefs.h. */ |
| 17133 | $ac_includes_default |
| 17134 | typedef uint64_t ac__type_new_; |
| 17135 | int |
| 17136 | main () |
| 17137 | { |
| 17138 | if ((ac__type_new_ *) 0) |
| 17139 | return 0; |
| 17140 | if (sizeof (ac__type_new_)) |
| 17141 | return 0; |
| 17142 | ; |
| 17143 | return 0; |
| 17144 | } |
| 17145 | _ACEOF |
| 17146 | rm -f conftest.$ac_objext |
| 17147 | if { (ac_try="$ac_compile" |
| 17148 | case "(($ac_try" in |
| 17149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17150 | *) ac_try_echo=$ac_try;; |
| 17151 | esac |
| 17152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17153 | (eval "$ac_compile") 2>conftest.er1 |
| 17154 | ac_status=$? |
| 17155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17156 | rm -f conftest.er1 |
| 17157 | cat conftest.err >&5 |
| 17158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17159 | (exit $ac_status); } && |
| 17160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17161 | { (case "(($ac_try" in |
| 17162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17163 | *) ac_try_echo=$ac_try;; |
| 17164 | esac |
| 17165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17166 | (eval "$ac_try") 2>&5 |
| 17167 | ac_status=$? |
| 17168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17169 | (exit $ac_status); }; } && |
| 17170 | { ac_try='test -s conftest.$ac_objext' |
| 17171 | { (case "(($ac_try" in |
| 17172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17173 | *) ac_try_echo=$ac_try;; |
| 17174 | esac |
| 17175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17176 | (eval "$ac_try") 2>&5 |
| 17177 | ac_status=$? |
| 17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17179 | (exit $ac_status); }; }; then |
| 17180 | ac_cv_type_uint64_t=yes |
| 17181 | else |
| 17182 | echo "$as_me: failed program was:" >&5 |
| 17183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17184 | |
| 17185 | ac_cv_type_uint64_t=no |
| 17186 | fi |
| 17187 | |
| 17188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17189 | fi |
| 17190 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 17191 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 17192 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17193 | |
| 17194 | cat >>confdefs.h <<_ACEOF |
| 17195 | #define HAVE_UINT64_T 1 |
| 17196 | _ACEOF |
| 17197 | |
| 17198 | |
| 17199 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17200 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17201 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 17202 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17204 | else |
| 17205 | cat >conftest.$ac_ext <<_ACEOF |
| 17206 | /* confdefs.h. */ |
| 17207 | _ACEOF |
| 17208 | cat confdefs.h >>conftest.$ac_ext |
| 17209 | cat >>conftest.$ac_ext <<_ACEOF |
| 17210 | /* end confdefs.h. */ |
| 17211 | $ac_includes_default |
| 17212 | typedef u_int64_t ac__type_new_; |
| 17213 | int |
| 17214 | main () |
| 17215 | { |
| 17216 | if ((ac__type_new_ *) 0) |
| 17217 | return 0; |
| 17218 | if (sizeof (ac__type_new_)) |
| 17219 | return 0; |
| 17220 | ; |
| 17221 | return 0; |
| 17222 | } |
| 17223 | _ACEOF |
| 17224 | rm -f conftest.$ac_objext |
| 17225 | if { (ac_try="$ac_compile" |
| 17226 | case "(($ac_try" in |
| 17227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17228 | *) ac_try_echo=$ac_try;; |
| 17229 | esac |
| 17230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17231 | (eval "$ac_compile") 2>conftest.er1 |
| 17232 | ac_status=$? |
| 17233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17234 | rm -f conftest.er1 |
| 17235 | cat conftest.err >&5 |
| 17236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17237 | (exit $ac_status); } && |
| 17238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17239 | { (case "(($ac_try" in |
| 17240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17241 | *) ac_try_echo=$ac_try;; |
| 17242 | esac |
| 17243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17244 | (eval "$ac_try") 2>&5 |
| 17245 | ac_status=$? |
| 17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17247 | (exit $ac_status); }; } && |
| 17248 | { ac_try='test -s conftest.$ac_objext' |
| 17249 | { (case "(($ac_try" in |
| 17250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17251 | *) ac_try_echo=$ac_try;; |
| 17252 | esac |
| 17253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17254 | (eval "$ac_try") 2>&5 |
| 17255 | ac_status=$? |
| 17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17257 | (exit $ac_status); }; }; then |
| 17258 | ac_cv_type_u_int64_t=yes |
| 17259 | else |
| 17260 | echo "$as_me: failed program was:" >&5 |
| 17261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17262 | |
| 17263 | ac_cv_type_u_int64_t=no |
| 17264 | fi |
| 17265 | |
| 17266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17267 | fi |
| 17268 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17269 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17270 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17271 | |
| 17272 | cat >>confdefs.h <<_ACEOF |
| 17273 | #define HAVE_U_INT64_T 1 |
| 17274 | _ACEOF |
| 17275 | |
| 17276 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17277 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17278 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17279 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17280 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17281 | fi |
| 17282 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17283 | fi |
| 17284 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17285 | |
| 17286 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17287 | |
| 17288 | |
| 17289 | |
| 17290 | |
| 17291 | |
| 17292 | |
| 17293 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17294 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17295 | do |
| 17296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17297 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17299 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17301 | else |
| 17302 | cat >conftest.$ac_ext <<_ACEOF |
| 17303 | /* confdefs.h. */ |
| 17304 | _ACEOF |
| 17305 | cat confdefs.h >>conftest.$ac_ext |
| 17306 | cat >>conftest.$ac_ext <<_ACEOF |
| 17307 | /* end confdefs.h. */ |
| 17308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17310 | #define $ac_func innocuous_$ac_func |
| 17311 | |
| 17312 | /* System header to define __stub macros and hopefully few prototypes, |
| 17313 | which can conflict with char $ac_func (); below. |
| 17314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17315 | <limits.h> exists even on freestanding compilers. */ |
| 17316 | |
| 17317 | #ifdef __STDC__ |
| 17318 | # include <limits.h> |
| 17319 | #else |
| 17320 | # include <assert.h> |
| 17321 | #endif |
| 17322 | |
| 17323 | #undef $ac_func |
| 17324 | |
| 17325 | /* Override any GCC internal prototype to avoid an error. |
| 17326 | Use char because int might match the return type of a GCC |
| 17327 | builtin and then its argument prototype would still apply. */ |
| 17328 | #ifdef __cplusplus |
| 17329 | extern "C" |
| 17330 | #endif |
| 17331 | char $ac_func (); |
| 17332 | /* The GNU C library defines this for functions which it implements |
| 17333 | to always fail with ENOSYS. Some functions are actually named |
| 17334 | something starting with __ and the normal name is an alias. */ |
| 17335 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17336 | choke me |
| 17337 | #endif |
| 17338 | |
| 17339 | int |
| 17340 | main () |
| 17341 | { |
| 17342 | return $ac_func (); |
| 17343 | ; |
| 17344 | return 0; |
| 17345 | } |
| 17346 | _ACEOF |
| 17347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17348 | if { (ac_try="$ac_link" |
| 17349 | case "(($ac_try" in |
| 17350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17351 | *) ac_try_echo=$ac_try;; |
| 17352 | esac |
| 17353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17354 | (eval "$ac_link") 2>conftest.er1 |
| 17355 | ac_status=$? |
| 17356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17357 | rm -f conftest.er1 |
| 17358 | cat conftest.err >&5 |
| 17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17360 | (exit $ac_status); } && |
| 17361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17362 | { (case "(($ac_try" in |
| 17363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17364 | *) ac_try_echo=$ac_try;; |
| 17365 | esac |
| 17366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17367 | (eval "$ac_try") 2>&5 |
| 17368 | ac_status=$? |
| 17369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17370 | (exit $ac_status); }; } && |
| 17371 | { ac_try='test -s conftest$ac_exeext' |
| 17372 | { (case "(($ac_try" in |
| 17373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17374 | *) ac_try_echo=$ac_try;; |
| 17375 | esac |
| 17376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17377 | (eval "$ac_try") 2>&5 |
| 17378 | ac_status=$? |
| 17379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17380 | (exit $ac_status); }; }; then |
| 17381 | eval "$as_ac_var=yes" |
| 17382 | else |
| 17383 | echo "$as_me: failed program was:" >&5 |
| 17384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17385 | |
| 17386 | eval "$as_ac_var=no" |
| 17387 | fi |
| 17388 | |
| 17389 | rm -f core conftest.err conftest.$ac_objext \ |
| 17390 | conftest$ac_exeext conftest.$ac_ext |
| 17391 | fi |
| 17392 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17393 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17394 | echo "${ECHO_T}$ac_res" >&6; } |
| 17395 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17396 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17397 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17398 | _ACEOF |
| 17399 | |
| 17400 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17401 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17402 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17403 | |
| 17404 | |
| 17405 | |
| 17406 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17407 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17408 | do |
| 17409 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17410 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17411 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17412 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17414 | else |
| 17415 | cat >conftest.$ac_ext <<_ACEOF |
| 17416 | /* confdefs.h. */ |
| 17417 | _ACEOF |
| 17418 | cat confdefs.h >>conftest.$ac_ext |
| 17419 | cat >>conftest.$ac_ext <<_ACEOF |
| 17420 | /* end confdefs.h. */ |
| 17421 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17423 | #define $ac_func innocuous_$ac_func |
| 17424 | |
| 17425 | /* System header to define __stub macros and hopefully few prototypes, |
| 17426 | which can conflict with char $ac_func (); below. |
| 17427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17428 | <limits.h> exists even on freestanding compilers. */ |
| 17429 | |
| 17430 | #ifdef __STDC__ |
| 17431 | # include <limits.h> |
| 17432 | #else |
| 17433 | # include <assert.h> |
| 17434 | #endif |
| 17435 | |
| 17436 | #undef $ac_func |
| 17437 | |
| 17438 | /* Override any GCC internal prototype to avoid an error. |
| 17439 | Use char because int might match the return type of a GCC |
| 17440 | builtin and then its argument prototype would still apply. */ |
| 17441 | #ifdef __cplusplus |
| 17442 | extern "C" |
| 17443 | #endif |
| 17444 | char $ac_func (); |
| 17445 | /* The GNU C library defines this for functions which it implements |
| 17446 | to always fail with ENOSYS. Some functions are actually named |
| 17447 | something starting with __ and the normal name is an alias. */ |
| 17448 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17449 | choke me |
| 17450 | #endif |
| 17451 | |
| 17452 | int |
| 17453 | main () |
| 17454 | { |
| 17455 | return $ac_func (); |
| 17456 | ; |
| 17457 | return 0; |
| 17458 | } |
| 17459 | _ACEOF |
| 17460 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17461 | if { (ac_try="$ac_link" |
| 17462 | case "(($ac_try" in |
| 17463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17464 | *) ac_try_echo=$ac_try;; |
| 17465 | esac |
| 17466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17467 | (eval "$ac_link") 2>conftest.er1 |
| 17468 | ac_status=$? |
| 17469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17470 | rm -f conftest.er1 |
| 17471 | cat conftest.err >&5 |
| 17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17473 | (exit $ac_status); } && |
| 17474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17475 | { (case "(($ac_try" in |
| 17476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17477 | *) ac_try_echo=$ac_try;; |
| 17478 | esac |
| 17479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17480 | (eval "$ac_try") 2>&5 |
| 17481 | ac_status=$? |
| 17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17483 | (exit $ac_status); }; } && |
| 17484 | { ac_try='test -s conftest$ac_exeext' |
| 17485 | { (case "(($ac_try" in |
| 17486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17487 | *) ac_try_echo=$ac_try;; |
| 17488 | esac |
| 17489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17490 | (eval "$ac_try") 2>&5 |
| 17491 | ac_status=$? |
| 17492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17493 | (exit $ac_status); }; }; then |
| 17494 | eval "$as_ac_var=yes" |
| 17495 | else |
| 17496 | echo "$as_me: failed program was:" >&5 |
| 17497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17498 | |
| 17499 | eval "$as_ac_var=no" |
| 17500 | fi |
| 17501 | |
| 17502 | rm -f core conftest.err conftest.$ac_objext \ |
| 17503 | conftest$ac_exeext conftest.$ac_ext |
| 17504 | fi |
| 17505 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17506 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17507 | echo "${ECHO_T}$ac_res" >&6; } |
| 17508 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17509 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17510 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17511 | _ACEOF |
| 17512 | |
| 17513 | fi |
| 17514 | done |
| 17515 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17516 | |
| 17517 | |
| 17518 | |
| 17519 | |
| 17520 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17521 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17522 | do |
| 17523 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17524 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17525 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17526 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17528 | else |
| 17529 | cat >conftest.$ac_ext <<_ACEOF |
| 17530 | /* confdefs.h. */ |
| 17531 | _ACEOF |
| 17532 | cat confdefs.h >>conftest.$ac_ext |
| 17533 | cat >>conftest.$ac_ext <<_ACEOF |
| 17534 | /* end confdefs.h. */ |
| 17535 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17537 | #define $ac_func innocuous_$ac_func |
| 17538 | |
| 17539 | /* System header to define __stub macros and hopefully few prototypes, |
| 17540 | which can conflict with char $ac_func (); below. |
| 17541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17542 | <limits.h> exists even on freestanding compilers. */ |
| 17543 | |
| 17544 | #ifdef __STDC__ |
| 17545 | # include <limits.h> |
| 17546 | #else |
| 17547 | # include <assert.h> |
| 17548 | #endif |
| 17549 | |
| 17550 | #undef $ac_func |
| 17551 | |
| 17552 | /* Override any GCC internal prototype to avoid an error. |
| 17553 | Use char because int might match the return type of a GCC |
| 17554 | builtin and then its argument prototype would still apply. */ |
| 17555 | #ifdef __cplusplus |
| 17556 | extern "C" |
| 17557 | #endif |
| 17558 | char $ac_func (); |
| 17559 | /* The GNU C library defines this for functions which it implements |
| 17560 | to always fail with ENOSYS. Some functions are actually named |
| 17561 | something starting with __ and the normal name is an alias. */ |
| 17562 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17563 | choke me |
| 17564 | #endif |
| 17565 | |
| 17566 | int |
| 17567 | main () |
| 17568 | { |
| 17569 | return $ac_func (); |
| 17570 | ; |
| 17571 | return 0; |
| 17572 | } |
| 17573 | _ACEOF |
| 17574 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17575 | if { (ac_try="$ac_link" |
| 17576 | case "(($ac_try" in |
| 17577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17578 | *) ac_try_echo=$ac_try;; |
| 17579 | esac |
| 17580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17581 | (eval "$ac_link") 2>conftest.er1 |
| 17582 | ac_status=$? |
| 17583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17584 | rm -f conftest.er1 |
| 17585 | cat conftest.err >&5 |
| 17586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17587 | (exit $ac_status); } && |
| 17588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17589 | { (case "(($ac_try" in |
| 17590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17591 | *) ac_try_echo=$ac_try;; |
| 17592 | esac |
| 17593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17594 | (eval "$ac_try") 2>&5 |
| 17595 | ac_status=$? |
| 17596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17597 | (exit $ac_status); }; } && |
| 17598 | { ac_try='test -s conftest$ac_exeext' |
| 17599 | { (case "(($ac_try" in |
| 17600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17601 | *) ac_try_echo=$ac_try;; |
| 17602 | esac |
| 17603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17604 | (eval "$ac_try") 2>&5 |
| 17605 | ac_status=$? |
| 17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17607 | (exit $ac_status); }; }; then |
| 17608 | eval "$as_ac_var=yes" |
| 17609 | else |
| 17610 | echo "$as_me: failed program was:" >&5 |
| 17611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17612 | |
| 17613 | eval "$as_ac_var=no" |
| 17614 | fi |
| 17615 | |
| 17616 | rm -f core conftest.err conftest.$ac_objext \ |
| 17617 | conftest$ac_exeext conftest.$ac_ext |
| 17618 | fi |
| 17619 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17621 | echo "${ECHO_T}$ac_res" >&6; } |
| 17622 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17623 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17624 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17625 | _ACEOF |
| 17626 | |
| 17627 | fi |
| 17628 | done |
| 17629 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17630 | |
| 17631 | |
| 17632 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17633 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17634 | do |
| 17635 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17636 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17637 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17638 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17640 | else |
| 17641 | cat >conftest.$ac_ext <<_ACEOF |
| 17642 | /* confdefs.h. */ |
| 17643 | _ACEOF |
| 17644 | cat confdefs.h >>conftest.$ac_ext |
| 17645 | cat >>conftest.$ac_ext <<_ACEOF |
| 17646 | /* end confdefs.h. */ |
| 17647 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17649 | #define $ac_func innocuous_$ac_func |
| 17650 | |
| 17651 | /* System header to define __stub macros and hopefully few prototypes, |
| 17652 | which can conflict with char $ac_func (); below. |
| 17653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17654 | <limits.h> exists even on freestanding compilers. */ |
| 17655 | |
| 17656 | #ifdef __STDC__ |
| 17657 | # include <limits.h> |
| 17658 | #else |
| 17659 | # include <assert.h> |
| 17660 | #endif |
| 17661 | |
| 17662 | #undef $ac_func |
| 17663 | |
| 17664 | /* Override any GCC internal prototype to avoid an error. |
| 17665 | Use char because int might match the return type of a GCC |
| 17666 | builtin and then its argument prototype would still apply. */ |
| 17667 | #ifdef __cplusplus |
| 17668 | extern "C" |
| 17669 | #endif |
| 17670 | char $ac_func (); |
| 17671 | /* The GNU C library defines this for functions which it implements |
| 17672 | to always fail with ENOSYS. Some functions are actually named |
| 17673 | something starting with __ and the normal name is an alias. */ |
| 17674 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17675 | choke me |
| 17676 | #endif |
| 17677 | |
| 17678 | int |
| 17679 | main () |
| 17680 | { |
| 17681 | return $ac_func (); |
| 17682 | ; |
| 17683 | return 0; |
| 17684 | } |
| 17685 | _ACEOF |
| 17686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17687 | if { (ac_try="$ac_link" |
| 17688 | case "(($ac_try" in |
| 17689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17690 | *) ac_try_echo=$ac_try;; |
| 17691 | esac |
| 17692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17693 | (eval "$ac_link") 2>conftest.er1 |
| 17694 | ac_status=$? |
| 17695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17696 | rm -f conftest.er1 |
| 17697 | cat conftest.err >&5 |
| 17698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17699 | (exit $ac_status); } && |
| 17700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17701 | { (case "(($ac_try" in |
| 17702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17703 | *) ac_try_echo=$ac_try;; |
| 17704 | esac |
| 17705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17706 | (eval "$ac_try") 2>&5 |
| 17707 | ac_status=$? |
| 17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17709 | (exit $ac_status); }; } && |
| 17710 | { ac_try='test -s conftest$ac_exeext' |
| 17711 | { (case "(($ac_try" in |
| 17712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17713 | *) ac_try_echo=$ac_try;; |
| 17714 | esac |
| 17715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17716 | (eval "$ac_try") 2>&5 |
| 17717 | ac_status=$? |
| 17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17719 | (exit $ac_status); }; }; then |
| 17720 | eval "$as_ac_var=yes" |
| 17721 | else |
| 17722 | echo "$as_me: failed program was:" >&5 |
| 17723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17724 | |
| 17725 | eval "$as_ac_var=no" |
| 17726 | fi |
| 17727 | |
| 17728 | rm -f core conftest.err conftest.$ac_objext \ |
| 17729 | conftest$ac_exeext conftest.$ac_ext |
| 17730 | fi |
| 17731 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17732 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17733 | echo "${ECHO_T}$ac_res" >&6; } |
| 17734 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17735 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17737 | _ACEOF |
| 17738 | |
| 17739 | fi |
| 17740 | done |
| 17741 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17742 | |
| 17743 | |
| 17744 | |
| 17745 | |
| 17746 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17747 | for ac_func in mktemp realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17748 | do |
| 17749 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17750 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17751 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17752 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17754 | else |
| 17755 | cat >conftest.$ac_ext <<_ACEOF |
| 17756 | /* confdefs.h. */ |
| 17757 | _ACEOF |
| 17758 | cat confdefs.h >>conftest.$ac_ext |
| 17759 | cat >>conftest.$ac_ext <<_ACEOF |
| 17760 | /* end confdefs.h. */ |
| 17761 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17762 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17763 | #define $ac_func innocuous_$ac_func |
| 17764 | |
| 17765 | /* System header to define __stub macros and hopefully few prototypes, |
| 17766 | which can conflict with char $ac_func (); below. |
| 17767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17768 | <limits.h> exists even on freestanding compilers. */ |
| 17769 | |
| 17770 | #ifdef __STDC__ |
| 17771 | # include <limits.h> |
| 17772 | #else |
| 17773 | # include <assert.h> |
| 17774 | #endif |
| 17775 | |
| 17776 | #undef $ac_func |
| 17777 | |
| 17778 | /* Override any GCC internal prototype to avoid an error. |
| 17779 | Use char because int might match the return type of a GCC |
| 17780 | builtin and then its argument prototype would still apply. */ |
| 17781 | #ifdef __cplusplus |
| 17782 | extern "C" |
| 17783 | #endif |
| 17784 | char $ac_func (); |
| 17785 | /* The GNU C library defines this for functions which it implements |
| 17786 | to always fail with ENOSYS. Some functions are actually named |
| 17787 | something starting with __ and the normal name is an alias. */ |
| 17788 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17789 | choke me |
| 17790 | #endif |
| 17791 | |
| 17792 | int |
| 17793 | main () |
| 17794 | { |
| 17795 | return $ac_func (); |
| 17796 | ; |
| 17797 | return 0; |
| 17798 | } |
| 17799 | _ACEOF |
| 17800 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17801 | if { (ac_try="$ac_link" |
| 17802 | case "(($ac_try" in |
| 17803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17804 | *) ac_try_echo=$ac_try;; |
| 17805 | esac |
| 17806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17807 | (eval "$ac_link") 2>conftest.er1 |
| 17808 | ac_status=$? |
| 17809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17810 | rm -f conftest.er1 |
| 17811 | cat conftest.err >&5 |
| 17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17813 | (exit $ac_status); } && |
| 17814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17815 | { (case "(($ac_try" in |
| 17816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17817 | *) ac_try_echo=$ac_try;; |
| 17818 | esac |
| 17819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17820 | (eval "$ac_try") 2>&5 |
| 17821 | ac_status=$? |
| 17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17823 | (exit $ac_status); }; } && |
| 17824 | { ac_try='test -s conftest$ac_exeext' |
| 17825 | { (case "(($ac_try" in |
| 17826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17827 | *) ac_try_echo=$ac_try;; |
| 17828 | esac |
| 17829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17830 | (eval "$ac_try") 2>&5 |
| 17831 | ac_status=$? |
| 17832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17833 | (exit $ac_status); }; }; then |
| 17834 | eval "$as_ac_var=yes" |
| 17835 | else |
| 17836 | echo "$as_me: failed program was:" >&5 |
| 17837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17838 | |
| 17839 | eval "$as_ac_var=no" |
| 17840 | fi |
| 17841 | |
| 17842 | rm -f core conftest.err conftest.$ac_objext \ |
| 17843 | conftest$ac_exeext conftest.$ac_ext |
| 17844 | fi |
| 17845 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17846 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17847 | echo "${ECHO_T}$ac_res" >&6; } |
| 17848 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17849 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17850 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17851 | _ACEOF |
| 17852 | |
| 17853 | fi |
| 17854 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17855 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17856 | |
| 17857 | |
| 17858 | |
| 17859 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 17860 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17861 | do |
| 17862 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17863 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17864 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17865 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17867 | else |
| 17868 | cat >conftest.$ac_ext <<_ACEOF |
| 17869 | /* confdefs.h. */ |
| 17870 | _ACEOF |
| 17871 | cat confdefs.h >>conftest.$ac_ext |
| 17872 | cat >>conftest.$ac_ext <<_ACEOF |
| 17873 | /* end confdefs.h. */ |
| 17874 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17875 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17876 | #define $ac_func innocuous_$ac_func |
| 17877 | |
| 17878 | /* System header to define __stub macros and hopefully few prototypes, |
| 17879 | which can conflict with char $ac_func (); below. |
| 17880 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17881 | <limits.h> exists even on freestanding compilers. */ |
| 17882 | |
| 17883 | #ifdef __STDC__ |
| 17884 | # include <limits.h> |
| 17885 | #else |
| 17886 | # include <assert.h> |
| 17887 | #endif |
| 17888 | |
| 17889 | #undef $ac_func |
| 17890 | |
| 17891 | /* Override any GCC internal prototype to avoid an error. |
| 17892 | Use char because int might match the return type of a GCC |
| 17893 | builtin and then its argument prototype would still apply. */ |
| 17894 | #ifdef __cplusplus |
| 17895 | extern "C" |
| 17896 | #endif |
| 17897 | char $ac_func (); |
| 17898 | /* The GNU C library defines this for functions which it implements |
| 17899 | to always fail with ENOSYS. Some functions are actually named |
| 17900 | something starting with __ and the normal name is an alias. */ |
| 17901 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17902 | choke me |
| 17903 | #endif |
| 17904 | |
| 17905 | int |
| 17906 | main () |
| 17907 | { |
| 17908 | return $ac_func (); |
| 17909 | ; |
| 17910 | return 0; |
| 17911 | } |
| 17912 | _ACEOF |
| 17913 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17914 | if { (ac_try="$ac_link" |
| 17915 | case "(($ac_try" in |
| 17916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17917 | *) ac_try_echo=$ac_try;; |
| 17918 | esac |
| 17919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17920 | (eval "$ac_link") 2>conftest.er1 |
| 17921 | ac_status=$? |
| 17922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17923 | rm -f conftest.er1 |
| 17924 | cat conftest.err >&5 |
| 17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17926 | (exit $ac_status); } && |
| 17927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17928 | { (case "(($ac_try" in |
| 17929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17930 | *) ac_try_echo=$ac_try;; |
| 17931 | esac |
| 17932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17933 | (eval "$ac_try") 2>&5 |
| 17934 | ac_status=$? |
| 17935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17936 | (exit $ac_status); }; } && |
| 17937 | { ac_try='test -s conftest$ac_exeext' |
| 17938 | { (case "(($ac_try" in |
| 17939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17940 | *) ac_try_echo=$ac_try;; |
| 17941 | esac |
| 17942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17943 | (eval "$ac_try") 2>&5 |
| 17944 | ac_status=$? |
| 17945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17946 | (exit $ac_status); }; }; then |
| 17947 | eval "$as_ac_var=yes" |
| 17948 | else |
| 17949 | echo "$as_me: failed program was:" >&5 |
| 17950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17951 | |
| 17952 | eval "$as_ac_var=no" |
| 17953 | fi |
| 17954 | |
| 17955 | rm -f core conftest.err conftest.$ac_objext \ |
| 17956 | conftest$ac_exeext conftest.$ac_ext |
| 17957 | fi |
| 17958 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17959 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17960 | echo "${ECHO_T}$ac_res" >&6; } |
| 17961 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17962 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17963 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17964 | _ACEOF |
| 17965 | |
| 17966 | fi |
| 17967 | done |
| 17968 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17969 | |
| 17970 | |
| 17971 | |
| 17972 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17973 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17974 | do |
| 17975 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17976 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17977 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17978 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17980 | else |
| 17981 | cat >conftest.$ac_ext <<_ACEOF |
| 17982 | /* confdefs.h. */ |
| 17983 | _ACEOF |
| 17984 | cat confdefs.h >>conftest.$ac_ext |
| 17985 | cat >>conftest.$ac_ext <<_ACEOF |
| 17986 | /* end confdefs.h. */ |
| 17987 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17988 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17989 | #define $ac_func innocuous_$ac_func |
| 17990 | |
| 17991 | /* System header to define __stub macros and hopefully few prototypes, |
| 17992 | which can conflict with char $ac_func (); below. |
| 17993 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17994 | <limits.h> exists even on freestanding compilers. */ |
| 17995 | |
| 17996 | #ifdef __STDC__ |
| 17997 | # include <limits.h> |
| 17998 | #else |
| 17999 | # include <assert.h> |
| 18000 | #endif |
| 18001 | |
| 18002 | #undef $ac_func |
| 18003 | |
| 18004 | /* Override any GCC internal prototype to avoid an error. |
| 18005 | Use char because int might match the return type of a GCC |
| 18006 | builtin and then its argument prototype would still apply. */ |
| 18007 | #ifdef __cplusplus |
| 18008 | extern "C" |
| 18009 | #endif |
| 18010 | char $ac_func (); |
| 18011 | /* The GNU C library defines this for functions which it implements |
| 18012 | to always fail with ENOSYS. Some functions are actually named |
| 18013 | something starting with __ and the normal name is an alias. */ |
| 18014 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18015 | choke me |
| 18016 | #endif |
| 18017 | |
| 18018 | int |
| 18019 | main () |
| 18020 | { |
| 18021 | return $ac_func (); |
| 18022 | ; |
| 18023 | return 0; |
| 18024 | } |
| 18025 | _ACEOF |
| 18026 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18027 | if { (ac_try="$ac_link" |
| 18028 | case "(($ac_try" in |
| 18029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18030 | *) ac_try_echo=$ac_try;; |
| 18031 | esac |
| 18032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18033 | (eval "$ac_link") 2>conftest.er1 |
| 18034 | ac_status=$? |
| 18035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18036 | rm -f conftest.er1 |
| 18037 | cat conftest.err >&5 |
| 18038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18039 | (exit $ac_status); } && |
| 18040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18041 | { (case "(($ac_try" in |
| 18042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18043 | *) ac_try_echo=$ac_try;; |
| 18044 | esac |
| 18045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18046 | (eval "$ac_try") 2>&5 |
| 18047 | ac_status=$? |
| 18048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18049 | (exit $ac_status); }; } && |
| 18050 | { ac_try='test -s conftest$ac_exeext' |
| 18051 | { (case "(($ac_try" in |
| 18052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18053 | *) ac_try_echo=$ac_try;; |
| 18054 | esac |
| 18055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18056 | (eval "$ac_try") 2>&5 |
| 18057 | ac_status=$? |
| 18058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18059 | (exit $ac_status); }; }; then |
| 18060 | eval "$as_ac_var=yes" |
| 18061 | else |
| 18062 | echo "$as_me: failed program was:" >&5 |
| 18063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18064 | |
| 18065 | eval "$as_ac_var=no" |
| 18066 | fi |
| 18067 | |
| 18068 | rm -f core conftest.err conftest.$ac_objext \ |
| 18069 | conftest$ac_exeext conftest.$ac_ext |
| 18070 | fi |
| 18071 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18072 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18073 | echo "${ECHO_T}$ac_res" >&6; } |
| 18074 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18075 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18076 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18077 | _ACEOF |
| 18078 | |
| 18079 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18080 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18081 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18082 | |
| 18083 | |
| 18084 | |
| 18085 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 18086 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18087 | do |
| 18088 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18089 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18090 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18091 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18093 | else |
| 18094 | cat >conftest.$ac_ext <<_ACEOF |
| 18095 | /* confdefs.h. */ |
| 18096 | _ACEOF |
| 18097 | cat confdefs.h >>conftest.$ac_ext |
| 18098 | cat >>conftest.$ac_ext <<_ACEOF |
| 18099 | /* end confdefs.h. */ |
| 18100 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18102 | #define $ac_func innocuous_$ac_func |
| 18103 | |
| 18104 | /* System header to define __stub macros and hopefully few prototypes, |
| 18105 | which can conflict with char $ac_func (); below. |
| 18106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18107 | <limits.h> exists even on freestanding compilers. */ |
| 18108 | |
| 18109 | #ifdef __STDC__ |
| 18110 | # include <limits.h> |
| 18111 | #else |
| 18112 | # include <assert.h> |
| 18113 | #endif |
| 18114 | |
| 18115 | #undef $ac_func |
| 18116 | |
| 18117 | /* Override any GCC internal prototype to avoid an error. |
| 18118 | Use char because int might match the return type of a GCC |
| 18119 | builtin and then its argument prototype would still apply. */ |
| 18120 | #ifdef __cplusplus |
| 18121 | extern "C" |
| 18122 | #endif |
| 18123 | char $ac_func (); |
| 18124 | /* The GNU C library defines this for functions which it implements |
| 18125 | to always fail with ENOSYS. Some functions are actually named |
| 18126 | something starting with __ and the normal name is an alias. */ |
| 18127 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18128 | choke me |
| 18129 | #endif |
| 18130 | |
| 18131 | int |
| 18132 | main () |
| 18133 | { |
| 18134 | return $ac_func (); |
| 18135 | ; |
| 18136 | return 0; |
| 18137 | } |
| 18138 | _ACEOF |
| 18139 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18140 | if { (ac_try="$ac_link" |
| 18141 | case "(($ac_try" in |
| 18142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18143 | *) ac_try_echo=$ac_try;; |
| 18144 | esac |
| 18145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18146 | (eval "$ac_link") 2>conftest.er1 |
| 18147 | ac_status=$? |
| 18148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18149 | rm -f conftest.er1 |
| 18150 | cat conftest.err >&5 |
| 18151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18152 | (exit $ac_status); } && |
| 18153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18154 | { (case "(($ac_try" in |
| 18155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18156 | *) ac_try_echo=$ac_try;; |
| 18157 | esac |
| 18158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18159 | (eval "$ac_try") 2>&5 |
| 18160 | ac_status=$? |
| 18161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18162 | (exit $ac_status); }; } && |
| 18163 | { ac_try='test -s conftest$ac_exeext' |
| 18164 | { (case "(($ac_try" in |
| 18165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18166 | *) ac_try_echo=$ac_try;; |
| 18167 | esac |
| 18168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18169 | (eval "$ac_try") 2>&5 |
| 18170 | ac_status=$? |
| 18171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18172 | (exit $ac_status); }; }; then |
| 18173 | eval "$as_ac_var=yes" |
| 18174 | else |
| 18175 | echo "$as_me: failed program was:" >&5 |
| 18176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18177 | |
| 18178 | eval "$as_ac_var=no" |
| 18179 | fi |
| 18180 | |
| 18181 | rm -f core conftest.err conftest.$ac_objext \ |
| 18182 | conftest$ac_exeext conftest.$ac_ext |
| 18183 | fi |
| 18184 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18185 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18186 | echo "${ECHO_T}$ac_res" >&6; } |
| 18187 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18188 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18189 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18190 | _ACEOF |
| 18191 | |
| 18192 | fi |
| 18193 | done |
| 18194 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18195 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 18196 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 18197 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 18198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18199 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18200 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18201 | ac_cpp='$CPP $CPPFLAGS' |
| 18202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18205 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18206 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18207 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18208 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18209 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18210 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18211 | /* confdefs.h. */ |
| 18212 | _ACEOF |
| 18213 | cat confdefs.h >>conftest.$ac_ext |
| 18214 | cat >>conftest.$ac_ext <<_ACEOF |
| 18215 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18216 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18217 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18218 | #include <stdlib.h> |
| 18219 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18220 | int |
| 18221 | main () |
| 18222 | { |
| 18223 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18224 | volatile double A, B; |
| 18225 | char Buffer[100]; |
| 18226 | A = 1; |
| 18227 | A /= 10.0; |
| 18228 | sprintf(Buffer, "%a", A); |
| 18229 | B = atof(Buffer); |
| 18230 | if (A != B) |
| 18231 | return (1); |
| 18232 | if (A != 0x1.999999999999ap-4) |
| 18233 | return (1); |
| 18234 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18235 | ; |
| 18236 | return 0; |
| 18237 | } |
| 18238 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18239 | rm -f conftest$ac_exeext |
| 18240 | if { (ac_try="$ac_link" |
| 18241 | case "(($ac_try" in |
| 18242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18243 | *) ac_try_echo=$ac_try;; |
| 18244 | esac |
| 18245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18246 | (eval "$ac_link") 2>&5 |
| 18247 | ac_status=$? |
| 18248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18250 | { (case "(($ac_try" in |
| 18251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18252 | *) ac_try_echo=$ac_try;; |
| 18253 | esac |
| 18254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18255 | (eval "$ac_try") 2>&5 |
| 18256 | ac_status=$? |
| 18257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18258 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18259 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18260 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18261 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18262 | echo "$as_me: failed program was:" >&5 |
| 18263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18264 | |
| 18265 | ( exit $ac_status ) |
| 18266 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18267 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18268 | 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] | 18269 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18270 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18271 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18272 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18273 | ac_cpp='$CPP $CPPFLAGS' |
| 18274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18277 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18278 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18279 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18280 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18281 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18282 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18283 | cat >>confdefs.h <<\_ACEOF |
| 18284 | #define HAVE_PRINTF_A 1 |
| 18285 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18286 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18287 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18288 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18289 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18290 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18291 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18292 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18294 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18295 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18296 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18297 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18298 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18299 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18300 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18301 | cat >conftest.$ac_ext <<_ACEOF |
| 18302 | /* confdefs.h. */ |
| 18303 | _ACEOF |
| 18304 | cat confdefs.h >>conftest.$ac_ext |
| 18305 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18306 | /* end confdefs.h. */ |
| 18307 | #include <stdlib.h> |
| 18308 | int |
| 18309 | main () |
| 18310 | { |
| 18311 | srand48(0);lrand48();drand48(); |
| 18312 | ; |
| 18313 | return 0; |
| 18314 | } |
| 18315 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18316 | rm -f conftest.$ac_objext |
| 18317 | if { (ac_try="$ac_compile" |
| 18318 | case "(($ac_try" in |
| 18319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18320 | *) ac_try_echo=$ac_try;; |
| 18321 | esac |
| 18322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18323 | (eval "$ac_compile") 2>conftest.er1 |
| 18324 | ac_status=$? |
| 18325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18326 | rm -f conftest.er1 |
| 18327 | cat conftest.err >&5 |
| 18328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18329 | (exit $ac_status); } && |
| 18330 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18331 | { (case "(($ac_try" in |
| 18332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18333 | *) ac_try_echo=$ac_try;; |
| 18334 | esac |
| 18335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18336 | (eval "$ac_try") 2>&5 |
| 18337 | ac_status=$? |
| 18338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18339 | (exit $ac_status); }; } && |
| 18340 | { ac_try='test -s conftest.$ac_objext' |
| 18341 | { (case "(($ac_try" in |
| 18342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18343 | *) ac_try_echo=$ac_try;; |
| 18344 | esac |
| 18345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18346 | (eval "$ac_try") 2>&5 |
| 18347 | ac_status=$? |
| 18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18349 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18350 | ac_cv_func_rand48=yes |
| 18351 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18352 | echo "$as_me: failed program was:" >&5 |
| 18353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18354 | |
| 18355 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18356 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18357 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18359 | ac_ext=c |
| 18360 | ac_cpp='$CPP $CPPFLAGS' |
| 18361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18364 | |
| 18365 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18366 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18367 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18368 | |
| 18369 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18370 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18371 | cat >>confdefs.h <<\_ACEOF |
| 18372 | #define HAVE_RAND48 1 |
| 18373 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18374 | |
| 18375 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18376 | |
| 18377 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18378 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18379 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18380 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18381 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18383 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18384 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18385 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18386 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18387 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18388 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18389 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18390 | cat >conftest.$ac_ext <<_ACEOF |
| 18391 | /* confdefs.h. */ |
| 18392 | _ACEOF |
| 18393 | cat confdefs.h >>conftest.$ac_ext |
| 18394 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18395 | /* end confdefs.h. */ |
| 18396 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18397 | int |
| 18398 | main () |
| 18399 | { |
| 18400 | float f; isnan(f); |
| 18401 | ; |
| 18402 | return 0; |
| 18403 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18404 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18405 | rm -f conftest.$ac_objext |
| 18406 | if { (ac_try="$ac_compile" |
| 18407 | case "(($ac_try" in |
| 18408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18409 | *) ac_try_echo=$ac_try;; |
| 18410 | esac |
| 18411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18412 | (eval "$ac_compile") 2>conftest.er1 |
| 18413 | ac_status=$? |
| 18414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18415 | rm -f conftest.er1 |
| 18416 | cat conftest.err >&5 |
| 18417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18418 | (exit $ac_status); } && |
| 18419 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18420 | { (case "(($ac_try" in |
| 18421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18422 | *) ac_try_echo=$ac_try;; |
| 18423 | esac |
| 18424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18425 | (eval "$ac_try") 2>&5 |
| 18426 | ac_status=$? |
| 18427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18428 | (exit $ac_status); }; } && |
| 18429 | { ac_try='test -s conftest.$ac_objext' |
| 18430 | { (case "(($ac_try" in |
| 18431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18432 | *) ac_try_echo=$ac_try;; |
| 18433 | esac |
| 18434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18435 | (eval "$ac_try") 2>&5 |
| 18436 | ac_status=$? |
| 18437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18438 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18439 | ac_cv_func_isnan_in_math_h=yes |
| 18440 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18441 | echo "$as_me: failed program was:" >&5 |
| 18442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18443 | |
| 18444 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18448 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18449 | ac_cpp='$CPP $CPPFLAGS' |
| 18450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18453 | |
| 18454 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18455 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18456 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18457 | |
| 18458 | |
| 18459 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18460 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18461 | cat >>confdefs.h <<\_ACEOF |
| 18462 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18463 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18464 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18465 | fi |
| 18466 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18467 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18468 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18469 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18471 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18472 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18473 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18474 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18475 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18476 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18477 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18478 | cat >conftest.$ac_ext <<_ACEOF |
| 18479 | /* confdefs.h. */ |
| 18480 | _ACEOF |
| 18481 | cat confdefs.h >>conftest.$ac_ext |
| 18482 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18483 | /* end confdefs.h. */ |
| 18484 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18485 | int |
| 18486 | main () |
| 18487 | { |
| 18488 | float f; isnan(f); |
| 18489 | ; |
| 18490 | return 0; |
| 18491 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18492 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18493 | rm -f conftest.$ac_objext |
| 18494 | if { (ac_try="$ac_compile" |
| 18495 | case "(($ac_try" in |
| 18496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18497 | *) ac_try_echo=$ac_try;; |
| 18498 | esac |
| 18499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18500 | (eval "$ac_compile") 2>conftest.er1 |
| 18501 | ac_status=$? |
| 18502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18503 | rm -f conftest.er1 |
| 18504 | cat conftest.err >&5 |
| 18505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18506 | (exit $ac_status); } && |
| 18507 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18508 | { (case "(($ac_try" in |
| 18509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18510 | *) ac_try_echo=$ac_try;; |
| 18511 | esac |
| 18512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18513 | (eval "$ac_try") 2>&5 |
| 18514 | ac_status=$? |
| 18515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18516 | (exit $ac_status); }; } && |
| 18517 | { ac_try='test -s conftest.$ac_objext' |
| 18518 | { (case "(($ac_try" in |
| 18519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18520 | *) ac_try_echo=$ac_try;; |
| 18521 | esac |
| 18522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18523 | (eval "$ac_try") 2>&5 |
| 18524 | ac_status=$? |
| 18525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18526 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18527 | ac_cv_func_isnan_in_cmath=yes |
| 18528 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18529 | echo "$as_me: failed program was:" >&5 |
| 18530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18531 | |
| 18532 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18533 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18534 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18536 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18537 | ac_cpp='$CPP $CPPFLAGS' |
| 18538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18541 | |
| 18542 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18543 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18544 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18545 | |
| 18546 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18547 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18548 | cat >>confdefs.h <<\_ACEOF |
| 18549 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18550 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18551 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18552 | fi |
| 18553 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18554 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18555 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18556 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18558 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18559 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18560 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18561 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18562 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18563 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18564 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18565 | cat >conftest.$ac_ext <<_ACEOF |
| 18566 | /* confdefs.h. */ |
| 18567 | _ACEOF |
| 18568 | cat confdefs.h >>conftest.$ac_ext |
| 18569 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18570 | /* end confdefs.h. */ |
| 18571 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18572 | int |
| 18573 | main () |
| 18574 | { |
| 18575 | float f; std::isnan(f); |
| 18576 | ; |
| 18577 | return 0; |
| 18578 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18579 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18580 | rm -f conftest.$ac_objext |
| 18581 | if { (ac_try="$ac_compile" |
| 18582 | case "(($ac_try" in |
| 18583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18584 | *) ac_try_echo=$ac_try;; |
| 18585 | esac |
| 18586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18587 | (eval "$ac_compile") 2>conftest.er1 |
| 18588 | ac_status=$? |
| 18589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18590 | rm -f conftest.er1 |
| 18591 | cat conftest.err >&5 |
| 18592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18593 | (exit $ac_status); } && |
| 18594 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18595 | { (case "(($ac_try" in |
| 18596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18597 | *) ac_try_echo=$ac_try;; |
| 18598 | esac |
| 18599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18600 | (eval "$ac_try") 2>&5 |
| 18601 | ac_status=$? |
| 18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18603 | (exit $ac_status); }; } && |
| 18604 | { ac_try='test -s conftest.$ac_objext' |
| 18605 | { (case "(($ac_try" in |
| 18606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18607 | *) ac_try_echo=$ac_try;; |
| 18608 | esac |
| 18609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18610 | (eval "$ac_try") 2>&5 |
| 18611 | ac_status=$? |
| 18612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18613 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18614 | ac_cv_func_std_isnan_in_cmath=yes |
| 18615 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18616 | echo "$as_me: failed program was:" >&5 |
| 18617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18618 | |
| 18619 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18620 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18621 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18623 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18624 | ac_cpp='$CPP $CPPFLAGS' |
| 18625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18628 | |
| 18629 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18630 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 18631 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18632 | |
| 18633 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18634 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18635 | cat >>confdefs.h <<\_ACEOF |
| 18636 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 18637 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18638 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18639 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18640 | |
| 18641 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18642 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 18643 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 18644 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 18645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18646 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18647 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18648 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18649 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18650 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18651 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18653 | cat >conftest.$ac_ext <<_ACEOF |
| 18654 | /* confdefs.h. */ |
| 18655 | _ACEOF |
| 18656 | cat confdefs.h >>conftest.$ac_ext |
| 18657 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18658 | /* end confdefs.h. */ |
| 18659 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18660 | int |
| 18661 | main () |
| 18662 | { |
| 18663 | float f; isinf(f); |
| 18664 | ; |
| 18665 | return 0; |
| 18666 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18667 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18668 | rm -f conftest.$ac_objext |
| 18669 | if { (ac_try="$ac_compile" |
| 18670 | case "(($ac_try" in |
| 18671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18672 | *) ac_try_echo=$ac_try;; |
| 18673 | esac |
| 18674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18675 | (eval "$ac_compile") 2>conftest.er1 |
| 18676 | ac_status=$? |
| 18677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18678 | rm -f conftest.er1 |
| 18679 | cat conftest.err >&5 |
| 18680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18681 | (exit $ac_status); } && |
| 18682 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18683 | { (case "(($ac_try" in |
| 18684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18685 | *) ac_try_echo=$ac_try;; |
| 18686 | esac |
| 18687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18688 | (eval "$ac_try") 2>&5 |
| 18689 | ac_status=$? |
| 18690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18691 | (exit $ac_status); }; } && |
| 18692 | { ac_try='test -s conftest.$ac_objext' |
| 18693 | { (case "(($ac_try" in |
| 18694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18695 | *) ac_try_echo=$ac_try;; |
| 18696 | esac |
| 18697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18698 | (eval "$ac_try") 2>&5 |
| 18699 | ac_status=$? |
| 18700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18701 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18702 | ac_cv_func_isinf_in_math_h=yes |
| 18703 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18704 | echo "$as_me: failed program was:" >&5 |
| 18705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18706 | |
| 18707 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18708 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18711 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18712 | ac_cpp='$CPP $CPPFLAGS' |
| 18713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18716 | |
| 18717 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18718 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 18719 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18720 | |
| 18721 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18722 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18723 | cat >>confdefs.h <<\_ACEOF |
| 18724 | #define HAVE_ISINF_IN_MATH_H 1 |
| 18725 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18726 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18727 | fi |
| 18728 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18729 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 18730 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 18731 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 18732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18733 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18734 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18735 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18736 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18737 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18738 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18739 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18740 | cat >conftest.$ac_ext <<_ACEOF |
| 18741 | /* confdefs.h. */ |
| 18742 | _ACEOF |
| 18743 | cat confdefs.h >>conftest.$ac_ext |
| 18744 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18745 | /* end confdefs.h. */ |
| 18746 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18747 | int |
| 18748 | main () |
| 18749 | { |
| 18750 | float f; isinf(f); |
| 18751 | ; |
| 18752 | return 0; |
| 18753 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18754 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18755 | rm -f conftest.$ac_objext |
| 18756 | if { (ac_try="$ac_compile" |
| 18757 | case "(($ac_try" in |
| 18758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18759 | *) ac_try_echo=$ac_try;; |
| 18760 | esac |
| 18761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18762 | (eval "$ac_compile") 2>conftest.er1 |
| 18763 | ac_status=$? |
| 18764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18765 | rm -f conftest.er1 |
| 18766 | cat conftest.err >&5 |
| 18767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18768 | (exit $ac_status); } && |
| 18769 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18770 | { (case "(($ac_try" in |
| 18771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18772 | *) ac_try_echo=$ac_try;; |
| 18773 | esac |
| 18774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18775 | (eval "$ac_try") 2>&5 |
| 18776 | ac_status=$? |
| 18777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18778 | (exit $ac_status); }; } && |
| 18779 | { ac_try='test -s conftest.$ac_objext' |
| 18780 | { (case "(($ac_try" in |
| 18781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18782 | *) ac_try_echo=$ac_try;; |
| 18783 | esac |
| 18784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18785 | (eval "$ac_try") 2>&5 |
| 18786 | ac_status=$? |
| 18787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18788 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18789 | ac_cv_func_isinf_in_cmath=yes |
| 18790 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18791 | echo "$as_me: failed program was:" >&5 |
| 18792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18793 | |
| 18794 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18795 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18796 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18798 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18799 | ac_cpp='$CPP $CPPFLAGS' |
| 18800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18803 | |
| 18804 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18805 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 18806 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18807 | |
| 18808 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18809 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18810 | cat >>confdefs.h <<\_ACEOF |
| 18811 | #define HAVE_ISINF_IN_CMATH 1 |
| 18812 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18813 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18814 | fi |
| 18815 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18816 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 18817 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 18818 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 18819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18820 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18821 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18822 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18823 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18824 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18825 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18827 | cat >conftest.$ac_ext <<_ACEOF |
| 18828 | /* confdefs.h. */ |
| 18829 | _ACEOF |
| 18830 | cat confdefs.h >>conftest.$ac_ext |
| 18831 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18832 | /* end confdefs.h. */ |
| 18833 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18834 | int |
| 18835 | main () |
| 18836 | { |
| 18837 | float f; std::isinf(f)} |
| 18838 | ; |
| 18839 | return 0; |
| 18840 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18841 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18842 | rm -f conftest.$ac_objext |
| 18843 | if { (ac_try="$ac_compile" |
| 18844 | case "(($ac_try" in |
| 18845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18846 | *) ac_try_echo=$ac_try;; |
| 18847 | esac |
| 18848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18849 | (eval "$ac_compile") 2>conftest.er1 |
| 18850 | ac_status=$? |
| 18851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18852 | rm -f conftest.er1 |
| 18853 | cat conftest.err >&5 |
| 18854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18855 | (exit $ac_status); } && |
| 18856 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18857 | { (case "(($ac_try" in |
| 18858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18859 | *) ac_try_echo=$ac_try;; |
| 18860 | esac |
| 18861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18862 | (eval "$ac_try") 2>&5 |
| 18863 | ac_status=$? |
| 18864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18865 | (exit $ac_status); }; } && |
| 18866 | { ac_try='test -s conftest.$ac_objext' |
| 18867 | { (case "(($ac_try" in |
| 18868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18869 | *) ac_try_echo=$ac_try;; |
| 18870 | esac |
| 18871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18872 | (eval "$ac_try") 2>&5 |
| 18873 | ac_status=$? |
| 18874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18875 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18876 | ac_cv_func_std_isinf_in_cmath=yes |
| 18877 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18878 | echo "$as_me: failed program was:" >&5 |
| 18879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18880 | |
| 18881 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18882 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18885 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18886 | ac_cpp='$CPP $CPPFLAGS' |
| 18887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18890 | |
| 18891 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18892 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 18893 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18894 | |
| 18895 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18896 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18897 | cat >>confdefs.h <<\_ACEOF |
| 18898 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 18899 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18900 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18901 | fi |
| 18902 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18903 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 18904 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 18905 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 18906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18907 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18908 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18909 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18910 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18911 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18912 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18913 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18914 | cat >conftest.$ac_ext <<_ACEOF |
| 18915 | /* confdefs.h. */ |
| 18916 | _ACEOF |
| 18917 | cat confdefs.h >>conftest.$ac_ext |
| 18918 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18919 | /* end confdefs.h. */ |
| 18920 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18921 | int |
| 18922 | main () |
| 18923 | { |
| 18924 | float f; finite(f); |
| 18925 | ; |
| 18926 | return 0; |
| 18927 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18928 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18929 | rm -f conftest.$ac_objext |
| 18930 | if { (ac_try="$ac_compile" |
| 18931 | case "(($ac_try" in |
| 18932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18933 | *) ac_try_echo=$ac_try;; |
| 18934 | esac |
| 18935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18936 | (eval "$ac_compile") 2>conftest.er1 |
| 18937 | ac_status=$? |
| 18938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18939 | rm -f conftest.er1 |
| 18940 | cat conftest.err >&5 |
| 18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18942 | (exit $ac_status); } && |
| 18943 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18944 | { (case "(($ac_try" in |
| 18945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18946 | *) ac_try_echo=$ac_try;; |
| 18947 | esac |
| 18948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18949 | (eval "$ac_try") 2>&5 |
| 18950 | ac_status=$? |
| 18951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18952 | (exit $ac_status); }; } && |
| 18953 | { ac_try='test -s conftest.$ac_objext' |
| 18954 | { (case "(($ac_try" in |
| 18955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18956 | *) ac_try_echo=$ac_try;; |
| 18957 | esac |
| 18958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18959 | (eval "$ac_try") 2>&5 |
| 18960 | ac_status=$? |
| 18961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18962 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18963 | ac_cv_func_finite_in_ieeefp_h=yes |
| 18964 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18965 | echo "$as_me: failed program was:" >&5 |
| 18966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18967 | |
| 18968 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18969 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18972 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18973 | ac_cpp='$CPP $CPPFLAGS' |
| 18974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18977 | |
| 18978 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18979 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 18980 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18981 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 18982 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18983 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18984 | cat >>confdefs.h <<\_ACEOF |
| 18985 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 18986 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18987 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18988 | fi |
| 18989 | |
| 18990 | |
| 18991 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 18992 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18993 | |
| 18994 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18995 | for ac_header in stdlib.h unistd.h |
| 18996 | do |
| 18997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18998 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18999 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19001 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19003 | fi |
| 19004 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19005 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19006 | echo "${ECHO_T}$ac_res" >&6; } |
| 19007 | else |
| 19008 | # Is the header compilable? |
| 19009 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19010 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19011 | cat >conftest.$ac_ext <<_ACEOF |
| 19012 | /* confdefs.h. */ |
| 19013 | _ACEOF |
| 19014 | cat confdefs.h >>conftest.$ac_ext |
| 19015 | cat >>conftest.$ac_ext <<_ACEOF |
| 19016 | /* end confdefs.h. */ |
| 19017 | $ac_includes_default |
| 19018 | #include <$ac_header> |
| 19019 | _ACEOF |
| 19020 | rm -f conftest.$ac_objext |
| 19021 | if { (ac_try="$ac_compile" |
| 19022 | case "(($ac_try" in |
| 19023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19024 | *) ac_try_echo=$ac_try;; |
| 19025 | esac |
| 19026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19027 | (eval "$ac_compile") 2>conftest.er1 |
| 19028 | ac_status=$? |
| 19029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19030 | rm -f conftest.er1 |
| 19031 | cat conftest.err >&5 |
| 19032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19033 | (exit $ac_status); } && |
| 19034 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19035 | { (case "(($ac_try" in |
| 19036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19037 | *) ac_try_echo=$ac_try;; |
| 19038 | esac |
| 19039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19040 | (eval "$ac_try") 2>&5 |
| 19041 | ac_status=$? |
| 19042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19043 | (exit $ac_status); }; } && |
| 19044 | { ac_try='test -s conftest.$ac_objext' |
| 19045 | { (case "(($ac_try" in |
| 19046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19047 | *) ac_try_echo=$ac_try;; |
| 19048 | esac |
| 19049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19050 | (eval "$ac_try") 2>&5 |
| 19051 | ac_status=$? |
| 19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19053 | (exit $ac_status); }; }; then |
| 19054 | ac_header_compiler=yes |
| 19055 | else |
| 19056 | echo "$as_me: failed program was:" >&5 |
| 19057 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19058 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19059 | ac_header_compiler=no |
| 19060 | fi |
| 19061 | |
| 19062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19063 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19064 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19065 | |
| 19066 | # Is the header present? |
| 19067 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19068 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19069 | cat >conftest.$ac_ext <<_ACEOF |
| 19070 | /* confdefs.h. */ |
| 19071 | _ACEOF |
| 19072 | cat confdefs.h >>conftest.$ac_ext |
| 19073 | cat >>conftest.$ac_ext <<_ACEOF |
| 19074 | /* end confdefs.h. */ |
| 19075 | #include <$ac_header> |
| 19076 | _ACEOF |
| 19077 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19078 | case "(($ac_try" in |
| 19079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19080 | *) ac_try_echo=$ac_try;; |
| 19081 | esac |
| 19082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19083 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19084 | ac_status=$? |
| 19085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19086 | rm -f conftest.er1 |
| 19087 | cat conftest.err >&5 |
| 19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19089 | (exit $ac_status); } >/dev/null; then |
| 19090 | if test -s conftest.err; then |
| 19091 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19093 | else |
| 19094 | ac_cpp_err= |
| 19095 | fi |
| 19096 | else |
| 19097 | ac_cpp_err=yes |
| 19098 | fi |
| 19099 | if test -z "$ac_cpp_err"; then |
| 19100 | ac_header_preproc=yes |
| 19101 | else |
| 19102 | echo "$as_me: failed program was:" >&5 |
| 19103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19104 | |
| 19105 | ac_header_preproc=no |
| 19106 | fi |
| 19107 | |
| 19108 | rm -f conftest.err conftest.$ac_ext |
| 19109 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19110 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19111 | |
| 19112 | # So? What about this header? |
| 19113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19114 | yes:no: ) |
| 19115 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19116 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19118 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19119 | ac_header_preproc=yes |
| 19120 | ;; |
| 19121 | no:yes:* ) |
| 19122 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19123 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19124 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19125 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19126 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19127 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19128 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19129 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19131 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19132 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19133 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19134 | ( cat <<\_ASBOX |
| 19135 | ## ----------------------------------- ## |
| 19136 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19137 | ## ----------------------------------- ## |
| 19138 | _ASBOX |
| 19139 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19140 | ;; |
| 19141 | esac |
| 19142 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19144 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19146 | else |
| 19147 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19148 | fi |
| 19149 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19150 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19151 | echo "${ECHO_T}$ac_res" >&6; } |
| 19152 | |
| 19153 | fi |
| 19154 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19155 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19156 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19157 | _ACEOF |
| 19158 | |
| 19159 | fi |
| 19160 | |
| 19161 | done |
| 19162 | |
| 19163 | |
| 19164 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19165 | do |
| 19166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19167 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19169 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19171 | else |
| 19172 | cat >conftest.$ac_ext <<_ACEOF |
| 19173 | /* confdefs.h. */ |
| 19174 | _ACEOF |
| 19175 | cat confdefs.h >>conftest.$ac_ext |
| 19176 | cat >>conftest.$ac_ext <<_ACEOF |
| 19177 | /* end confdefs.h. */ |
| 19178 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19179 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19180 | #define $ac_func innocuous_$ac_func |
| 19181 | |
| 19182 | /* System header to define __stub macros and hopefully few prototypes, |
| 19183 | which can conflict with char $ac_func (); below. |
| 19184 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19185 | <limits.h> exists even on freestanding compilers. */ |
| 19186 | |
| 19187 | #ifdef __STDC__ |
| 19188 | # include <limits.h> |
| 19189 | #else |
| 19190 | # include <assert.h> |
| 19191 | #endif |
| 19192 | |
| 19193 | #undef $ac_func |
| 19194 | |
| 19195 | /* Override any GCC internal prototype to avoid an error. |
| 19196 | Use char because int might match the return type of a GCC |
| 19197 | builtin and then its argument prototype would still apply. */ |
| 19198 | #ifdef __cplusplus |
| 19199 | extern "C" |
| 19200 | #endif |
| 19201 | char $ac_func (); |
| 19202 | /* The GNU C library defines this for functions which it implements |
| 19203 | to always fail with ENOSYS. Some functions are actually named |
| 19204 | something starting with __ and the normal name is an alias. */ |
| 19205 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19206 | choke me |
| 19207 | #endif |
| 19208 | |
| 19209 | int |
| 19210 | main () |
| 19211 | { |
| 19212 | return $ac_func (); |
| 19213 | ; |
| 19214 | return 0; |
| 19215 | } |
| 19216 | _ACEOF |
| 19217 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19218 | if { (ac_try="$ac_link" |
| 19219 | case "(($ac_try" in |
| 19220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19221 | *) ac_try_echo=$ac_try;; |
| 19222 | esac |
| 19223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19224 | (eval "$ac_link") 2>conftest.er1 |
| 19225 | ac_status=$? |
| 19226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19227 | rm -f conftest.er1 |
| 19228 | cat conftest.err >&5 |
| 19229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19230 | (exit $ac_status); } && |
| 19231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19232 | { (case "(($ac_try" in |
| 19233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19234 | *) ac_try_echo=$ac_try;; |
| 19235 | esac |
| 19236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19237 | (eval "$ac_try") 2>&5 |
| 19238 | ac_status=$? |
| 19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19240 | (exit $ac_status); }; } && |
| 19241 | { ac_try='test -s conftest$ac_exeext' |
| 19242 | { (case "(($ac_try" in |
| 19243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19244 | *) ac_try_echo=$ac_try;; |
| 19245 | esac |
| 19246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19247 | (eval "$ac_try") 2>&5 |
| 19248 | ac_status=$? |
| 19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19250 | (exit $ac_status); }; }; then |
| 19251 | eval "$as_ac_var=yes" |
| 19252 | else |
| 19253 | echo "$as_me: failed program was:" >&5 |
| 19254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19255 | |
| 19256 | eval "$as_ac_var=no" |
| 19257 | fi |
| 19258 | |
| 19259 | rm -f core conftest.err conftest.$ac_objext \ |
| 19260 | conftest$ac_exeext conftest.$ac_ext |
| 19261 | fi |
| 19262 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19263 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19264 | echo "${ECHO_T}$ac_res" >&6; } |
| 19265 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19266 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19267 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19268 | _ACEOF |
| 19269 | |
| 19270 | fi |
| 19271 | done |
| 19272 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19273 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19274 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19275 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19277 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19278 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19279 | ac_cv_func_mmap_fixed_mapped=no |
| 19280 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19281 | cat >conftest.$ac_ext <<_ACEOF |
| 19282 | /* confdefs.h. */ |
| 19283 | _ACEOF |
| 19284 | cat confdefs.h >>conftest.$ac_ext |
| 19285 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19286 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19287 | $ac_includes_default |
| 19288 | /* malloc might have been renamed as rpl_malloc. */ |
| 19289 | #undef malloc |
| 19290 | |
| 19291 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19292 | Here is a matrix of mmap possibilities: |
| 19293 | mmap private not fixed |
| 19294 | mmap private fixed at somewhere currently unmapped |
| 19295 | mmap private fixed at somewhere already mapped |
| 19296 | mmap shared not fixed |
| 19297 | mmap shared fixed at somewhere currently unmapped |
| 19298 | mmap shared fixed at somewhere already mapped |
| 19299 | For private mappings, we should verify that changes cannot be read() |
| 19300 | back from the file, nor mmap's back from the file at a different |
| 19301 | address. (There have been systems where private was not correctly |
| 19302 | implemented like the infamous i386 svr4.0, and systems where the |
| 19303 | VM page cache was not coherent with the file system buffer cache |
| 19304 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19305 | For shared mappings, we should conversely verify that changes get |
| 19306 | propagated back to all the places they're supposed to be. |
| 19307 | |
| 19308 | Grep wants private fixed already mapped. |
| 19309 | The main things grep needs to know about mmap are: |
| 19310 | * does it exist and is it safe to write into the mmap'd area |
| 19311 | * how to use it (BSD variants) */ |
| 19312 | |
| 19313 | #include <fcntl.h> |
| 19314 | #include <sys/mman.h> |
| 19315 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19316 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19317 | char *malloc (); |
| 19318 | #endif |
| 19319 | |
| 19320 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19321 | #if !HAVE_GETPAGESIZE |
| 19322 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19323 | # if !HAVE_SYS_PARAM_H |
| 19324 | # define HAVE_SYS_PARAM_H 1 |
| 19325 | # endif |
| 19326 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19327 | # ifdef _SC_PAGESIZE |
| 19328 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19329 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19330 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19331 | # include <sys/param.h> |
| 19332 | # ifdef EXEC_PAGESIZE |
| 19333 | # define getpagesize() EXEC_PAGESIZE |
| 19334 | # else /* no EXEC_PAGESIZE */ |
| 19335 | # ifdef NBPG |
| 19336 | # define getpagesize() NBPG * CLSIZE |
| 19337 | # ifndef CLSIZE |
| 19338 | # define CLSIZE 1 |
| 19339 | # endif /* no CLSIZE */ |
| 19340 | # else /* no NBPG */ |
| 19341 | # ifdef NBPC |
| 19342 | # define getpagesize() NBPC |
| 19343 | # else /* no NBPC */ |
| 19344 | # ifdef PAGESIZE |
| 19345 | # define getpagesize() PAGESIZE |
| 19346 | # endif /* PAGESIZE */ |
| 19347 | # endif /* no NBPC */ |
| 19348 | # endif /* no NBPG */ |
| 19349 | # endif /* no EXEC_PAGESIZE */ |
| 19350 | # else /* no HAVE_SYS_PARAM_H */ |
| 19351 | # define getpagesize() 8192 /* punt totally */ |
| 19352 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19353 | # endif /* no _SC_PAGESIZE */ |
| 19354 | |
| 19355 | #endif /* no HAVE_GETPAGESIZE */ |
| 19356 | |
| 19357 | int |
| 19358 | main () |
| 19359 | { |
| 19360 | char *data, *data2, *data3; |
| 19361 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19362 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19363 | |
| 19364 | pagesize = getpagesize (); |
| 19365 | |
| 19366 | /* First, make a file with some known garbage in it. */ |
| 19367 | data = (char *) malloc (pagesize); |
| 19368 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19369 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19370 | for (i = 0; i < pagesize; ++i) |
| 19371 | *(data + i) = rand (); |
| 19372 | umask (0); |
| 19373 | fd = creat ("conftest.mmap", 0600); |
| 19374 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19375 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19376 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19377 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19378 | close (fd); |
| 19379 | |
| 19380 | /* Next, try to mmap the file at a fixed address which already has |
| 19381 | something else allocated at it. If we can, also make sure that |
| 19382 | we see the same garbage. */ |
| 19383 | fd = open ("conftest.mmap", O_RDWR); |
| 19384 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19385 | return 1; |
| 19386 | data2 = (char *) malloc (2 * pagesize); |
| 19387 | if (!data2) |
| 19388 | return 1; |
| 19389 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19390 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19391 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19392 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19393 | for (i = 0; i < pagesize; ++i) |
| 19394 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19395 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19396 | |
| 19397 | /* Finally, make sure that changes to the mapped area do not |
| 19398 | percolate back to the file as seen by read(). (This is a bug on |
| 19399 | some variants of i386 svr4.0.) */ |
| 19400 | for (i = 0; i < pagesize; ++i) |
| 19401 | *(data2 + i) = *(data2 + i) + 1; |
| 19402 | data3 = (char *) malloc (pagesize); |
| 19403 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19404 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19405 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19406 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19407 | for (i = 0; i < pagesize; ++i) |
| 19408 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19409 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19410 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19411 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19412 | } |
| 19413 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19414 | rm -f conftest$ac_exeext |
| 19415 | if { (ac_try="$ac_link" |
| 19416 | case "(($ac_try" in |
| 19417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19418 | *) ac_try_echo=$ac_try;; |
| 19419 | esac |
| 19420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19421 | (eval "$ac_link") 2>&5 |
| 19422 | ac_status=$? |
| 19423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19424 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19425 | { (case "(($ac_try" in |
| 19426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19427 | *) ac_try_echo=$ac_try;; |
| 19428 | esac |
| 19429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19430 | (eval "$ac_try") 2>&5 |
| 19431 | ac_status=$? |
| 19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19433 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19434 | ac_cv_func_mmap_fixed_mapped=yes |
| 19435 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19436 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19437 | echo "$as_me: failed program was:" >&5 |
| 19438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19439 | |
| 19440 | ( exit $ac_status ) |
| 19441 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19442 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19443 | 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] | 19444 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19445 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19446 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19447 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19448 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19449 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19450 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19451 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19452 | cat >>confdefs.h <<\_ACEOF |
| 19453 | #define HAVE_MMAP 1 |
| 19454 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19455 | |
| 19456 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19457 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19458 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19459 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19460 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19461 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19463 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19464 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19465 | ac_cpp='$CPP $CPPFLAGS' |
| 19466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19469 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19470 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19471 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19472 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19473 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19474 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19475 | /* confdefs.h. */ |
| 19476 | _ACEOF |
| 19477 | cat confdefs.h >>conftest.$ac_ext |
| 19478 | cat >>conftest.$ac_ext <<_ACEOF |
| 19479 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19480 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19481 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19482 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19483 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19484 | |
| 19485 | int |
| 19486 | main () |
| 19487 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19488 | |
| 19489 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19490 | fd = creat ("foo",0777); |
| 19491 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19492 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19493 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19494 | ; |
| 19495 | return 0; |
| 19496 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19497 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19498 | rm -f conftest$ac_exeext |
| 19499 | if { (ac_try="$ac_link" |
| 19500 | case "(($ac_try" in |
| 19501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19502 | *) ac_try_echo=$ac_try;; |
| 19503 | esac |
| 19504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19505 | (eval "$ac_link") 2>&5 |
| 19506 | ac_status=$? |
| 19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19509 | { (case "(($ac_try" in |
| 19510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19511 | *) ac_try_echo=$ac_try;; |
| 19512 | esac |
| 19513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19514 | (eval "$ac_try") 2>&5 |
| 19515 | ac_status=$? |
| 19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19517 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19518 | ac_cv_func_mmap_file=yes |
| 19519 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19520 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19521 | echo "$as_me: failed program was:" >&5 |
| 19522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19523 | |
| 19524 | ( exit $ac_status ) |
| 19525 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19526 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19527 | 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] | 19528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19529 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19530 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19531 | ac_ext=c |
| 19532 | ac_cpp='$CPP $CPPFLAGS' |
| 19533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19536 | |
| 19537 | |
| 19538 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19539 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19540 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19541 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19542 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19543 | cat >>confdefs.h <<\_ACEOF |
| 19544 | #define HAVE_MMAP_FILE |
| 19545 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19546 | |
| 19547 | MMAP_FILE=yes |
| 19548 | |
| 19549 | fi |
| 19550 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19551 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19552 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19553 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19555 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19556 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19557 | ac_cv_need_dev_zero_for_mmap=yes |
| 19558 | else |
| 19559 | ac_cv_need_dev_zero_for_mmap=no |
| 19560 | fi |
| 19561 | |
| 19562 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19563 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19564 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19565 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19566 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19567 | cat >>confdefs.h <<\_ACEOF |
| 19568 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19569 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19570 | |
| 19571 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19572 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19573 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19574 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19575 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19576 | 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] | 19577 | fi |
| 19578 | if test "$ac_cv_func_mmap_file" = "no" |
| 19579 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19580 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19581 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19582 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19583 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19584 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19585 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19586 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 19587 | cat >conftest.$ac_ext <<_ACEOF |
| 19588 | /* confdefs.h. */ |
| 19589 | _ACEOF |
| 19590 | cat confdefs.h >>conftest.$ac_ext |
| 19591 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19592 | /* end confdefs.h. */ |
| 19593 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19594 | volatile unsigned long val = 1; |
| 19595 | __sync_synchronize(); |
| 19596 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 19597 | __sync_add_and_fetch(&val, 1); |
| 19598 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19599 | return 0; |
| 19600 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19601 | |
| 19602 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19604 | if { (ac_try="$ac_link" |
| 19605 | case "(($ac_try" in |
| 19606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19607 | *) ac_try_echo=$ac_try;; |
| 19608 | esac |
| 19609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19610 | (eval "$ac_link") 2>conftest.er1 |
| 19611 | ac_status=$? |
| 19612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19613 | rm -f conftest.er1 |
| 19614 | cat conftest.err >&5 |
| 19615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19616 | (exit $ac_status); } && |
| 19617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19618 | { (case "(($ac_try" in |
| 19619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19620 | *) ac_try_echo=$ac_try;; |
| 19621 | esac |
| 19622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19623 | (eval "$ac_try") 2>&5 |
| 19624 | ac_status=$? |
| 19625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19626 | (exit $ac_status); }; } && |
| 19627 | { ac_try='test -s conftest$ac_exeext' |
| 19628 | { (case "(($ac_try" in |
| 19629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19630 | *) ac_try_echo=$ac_try;; |
| 19631 | esac |
| 19632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19633 | (eval "$ac_try") 2>&5 |
| 19634 | ac_status=$? |
| 19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19636 | (exit $ac_status); }; }; then |
| 19637 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19638 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19640 | cat >>confdefs.h <<\_ACEOF |
| 19641 | #define LLVM_MULTITHREADED 1 |
| 19642 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19643 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19644 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19645 | echo "$as_me: failed program was:" >&5 |
| 19646 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19647 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19648 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19649 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19650 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19651 | cat >>confdefs.h <<\_ACEOF |
| 19652 | #define LLVM_MULTITHREADED 0 |
| 19653 | _ACEOF |
| 19654 | |
| 19655 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 19656 | 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] | 19657 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19658 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19659 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19660 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19661 | |
| 19662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19663 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19664 | 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] | 19665 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 19666 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 19667 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 19668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19669 | else |
| 19670 | ac_ext=c |
| 19671 | ac_cpp='$CPP $CPPFLAGS' |
| 19672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19675 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19676 | cat >conftest.$ac_ext <<_ACEOF |
| 19677 | /* confdefs.h. */ |
| 19678 | _ACEOF |
| 19679 | cat confdefs.h >>conftest.$ac_ext |
| 19680 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19681 | /* end confdefs.h. */ |
| 19682 | #ifndef __x86_64__ |
| 19683 | error: Not x86-64 even if uname says so! |
| 19684 | #endif |
| 19685 | |
| 19686 | int |
| 19687 | main () |
| 19688 | { |
| 19689 | |
| 19690 | ; |
| 19691 | return 0; |
| 19692 | } |
| 19693 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19694 | rm -f conftest.$ac_objext |
| 19695 | if { (ac_try="$ac_compile" |
| 19696 | case "(($ac_try" in |
| 19697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19698 | *) ac_try_echo=$ac_try;; |
| 19699 | esac |
| 19700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19701 | (eval "$ac_compile") 2>conftest.er1 |
| 19702 | ac_status=$? |
| 19703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19704 | rm -f conftest.er1 |
| 19705 | cat conftest.err >&5 |
| 19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19707 | (exit $ac_status); } && |
| 19708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19709 | { (case "(($ac_try" in |
| 19710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19711 | *) ac_try_echo=$ac_try;; |
| 19712 | esac |
| 19713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19714 | (eval "$ac_try") 2>&5 |
| 19715 | ac_status=$? |
| 19716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19717 | (exit $ac_status); }; } && |
| 19718 | { ac_try='test -s conftest.$ac_objext' |
| 19719 | { (case "(($ac_try" in |
| 19720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19721 | *) ac_try_echo=$ac_try;; |
| 19722 | esac |
| 19723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19724 | (eval "$ac_try") 2>&5 |
| 19725 | ac_status=$? |
| 19726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19727 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19728 | llvm_cv_linux_mixed=no |
| 19729 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19730 | echo "$as_me: failed program was:" >&5 |
| 19731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19732 | |
| 19733 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19734 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19735 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19737 | ac_ext=c |
| 19738 | ac_cpp='$CPP $CPPFLAGS' |
| 19739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19742 | |
| 19743 | |
| 19744 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19745 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 19746 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19747 | |
| 19748 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 19749 | llvm_cv_target_arch="x86" |
| 19750 | ARCH="x86" |
| 19751 | fi |
| 19752 | fi |
| 19753 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19754 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19755 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19756 | do |
| 19757 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19758 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19759 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19760 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19762 | else |
| 19763 | cat >conftest.$ac_ext <<_ACEOF |
| 19764 | /* confdefs.h. */ |
| 19765 | _ACEOF |
| 19766 | cat confdefs.h >>conftest.$ac_ext |
| 19767 | cat >>conftest.$ac_ext <<_ACEOF |
| 19768 | /* end confdefs.h. */ |
| 19769 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19770 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19771 | #define $ac_func innocuous_$ac_func |
| 19772 | |
| 19773 | /* System header to define __stub macros and hopefully few prototypes, |
| 19774 | which can conflict with char $ac_func (); below. |
| 19775 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19776 | <limits.h> exists even on freestanding compilers. */ |
| 19777 | |
| 19778 | #ifdef __STDC__ |
| 19779 | # include <limits.h> |
| 19780 | #else |
| 19781 | # include <assert.h> |
| 19782 | #endif |
| 19783 | |
| 19784 | #undef $ac_func |
| 19785 | |
| 19786 | /* Override any GCC internal prototype to avoid an error. |
| 19787 | Use char because int might match the return type of a GCC |
| 19788 | builtin and then its argument prototype would still apply. */ |
| 19789 | #ifdef __cplusplus |
| 19790 | extern "C" |
| 19791 | #endif |
| 19792 | char $ac_func (); |
| 19793 | /* The GNU C library defines this for functions which it implements |
| 19794 | to always fail with ENOSYS. Some functions are actually named |
| 19795 | something starting with __ and the normal name is an alias. */ |
| 19796 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19797 | choke me |
| 19798 | #endif |
| 19799 | |
| 19800 | int |
| 19801 | main () |
| 19802 | { |
| 19803 | return $ac_func (); |
| 19804 | ; |
| 19805 | return 0; |
| 19806 | } |
| 19807 | _ACEOF |
| 19808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19809 | if { (ac_try="$ac_link" |
| 19810 | case "(($ac_try" in |
| 19811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19812 | *) ac_try_echo=$ac_try;; |
| 19813 | esac |
| 19814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19815 | (eval "$ac_link") 2>conftest.er1 |
| 19816 | ac_status=$? |
| 19817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19818 | rm -f conftest.er1 |
| 19819 | cat conftest.err >&5 |
| 19820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19821 | (exit $ac_status); } && |
| 19822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19823 | { (case "(($ac_try" in |
| 19824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19825 | *) ac_try_echo=$ac_try;; |
| 19826 | esac |
| 19827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19828 | (eval "$ac_try") 2>&5 |
| 19829 | ac_status=$? |
| 19830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19831 | (exit $ac_status); }; } && |
| 19832 | { ac_try='test -s conftest$ac_exeext' |
| 19833 | { (case "(($ac_try" in |
| 19834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19835 | *) ac_try_echo=$ac_try;; |
| 19836 | esac |
| 19837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19838 | (eval "$ac_try") 2>&5 |
| 19839 | ac_status=$? |
| 19840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19841 | (exit $ac_status); }; }; then |
| 19842 | eval "$as_ac_var=yes" |
| 19843 | else |
| 19844 | echo "$as_me: failed program was:" >&5 |
| 19845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19846 | |
| 19847 | eval "$as_ac_var=no" |
| 19848 | fi |
| 19849 | |
| 19850 | rm -f core conftest.err conftest.$ac_objext \ |
| 19851 | conftest$ac_exeext conftest.$ac_ext |
| 19852 | fi |
| 19853 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19854 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19855 | echo "${ECHO_T}$ac_res" >&6; } |
| 19856 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19857 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19858 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19859 | _ACEOF |
| 19860 | |
| 19861 | fi |
| 19862 | done |
| 19863 | |
| 19864 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19865 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 19866 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 19867 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 19868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19869 | else |
| 19870 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19871 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19872 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 19873 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 19874 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19875 | if test $? -eq 0 ; then |
| 19876 | llvm_cv_llvmgcc_sanity="yes" |
| 19877 | fi |
| 19878 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19879 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19880 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19881 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 19882 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19883 | |
| 19884 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19885 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 19886 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19887 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19888 | LLVMCC1=$llvmcc1path |
| 19889 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19890 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19891 | LLVMCC1PLUS=$llvmcc1pluspath |
| 19892 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19893 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 19894 | LLVMGCCDIR=$llvmgccdir |
| 19895 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 19896 | 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] | 19897 | LLVMGCC_LANGS=$llvmgcclangs |
| 19898 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19899 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 19900 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19901 | fi |
| 19902 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 19903 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 19904 | |
| 19905 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 19906 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 19907 | |
| 19908 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19909 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19910 | # information into substitutions that will end up in Makefile.config.in |
| 19911 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 19912 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 19913 | prefix="/usr/local" |
| 19914 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19915 | eval LLVM_PREFIX="${prefix}"; |
| 19916 | eval LLVM_BINDIR="${prefix}/bin"; |
| 19917 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19918 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 19919 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19920 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19921 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 19922 | eval LLVM_INFODIR="${prefix}/info"; |
| 19923 | eval LLVM_MANDIR="${prefix}/man"; |
| 19924 | LLVM_CONFIGTIME=`date` |
| 19925 | |
| 19926 | |
| 19927 | |
| 19928 | |
| 19929 | |
| 19930 | |
| 19931 | |
| 19932 | |
| 19933 | |
| 19934 | |
| 19935 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19936 | # Place the various directores into the config.h file as #defines so that we |
| 19937 | # can know about the installation paths within LLVM. |
| 19938 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19939 | cat >>confdefs.h <<_ACEOF |
| 19940 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 19941 | _ACEOF |
| 19942 | |
| 19943 | |
| 19944 | cat >>confdefs.h <<_ACEOF |
| 19945 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 19946 | _ACEOF |
| 19947 | |
| 19948 | |
| 19949 | cat >>confdefs.h <<_ACEOF |
| 19950 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 19951 | _ACEOF |
| 19952 | |
| 19953 | |
| 19954 | cat >>confdefs.h <<_ACEOF |
| 19955 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 19956 | _ACEOF |
| 19957 | |
| 19958 | |
| 19959 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 19960 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19961 | _ACEOF |
| 19962 | |
| 19963 | |
| 19964 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 19965 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19966 | _ACEOF |
| 19967 | |
| 19968 | |
| 19969 | cat >>confdefs.h <<_ACEOF |
| 19970 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 19971 | _ACEOF |
| 19972 | |
| 19973 | |
| 19974 | cat >>confdefs.h <<_ACEOF |
| 19975 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 19976 | _ACEOF |
| 19977 | |
| 19978 | |
| 19979 | cat >>confdefs.h <<_ACEOF |
| 19980 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 19981 | _ACEOF |
| 19982 | |
| 19983 | |
| 19984 | cat >>confdefs.h <<_ACEOF |
| 19985 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 19986 | _ACEOF |
| 19987 | |
| 19988 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 19989 | cat >>confdefs.h <<_ACEOF |
| 19990 | #define LLVM_HOSTTRIPLE "$host" |
| 19991 | _ACEOF |
| 19992 | |
| 19993 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 19994 | # Determine which bindings to build. |
| 19995 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 19996 | BINDINGS_TO_BUILD="" |
| 19997 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 19998 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 19999 | fi |
| 20000 | fi |
| 20001 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20002 | |
| 20003 | |
| 20004 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20005 | # other files. |
| 20006 | ALL_BINDINGS=ocaml |
| 20007 | |
| 20008 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20009 | # Do any work necessary to ensure that bindings have what they need. |
| 20010 | binding_prereqs_failed=0 |
| 20011 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20012 | case "$a_binding" in |
| 20013 | ocaml) |
| 20014 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20015 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20016 | 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] | 20017 | binding_prereqs_failed=1 |
| 20018 | fi |
| 20019 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20020 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20021 | 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] | 20022 | binding_prereqs_failed=1 |
| 20023 | fi |
| 20024 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20025 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20026 | 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] | 20027 | fi |
| 20028 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20029 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20030 | |
| 20031 | else |
| 20032 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20033 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20034 | then |
| 20035 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20036 | OCAML_LIBDIR=$ocaml_stdlib |
| 20037 | |
| 20038 | else |
| 20039 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20040 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20041 | |
| 20042 | fi |
| 20043 | fi |
| 20044 | ;; |
| 20045 | esac |
| 20046 | done |
| 20047 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20048 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20049 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20050 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20051 | fi |
| 20052 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20053 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20054 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20055 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20057 | else |
| 20058 | ac_ext=cpp |
| 20059 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20060 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20061 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20062 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20063 | |
| 20064 | oldcxxflags="$CXXFLAGS" |
| 20065 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20066 | cat >conftest.$ac_ext <<_ACEOF |
| 20067 | /* confdefs.h. */ |
| 20068 | _ACEOF |
| 20069 | cat confdefs.h >>conftest.$ac_ext |
| 20070 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20071 | /* end confdefs.h. */ |
| 20072 | |
| 20073 | int |
| 20074 | main () |
| 20075 | { |
| 20076 | |
| 20077 | ; |
| 20078 | return 0; |
| 20079 | } |
| 20080 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20081 | rm -f conftest.$ac_objext |
| 20082 | if { (ac_try="$ac_compile" |
| 20083 | case "(($ac_try" in |
| 20084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20085 | *) ac_try_echo=$ac_try;; |
| 20086 | esac |
| 20087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20088 | (eval "$ac_compile") 2>conftest.er1 |
| 20089 | ac_status=$? |
| 20090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20091 | rm -f conftest.er1 |
| 20092 | cat conftest.err >&5 |
| 20093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20094 | (exit $ac_status); } && |
| 20095 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20096 | { (case "(($ac_try" in |
| 20097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20098 | *) ac_try_echo=$ac_try;; |
| 20099 | esac |
| 20100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20101 | (eval "$ac_try") 2>&5 |
| 20102 | ac_status=$? |
| 20103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20104 | (exit $ac_status); }; } && |
| 20105 | { ac_try='test -s conftest.$ac_objext' |
| 20106 | { (case "(($ac_try" in |
| 20107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20108 | *) ac_try_echo=$ac_try;; |
| 20109 | esac |
| 20110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20111 | (eval "$ac_try") 2>&5 |
| 20112 | ac_status=$? |
| 20113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20114 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20115 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20116 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20117 | echo "$as_me: failed program was:" >&5 |
| 20118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20119 | |
| 20120 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20121 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20122 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20124 | CXXFLAGS="$oldcxxflags" |
| 20125 | ac_ext=c |
| 20126 | ac_cpp='$CPP $CPPFLAGS' |
| 20127 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20128 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20129 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20130 | |
| 20131 | |
| 20132 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20133 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20134 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20135 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20136 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20137 | |
| 20138 | else |
| 20139 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20140 | |
| 20141 | fi |
| 20142 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20143 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 20144 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20145 | RPATH="-Wl,-R" |
| 20146 | else |
| 20147 | RPATH="-Wl,-rpath" |
| 20148 | fi |
| 20149 | |
| 20150 | |
| 20151 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20152 | RDYNAMIC="-Wl,-export-dynamic" |
| 20153 | else |
| 20154 | RDYNAMIC="" |
| 20155 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 20156 | |
| 20157 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20159 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20160 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20161 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 20162 | |
| 20163 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 20164 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20165 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 20166 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20167 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 20168 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20169 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20170 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20171 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20172 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20173 | |
| 20174 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20175 | ac_config_files="$ac_config_files llvm.spec" |
| 20176 | |
| 20177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20178 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20179 | |
| 20180 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20181 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 20182 | |
| 20183 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20184 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 20185 | |
| 20186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20187 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20189 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20190 | |
| 20191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20192 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20193 | |
| 20194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20195 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20196 | |
| 20197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20198 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20199 | |
| 20200 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20201 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 20202 | |
| 20203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20204 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20205 | |
| 20206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20207 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20208 | |
| 20209 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20210 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 20211 | |
| 20212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20213 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20214 | |
| 20215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20216 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20217 | |
| 20218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20219 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20220 | |
| 20221 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20222 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20223 | |
| 20224 | |
| 20225 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20226 | |
| 20227 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20228 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20229 | cat >confcache <<\_ACEOF |
| 20230 | # This file is a shell script that caches the results of configure |
| 20231 | # tests run on this system so they can be shared between configure |
| 20232 | # scripts and configure runs, see configure's option --config-cache. |
| 20233 | # It is not useful on other systems. If it contains results you don't |
| 20234 | # want to keep, you may remove or edit it. |
| 20235 | # |
| 20236 | # config.status only pays attention to the cache file if you give it |
| 20237 | # the --recheck option to rerun configure. |
| 20238 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20239 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20240 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20241 | # following values. |
| 20242 | |
| 20243 | _ACEOF |
| 20244 | |
| 20245 | # The following way of writing the cache mishandles newlines in values, |
| 20246 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20247 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20248 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20249 | # 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] | 20250 | ( |
| 20251 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20252 | eval ac_val=\$$ac_var |
| 20253 | case $ac_val in #( |
| 20254 | *${as_nl}*) |
| 20255 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20256 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20257 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20258 | esac |
| 20259 | case $ac_var in #( |
| 20260 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20261 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20262 | esac ;; |
| 20263 | esac |
| 20264 | done |
| 20265 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20266 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20267 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20268 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20269 | # `set' does not quote correctly, so add quotes (double-quote |
| 20270 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20271 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20272 | "s/'/'\\\\''/g; |
| 20273 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20274 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20275 | *) |
| 20276 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20277 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20278 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20279 | esac | |
| 20280 | sort |
| 20281 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20282 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20283 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20284 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20285 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20286 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20287 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20288 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20289 | :end' >>confcache |
| 20290 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20291 | if test -w "$cache_file"; then |
| 20292 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20293 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20294 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20295 | cat confcache >$cache_file |
| 20296 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20297 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20298 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20299 | fi |
| 20300 | fi |
| 20301 | rm -f confcache |
| 20302 | |
| 20303 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20304 | # Let make expand exec_prefix. |
| 20305 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20306 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20307 | DEFS=-DHAVE_CONFIG_H |
| 20308 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20309 | ac_libobjs= |
| 20310 | ac_ltlibobjs= |
| 20311 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20312 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20313 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20314 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20315 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20316 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20317 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20318 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20319 | done |
| 20320 | LIBOBJS=$ac_libobjs |
| 20321 | |
| 20322 | LTLIBOBJS=$ac_ltlibobjs |
| 20323 | |
| 20324 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20325 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20326 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20327 | Usually this means the macro was only invoked conditionally." >&5 |
| 20328 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20329 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20330 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20331 | fi |
| 20332 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20333 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20334 | Usually this means the macro was only invoked conditionally." >&5 |
| 20335 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20336 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20337 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20338 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20339 | |
| 20340 | : ${CONFIG_STATUS=./config.status} |
| 20341 | ac_clean_files_save=$ac_clean_files |
| 20342 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20343 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20344 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20345 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20346 | #! $SHELL |
| 20347 | # Generated by $as_me. |
| 20348 | # Run this file to recreate the current configuration. |
| 20349 | # Compiler output produced by configure, useful for debugging |
| 20350 | # configure, is in config.log if it exists. |
| 20351 | |
| 20352 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20353 | ac_cs_recheck=false |
| 20354 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20355 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20356 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20357 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20358 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20359 | ## --------------------- ## |
| 20360 | ## M4sh Initialization. ## |
| 20361 | ## --------------------- ## |
| 20362 | |
| 20363 | # Be Bourne compatible |
| 20364 | 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] | 20365 | emulate sh |
| 20366 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20367 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20368 | # is contrary to our usage. Disable this feature. |
| 20369 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20370 | setopt NO_GLOB_SUBST |
| 20371 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20372 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20373 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20374 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20375 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20376 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20377 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20378 | # PATH needs CR |
| 20379 | # Avoid depending upon Character Ranges. |
| 20380 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20381 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20382 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20383 | as_cr_digits='0123456789' |
| 20384 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20385 | |
| 20386 | # The user is always right. |
| 20387 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20388 | echo "#! /bin/sh" >conf$$.sh |
| 20389 | echo "exit 0" >>conf$$.sh |
| 20390 | chmod +x conf$$.sh |
| 20391 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20392 | PATH_SEPARATOR=';' |
| 20393 | else |
| 20394 | PATH_SEPARATOR=: |
| 20395 | fi |
| 20396 | rm -f conf$$.sh |
| 20397 | fi |
| 20398 | |
| 20399 | # Support unset when possible. |
| 20400 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20401 | as_unset=unset |
| 20402 | else |
| 20403 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20404 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20406 | |
| 20407 | # IFS |
| 20408 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20409 | # there to prevent editors from complaining about space-tab. |
| 20410 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20411 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20412 | as_nl=' |
| 20413 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20414 | IFS=" "" $as_nl" |
| 20415 | |
| 20416 | # 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] | 20417 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20418 | *[\\/]* ) as_myself=$0 ;; |
| 20419 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20420 | for as_dir in $PATH |
| 20421 | do |
| 20422 | IFS=$as_save_IFS |
| 20423 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20424 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20425 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20426 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20428 | ;; |
| 20429 | esac |
| 20430 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20431 | # in which case we are not to be found in the path. |
| 20432 | if test "x$as_myself" = x; then |
| 20433 | as_myself=$0 |
| 20434 | fi |
| 20435 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20436 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20437 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20438 | fi |
| 20439 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20440 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20441 | for as_var in ENV MAIL MAILPATH |
| 20442 | 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] | 20443 | done |
| 20444 | PS1='$ ' |
| 20445 | PS2='> ' |
| 20446 | PS4='+ ' |
| 20447 | |
| 20448 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20449 | for as_var in \ |
| 20450 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20451 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20452 | LC_TELEPHONE LC_TIME |
| 20453 | do |
| 20454 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20455 | eval $as_var=C; export $as_var |
| 20456 | else |
| 20457 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20458 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20459 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20460 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20461 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20462 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20463 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20464 | as_expr=expr |
| 20465 | else |
| 20466 | as_expr=false |
| 20467 | fi |
| 20468 | |
| 20469 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20470 | as_basename=basename |
| 20471 | else |
| 20472 | as_basename=false |
| 20473 | fi |
| 20474 | |
| 20475 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20476 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20477 | as_me=`$as_basename -- "$0" || |
| 20478 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20479 | X"$0" : 'X\(//\)$' \| \ |
| 20480 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20481 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20482 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20483 | s//\1/ |
| 20484 | q |
| 20485 | } |
| 20486 | /^X\/\(\/\/\)$/{ |
| 20487 | s//\1/ |
| 20488 | q |
| 20489 | } |
| 20490 | /^X\/\(\/\).*/{ |
| 20491 | s//\1/ |
| 20492 | q |
| 20493 | } |
| 20494 | s/.*/./; q'` |
| 20495 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20496 | # CDPATH. |
| 20497 | $as_unset CDPATH |
| 20498 | |
| 20499 | |
| 20500 | |
| 20501 | as_lineno_1=$LINENO |
| 20502 | as_lineno_2=$LINENO |
| 20503 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20504 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20505 | |
| 20506 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20507 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20508 | # line-number line after each line using $LINENO; the second 'sed' |
| 20509 | # does the real work. The second script uses 'N' to pair each |
| 20510 | # line-number line with the line containing $LINENO, and appends |
| 20511 | # trailing '-' during substitution so that $LINENO is not a special |
| 20512 | # case at line end. |
| 20513 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20514 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20515 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20516 | sed -n ' |
| 20517 | p |
| 20518 | /[$]LINENO/= |
| 20519 | ' <$as_myself | |
| 20520 | sed ' |
| 20521 | s/[$]LINENO.*/&-/ |
| 20522 | t lineno |
| 20523 | b |
| 20524 | :lineno |
| 20525 | N |
| 20526 | :loop |
| 20527 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20528 | t loop |
| 20529 | s/-\n.*// |
| 20530 | ' >$as_me.lineno && |
| 20531 | chmod +x "$as_me.lineno" || |
| 20532 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20533 | { (exit 1); exit 1; }; } |
| 20534 | |
| 20535 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20536 | # (the dirname of $[0] is not the place where we might find the |
| 20537 | # original and so on. Autoconf is especially sensitive to this). |
| 20538 | . "./$as_me.lineno" |
| 20539 | # Exit status is that of the last command. |
| 20540 | exit |
| 20541 | } |
| 20542 | |
| 20543 | |
| 20544 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20545 | as_dirname=dirname |
| 20546 | else |
| 20547 | as_dirname=false |
| 20548 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20549 | |
| 20550 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20551 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20552 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20553 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20554 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20555 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20556 | esac;; |
| 20557 | *) |
| 20558 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20559 | esac |
| 20560 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20561 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20562 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20563 | as_expr=expr |
| 20564 | else |
| 20565 | as_expr=false |
| 20566 | fi |
| 20567 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20568 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20569 | if test -d conf$$.dir; then |
| 20570 | rm -f conf$$.dir/conf$$.file |
| 20571 | else |
| 20572 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20573 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20574 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20575 | echo >conf$$.file |
| 20576 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20577 | as_ln_s='ln -s' |
| 20578 | # ... but there are two gotchas: |
| 20579 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20580 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20581 | # In both cases, we have to default to `cp -p'. |
| 20582 | 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] | 20583 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20584 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20585 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20586 | else |
| 20587 | as_ln_s='cp -p' |
| 20588 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20589 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20590 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20591 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20592 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20593 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20594 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20595 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20596 | as_mkdir_p=false |
| 20597 | fi |
| 20598 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20599 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20600 | # systems may use methods other than mode bits to determine executability. |
| 20601 | cat >conf$$.file <<_ASEOF |
| 20602 | #! /bin/sh |
| 20603 | exit 0 |
| 20604 | _ASEOF |
| 20605 | chmod +x conf$$.file |
| 20606 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20607 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20608 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20609 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20610 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20611 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20612 | |
| 20613 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20614 | 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] | 20615 | |
| 20616 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20617 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20618 | |
| 20619 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20620 | exec 6>&1 |
| 20621 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20622 | # 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] | 20623 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20624 | # values after options handling. |
| 20625 | ac_log=" |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 20626 | This file was extended by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20627 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20628 | |
| 20629 | CONFIG_FILES = $CONFIG_FILES |
| 20630 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20631 | CONFIG_LINKS = $CONFIG_LINKS |
| 20632 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20633 | $ $0 $@ |
| 20634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20635 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20636 | " |
| 20637 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20638 | _ACEOF |
| 20639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20640 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20641 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20642 | config_files="$ac_config_files" |
| 20643 | config_headers="$ac_config_headers" |
| 20644 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20646 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20647 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20648 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20649 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20650 | \`$as_me' instantiates files from templates according to the |
| 20651 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20653 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20654 | |
| 20655 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20656 | -V, --version print version number, then exit |
| 20657 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20658 | -d, --debug don't remove temporary files |
| 20659 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20660 | --file=FILE[:TEMPLATE] |
| 20661 | instantiate the configuration file FILE |
| 20662 | --header=FILE[:TEMPLATE] |
| 20663 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20664 | |
| 20665 | Configuration files: |
| 20666 | $config_files |
| 20667 | |
| 20668 | Configuration headers: |
| 20669 | $config_headers |
| 20670 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20671 | Configuration commands: |
| 20672 | $config_commands |
| 20673 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20674 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20675 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20676 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20677 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20678 | ac_cs_version="\\ |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 20679 | llvm config.status 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20680 | configured by $0, generated by GNU Autoconf 2.60, |
| 20681 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20682 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20683 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20684 | This config.status script is free software; the Free Software Foundation |
| 20685 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20686 | |
| 20687 | ac_pwd='$ac_pwd' |
| 20688 | srcdir='$srcdir' |
| 20689 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20690 | _ACEOF |
| 20691 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20692 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20693 | # If no file are specified by the user, then we need to provide default |
| 20694 | # 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] | 20695 | ac_need_defaults=: |
| 20696 | while test $# != 0 |
| 20697 | do |
| 20698 | case $1 in |
| 20699 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20700 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20701 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20702 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20703 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20704 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20705 | ac_option=$1 |
| 20706 | ac_optarg=$2 |
| 20707 | ac_shift=shift |
| 20708 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20709 | esac |
| 20710 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20711 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20712 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20713 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20714 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20715 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20716 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20717 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20718 | debug=: ;; |
| 20719 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20720 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20721 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20722 | ac_need_defaults=false;; |
| 20723 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20724 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20725 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20726 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20727 | --he | --h) |
| 20728 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20729 | { echo "$as_me: error: ambiguous option: $1 |
| 20730 | Try \`$0 --help' for more information." >&2 |
| 20731 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20732 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20733 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20734 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20735 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20736 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20737 | |
| 20738 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20739 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20740 | Try \`$0 --help' for more information." >&2 |
| 20741 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20742 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20743 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20744 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20745 | |
| 20746 | esac |
| 20747 | shift |
| 20748 | done |
| 20749 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20750 | ac_configure_extra_args= |
| 20751 | |
| 20752 | if $ac_cs_silent; then |
| 20753 | exec 6>/dev/null |
| 20754 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20755 | fi |
| 20756 | |
| 20757 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20758 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20759 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20760 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20761 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20762 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20763 | 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] | 20764 | fi |
| 20765 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20766 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20767 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20768 | exec 5>>config.log |
| 20769 | { |
| 20770 | echo |
| 20771 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20772 | ## Running $as_me. ## |
| 20773 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20774 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20775 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20777 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20778 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20779 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20780 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20781 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20782 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20783 | |
| 20784 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20785 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20786 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20787 | |
| 20788 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20789 | for ac_config_target in $ac_config_targets |
| 20790 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20791 | case $ac_config_target in |
| 20792 | "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] | 20793 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 20794 | "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] | 20795 | "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] | 20796 | "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] | 20797 | "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] | 20798 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20799 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20800 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20801 | "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] | 20802 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 20803 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 20804 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 20805 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 20806 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 20807 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20808 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20809 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 20810 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20811 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20812 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 20813 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 20814 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20815 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 20816 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20817 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20818 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20819 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20820 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20821 | esac |
| 20822 | done |
| 20823 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20824 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20825 | # If the user did not use the arguments to specify the items to instantiate, |
| 20826 | # then the envvar interface is used. Set only those that are not. |
| 20827 | # We use the long form for the default assignment because of an extremely |
| 20828 | # bizarre bug on SunOS 4.1.3. |
| 20829 | if $ac_need_defaults; then |
| 20830 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20831 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20832 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20833 | fi |
| 20834 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20835 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20836 | # 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] | 20837 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20838 | # Hook for its removal unless debugging. |
| 20839 | # Note that there is a small window in which the directory will not be cleaned: |
| 20840 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20841 | $debug || |
| 20842 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20843 | tmp= |
| 20844 | trap 'exit_status=$? |
| 20845 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20846 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20847 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20848 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20849 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20850 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20851 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20852 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20853 | test -n "$tmp" && test -d "$tmp" |
| 20854 | } || |
| 20855 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20856 | tmp=./conf$$-$RANDOM |
| 20857 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20858 | } || |
| 20859 | { |
| 20860 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20861 | { (exit 1); exit 1; } |
| 20862 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20863 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20864 | # |
| 20865 | # Set up the sed scripts for CONFIG_FILES section. |
| 20866 | # |
| 20867 | |
| 20868 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20869 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20870 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20871 | |
| 20872 | _ACEOF |
| 20873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20874 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20876 | ac_delim='%!_!# ' |
| 20877 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20878 | cat >conf$$subs.sed <<_ACEOF |
| 20879 | SHELL!$SHELL$ac_delim |
| 20880 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20881 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20882 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20883 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20884 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20885 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20886 | exec_prefix!$exec_prefix$ac_delim |
| 20887 | prefix!$prefix$ac_delim |
| 20888 | program_transform_name!$program_transform_name$ac_delim |
| 20889 | bindir!$bindir$ac_delim |
| 20890 | sbindir!$sbindir$ac_delim |
| 20891 | libexecdir!$libexecdir$ac_delim |
| 20892 | datarootdir!$datarootdir$ac_delim |
| 20893 | datadir!$datadir$ac_delim |
| 20894 | sysconfdir!$sysconfdir$ac_delim |
| 20895 | sharedstatedir!$sharedstatedir$ac_delim |
| 20896 | localstatedir!$localstatedir$ac_delim |
| 20897 | includedir!$includedir$ac_delim |
| 20898 | oldincludedir!$oldincludedir$ac_delim |
| 20899 | docdir!$docdir$ac_delim |
| 20900 | infodir!$infodir$ac_delim |
| 20901 | htmldir!$htmldir$ac_delim |
| 20902 | dvidir!$dvidir$ac_delim |
| 20903 | pdfdir!$pdfdir$ac_delim |
| 20904 | psdir!$psdir$ac_delim |
| 20905 | libdir!$libdir$ac_delim |
| 20906 | localedir!$localedir$ac_delim |
| 20907 | mandir!$mandir$ac_delim |
| 20908 | DEFS!$DEFS$ac_delim |
| 20909 | ECHO_C!$ECHO_C$ac_delim |
| 20910 | ECHO_N!$ECHO_N$ac_delim |
| 20911 | ECHO_T!$ECHO_T$ac_delim |
| 20912 | LIBS!$LIBS$ac_delim |
| 20913 | build_alias!$build_alias$ac_delim |
| 20914 | host_alias!$host_alias$ac_delim |
| 20915 | target_alias!$target_alias$ac_delim |
| 20916 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 20917 | subdirs!$subdirs$ac_delim |
| 20918 | build!$build$ac_delim |
| 20919 | build_cpu!$build_cpu$ac_delim |
| 20920 | build_vendor!$build_vendor$ac_delim |
| 20921 | build_os!$build_os$ac_delim |
| 20922 | host!$host$ac_delim |
| 20923 | host_cpu!$host_cpu$ac_delim |
| 20924 | host_vendor!$host_vendor$ac_delim |
| 20925 | host_os!$host_os$ac_delim |
| 20926 | target!$target$ac_delim |
| 20927 | target_cpu!$target_cpu$ac_delim |
| 20928 | target_vendor!$target_vendor$ac_delim |
| 20929 | target_os!$target_os$ac_delim |
| 20930 | OS!$OS$ac_delim |
| 20931 | HOST_OS!$HOST_OS$ac_delim |
| 20932 | TARGET_OS!$TARGET_OS$ac_delim |
| 20933 | LINKALL!$LINKALL$ac_delim |
| 20934 | NOLINKALL!$NOLINKALL$ac_delim |
| 20935 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 20936 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 20937 | ARCH!$ARCH$ac_delim |
| 20938 | ENDIAN!$ENDIAN$ac_delim |
| 20939 | CC!$CC$ac_delim |
| 20940 | CFLAGS!$CFLAGS$ac_delim |
| 20941 | LDFLAGS!$LDFLAGS$ac_delim |
| 20942 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20943 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20944 | EXEEXT!$EXEEXT$ac_delim |
| 20945 | OBJEXT!$OBJEXT$ac_delim |
| 20946 | CPP!$CPP$ac_delim |
| 20947 | GREP!$GREP$ac_delim |
| 20948 | EGREP!$EGREP$ac_delim |
| 20949 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 20950 | BUILD_CC!$BUILD_CC$ac_delim |
| 20951 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 20952 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 20953 | CVSBUILD!$CVSBUILD$ac_delim |
| 20954 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 20955 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 20956 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 20957 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 20958 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 20959 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 20960 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 20961 | JIT!$JIT$ac_delim |
| 20962 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 20963 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 20964 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 20965 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20966 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20967 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 20968 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 20969 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 20970 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 20971 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 20972 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 20973 | CLANGPATH!$CLANGPATH$ac_delim |
| 20974 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
| 20975 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20976 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20977 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20978 | 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] | 20979 | break |
| 20980 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20981 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20982 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20983 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20984 | else |
| 20985 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20986 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20987 | done |
| 20988 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20989 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20990 | if test -n "$ac_eof"; then |
| 20991 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20992 | ac_eof=`expr $ac_eof + 1` |
| 20993 | fi |
| 20994 | |
| 20995 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20996 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20997 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20998 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20999 | sed ' |
| 21000 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21001 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21002 | :n |
| 21003 | t n |
| 21004 | s/'"$ac_delim"'$/,g/; t |
| 21005 | s/$/\\/; p |
| 21006 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21007 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21008 | rm -f conf$$subs.sed |
| 21009 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21010 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21011 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21012 | |
| 21013 | |
| 21014 | ac_delim='%!_!# ' |
| 21015 | for ac_last_try in false false false false false :; do |
| 21016 | cat >conf$$subs.sed <<_ACEOF |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21017 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21018 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21019 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
| 21020 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21021 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 21022 | CXX!$CXX$ac_delim |
| 21023 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21024 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21025 | NM!$NM$ac_delim |
| 21026 | ifGNUmake!$ifGNUmake$ac_delim |
| 21027 | LN_S!$LN_S$ac_delim |
| 21028 | CMP!$CMP$ac_delim |
| 21029 | CP!$CP$ac_delim |
| 21030 | DATE!$DATE$ac_delim |
| 21031 | FIND!$FIND$ac_delim |
| 21032 | MKDIR!$MKDIR$ac_delim |
| 21033 | MV!$MV$ac_delim |
| 21034 | RANLIB!$RANLIB$ac_delim |
| 21035 | AR!$AR$ac_delim |
| 21036 | RM!$RM$ac_delim |
| 21037 | SED!$SED$ac_delim |
| 21038 | TAR!$TAR$ac_delim |
| 21039 | BINPWD!$BINPWD$ac_delim |
| 21040 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21041 | DOT!$DOT$ac_delim |
| 21042 | FDP!$FDP$ac_delim |
| 21043 | NEATO!$NEATO$ac_delim |
| 21044 | TWOPI!$TWOPI$ac_delim |
| 21045 | CIRCO!$CIRCO$ac_delim |
| 21046 | GV!$GV$ac_delim |
| 21047 | DOTTY!$DOTTY$ac_delim |
| 21048 | PERL!$PERL$ac_delim |
| 21049 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21050 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21051 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21052 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21053 | BZIP2!$BZIP2$ac_delim |
| 21054 | DOXYGEN!$DOXYGEN$ac_delim |
| 21055 | GROFF!$GROFF$ac_delim |
| 21056 | GZIP!$GZIP$ac_delim |
| 21057 | POD2HTML!$POD2HTML$ac_delim |
| 21058 | POD2MAN!$POD2MAN$ac_delim |
| 21059 | RUNTEST!$RUNTEST$ac_delim |
| 21060 | TCLSH!$TCLSH$ac_delim |
| 21061 | ZIP!$ZIP$ac_delim |
| 21062 | OCAMLC!$OCAMLC$ac_delim |
| 21063 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21064 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21065 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21066 | GAS!$GAS$ac_delim |
| 21067 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21068 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21069 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21070 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21071 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21072 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 21073 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 21074 | LLVMGCC!$LLVMGCC$ac_delim |
| 21075 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21076 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21077 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21078 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21079 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21080 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21081 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21082 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21083 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 21084 | LLVMCC1!$LLVMCC1$ac_delim |
| 21085 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 21086 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21087 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 21088 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21089 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21090 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21091 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21092 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21093 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21094 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21095 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21096 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21097 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21098 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21099 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21100 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21101 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21102 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21103 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21104 | RPATH!$RPATH$ac_delim |
| 21105 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21106 | LIBOBJS!$LIBOBJS$ac_delim |
| 21107 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21108 | _ACEOF |
| 21109 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21110 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21111 | break |
| 21112 | elif $ac_last_try; then |
| 21113 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21114 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21115 | { (exit 1); exit 1; }; } |
| 21116 | else |
| 21117 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21118 | fi |
| 21119 | done |
| 21120 | |
| 21121 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21122 | if test -n "$ac_eof"; then |
| 21123 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21124 | ac_eof=`expr $ac_eof + 1` |
| 21125 | fi |
| 21126 | |
| 21127 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21128 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 21129 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21130 | _ACEOF |
| 21131 | sed ' |
| 21132 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21133 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21134 | :n |
| 21135 | t n |
| 21136 | s/'"$ac_delim"'$/,g/; t |
| 21137 | s/$/\\/; p |
| 21138 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21139 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21140 | rm -f conf$$subs.sed |
| 21141 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21142 | :end |
| 21143 | s/|#_!!_#|//g |
| 21144 | CEOF$ac_eof |
| 21145 | _ACEOF |
| 21146 | |
| 21147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21148 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21149 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21150 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21151 | # (actually we leave an empty line to preserve line numbers). |
| 21152 | if test "x$srcdir" = x.; then |
| 21153 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21154 | s/:*\$(srcdir):*/:/ |
| 21155 | s/:*\${srcdir}:*/:/ |
| 21156 | s/:*@srcdir@:*/:/ |
| 21157 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21158 | s/:*$// |
| 21159 | s/^[^=]*=[ ]*$// |
| 21160 | }' |
| 21161 | fi |
| 21162 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21163 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21164 | fi # test -n "$CONFIG_FILES" |
| 21165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21166 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21167 | 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] | 21168 | do |
| 21169 | case $ac_tag in |
| 21170 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21171 | esac |
| 21172 | case $ac_mode$ac_tag in |
| 21173 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21174 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21175 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21176 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21177 | :[FH]-) ac_tag=-:-;; |
| 21178 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21179 | esac |
| 21180 | ac_save_IFS=$IFS |
| 21181 | IFS=: |
| 21182 | set x $ac_tag |
| 21183 | IFS=$ac_save_IFS |
| 21184 | shift |
| 21185 | ac_file=$1 |
| 21186 | shift |
| 21187 | |
| 21188 | case $ac_mode in |
| 21189 | :L) ac_source=$1;; |
| 21190 | :[FH]) |
| 21191 | ac_file_inputs= |
| 21192 | for ac_f |
| 21193 | do |
| 21194 | case $ac_f in |
| 21195 | -) ac_f="$tmp/stdin";; |
| 21196 | *) # Look for the file first in the build tree, then in the source tree |
| 21197 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21198 | # because $ac_f cannot contain `:'. |
| 21199 | test -f "$ac_f" || |
| 21200 | case $ac_f in |
| 21201 | [\\/$]*) false;; |
| 21202 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21203 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21204 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21205 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21206 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21207 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21208 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21209 | done |
| 21210 | |
| 21211 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21212 | # use $as_me), people would be surprised to read: |
| 21213 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21214 | configure_input="Generated from "`IFS=: |
| 21215 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21216 | if test x"$ac_file" != x-; then |
| 21217 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21218 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21219 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21220 | fi |
| 21221 | |
| 21222 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21223 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21224 | esac |
| 21225 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21226 | esac |
| 21227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21228 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21229 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21230 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21231 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21232 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21233 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21234 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21235 | s//\1/ |
| 21236 | q |
| 21237 | } |
| 21238 | /^X\(\/\/\)[^/].*/{ |
| 21239 | s//\1/ |
| 21240 | q |
| 21241 | } |
| 21242 | /^X\(\/\/\)$/{ |
| 21243 | s//\1/ |
| 21244 | q |
| 21245 | } |
| 21246 | /^X\(\/\).*/{ |
| 21247 | s//\1/ |
| 21248 | q |
| 21249 | } |
| 21250 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21251 | { as_dir="$ac_dir" |
| 21252 | case $as_dir in #( |
| 21253 | -*) as_dir=./$as_dir;; |
| 21254 | esac |
| 21255 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21256 | as_dirs= |
| 21257 | while :; do |
| 21258 | case $as_dir in #( |
| 21259 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21260 | *) as_qdir=$as_dir;; |
| 21261 | esac |
| 21262 | as_dirs="'$as_qdir' $as_dirs" |
| 21263 | as_dir=`$as_dirname -- "$as_dir" || |
| 21264 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21265 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21266 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21267 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21268 | echo X"$as_dir" | |
| 21269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21270 | s//\1/ |
| 21271 | q |
| 21272 | } |
| 21273 | /^X\(\/\/\)[^/].*/{ |
| 21274 | s//\1/ |
| 21275 | q |
| 21276 | } |
| 21277 | /^X\(\/\/\)$/{ |
| 21278 | s//\1/ |
| 21279 | q |
| 21280 | } |
| 21281 | /^X\(\/\).*/{ |
| 21282 | s//\1/ |
| 21283 | q |
| 21284 | } |
| 21285 | s/.*/./; q'` |
| 21286 | test -d "$as_dir" && break |
| 21287 | done |
| 21288 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21289 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21290 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21291 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21292 | ac_builddir=. |
| 21293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21294 | case "$ac_dir" in |
| 21295 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21296 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21297 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21298 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21299 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21300 | case $ac_top_builddir_sub in |
| 21301 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21302 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21303 | esac ;; |
| 21304 | esac |
| 21305 | ac_abs_top_builddir=$ac_pwd |
| 21306 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21307 | # for backward compatibility: |
| 21308 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21309 | |
| 21310 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21311 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21312 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21313 | ac_top_srcdir=$ac_top_builddir_sub |
| 21314 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21315 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21316 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21317 | ac_top_srcdir=$srcdir |
| 21318 | ac_abs_top_srcdir=$srcdir ;; |
| 21319 | *) # Relative name. |
| 21320 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21321 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21322 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21323 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21324 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21325 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21327 | case $ac_mode in |
| 21328 | :F) |
| 21329 | # |
| 21330 | # CONFIG_FILE |
| 21331 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21332 | |
| 21333 | case $INSTALL in |
| 21334 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21335 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21336 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21337 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21338 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21339 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21340 | # If the template does not know about datarootdir, expand it. |
| 21341 | # FIXME: This hack should be removed a few years after 2.60. |
| 21342 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21343 | |
| 21344 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21345 | p |
| 21346 | q |
| 21347 | } |
| 21348 | /@datadir@/p |
| 21349 | /@docdir@/p |
| 21350 | /@infodir@/p |
| 21351 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21352 | /@mandir@/p |
| 21353 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21354 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21355 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21356 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21357 | 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] | 21358 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21359 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21360 | ac_datarootdir_hack=' |
| 21361 | s&@datadir@&$datadir&g |
| 21362 | s&@docdir@&$docdir&g |
| 21363 | s&@infodir@&$infodir&g |
| 21364 | s&@localedir@&$localedir&g |
| 21365 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21366 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21367 | esac |
| 21368 | _ACEOF |
| 21369 | |
| 21370 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21371 | # Shell code in configure.ac might set extrasub. |
| 21372 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21373 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21374 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21375 | $extrasub |
| 21376 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21377 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21378 | :t |
| 21379 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21380 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21381 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21382 | s&@srcdir@&$ac_srcdir&;t t |
| 21383 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21384 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21385 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21386 | s&@builddir@&$ac_builddir&;t t |
| 21387 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21388 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21389 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21390 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21391 | " $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] | 21392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21393 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21394 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21395 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21396 | { 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] | 21397 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21398 | 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] | 21399 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21401 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21402 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21403 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21404 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21405 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21406 | ;; |
| 21407 | :H) |
| 21408 | # |
| 21409 | # CONFIG_HEADER |
| 21410 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21411 | _ACEOF |
| 21412 | |
| 21413 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21414 | # substitutes the proper values into config.h.in to produce config.h. |
| 21415 | rm -f conftest.defines conftest.tail |
| 21416 | # First, append a space to every undef/define line, to ease matching. |
| 21417 | echo 's/$/ /' >conftest.defines |
| 21418 | # Then, protect against being on the right side of a sed subst, or in |
| 21419 | # an unquoted here document, in config.status. If some macros were |
| 21420 | # called several times there might be several #defines for the same |
| 21421 | # symbol, which is useless. But do not sort them, since the last |
| 21422 | # AC_DEFINE must be honored. |
| 21423 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21424 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21425 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21426 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21427 | # just an empty string. |
| 21428 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21429 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21430 | ac_dC=' ' |
| 21431 | ac_dD=' ,' |
| 21432 | |
| 21433 | uniq confdefs.h | |
| 21434 | sed -n ' |
| 21435 | t rset |
| 21436 | :rset |
| 21437 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21438 | t ok |
| 21439 | d |
| 21440 | :ok |
| 21441 | s/[\\&,]/\\&/g |
| 21442 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21443 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21444 | ' >>conftest.defines |
| 21445 | |
| 21446 | # Remove the space that was appended to ease matching. |
| 21447 | # Then replace #undef with comments. This is necessary, for |
| 21448 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21449 | # on some systems where configure will not decide to define it. |
| 21450 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21451 | echo 's/ $// |
| 21452 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21453 | |
| 21454 | # Break up conftest.defines: |
| 21455 | ac_max_sed_lines=50 |
| 21456 | |
| 21457 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21458 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21459 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21460 | # et cetera. |
| 21461 | ac_in='$ac_file_inputs' |
| 21462 | ac_out='"$tmp/out1"' |
| 21463 | ac_nxt='"$tmp/out2"' |
| 21464 | |
| 21465 | while : |
| 21466 | do |
| 21467 | # Write a here document: |
| 21468 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21469 | # First, check the format of the line: |
| 21470 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21471 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21472 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21473 | b |
| 21474 | :def |
| 21475 | _ACEOF |
| 21476 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21477 | echo 'CEOF |
| 21478 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21479 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21480 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21481 | grep . conftest.tail >/dev/null || break |
| 21482 | rm -f conftest.defines |
| 21483 | mv conftest.tail conftest.defines |
| 21484 | done |
| 21485 | rm -f conftest.defines conftest.tail |
| 21486 | |
| 21487 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21488 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21489 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21490 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21491 | cat "$ac_result" >>"$tmp/config.h" |
| 21492 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21493 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21494 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21495 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21496 | rm -f $ac_file |
| 21497 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21498 | fi |
| 21499 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21500 | echo "/* $configure_input */" |
| 21501 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21502 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21503 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21504 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21505 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21506 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21507 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21508 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21509 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21510 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21511 | |
| 21512 | case $ac_file$ac_mode in |
| 21513 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21514 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21515 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21516 | ${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] | 21517 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21518 | ${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] | 21519 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21520 | ${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] | 21521 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21522 | ${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] | 21523 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21524 | ${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] | 21525 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21526 | ${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] | 21527 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21528 | ${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] | 21529 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21530 | ${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] | 21531 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21532 | ${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] | 21533 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21534 | ${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] | 21535 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21536 | ${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] | 21537 | "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] | 21538 | ${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] | 21539 | |
| 21540 | esac |
| 21541 | done # for ac_tag |
| 21542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21543 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21544 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21545 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21546 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21547 | ac_clean_files=$ac_clean_files_save |
| 21548 | |
| 21549 | |
| 21550 | # configure is writing to config.log, and then calls config.status. |
| 21551 | # config.status does its own redirection, appending to config.log. |
| 21552 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21553 | # by configure, so config.status won't be able to write to it; its |
| 21554 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21555 | # effectively closing config.log, so it can be properly (re)opened and |
| 21556 | # appended to by config.status. When coming back to configure, we |
| 21557 | # need to make the FD available again. |
| 21558 | if test "$no_create" != yes; then |
| 21559 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21560 | ac_config_status_args= |
| 21561 | test "$silent" = yes && |
| 21562 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21563 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21564 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21565 | exec 5>>config.log |
| 21566 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21567 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21568 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21569 | fi |
| 21570 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21571 | # |
| 21572 | # CONFIG_SUBDIRS section. |
| 21573 | # |
| 21574 | if test "$no_recursion" != yes; then |
| 21575 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21576 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21577 | ac_sub_configure_args= |
| 21578 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21579 | eval "set x $ac_configure_args" |
| 21580 | shift |
| 21581 | for ac_arg |
| 21582 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21583 | if test -n "$ac_prev"; then |
| 21584 | ac_prev= |
| 21585 | continue |
| 21586 | fi |
| 21587 | case $ac_arg in |
| 21588 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 21589 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 21590 | ac_prev=cache_file ;; |
| 21591 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 21592 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 21593 | | --c=*) |
| 21594 | ;; |
| 21595 | --config-cache | -C) |
| 21596 | ;; |
| 21597 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 21598 | ac_prev=srcdir ;; |
| 21599 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 21600 | ;; |
| 21601 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 21602 | ac_prev=prefix ;; |
| 21603 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 21604 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21605 | *) |
| 21606 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21607 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21608 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21609 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21610 | esac |
| 21611 | done |
| 21612 | |
| 21613 | # Always prepend --prefix to ensure using the same prefix |
| 21614 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21615 | ac_arg="--prefix=$prefix" |
| 21616 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21617 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21618 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21619 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21620 | |
| 21621 | ac_popdir=`pwd` |
| 21622 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 21623 | |
| 21624 | # Do not complain, so a configure script can configure whichever |
| 21625 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21626 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21627 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21628 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21629 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 21630 | echo "$ac_msg" >&6 |
| 21631 | { as_dir="$ac_dir" |
| 21632 | case $as_dir in #( |
| 21633 | -*) as_dir=./$as_dir;; |
| 21634 | esac |
| 21635 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21636 | as_dirs= |
| 21637 | while :; do |
| 21638 | case $as_dir in #( |
| 21639 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21640 | *) as_qdir=$as_dir;; |
| 21641 | esac |
| 21642 | as_dirs="'$as_qdir' $as_dirs" |
| 21643 | as_dir=`$as_dirname -- "$as_dir" || |
| 21644 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21645 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21646 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21647 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21648 | echo X"$as_dir" | |
| 21649 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21650 | s//\1/ |
| 21651 | q |
| 21652 | } |
| 21653 | /^X\(\/\/\)[^/].*/{ |
| 21654 | s//\1/ |
| 21655 | q |
| 21656 | } |
| 21657 | /^X\(\/\/\)$/{ |
| 21658 | s//\1/ |
| 21659 | q |
| 21660 | } |
| 21661 | /^X\(\/\).*/{ |
| 21662 | s//\1/ |
| 21663 | q |
| 21664 | } |
| 21665 | s/.*/./; q'` |
| 21666 | test -d "$as_dir" && break |
| 21667 | done |
| 21668 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21669 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21670 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21671 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21672 | ac_builddir=. |
| 21673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21674 | case "$ac_dir" in |
| 21675 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21676 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21677 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21678 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21679 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21680 | case $ac_top_builddir_sub in |
| 21681 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21682 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21683 | esac ;; |
| 21684 | esac |
| 21685 | ac_abs_top_builddir=$ac_pwd |
| 21686 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21687 | # for backward compatibility: |
| 21688 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21689 | |
| 21690 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21691 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21692 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21693 | ac_top_srcdir=$ac_top_builddir_sub |
| 21694 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21695 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21696 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21697 | ac_top_srcdir=$srcdir |
| 21698 | ac_abs_top_srcdir=$srcdir ;; |
| 21699 | *) # Relative name. |
| 21700 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21701 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21702 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21703 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21704 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21705 | |
| 21706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21707 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21708 | |
| 21709 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21710 | if test -f "$ac_srcdir/configure.gnu"; then |
| 21711 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 21712 | elif test -f "$ac_srcdir/configure"; then |
| 21713 | ac_sub_configure=$ac_srcdir/configure |
| 21714 | elif test -f "$ac_srcdir/configure.in"; then |
| 21715 | # This should be Cygnus configure. |
| 21716 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21717 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21718 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 21719 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21720 | ac_sub_configure= |
| 21721 | fi |
| 21722 | |
| 21723 | # The recursion is here. |
| 21724 | if test -n "$ac_sub_configure"; then |
| 21725 | # Make the cache file name correct relative to the subdirectory. |
| 21726 | case $cache_file in |
| 21727 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21728 | *) # Relative name. |
| 21729 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21730 | esac |
| 21731 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21732 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 21733 | 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] | 21734 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21735 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 21736 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21737 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 21738 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 21739 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21740 | fi |
| 21741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21742 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21743 | done |
| 21744 | fi |
| 21745 | |