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 | |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 693 | ENABLE_TIMESTAMPS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 694 | TARGETS_TO_BUILD |
| 695 | LLVM_ENUM_TARGETS |
| 696 | LLVM_ENUM_ASM_PRINTERS |
| 697 | LLVM_ENUM_ASM_PARSERS |
| 698 | LLVM_ENUM_DISASSEMBLERS |
| 699 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 700 | CLANGPATH |
| 701 | CLANGXXPATH |
| 702 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 703 | OPTIMIZE_OPTION |
| 704 | EXTRA_OPTIONS |
| 705 | BINUTILS_INCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 706 | CXX |
| 707 | CXXFLAGS |
| 708 | ac_ct_CXX |
| 709 | NM |
| 710 | ifGNUmake |
| 711 | LN_S |
| 712 | CMP |
| 713 | CP |
| 714 | DATE |
| 715 | FIND |
| 716 | MKDIR |
| 717 | MV |
| 718 | RANLIB |
| 719 | AR |
| 720 | RM |
| 721 | SED |
| 722 | TAR |
| 723 | BINPWD |
| 724 | GRAPHVIZ |
| 725 | DOT |
| 726 | FDP |
| 727 | NEATO |
| 728 | TWOPI |
| 729 | CIRCO |
| 730 | GV |
| 731 | DOTTY |
| 732 | PERL |
| 733 | HAVE_PERL |
| 734 | INSTALL_PROGRAM |
| 735 | INSTALL_SCRIPT |
| 736 | INSTALL_DATA |
| 737 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 738 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 739 | DOXYGEN |
| 740 | GROFF |
| 741 | GZIP |
| 742 | POD2HTML |
| 743 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 744 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 745 | RUNTEST |
| 746 | TCLSH |
| 747 | ZIP |
| 748 | OCAMLC |
| 749 | OCAMLOPT |
| 750 | OCAMLDEP |
| 751 | OCAMLDOC |
| 752 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 753 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 754 | INSTALL_LTDL_TRUE |
| 755 | INSTALL_LTDL_FALSE |
| 756 | CONVENIENCE_LTDL_TRUE |
| 757 | CONVENIENCE_LTDL_FALSE |
| 758 | LIBADD_DL |
| 759 | LLVMGCCCOMMAND |
| 760 | LLVMGXXCOMMAND |
| 761 | LLVMGCC |
| 762 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 763 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 764 | NO_VARIADIC_MACROS |
| 765 | NO_MISSING_FIELD_INITIALIZERS |
| 766 | USE_UDIS86 |
| 767 | USE_OPROFILE |
| 768 | HAVE_PTHREAD |
| 769 | HUGE_VAL_SANITY |
| 770 | MMAP_FILE |
| 771 | LLVMCC1 |
| 772 | LLVMCC1PLUS |
| 773 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 774 | LLVMGCC_LANGS |
| 775 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 776 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 777 | LLVM_PREFIX |
| 778 | LLVM_BINDIR |
| 779 | LLVM_LIBDIR |
| 780 | LLVM_DATADIR |
| 781 | LLVM_DOCSDIR |
| 782 | LLVM_ETCDIR |
| 783 | LLVM_INCLUDEDIR |
| 784 | LLVM_INFODIR |
| 785 | LLVM_MANDIR |
| 786 | LLVM_CONFIGTIME |
| 787 | BINDINGS_TO_BUILD |
| 788 | ALL_BINDINGS |
| 789 | OCAML_LIBDIR |
| 790 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 791 | RPATH |
| 792 | RDYNAMIC |
| 793 | LIBOBJS |
| 794 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 795 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 796 | ac_precious_vars='build_alias |
| 797 | host_alias |
| 798 | target_alias |
| 799 | CC |
| 800 | CFLAGS |
| 801 | LDFLAGS |
| 802 | CPPFLAGS |
| 803 | CPP |
| 804 | CXX |
| 805 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 806 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 807 | ac_subdirs_all='projects/llvm-gcc |
| 808 | projects/test-suite |
| 809 | projects/llvm-test |
| 810 | projects/poolalloc |
| 811 | projects/llvm-poolalloc |
| 812 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 814 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 815 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 816 | projects/llvm-java |
| 817 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 818 | projects/safecode |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 819 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 820 | |
| 821 | # Initialize some variables set by options. |
| 822 | ac_init_help= |
| 823 | ac_init_version=false |
| 824 | # The variables have the same names as the options, with |
| 825 | # dashes changed to underlines. |
| 826 | cache_file=/dev/null |
| 827 | exec_prefix=NONE |
| 828 | no_create= |
| 829 | no_recursion= |
| 830 | prefix=NONE |
| 831 | program_prefix=NONE |
| 832 | program_suffix=NONE |
| 833 | program_transform_name=s,x,x, |
| 834 | silent= |
| 835 | site= |
| 836 | srcdir= |
| 837 | verbose= |
| 838 | x_includes=NONE |
| 839 | x_libraries=NONE |
| 840 | |
| 841 | # Installation directory options. |
| 842 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 843 | # and all the variables that are supposed to be based on exec_prefix |
| 844 | # by default will actually change. |
| 845 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 847 | bindir='${exec_prefix}/bin' |
| 848 | sbindir='${exec_prefix}/sbin' |
| 849 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | datarootdir='${prefix}/share' |
| 851 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 852 | sysconfdir='${prefix}/etc' |
| 853 | sharedstatedir='${prefix}/com' |
| 854 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 855 | includedir='${prefix}/include' |
| 856 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 857 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 858 | infodir='${datarootdir}/info' |
| 859 | htmldir='${docdir}' |
| 860 | dvidir='${docdir}' |
| 861 | pdfdir='${docdir}' |
| 862 | psdir='${docdir}' |
| 863 | libdir='${exec_prefix}/lib' |
| 864 | localedir='${datarootdir}/locale' |
| 865 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 866 | |
| 867 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 868 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 869 | for ac_option |
| 870 | do |
| 871 | # If the previous option needs an argument, assign it. |
| 872 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 873 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 874 | ac_prev= |
| 875 | continue |
| 876 | fi |
| 877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 878 | case $ac_option in |
| 879 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 880 | *) ac_optarg=yes ;; |
| 881 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | |
| 883 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 885 | case $ac_dashdash$ac_option in |
| 886 | --) |
| 887 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 888 | |
| 889 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 890 | ac_prev=bindir ;; |
| 891 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 892 | bindir=$ac_optarg ;; |
| 893 | |
| 894 | -build | --build | --buil | --bui | --bu) |
| 895 | ac_prev=build_alias ;; |
| 896 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 897 | build_alias=$ac_optarg ;; |
| 898 | |
| 899 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 900 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 901 | ac_prev=cache_file ;; |
| 902 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 903 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 904 | cache_file=$ac_optarg ;; |
| 905 | |
| 906 | --config-cache | -C) |
| 907 | cache_file=config.cache ;; |
| 908 | |
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 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 911 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 912 | datadir=$ac_optarg ;; |
| 913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 914 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 915 | | --dataroo | --dataro | --datar) |
| 916 | ac_prev=datarootdir ;; |
| 917 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 918 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 919 | datarootdir=$ac_optarg ;; |
| 920 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 921 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 922 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 923 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 924 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 925 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 926 | { (exit 1); exit 1; }; } |
| 927 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 928 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 929 | |
| 930 | -docdir | --docdir | --docdi | --doc | --do) |
| 931 | ac_prev=docdir ;; |
| 932 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 933 | docdir=$ac_optarg ;; |
| 934 | |
| 935 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 936 | ac_prev=dvidir ;; |
| 937 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 938 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 939 | |
| 940 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 941 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 942 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 943 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 944 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 945 | { (exit 1); exit 1; }; } |
| 946 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 947 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 948 | |
| 949 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 950 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 951 | | --exec | --exe | --ex) |
| 952 | ac_prev=exec_prefix ;; |
| 953 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 954 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 955 | | --exec=* | --exe=* | --ex=*) |
| 956 | exec_prefix=$ac_optarg ;; |
| 957 | |
| 958 | -gas | --gas | --ga | --g) |
| 959 | # Obsolete; use --with-gas. |
| 960 | with_gas=yes ;; |
| 961 | |
| 962 | -help | --help | --hel | --he | -h) |
| 963 | ac_init_help=long ;; |
| 964 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 965 | ac_init_help=recursive ;; |
| 966 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 967 | ac_init_help=short ;; |
| 968 | |
| 969 | -host | --host | --hos | --ho) |
| 970 | ac_prev=host_alias ;; |
| 971 | -host=* | --host=* | --hos=* | --ho=*) |
| 972 | host_alias=$ac_optarg ;; |
| 973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 974 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 975 | ac_prev=htmldir ;; |
| 976 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 977 | | --ht=*) |
| 978 | htmldir=$ac_optarg ;; |
| 979 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 980 | -includedir | --includedir | --includedi | --included | --include \ |
| 981 | | --includ | --inclu | --incl | --inc) |
| 982 | ac_prev=includedir ;; |
| 983 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 984 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 985 | includedir=$ac_optarg ;; |
| 986 | |
| 987 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 988 | ac_prev=infodir ;; |
| 989 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 990 | infodir=$ac_optarg ;; |
| 991 | |
| 992 | -libdir | --libdir | --libdi | --libd) |
| 993 | ac_prev=libdir ;; |
| 994 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 995 | libdir=$ac_optarg ;; |
| 996 | |
| 997 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 998 | | --libexe | --libex | --libe) |
| 999 | ac_prev=libexecdir ;; |
| 1000 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1001 | | --libexe=* | --libex=* | --libe=*) |
| 1002 | libexecdir=$ac_optarg ;; |
| 1003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1005 | ac_prev=localedir ;; |
| 1006 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1007 | localedir=$ac_optarg ;; |
| 1008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1010 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | ac_prev=localstatedir ;; |
| 1012 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1013 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | localstatedir=$ac_optarg ;; |
| 1015 | |
| 1016 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1017 | ac_prev=mandir ;; |
| 1018 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1019 | mandir=$ac_optarg ;; |
| 1020 | |
| 1021 | -nfp | --nfp | --nf) |
| 1022 | # Obsolete; use --without-fp. |
| 1023 | with_fp=no ;; |
| 1024 | |
| 1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1026 | | --no-cr | --no-c | -n) |
| 1027 | no_create=yes ;; |
| 1028 | |
| 1029 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1030 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1031 | no_recursion=yes ;; |
| 1032 | |
| 1033 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1034 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1035 | | --oldin | --oldi | --old | --ol | --o) |
| 1036 | ac_prev=oldincludedir ;; |
| 1037 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1038 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1039 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1040 | oldincludedir=$ac_optarg ;; |
| 1041 | |
| 1042 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1043 | ac_prev=prefix ;; |
| 1044 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1045 | prefix=$ac_optarg ;; |
| 1046 | |
| 1047 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1048 | | --program-pre | --program-pr | --program-p) |
| 1049 | ac_prev=program_prefix ;; |
| 1050 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1051 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1052 | program_prefix=$ac_optarg ;; |
| 1053 | |
| 1054 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1055 | | --program-suf | --program-su | --program-s) |
| 1056 | ac_prev=program_suffix ;; |
| 1057 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1058 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1059 | program_suffix=$ac_optarg ;; |
| 1060 | |
| 1061 | -program-transform-name | --program-transform-name \ |
| 1062 | | --program-transform-nam | --program-transform-na \ |
| 1063 | | --program-transform-n | --program-transform- \ |
| 1064 | | --program-transform | --program-transfor \ |
| 1065 | | --program-transfo | --program-transf \ |
| 1066 | | --program-trans | --program-tran \ |
| 1067 | | --progr-tra | --program-tr | --program-t) |
| 1068 | ac_prev=program_transform_name ;; |
| 1069 | -program-transform-name=* | --program-transform-name=* \ |
| 1070 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1071 | | --program-transform-n=* | --program-transform-=* \ |
| 1072 | | --program-transform=* | --program-transfor=* \ |
| 1073 | | --program-transfo=* | --program-transf=* \ |
| 1074 | | --program-trans=* | --program-tran=* \ |
| 1075 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1076 | program_transform_name=$ac_optarg ;; |
| 1077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1078 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1079 | ac_prev=pdfdir ;; |
| 1080 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1081 | pdfdir=$ac_optarg ;; |
| 1082 | |
| 1083 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1084 | ac_prev=psdir ;; |
| 1085 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1086 | psdir=$ac_optarg ;; |
| 1087 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1089 | | -silent | --silent | --silen | --sile | --sil) |
| 1090 | silent=yes ;; |
| 1091 | |
| 1092 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1093 | ac_prev=sbindir ;; |
| 1094 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1095 | | --sbi=* | --sb=*) |
| 1096 | sbindir=$ac_optarg ;; |
| 1097 | |
| 1098 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1099 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1100 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1101 | | --sha | --sh) |
| 1102 | ac_prev=sharedstatedir ;; |
| 1103 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1104 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1105 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1106 | | --sha=* | --sh=*) |
| 1107 | sharedstatedir=$ac_optarg ;; |
| 1108 | |
| 1109 | -site | --site | --sit) |
| 1110 | ac_prev=site ;; |
| 1111 | -site=* | --site=* | --sit=*) |
| 1112 | site=$ac_optarg ;; |
| 1113 | |
| 1114 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1115 | ac_prev=srcdir ;; |
| 1116 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1117 | srcdir=$ac_optarg ;; |
| 1118 | |
| 1119 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1120 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1121 | ac_prev=sysconfdir ;; |
| 1122 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1123 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1124 | sysconfdir=$ac_optarg ;; |
| 1125 | |
| 1126 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1127 | ac_prev=target_alias ;; |
| 1128 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1129 | target_alias=$ac_optarg ;; |
| 1130 | |
| 1131 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1132 | verbose=yes ;; |
| 1133 | |
| 1134 | -version | --version | --versio | --versi | --vers | -V) |
| 1135 | ac_init_version=: ;; |
| 1136 | |
| 1137 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1138 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1139 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1140 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1141 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1142 | { (exit 1); exit 1; }; } |
| 1143 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1144 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1145 | |
| 1146 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1147 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1148 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1149 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1150 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1151 | { (exit 1); exit 1; }; } |
| 1152 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1153 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1154 | |
| 1155 | --x) |
| 1156 | # Obsolete; use --with-x. |
| 1157 | with_x=yes ;; |
| 1158 | |
| 1159 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1160 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1161 | ac_prev=x_includes ;; |
| 1162 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1163 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1164 | x_includes=$ac_optarg ;; |
| 1165 | |
| 1166 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1167 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1168 | ac_prev=x_libraries ;; |
| 1169 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1170 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1171 | x_libraries=$ac_optarg ;; |
| 1172 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1173 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1174 | Try \`$0 --help' for more information." >&2 |
| 1175 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1176 | ;; |
| 1177 | |
| 1178 | *=*) |
| 1179 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1180 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1181 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1182 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1183 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1184 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1185 | export $ac_envvar ;; |
| 1186 | |
| 1187 | *) |
| 1188 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1189 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1190 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1191 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1192 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1193 | ;; |
| 1194 | |
| 1195 | esac |
| 1196 | done |
| 1197 | |
| 1198 | if test -n "$ac_prev"; then |
| 1199 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1200 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1201 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1202 | fi |
| 1203 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1204 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1205 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1206 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1207 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1208 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1209 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1210 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1211 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1212 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1213 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1214 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1215 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1216 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1217 | done |
| 1218 | |
| 1219 | # There might be people who depend on the old broken behavior: `$host' |
| 1220 | # used to hold the argument of --host etc. |
| 1221 | # FIXME: To remove some day. |
| 1222 | build=$build_alias |
| 1223 | host=$host_alias |
| 1224 | target=$target_alias |
| 1225 | |
| 1226 | # FIXME: To remove some day. |
| 1227 | if test "x$host_alias" != x; then |
| 1228 | if test "x$build_alias" = x; then |
| 1229 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1230 | 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] | 1231 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1232 | elif test "x$build_alias" != "x$host_alias"; then |
| 1233 | cross_compiling=yes |
| 1234 | fi |
| 1235 | fi |
| 1236 | |
| 1237 | ac_tool_prefix= |
| 1238 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1239 | |
| 1240 | test "$silent" = yes && exec 6>/dev/null |
| 1241 | |
| 1242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1243 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1244 | ac_ls_di=`ls -di .` && |
| 1245 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1246 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1247 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1248 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1249 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1250 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1251 | |
| 1252 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1253 | # Find the source files, if location was not specified. |
| 1254 | if test -z "$srcdir"; then |
| 1255 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1256 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1257 | ac_confdir=`$as_dirname -- "$0" || |
| 1258 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1259 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1260 | X"$0" : 'X\(//\)$' \| \ |
| 1261 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1262 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\/\)[^/].*/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\/\)$/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | /^X\(\/\).*/{ |
| 1276 | s//\1/ |
| 1277 | q |
| 1278 | } |
| 1279 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1281 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1282 | srcdir=.. |
| 1283 | fi |
| 1284 | else |
| 1285 | ac_srcdir_defaulted=no |
| 1286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1289 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1290 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1292 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1293 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1294 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1295 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1296 | pwd)` |
| 1297 | # When building in place, set srcdir=. |
| 1298 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1299 | srcdir=. |
| 1300 | fi |
| 1301 | # Remove unnecessary trailing slashes from srcdir. |
| 1302 | # Double slashes in file names in object file debugging info |
| 1303 | # mess up M-x gdb in Emacs. |
| 1304 | case $srcdir in |
| 1305 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1306 | esac |
| 1307 | for ac_var in $ac_precious_vars; do |
| 1308 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1309 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1310 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1311 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1312 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1313 | |
| 1314 | # |
| 1315 | # Report the --help message. |
| 1316 | # |
| 1317 | if test "$ac_init_help" = "long"; then |
| 1318 | # Omit some internal or obsolete options to make the list less imposing. |
| 1319 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1320 | cat <<_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1321 | \`configure' configures llvm 2.8svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1322 | |
| 1323 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1324 | |
| 1325 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1326 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1327 | |
| 1328 | Defaults for the options are specified in brackets. |
| 1329 | |
| 1330 | Configuration: |
| 1331 | -h, --help display this help and exit |
| 1332 | --help=short display options specific to this package |
| 1333 | --help=recursive display the short help of all the included packages |
| 1334 | -V, --version display version information and exit |
| 1335 | -q, --quiet, --silent do not print \`checking...' messages |
| 1336 | --cache-file=FILE cache test results in FILE [disabled] |
| 1337 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1338 | -n, --no-create do not create output files |
| 1339 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1340 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1341 | Installation directories: |
| 1342 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1343 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1344 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1345 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1346 | |
| 1347 | By default, \`make install' will install all the files in |
| 1348 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1349 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1350 | for instance \`--prefix=\$HOME'. |
| 1351 | |
| 1352 | For better control, use the options below. |
| 1353 | |
| 1354 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1355 | --bindir=DIR user executables [EPREFIX/bin] |
| 1356 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1357 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1358 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1359 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1360 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1361 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1362 | --includedir=DIR C header files [PREFIX/include] |
| 1363 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1364 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1365 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1366 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1367 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1368 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1369 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1370 | --htmldir=DIR html documentation [DOCDIR] |
| 1371 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1372 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1373 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1374 | _ACEOF |
| 1375 | |
| 1376 | cat <<\_ACEOF |
| 1377 | |
| 1378 | System types: |
| 1379 | --build=BUILD configure for building on BUILD [guessed] |
| 1380 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1381 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1382 | _ACEOF |
| 1383 | fi |
| 1384 | |
| 1385 | if test -n "$ac_init_help"; then |
| 1386 | case $ac_init_help in |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1387 | short | recursive ) echo "Configuration of llvm 2.8svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1388 | esac |
| 1389 | cat <<\_ACEOF |
| 1390 | |
| 1391 | Optional Features: |
| 1392 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1393 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1394 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1395 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1396 | --enable-assertions Compile with assertion checks enabled (default is |
| 1397 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1398 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1399 | Compile with expensive debug checks enabled (default |
| 1400 | is NO) |
| 1401 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1402 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1403 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1404 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1405 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1406 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1407 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1408 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1409 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1410 | --enable-shared Build a shared library and link tools against it |
| 1411 | (default is NO) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1412 | --enable-timestamps Enable embedding timestamp information in build |
| 1413 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1414 | --enable-targets Build specific host targets: all or |
| 1415 | target1,target2,... Valid targets are: host, x86, |
| 1416 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 1417 | pic16, xcore, msp430, systemz, blackfin, cbe, and |
| 1418 | cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1419 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1420 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1421 | --enable-bindings Build specific language bindings: |
| 1422 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1423 | --enable-libffi Check for the presence of libffi (default is NO) |
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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1985 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1986 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1987 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1988 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1989 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1990 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1991 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1992 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1993 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1994 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1995 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1996 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 1997 | safecode) subdirs="$subdirs projects/safecode" |
| 1998 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1999 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2000 | ;; |
John Criswell | 52c0286 | 2010-03-25 13:59:09 +0000 | [diff] [blame] | 2001 | llvm-gcc) ;; |
| 2002 | test-suite) ;; |
| 2003 | llvm-test) ;; |
| 2004 | poolalloc) ;; |
| 2005 | llvm-poolalloc) ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2006 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2007 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2008 | 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] | 2009 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2010 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2011 | fi |
| 2012 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2013 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2014 | |
| 2015 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2016 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2017 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2018 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2019 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2021 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2022 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2023 | if test "${ac_cv_build+set}" = set; then |
| 2024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2026 | ac_build_alias=$build_alias |
| 2027 | test "x$ac_build_alias" = x && |
| 2028 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2029 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2030 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2031 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2032 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2033 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2034 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2035 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2036 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2037 | |
| 2038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2039 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2040 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2041 | case $ac_cv_build in |
| 2042 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2043 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2044 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2045 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2046 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2047 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2048 | ac_save_IFS=$IFS; IFS='-' |
| 2049 | set x $ac_cv_build |
| 2050 | shift |
| 2051 | build_cpu=$1 |
| 2052 | build_vendor=$2 |
| 2053 | shift; shift |
| 2054 | # Remember, the first character of IFS is used to create $*, |
| 2055 | # except with old shells: |
| 2056 | build_os=$* |
| 2057 | IFS=$ac_save_IFS |
| 2058 | 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] | 2059 | |
| 2060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2061 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2062 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2063 | if test "${ac_cv_host+set}" = set; then |
| 2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | if test "x$host_alias" = x; then |
| 2067 | ac_cv_host=$ac_cv_build |
| 2068 | else |
| 2069 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2070 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2071 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2072 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2073 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2074 | |
| 2075 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2076 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2077 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2078 | case $ac_cv_host in |
| 2079 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2080 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2081 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2082 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2083 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2085 | ac_save_IFS=$IFS; IFS='-' |
| 2086 | set x $ac_cv_host |
| 2087 | shift |
| 2088 | host_cpu=$1 |
| 2089 | host_vendor=$2 |
| 2090 | shift; shift |
| 2091 | # Remember, the first character of IFS is used to create $*, |
| 2092 | # except with old shells: |
| 2093 | host_os=$* |
| 2094 | IFS=$ac_save_IFS |
| 2095 | 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] | 2096 | |
| 2097 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2098 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2099 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2100 | if test "${ac_cv_target+set}" = set; then |
| 2101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2102 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2103 | if test "x$target_alias" = x; then |
| 2104 | ac_cv_target=$ac_cv_host |
| 2105 | else |
| 2106 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2107 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2108 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2109 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2110 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2111 | |
| 2112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2113 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2114 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2115 | case $ac_cv_target in |
| 2116 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2117 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2118 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2119 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2120 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2122 | ac_save_IFS=$IFS; IFS='-' |
| 2123 | set x $ac_cv_target |
| 2124 | shift |
| 2125 | target_cpu=$1 |
| 2126 | target_vendor=$2 |
| 2127 | shift; shift |
| 2128 | # Remember, the first character of IFS is used to create $*, |
| 2129 | # except with old shells: |
| 2130 | target_os=$* |
| 2131 | IFS=$ac_save_IFS |
| 2132 | 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] | 2133 | |
| 2134 | |
| 2135 | # The aliases save the names the user supplied, while $host etc. |
| 2136 | # will get canonicalized. |
| 2137 | test -n "$target_alias" && |
| 2138 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2139 | NONENONEs,x,x, && |
| 2140 | program_prefix=${target_alias}- |
| 2141 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2142 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2143 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2144 | if test "${llvm_cv_os_type+set}" = set; then |
| 2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2146 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2147 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2148 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2149 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2150 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2151 | llvm_cv_os_type="AIX" |
| 2152 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2153 | *-*-irix*) |
| 2154 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2155 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2156 | llvm_cv_os_type="IRIX" |
| 2157 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2158 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2159 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2160 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2161 | llvm_cv_os_type="Cygwin" |
| 2162 | llvm_cv_platform_type="Unix" ;; |
| 2163 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2164 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2165 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2166 | llvm_cv_os_type="Darwin" |
| 2167 | llvm_cv_platform_type="Unix" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2168 | *-*-minix*) |
| 2169 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2170 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 2171 | llvm_cv_os_type="Minix" |
| 2172 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2173 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2174 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2175 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2176 | llvm_cv_os_type="FreeBSD" |
| 2177 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2178 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2179 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2180 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2181 | llvm_cv_os_type="OpenBSD" |
| 2182 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2183 | *-*-netbsd*) |
| 2184 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2185 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2186 | llvm_cv_os_type="NetBSD" |
| 2187 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2188 | *-*-dragonfly*) |
| 2189 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2190 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2191 | llvm_cv_os_type="DragonFly" |
| 2192 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2193 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2194 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2195 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2196 | llvm_cv_os_type="HP-UX" |
| 2197 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2198 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2199 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2200 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2201 | llvm_cv_os_type="Interix" |
| 2202 | llvm_cv_platform_type="Unix" ;; |
| 2203 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2204 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2205 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2206 | llvm_cv_os_type="Linux" |
| 2207 | llvm_cv_platform_type="Unix" ;; |
| 2208 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2209 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2210 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2211 | llvm_cv_os_type="SunOS" |
| 2212 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2213 | *-*-auroraux*) |
| 2214 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2215 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2216 | llvm_cv_os_type="AuroraUX" |
| 2217 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2218 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2219 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2220 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2221 | llvm_cv_os_type="Win32" |
| 2222 | llvm_cv_platform_type="Win32" ;; |
| 2223 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2224 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2225 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2226 | llvm_cv_os_type="MingW" |
| 2227 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2228 | *-*-haiku*) |
| 2229 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2230 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2231 | llvm_cv_os_type="Haiku" |
| 2232 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2233 | *-unknown-eabi*) |
| 2234 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2235 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2236 | llvm_cv_os_type="Freestanding" |
| 2237 | llvm_cv_platform_type="Unix" ;; |
| 2238 | *-unknown-elf*) |
| 2239 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2240 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2241 | llvm_cv_os_type="Freestanding" |
| 2242 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2243 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | llvm_cv_link_all_option="" |
| 2245 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2246 | llvm_cv_os_type="Unknown" |
| 2247 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2249 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2250 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2251 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2253 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2254 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2255 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2257 | else |
| 2258 | case $target in |
| 2259 | *-*-aix*) |
| 2260 | llvm_cv_target_os_type="AIX" ;; |
| 2261 | *-*-irix*) |
| 2262 | llvm_cv_target_os_type="IRIX" ;; |
| 2263 | *-*-cygwin*) |
| 2264 | llvm_cv_target_os_type="Cygwin" ;; |
| 2265 | *-*-darwin*) |
| 2266 | llvm_cv_target_os_type="Darwin" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2267 | *-*-minix*) |
| 2268 | llvm_cv_target_os_type="Minix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2269 | *-*-freebsd*) |
| 2270 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2271 | *-*-openbsd*) |
| 2272 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2273 | *-*-netbsd*) |
| 2274 | llvm_cv_target_os_type="NetBSD" ;; |
| 2275 | *-*-dragonfly*) |
| 2276 | llvm_cv_target_os_type="DragonFly" ;; |
| 2277 | *-*-hpux*) |
| 2278 | llvm_cv_target_os_type="HP-UX" ;; |
| 2279 | *-*-interix*) |
| 2280 | llvm_cv_target_os_type="Interix" ;; |
| 2281 | *-*-linux*) |
| 2282 | llvm_cv_target_os_type="Linux" ;; |
| 2283 | *-*-solaris*) |
| 2284 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2285 | *-*-auroraux*) |
| 2286 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2287 | *-*-win32*) |
| 2288 | llvm_cv_target_os_type="Win32" ;; |
| 2289 | *-*-mingw*) |
| 2290 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2291 | *-*-haiku*) |
| 2292 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2293 | *-unknown-eabi*) |
| 2294 | llvm_cv_target_os_type="Freestanding" ;; |
| 2295 | *) |
| 2296 | llvm_cv_target_os_type="Unknown" ;; |
| 2297 | esac |
| 2298 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2299 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2300 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2301 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2302 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2303 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2304 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2305 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2306 | fi |
| 2307 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2308 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2309 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2310 | HOST_OS=$llvm_cv_os_type |
| 2311 | |
| 2312 | TARGET_OS=$llvm_cv_target_os_type |
| 2313 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2315 | LINKALL=$llvm_cv_link_all_option |
| 2316 | |
| 2317 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2318 | |
| 2319 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2320 | case $llvm_cv_platform_type in |
| 2321 | Unix) |
| 2322 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2323 | cat >>confdefs.h <<\_ACEOF |
| 2324 | #define LLVM_ON_UNIX 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=1 |
| 2328 | |
| 2329 | LLVM_ON_WIN32=0 |
| 2330 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2331 | ;; |
| 2332 | Win32) |
| 2333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2334 | cat >>confdefs.h <<\_ACEOF |
| 2335 | #define LLVM_ON_WIN32 1 |
| 2336 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2337 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2338 | LLVM_ON_UNIX=0 |
| 2339 | |
| 2340 | LLVM_ON_WIN32=1 |
| 2341 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2342 | ;; |
| 2343 | esac |
| 2344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2345 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2346 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2347 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2349 | else |
| 2350 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2351 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2352 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2353 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2354 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2355 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2356 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2357 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2358 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2359 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2360 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2361 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2362 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2363 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2364 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2365 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2366 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2367 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2368 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2369 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2370 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2371 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2372 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2373 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2374 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2375 | # Determine the LLVM native architecture for the target |
| 2376 | case "$llvm_cv_target_arch" in |
| 2377 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2378 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2379 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2380 | esac |
| 2381 | |
| 2382 | ARCH=$llvm_cv_target_arch |
| 2383 | |
| 2384 | |
| 2385 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2386 | ac_cpp='$CPP $CPPFLAGS' |
| 2387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2390 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2391 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2392 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2393 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2395 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2397 | else |
| 2398 | if test -n "$CC"; then |
| 2399 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2400 | else |
| 2401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2402 | for as_dir in $PATH |
| 2403 | do |
| 2404 | IFS=$as_save_IFS |
| 2405 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2407 | 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] | 2408 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2409 | 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] | 2410 | break 2 |
| 2411 | fi |
| 2412 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2413 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2414 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | |
| 2416 | fi |
| 2417 | fi |
| 2418 | CC=$ac_cv_prog_CC |
| 2419 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2420 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2421 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2422 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2423 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2424 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2425 | fi |
| 2426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2427 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2428 | fi |
| 2429 | if test -z "$ac_cv_prog_CC"; then |
| 2430 | ac_ct_CC=$CC |
| 2431 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2432 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2433 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2435 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2437 | else |
| 2438 | if test -n "$ac_ct_CC"; then |
| 2439 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2440 | else |
| 2441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2442 | for as_dir in $PATH |
| 2443 | do |
| 2444 | IFS=$as_save_IFS |
| 2445 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2446 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2447 | 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] | 2448 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2449 | 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] | 2450 | break 2 |
| 2451 | fi |
| 2452 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2453 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2454 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2455 | |
| 2456 | fi |
| 2457 | fi |
| 2458 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2459 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2460 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2461 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2462 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2463 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2464 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2465 | fi |
| 2466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2467 | if test "x$ac_ct_CC" = x; then |
| 2468 | CC="" |
| 2469 | else |
| 2470 | case $cross_compiling:$ac_tool_warned in |
| 2471 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2472 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2473 | whose name does not start with the host triplet. If you think this |
| 2474 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2475 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2476 | whose name does not start with the host triplet. If you think this |
| 2477 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2478 | ac_tool_warned=yes ;; |
| 2479 | esac |
| 2480 | CC=$ac_ct_CC |
| 2481 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2482 | else |
| 2483 | CC="$ac_cv_prog_CC" |
| 2484 | fi |
| 2485 | |
| 2486 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2487 | if test -n "$ac_tool_prefix"; then |
| 2488 | # 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] | 2489 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2490 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2492 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2494 | else |
| 2495 | if test -n "$CC"; then |
| 2496 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2497 | else |
| 2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2499 | for as_dir in $PATH |
| 2500 | do |
| 2501 | IFS=$as_save_IFS |
| 2502 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2504 | 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] | 2505 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2506 | 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] | 2507 | break 2 |
| 2508 | fi |
| 2509 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2510 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2511 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2512 | |
| 2513 | fi |
| 2514 | fi |
| 2515 | CC=$ac_cv_prog_CC |
| 2516 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2517 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2518 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2519 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2520 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2521 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2522 | fi |
| 2523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2524 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2525 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2526 | fi |
| 2527 | if test -z "$CC"; then |
| 2528 | # Extract the first word of "cc", so it can be a program name with args. |
| 2529 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2530 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2532 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2534 | else |
| 2535 | if test -n "$CC"; then |
| 2536 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2537 | else |
| 2538 | ac_prog_rejected=no |
| 2539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2540 | for as_dir in $PATH |
| 2541 | do |
| 2542 | IFS=$as_save_IFS |
| 2543 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2544 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2545 | 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] | 2546 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2547 | ac_prog_rejected=yes |
| 2548 | continue |
| 2549 | fi |
| 2550 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2551 | 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] | 2552 | break 2 |
| 2553 | fi |
| 2554 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2555 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2556 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2557 | |
| 2558 | if test $ac_prog_rejected = yes; then |
| 2559 | # We found a bogon in the path, so make sure we never use it. |
| 2560 | set dummy $ac_cv_prog_CC |
| 2561 | shift |
| 2562 | if test $# != 0; then |
| 2563 | # We chose a different compiler from the bogus one. |
| 2564 | # However, it has the same basename, so the bogon will be chosen |
| 2565 | # first if we set CC to just the basename; use the full file name. |
| 2566 | shift |
| 2567 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2568 | fi |
| 2569 | fi |
| 2570 | fi |
| 2571 | fi |
| 2572 | CC=$ac_cv_prog_CC |
| 2573 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2574 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2575 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2576 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2577 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2578 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2579 | fi |
| 2580 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2581 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2582 | fi |
| 2583 | if test -z "$CC"; then |
| 2584 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2585 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2586 | do |
| 2587 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2588 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2589 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2591 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2593 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2594 | if test -n "$CC"; then |
| 2595 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2596 | else |
| 2597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2598 | for as_dir in $PATH |
| 2599 | do |
| 2600 | IFS=$as_save_IFS |
| 2601 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2602 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2603 | 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] | 2604 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2605 | 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] | 2606 | break 2 |
| 2607 | fi |
| 2608 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2609 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2610 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2611 | |
| 2612 | fi |
| 2613 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2614 | CC=$ac_cv_prog_CC |
| 2615 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2616 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2617 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2619 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2620 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2621 | fi |
| 2622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2623 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2624 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2625 | done |
| 2626 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | if test -z "$CC"; then |
| 2628 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2629 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2630 | do |
| 2631 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2632 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2633 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2635 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2638 | if test -n "$ac_ct_CC"; then |
| 2639 | 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] | 2640 | else |
| 2641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2642 | for as_dir in $PATH |
| 2643 | do |
| 2644 | IFS=$as_save_IFS |
| 2645 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2646 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2647 | 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] | 2648 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2649 | 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] | 2650 | break 2 |
| 2651 | fi |
| 2652 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2653 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2654 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2655 | |
| 2656 | fi |
| 2657 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2658 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2659 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2660 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2661 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2662 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2663 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2664 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2665 | fi |
| 2666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2667 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2668 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2671 | if test "x$ac_ct_CC" = x; then |
| 2672 | CC="" |
| 2673 | else |
| 2674 | case $cross_compiling:$ac_tool_warned in |
| 2675 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2676 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2677 | whose name does not start with the host triplet. If you think this |
| 2678 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2679 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2680 | whose name does not start with the host triplet. If you think this |
| 2681 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2682 | ac_tool_warned=yes ;; |
| 2683 | esac |
| 2684 | CC=$ac_ct_CC |
| 2685 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2686 | fi |
| 2687 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2688 | fi |
| 2689 | |
| 2690 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2691 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2692 | See \`config.log' for more details." >&5 |
| 2693 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2694 | See \`config.log' for more details." >&2;} |
| 2695 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2697 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2698 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2699 | ac_compiler=`set X $ac_compile; echo $2` |
| 2700 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2701 | case "(($ac_try" in |
| 2702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2703 | *) ac_try_echo=$ac_try;; |
| 2704 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2706 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2707 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2709 | (exit $ac_status); } |
| 2710 | { (ac_try="$ac_compiler -v >&5" |
| 2711 | case "(($ac_try" in |
| 2712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2713 | *) ac_try_echo=$ac_try;; |
| 2714 | esac |
| 2715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2716 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2717 | ac_status=$? |
| 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2719 | (exit $ac_status); } |
| 2720 | { (ac_try="$ac_compiler -V >&5" |
| 2721 | case "(($ac_try" in |
| 2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2723 | *) ac_try_echo=$ac_try;; |
| 2724 | esac |
| 2725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2726 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2727 | ac_status=$? |
| 2728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2729 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2730 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2731 | cat >conftest.$ac_ext <<_ACEOF |
| 2732 | /* confdefs.h. */ |
| 2733 | _ACEOF |
| 2734 | cat confdefs.h >>conftest.$ac_ext |
| 2735 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2736 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2737 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2738 | int |
| 2739 | main () |
| 2740 | { |
| 2741 | |
| 2742 | ; |
| 2743 | return 0; |
| 2744 | } |
| 2745 | _ACEOF |
| 2746 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2747 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2748 | # Try to create an executable without -o first, disregard a.out. |
| 2749 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2750 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2751 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2752 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2753 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2754 | # |
| 2755 | # List of possible output files, starting from the most likely. |
| 2756 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2757 | # only as a last resort. b.out is created by i960 compilers. |
| 2758 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2759 | # |
| 2760 | # The IRIX 6 linker writes into existing files which may not be |
| 2761 | # executable, retaining their permissions. Remove them first so a |
| 2762 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2763 | ac_rmfiles= |
| 2764 | for ac_file in $ac_files |
| 2765 | do |
| 2766 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2767 | *.$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] | 2768 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2769 | esac |
| 2770 | done |
| 2771 | rm -f $ac_rmfiles |
| 2772 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2773 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2774 | case "(($ac_try" in |
| 2775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2776 | *) ac_try_echo=$ac_try;; |
| 2777 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2779 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2780 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2782 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2783 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2784 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2785 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2786 | # so that the user can short-circuit this test for compilers unknown to |
| 2787 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2788 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2789 | do |
| 2790 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2791 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2792 | *.$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] | 2793 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2794 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2795 | # We found the default executable, but exeext='' is most |
| 2796 | # certainly right. |
| 2797 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2798 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2799 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2800 | then :; else |
| 2801 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2802 | fi |
| 2803 | # We set ac_cv_exeext here because the later test for it is not |
| 2804 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2805 | # argument, so we may need to know it at that point already. |
| 2806 | # Even if this section looks crufty: it has the advantage of |
| 2807 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2808 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2809 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2810 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2811 | esac |
| 2812 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2813 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2814 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2815 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2816 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2818 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2819 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2820 | See \`config.log' for more details." >&5 |
| 2821 | echo "$as_me: error: C compiler cannot create executables |
| 2822 | See \`config.log' for more details." >&2;} |
| 2823 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2824 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2825 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2826 | ac_exeext=$ac_cv_exeext |
| 2827 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2828 | echo "${ECHO_T}$ac_file" >&6; } |
| 2829 | |
| 2830 | # Check that the compiler produces executables we can run. If not, either |
| 2831 | # the compiler is broken, or we cross compile. |
| 2832 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2833 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2834 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2835 | # If not cross compiling, check that we can run a simple program. |
| 2836 | if test "$cross_compiling" != yes; then |
| 2837 | if { ac_try='./$ac_file' |
| 2838 | { (case "(($ac_try" in |
| 2839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2840 | *) ac_try_echo=$ac_try;; |
| 2841 | esac |
| 2842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2843 | (eval "$ac_try") 2>&5 |
| 2844 | ac_status=$? |
| 2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2846 | (exit $ac_status); }; }; then |
| 2847 | cross_compiling=no |
| 2848 | else |
| 2849 | if test "$cross_compiling" = maybe; then |
| 2850 | cross_compiling=yes |
| 2851 | else |
| 2852 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2853 | If you meant to cross compile, use \`--host'. |
| 2854 | See \`config.log' for more details." >&5 |
| 2855 | echo "$as_me: error: cannot run C compiled programs. |
| 2856 | If you meant to cross compile, use \`--host'. |
| 2857 | See \`config.log' for more details." >&2;} |
| 2858 | { (exit 1); exit 1; }; } |
| 2859 | fi |
| 2860 | fi |
| 2861 | fi |
| 2862 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2863 | echo "${ECHO_T}yes" >&6; } |
| 2864 | |
| 2865 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2866 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2867 | # Check that the compiler produces executables we can run. If not, either |
| 2868 | # the compiler is broken, or we cross compile. |
| 2869 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2870 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2871 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2872 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2873 | |
| 2874 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2875 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2876 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2877 | case "(($ac_try" in |
| 2878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2879 | *) ac_try_echo=$ac_try;; |
| 2880 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2882 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2883 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2885 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2886 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2887 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2888 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2889 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2890 | for ac_file in conftest.exe conftest conftest.*; do |
| 2891 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2892 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2893 | *.$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] | 2894 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2895 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2896 | * ) break;; |
| 2897 | esac |
| 2898 | done |
| 2899 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2900 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2901 | See \`config.log' for more details." >&5 |
| 2902 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2903 | See \`config.log' for more details." >&2;} |
| 2904 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2905 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2906 | |
| 2907 | rm -f conftest$ac_cv_exeext |
| 2908 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2909 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | |
| 2911 | rm -f conftest.$ac_ext |
| 2912 | EXEEXT=$ac_cv_exeext |
| 2913 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2914 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2915 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2916 | if test "${ac_cv_objext+set}" = set; then |
| 2917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2918 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2919 | cat >conftest.$ac_ext <<_ACEOF |
| 2920 | /* confdefs.h. */ |
| 2921 | _ACEOF |
| 2922 | cat confdefs.h >>conftest.$ac_ext |
| 2923 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2924 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2925 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | int |
| 2927 | main () |
| 2928 | { |
| 2929 | |
| 2930 | ; |
| 2931 | return 0; |
| 2932 | } |
| 2933 | _ACEOF |
| 2934 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2935 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2936 | case "(($ac_try" in |
| 2937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2938 | *) ac_try_echo=$ac_try;; |
| 2939 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2941 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2942 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2944 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2945 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2946 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2947 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2950 | break;; |
| 2951 | esac |
| 2952 | done |
| 2953 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2954 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2956 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2957 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2958 | See \`config.log' for more details." >&5 |
| 2959 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2960 | See \`config.log' for more details." >&2;} |
| 2961 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2962 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2963 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2964 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2965 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2966 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2967 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2968 | OBJEXT=$ac_cv_objext |
| 2969 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2970 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2971 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2972 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2974 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2975 | cat >conftest.$ac_ext <<_ACEOF |
| 2976 | /* confdefs.h. */ |
| 2977 | _ACEOF |
| 2978 | cat confdefs.h >>conftest.$ac_ext |
| 2979 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2980 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2981 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2982 | int |
| 2983 | main () |
| 2984 | { |
| 2985 | #ifndef __GNUC__ |
| 2986 | choke me |
| 2987 | #endif |
| 2988 | |
| 2989 | ; |
| 2990 | return 0; |
| 2991 | } |
| 2992 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2993 | rm -f conftest.$ac_objext |
| 2994 | if { (ac_try="$ac_compile" |
| 2995 | case "(($ac_try" in |
| 2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2997 | *) ac_try_echo=$ac_try;; |
| 2998 | esac |
| 2999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3000 | (eval "$ac_compile") 2>conftest.er1 |
| 3001 | ac_status=$? |
| 3002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3003 | rm -f conftest.er1 |
| 3004 | cat conftest.err >&5 |
| 3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3006 | (exit $ac_status); } && |
| 3007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3008 | { (case "(($ac_try" in |
| 3009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3010 | *) ac_try_echo=$ac_try;; |
| 3011 | esac |
| 3012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3013 | (eval "$ac_try") 2>&5 |
| 3014 | ac_status=$? |
| 3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3016 | (exit $ac_status); }; } && |
| 3017 | { ac_try='test -s conftest.$ac_objext' |
| 3018 | { (case "(($ac_try" in |
| 3019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3020 | *) ac_try_echo=$ac_try;; |
| 3021 | esac |
| 3022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3023 | (eval "$ac_try") 2>&5 |
| 3024 | ac_status=$? |
| 3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3026 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | ac_compiler_gnu=yes |
| 3028 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3029 | echo "$as_me: failed program was:" >&5 |
| 3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3031 | |
| 3032 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3033 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3036 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | |
| 3038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3039 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3040 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3041 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3042 | ac_test_CFLAGS=${CFLAGS+set} |
| 3043 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3044 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3045 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3046 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3048 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3049 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3050 | ac_c_werror_flag=yes |
| 3051 | ac_cv_prog_cc_g=no |
| 3052 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3053 | cat >conftest.$ac_ext <<_ACEOF |
| 3054 | /* confdefs.h. */ |
| 3055 | _ACEOF |
| 3056 | cat confdefs.h >>conftest.$ac_ext |
| 3057 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3058 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3059 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3060 | int |
| 3061 | main () |
| 3062 | { |
| 3063 | |
| 3064 | ; |
| 3065 | return 0; |
| 3066 | } |
| 3067 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3068 | rm -f conftest.$ac_objext |
| 3069 | if { (ac_try="$ac_compile" |
| 3070 | case "(($ac_try" in |
| 3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3072 | *) ac_try_echo=$ac_try;; |
| 3073 | esac |
| 3074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3075 | (eval "$ac_compile") 2>conftest.er1 |
| 3076 | ac_status=$? |
| 3077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3078 | rm -f conftest.er1 |
| 3079 | cat conftest.err >&5 |
| 3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3081 | (exit $ac_status); } && |
| 3082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3083 | { (case "(($ac_try" in |
| 3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3085 | *) ac_try_echo=$ac_try;; |
| 3086 | esac |
| 3087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3088 | (eval "$ac_try") 2>&5 |
| 3089 | ac_status=$? |
| 3090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3091 | (exit $ac_status); }; } && |
| 3092 | { ac_try='test -s conftest.$ac_objext' |
| 3093 | { (case "(($ac_try" in |
| 3094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3095 | *) ac_try_echo=$ac_try;; |
| 3096 | esac |
| 3097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3098 | (eval "$ac_try") 2>&5 |
| 3099 | ac_status=$? |
| 3100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3101 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3102 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3103 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3104 | echo "$as_me: failed program was:" >&5 |
| 3105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3106 | |
| 3107 | CFLAGS="" |
| 3108 | cat >conftest.$ac_ext <<_ACEOF |
| 3109 | /* confdefs.h. */ |
| 3110 | _ACEOF |
| 3111 | cat confdefs.h >>conftest.$ac_ext |
| 3112 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3113 | /* end confdefs.h. */ |
| 3114 | |
| 3115 | int |
| 3116 | main () |
| 3117 | { |
| 3118 | |
| 3119 | ; |
| 3120 | return 0; |
| 3121 | } |
| 3122 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3123 | rm -f conftest.$ac_objext |
| 3124 | if { (ac_try="$ac_compile" |
| 3125 | case "(($ac_try" in |
| 3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3127 | *) ac_try_echo=$ac_try;; |
| 3128 | esac |
| 3129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3130 | (eval "$ac_compile") 2>conftest.er1 |
| 3131 | ac_status=$? |
| 3132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3133 | rm -f conftest.er1 |
| 3134 | cat conftest.err >&5 |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3136 | (exit $ac_status); } && |
| 3137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3138 | { (case "(($ac_try" in |
| 3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3140 | *) ac_try_echo=$ac_try;; |
| 3141 | esac |
| 3142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3143 | (eval "$ac_try") 2>&5 |
| 3144 | ac_status=$? |
| 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3146 | (exit $ac_status); }; } && |
| 3147 | { ac_try='test -s conftest.$ac_objext' |
| 3148 | { (case "(($ac_try" in |
| 3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3150 | *) ac_try_echo=$ac_try;; |
| 3151 | esac |
| 3152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3153 | (eval "$ac_try") 2>&5 |
| 3154 | ac_status=$? |
| 3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3156 | (exit $ac_status); }; }; then |
| 3157 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3159 | echo "$as_me: failed program was:" >&5 |
| 3160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3161 | |
| 3162 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3163 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3164 | cat >conftest.$ac_ext <<_ACEOF |
| 3165 | /* confdefs.h. */ |
| 3166 | _ACEOF |
| 3167 | cat confdefs.h >>conftest.$ac_ext |
| 3168 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3169 | /* end confdefs.h. */ |
| 3170 | |
| 3171 | int |
| 3172 | main () |
| 3173 | { |
| 3174 | |
| 3175 | ; |
| 3176 | return 0; |
| 3177 | } |
| 3178 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3179 | rm -f conftest.$ac_objext |
| 3180 | if { (ac_try="$ac_compile" |
| 3181 | case "(($ac_try" in |
| 3182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3183 | *) ac_try_echo=$ac_try;; |
| 3184 | esac |
| 3185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3186 | (eval "$ac_compile") 2>conftest.er1 |
| 3187 | ac_status=$? |
| 3188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3189 | rm -f conftest.er1 |
| 3190 | cat conftest.err >&5 |
| 3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3192 | (exit $ac_status); } && |
| 3193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3194 | { (case "(($ac_try" in |
| 3195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3196 | *) ac_try_echo=$ac_try;; |
| 3197 | esac |
| 3198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3199 | (eval "$ac_try") 2>&5 |
| 3200 | ac_status=$? |
| 3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3202 | (exit $ac_status); }; } && |
| 3203 | { ac_try='test -s conftest.$ac_objext' |
| 3204 | { (case "(($ac_try" in |
| 3205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3206 | *) ac_try_echo=$ac_try;; |
| 3207 | esac |
| 3208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3209 | (eval "$ac_try") 2>&5 |
| 3210 | ac_status=$? |
| 3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3212 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3213 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3214 | else |
| 3215 | echo "$as_me: failed program was:" >&5 |
| 3216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3217 | |
| 3218 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3219 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3222 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3225 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3228 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3229 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3230 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3231 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3232 | if test "$ac_test_CFLAGS" = set; then |
| 3233 | CFLAGS=$ac_save_CFLAGS |
| 3234 | elif test $ac_cv_prog_cc_g = yes; then |
| 3235 | if test "$GCC" = yes; then |
| 3236 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3237 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3238 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3239 | fi |
| 3240 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3241 | if test "$GCC" = yes; then |
| 3242 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3243 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3244 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3245 | fi |
| 3246 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3247 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3248 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3249 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3251 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3252 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3253 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3254 | cat >conftest.$ac_ext <<_ACEOF |
| 3255 | /* confdefs.h. */ |
| 3256 | _ACEOF |
| 3257 | cat confdefs.h >>conftest.$ac_ext |
| 3258 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3259 | /* end confdefs.h. */ |
| 3260 | #include <stdarg.h> |
| 3261 | #include <stdio.h> |
| 3262 | #include <sys/types.h> |
| 3263 | #include <sys/stat.h> |
| 3264 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3265 | struct buf { int x; }; |
| 3266 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3267 | static char *e (p, i) |
| 3268 | char **p; |
| 3269 | int i; |
| 3270 | { |
| 3271 | return p[i]; |
| 3272 | } |
| 3273 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3274 | { |
| 3275 | char *s; |
| 3276 | va_list v; |
| 3277 | va_start (v,p); |
| 3278 | s = g (p, va_arg (v,int)); |
| 3279 | va_end (v); |
| 3280 | return s; |
| 3281 | } |
| 3282 | |
| 3283 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3284 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3285 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3286 | 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] | 3287 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3288 | 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] | 3289 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3290 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3292 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3293 | inside strings and character constants. */ |
| 3294 | #define FOO(x) 'x' |
| 3295 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3296 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3297 | int test (int i, double x); |
| 3298 | struct s1 {int (*f) (int a);}; |
| 3299 | struct s2 {int (*f) (double a);}; |
| 3300 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3301 | int argc; |
| 3302 | char **argv; |
| 3303 | int |
| 3304 | main () |
| 3305 | { |
| 3306 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3307 | ; |
| 3308 | return 0; |
| 3309 | } |
| 3310 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3311 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3312 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3313 | do |
| 3314 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3315 | rm -f conftest.$ac_objext |
| 3316 | if { (ac_try="$ac_compile" |
| 3317 | case "(($ac_try" in |
| 3318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3319 | *) ac_try_echo=$ac_try;; |
| 3320 | esac |
| 3321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3322 | (eval "$ac_compile") 2>conftest.er1 |
| 3323 | ac_status=$? |
| 3324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3325 | rm -f conftest.er1 |
| 3326 | cat conftest.err >&5 |
| 3327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3328 | (exit $ac_status); } && |
| 3329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3330 | { (case "(($ac_try" in |
| 3331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3332 | *) ac_try_echo=$ac_try;; |
| 3333 | esac |
| 3334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3335 | (eval "$ac_try") 2>&5 |
| 3336 | ac_status=$? |
| 3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3338 | (exit $ac_status); }; } && |
| 3339 | { ac_try='test -s conftest.$ac_objext' |
| 3340 | { (case "(($ac_try" in |
| 3341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3342 | *) ac_try_echo=$ac_try;; |
| 3343 | esac |
| 3344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3345 | (eval "$ac_try") 2>&5 |
| 3346 | ac_status=$? |
| 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3348 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3349 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3350 | else |
| 3351 | echo "$as_me: failed program was:" >&5 |
| 3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3353 | |
| 3354 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3355 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3357 | rm -f core conftest.err conftest.$ac_objext |
| 3358 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3359 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3360 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3361 | CC=$ac_save_CC |
| 3362 | |
| 3363 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3364 | # AC_CACHE_VAL |
| 3365 | case "x$ac_cv_prog_cc_c89" in |
| 3366 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3367 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3368 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3369 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3370 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3371 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3372 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3373 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3374 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3375 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3376 | esac |
| 3377 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3378 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3379 | ac_ext=c |
| 3380 | ac_cpp='$CPP $CPPFLAGS' |
| 3381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3384 | |
| 3385 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3386 | ac_ext=c |
| 3387 | ac_cpp='$CPP $CPPFLAGS' |
| 3388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3391 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3392 | 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] | 3393 | # On Suns, sometimes $CPP names a directory. |
| 3394 | if test -n "$CPP" && test -d "$CPP"; then |
| 3395 | CPP= |
| 3396 | fi |
| 3397 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3398 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3400 | else |
| 3401 | # Double quotes because CPP needs to be expanded |
| 3402 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3403 | do |
| 3404 | ac_preproc_ok=false |
| 3405 | for ac_c_preproc_warn_flag in '' yes |
| 3406 | do |
| 3407 | # Use a header file that comes with gcc, so configuring glibc |
| 3408 | # with a fresh cross-compiler works. |
| 3409 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3410 | # <limits.h> exists even on freestanding compilers. |
| 3411 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3412 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3413 | cat >conftest.$ac_ext <<_ACEOF |
| 3414 | /* confdefs.h. */ |
| 3415 | _ACEOF |
| 3416 | cat confdefs.h >>conftest.$ac_ext |
| 3417 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3418 | /* end confdefs.h. */ |
| 3419 | #ifdef __STDC__ |
| 3420 | # include <limits.h> |
| 3421 | #else |
| 3422 | # include <assert.h> |
| 3423 | #endif |
| 3424 | Syntax error |
| 3425 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3426 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3427 | case "(($ac_try" in |
| 3428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3429 | *) ac_try_echo=$ac_try;; |
| 3430 | esac |
| 3431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3432 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3433 | ac_status=$? |
| 3434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3435 | rm -f conftest.er1 |
| 3436 | cat conftest.err >&5 |
| 3437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3438 | (exit $ac_status); } >/dev/null; then |
| 3439 | if test -s conftest.err; then |
| 3440 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3442 | else |
| 3443 | ac_cpp_err= |
| 3444 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3445 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3446 | ac_cpp_err=yes |
| 3447 | fi |
| 3448 | if test -z "$ac_cpp_err"; then |
| 3449 | : |
| 3450 | else |
| 3451 | echo "$as_me: failed program was:" >&5 |
| 3452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3453 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3454 | # Broken: fails on valid input. |
| 3455 | continue |
| 3456 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3457 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3458 | rm -f conftest.err conftest.$ac_ext |
| 3459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3460 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3461 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3462 | cat >conftest.$ac_ext <<_ACEOF |
| 3463 | /* confdefs.h. */ |
| 3464 | _ACEOF |
| 3465 | cat confdefs.h >>conftest.$ac_ext |
| 3466 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3467 | /* end confdefs.h. */ |
| 3468 | #include <ac_nonexistent.h> |
| 3469 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3470 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3471 | case "(($ac_try" in |
| 3472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3473 | *) ac_try_echo=$ac_try;; |
| 3474 | esac |
| 3475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3476 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3477 | ac_status=$? |
| 3478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3479 | rm -f conftest.er1 |
| 3480 | cat conftest.err >&5 |
| 3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3482 | (exit $ac_status); } >/dev/null; then |
| 3483 | if test -s conftest.err; then |
| 3484 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3485 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3486 | else |
| 3487 | ac_cpp_err= |
| 3488 | fi |
| 3489 | else |
| 3490 | ac_cpp_err=yes |
| 3491 | fi |
| 3492 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3493 | # Broken: success on invalid input. |
| 3494 | continue |
| 3495 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3496 | echo "$as_me: failed program was:" >&5 |
| 3497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3498 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3499 | # Passes both tests. |
| 3500 | ac_preproc_ok=: |
| 3501 | break |
| 3502 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3503 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3504 | rm -f conftest.err conftest.$ac_ext |
| 3505 | |
| 3506 | done |
| 3507 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3508 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3509 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3510 | break |
| 3511 | fi |
| 3512 | |
| 3513 | done |
| 3514 | ac_cv_prog_CPP=$CPP |
| 3515 | |
| 3516 | fi |
| 3517 | CPP=$ac_cv_prog_CPP |
| 3518 | else |
| 3519 | ac_cv_prog_CPP=$CPP |
| 3520 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3521 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3522 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3523 | ac_preproc_ok=false |
| 3524 | for ac_c_preproc_warn_flag in '' yes |
| 3525 | do |
| 3526 | # Use a header file that comes with gcc, so configuring glibc |
| 3527 | # with a fresh cross-compiler works. |
| 3528 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3529 | # <limits.h> exists even on freestanding compilers. |
| 3530 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3531 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3532 | cat >conftest.$ac_ext <<_ACEOF |
| 3533 | /* confdefs.h. */ |
| 3534 | _ACEOF |
| 3535 | cat confdefs.h >>conftest.$ac_ext |
| 3536 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3537 | /* end confdefs.h. */ |
| 3538 | #ifdef __STDC__ |
| 3539 | # include <limits.h> |
| 3540 | #else |
| 3541 | # include <assert.h> |
| 3542 | #endif |
| 3543 | Syntax error |
| 3544 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3545 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3546 | case "(($ac_try" in |
| 3547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3548 | *) ac_try_echo=$ac_try;; |
| 3549 | esac |
| 3550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3551 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3552 | ac_status=$? |
| 3553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3554 | rm -f conftest.er1 |
| 3555 | cat conftest.err >&5 |
| 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3557 | (exit $ac_status); } >/dev/null; then |
| 3558 | if test -s conftest.err; then |
| 3559 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3561 | else |
| 3562 | ac_cpp_err= |
| 3563 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3564 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3565 | ac_cpp_err=yes |
| 3566 | fi |
| 3567 | if test -z "$ac_cpp_err"; then |
| 3568 | : |
| 3569 | else |
| 3570 | echo "$as_me: failed program was:" >&5 |
| 3571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3572 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3573 | # Broken: fails on valid input. |
| 3574 | continue |
| 3575 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3576 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3577 | rm -f conftest.err conftest.$ac_ext |
| 3578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3579 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3580 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3581 | cat >conftest.$ac_ext <<_ACEOF |
| 3582 | /* confdefs.h. */ |
| 3583 | _ACEOF |
| 3584 | cat confdefs.h >>conftest.$ac_ext |
| 3585 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3586 | /* end confdefs.h. */ |
| 3587 | #include <ac_nonexistent.h> |
| 3588 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3589 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3590 | case "(($ac_try" in |
| 3591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3592 | *) ac_try_echo=$ac_try;; |
| 3593 | esac |
| 3594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3595 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3596 | ac_status=$? |
| 3597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3598 | rm -f conftest.er1 |
| 3599 | cat conftest.err >&5 |
| 3600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3601 | (exit $ac_status); } >/dev/null; then |
| 3602 | if test -s conftest.err; then |
| 3603 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3604 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3605 | else |
| 3606 | ac_cpp_err= |
| 3607 | fi |
| 3608 | else |
| 3609 | ac_cpp_err=yes |
| 3610 | fi |
| 3611 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3612 | # Broken: success on invalid input. |
| 3613 | continue |
| 3614 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3615 | echo "$as_me: failed program was:" >&5 |
| 3616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3617 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3618 | # Passes both tests. |
| 3619 | ac_preproc_ok=: |
| 3620 | break |
| 3621 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3622 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3623 | rm -f conftest.err conftest.$ac_ext |
| 3624 | |
| 3625 | done |
| 3626 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3627 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3628 | if $ac_preproc_ok; then |
| 3629 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3630 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3631 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3632 | See \`config.log' for more details." >&5 |
| 3633 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3634 | See \`config.log' for more details." >&2;} |
| 3635 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3636 | fi |
| 3637 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3638 | ac_ext=c |
| 3639 | ac_cpp='$CPP $CPPFLAGS' |
| 3640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3643 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3644 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3645 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3646 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3647 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3649 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3650 | # Extract the first word of "grep ggrep" to use in msg output |
| 3651 | if test -z "$GREP"; then |
| 3652 | set dummy grep ggrep; ac_prog_name=$2 |
| 3653 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3655 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3656 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3657 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3659 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3660 | do |
| 3661 | IFS=$as_save_IFS |
| 3662 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3663 | for ac_prog in grep ggrep; do |
| 3664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3665 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3666 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3667 | # 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] | 3668 | # Check for GNU $ac_path_GREP |
| 3669 | case `"$ac_path_GREP" --version 2>&1` in |
| 3670 | *GNU*) |
| 3671 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3672 | *) |
| 3673 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3674 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3675 | while : |
| 3676 | do |
| 3677 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3678 | mv "conftest.tmp" "conftest.in" |
| 3679 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3680 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3681 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3682 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3683 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3684 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3685 | # Best one so far, save it but keep looking for a better one |
| 3686 | ac_cv_path_GREP="$ac_path_GREP" |
| 3687 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3688 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3689 | # 10*(2^10) chars as input seems more than enough |
| 3690 | test $ac_count -gt 10 && break |
| 3691 | done |
| 3692 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3693 | esac |
| 3694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3695 | |
| 3696 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3697 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3698 | done |
| 3699 | |
| 3700 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3701 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3702 | |
| 3703 | |
| 3704 | fi |
| 3705 | |
| 3706 | GREP="$ac_cv_path_GREP" |
| 3707 | if test -z "$GREP"; then |
| 3708 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3709 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3710 | { (exit 1); exit 1; }; } |
| 3711 | fi |
| 3712 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3713 | else |
| 3714 | ac_cv_path_GREP=$GREP |
| 3715 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3716 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3718 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3719 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3720 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3721 | GREP="$ac_cv_path_GREP" |
| 3722 | |
| 3723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3724 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3725 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3726 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3728 | else |
| 3729 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3730 | then ac_cv_path_EGREP="$GREP -E" |
| 3731 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3732 | # Extract the first word of "egrep" to use in msg output |
| 3733 | if test -z "$EGREP"; then |
| 3734 | set dummy egrep; ac_prog_name=$2 |
| 3735 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3737 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3738 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3739 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3741 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3742 | do |
| 3743 | IFS=$as_save_IFS |
| 3744 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3745 | for ac_prog in egrep; do |
| 3746 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3747 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3748 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3749 | # 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] | 3750 | # Check for GNU $ac_path_EGREP |
| 3751 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3752 | *GNU*) |
| 3753 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3754 | *) |
| 3755 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3756 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3757 | while : |
| 3758 | do |
| 3759 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3760 | mv "conftest.tmp" "conftest.in" |
| 3761 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3762 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3763 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3764 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3765 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3766 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3767 | # Best one so far, save it but keep looking for a better one |
| 3768 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3769 | ac_path_EGREP_max=$ac_count |
| 3770 | fi |
| 3771 | # 10*(2^10) chars as input seems more than enough |
| 3772 | test $ac_count -gt 10 && break |
| 3773 | done |
| 3774 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3775 | esac |
| 3776 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3777 | |
| 3778 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3779 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3780 | done |
| 3781 | |
| 3782 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3783 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3784 | |
| 3785 | |
| 3786 | fi |
| 3787 | |
| 3788 | EGREP="$ac_cv_path_EGREP" |
| 3789 | if test -z "$EGREP"; then |
| 3790 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3791 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3792 | { (exit 1); exit 1; }; } |
| 3793 | fi |
| 3794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3795 | else |
| 3796 | ac_cv_path_EGREP=$EGREP |
| 3797 | fi |
| 3798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3800 | fi |
| 3801 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3802 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3803 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3804 | EGREP="$ac_cv_path_EGREP" |
| 3805 | |
| 3806 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3807 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3808 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3809 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3812 | cat >conftest.$ac_ext <<_ACEOF |
| 3813 | /* confdefs.h. */ |
| 3814 | _ACEOF |
| 3815 | cat confdefs.h >>conftest.$ac_ext |
| 3816 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3817 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3818 | #include <stdlib.h> |
| 3819 | #include <stdarg.h> |
| 3820 | #include <string.h> |
| 3821 | #include <float.h> |
| 3822 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3823 | int |
| 3824 | main () |
| 3825 | { |
| 3826 | |
| 3827 | ; |
| 3828 | return 0; |
| 3829 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3830 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3831 | rm -f conftest.$ac_objext |
| 3832 | if { (ac_try="$ac_compile" |
| 3833 | case "(($ac_try" in |
| 3834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3835 | *) ac_try_echo=$ac_try;; |
| 3836 | esac |
| 3837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3838 | (eval "$ac_compile") 2>conftest.er1 |
| 3839 | ac_status=$? |
| 3840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3841 | rm -f conftest.er1 |
| 3842 | cat conftest.err >&5 |
| 3843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3844 | (exit $ac_status); } && |
| 3845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3846 | { (case "(($ac_try" in |
| 3847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3848 | *) ac_try_echo=$ac_try;; |
| 3849 | esac |
| 3850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3851 | (eval "$ac_try") 2>&5 |
| 3852 | ac_status=$? |
| 3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3854 | (exit $ac_status); }; } && |
| 3855 | { ac_try='test -s conftest.$ac_objext' |
| 3856 | { (case "(($ac_try" in |
| 3857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3858 | *) ac_try_echo=$ac_try;; |
| 3859 | esac |
| 3860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3861 | (eval "$ac_try") 2>&5 |
| 3862 | ac_status=$? |
| 3863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3864 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3865 | ac_cv_header_stdc=yes |
| 3866 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3867 | echo "$as_me: failed program was:" >&5 |
| 3868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3869 | |
| 3870 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3871 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3874 | |
| 3875 | if test $ac_cv_header_stdc = yes; then |
| 3876 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3877 | cat >conftest.$ac_ext <<_ACEOF |
| 3878 | /* confdefs.h. */ |
| 3879 | _ACEOF |
| 3880 | cat confdefs.h >>conftest.$ac_ext |
| 3881 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3882 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3883 | #include <string.h> |
| 3884 | |
| 3885 | _ACEOF |
| 3886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3887 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3888 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3889 | else |
| 3890 | ac_cv_header_stdc=no |
| 3891 | fi |
| 3892 | rm -f conftest* |
| 3893 | |
| 3894 | fi |
| 3895 | |
| 3896 | if test $ac_cv_header_stdc = yes; then |
| 3897 | # 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] | 3898 | cat >conftest.$ac_ext <<_ACEOF |
| 3899 | /* confdefs.h. */ |
| 3900 | _ACEOF |
| 3901 | cat confdefs.h >>conftest.$ac_ext |
| 3902 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3903 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3904 | #include <stdlib.h> |
| 3905 | |
| 3906 | _ACEOF |
| 3907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3908 | $EGREP "free" >/dev/null 2>&1; then |
| 3909 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3910 | else |
| 3911 | ac_cv_header_stdc=no |
| 3912 | fi |
| 3913 | rm -f conftest* |
| 3914 | |
| 3915 | fi |
| 3916 | |
| 3917 | if test $ac_cv_header_stdc = yes; then |
| 3918 | # /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] | 3919 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3920 | : |
| 3921 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3922 | cat >conftest.$ac_ext <<_ACEOF |
| 3923 | /* confdefs.h. */ |
| 3924 | _ACEOF |
| 3925 | cat confdefs.h >>conftest.$ac_ext |
| 3926 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3927 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3928 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3929 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3930 | #if ((' ' & 0x0FF) == 0x020) |
| 3931 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3932 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3933 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3934 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3935 | (('a' <= (c) && (c) <= 'i') \ |
| 3936 | || ('j' <= (c) && (c) <= 'r') \ |
| 3937 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3938 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3939 | #endif |
| 3940 | |
| 3941 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3942 | int |
| 3943 | main () |
| 3944 | { |
| 3945 | int i; |
| 3946 | for (i = 0; i < 256; i++) |
| 3947 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3948 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3949 | return 2; |
| 3950 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3951 | } |
| 3952 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3953 | rm -f conftest$ac_exeext |
| 3954 | if { (ac_try="$ac_link" |
| 3955 | case "(($ac_try" in |
| 3956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3957 | *) ac_try_echo=$ac_try;; |
| 3958 | esac |
| 3959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3960 | (eval "$ac_link") 2>&5 |
| 3961 | ac_status=$? |
| 3962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3963 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3964 | { (case "(($ac_try" in |
| 3965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3966 | *) ac_try_echo=$ac_try;; |
| 3967 | esac |
| 3968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3969 | (eval "$ac_try") 2>&5 |
| 3970 | ac_status=$? |
| 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3972 | (exit $ac_status); }; }; then |
| 3973 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3974 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3975 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3976 | echo "$as_me: failed program was:" >&5 |
| 3977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3978 | |
| 3979 | ( exit $ac_status ) |
| 3980 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3981 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3982 | 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] | 3983 | fi |
| 3984 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3986 | fi |
| 3987 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3988 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3989 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3990 | if test $ac_cv_header_stdc = yes; then |
| 3991 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3992 | cat >>confdefs.h <<\_ACEOF |
| 3993 | #define STDC_HEADERS 1 |
| 3994 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3995 | |
| 3996 | fi |
| 3997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3998 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3999 | |
| 4000 | |
| 4001 | |
| 4002 | |
| 4003 | |
| 4004 | |
| 4005 | |
| 4006 | |
| 4007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4008 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4009 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4010 | do |
| 4011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4016 | else |
| 4017 | cat >conftest.$ac_ext <<_ACEOF |
| 4018 | /* confdefs.h. */ |
| 4019 | _ACEOF |
| 4020 | cat confdefs.h >>conftest.$ac_ext |
| 4021 | cat >>conftest.$ac_ext <<_ACEOF |
| 4022 | /* end confdefs.h. */ |
| 4023 | $ac_includes_default |
| 4024 | |
| 4025 | #include <$ac_header> |
| 4026 | _ACEOF |
| 4027 | rm -f conftest.$ac_objext |
| 4028 | if { (ac_try="$ac_compile" |
| 4029 | case "(($ac_try" in |
| 4030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4031 | *) ac_try_echo=$ac_try;; |
| 4032 | esac |
| 4033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4034 | (eval "$ac_compile") 2>conftest.er1 |
| 4035 | ac_status=$? |
| 4036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4037 | rm -f conftest.er1 |
| 4038 | cat conftest.err >&5 |
| 4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4040 | (exit $ac_status); } && |
| 4041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4042 | { (case "(($ac_try" in |
| 4043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4044 | *) ac_try_echo=$ac_try;; |
| 4045 | esac |
| 4046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4047 | (eval "$ac_try") 2>&5 |
| 4048 | ac_status=$? |
| 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4050 | (exit $ac_status); }; } && |
| 4051 | { ac_try='test -s conftest.$ac_objext' |
| 4052 | { (case "(($ac_try" in |
| 4053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4054 | *) ac_try_echo=$ac_try;; |
| 4055 | esac |
| 4056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4057 | (eval "$ac_try") 2>&5 |
| 4058 | ac_status=$? |
| 4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4060 | (exit $ac_status); }; }; then |
| 4061 | eval "$as_ac_Header=yes" |
| 4062 | else |
| 4063 | echo "$as_me: failed program was:" >&5 |
| 4064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4065 | |
| 4066 | eval "$as_ac_Header=no" |
| 4067 | fi |
| 4068 | |
| 4069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4070 | fi |
| 4071 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4072 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4073 | echo "${ECHO_T}$ac_res" >&6; } |
| 4074 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4075 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4076 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4077 | _ACEOF |
| 4078 | |
| 4079 | fi |
| 4080 | |
| 4081 | done |
| 4082 | |
| 4083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4084 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4085 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4086 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4088 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4089 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4090 | cat >conftest.$ac_ext <<_ACEOF |
| 4091 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4092 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4093 | cat confdefs.h >>conftest.$ac_ext |
| 4094 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4095 | /* end confdefs.h. */ |
| 4096 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4097 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4098 | |
| 4099 | int |
| 4100 | main () |
| 4101 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4102 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4103 | bogus endian macros |
| 4104 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4105 | |
| 4106 | ; |
| 4107 | return 0; |
| 4108 | } |
| 4109 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4110 | rm -f conftest.$ac_objext |
| 4111 | if { (ac_try="$ac_compile" |
| 4112 | case "(($ac_try" in |
| 4113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4114 | *) ac_try_echo=$ac_try;; |
| 4115 | esac |
| 4116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4117 | (eval "$ac_compile") 2>conftest.er1 |
| 4118 | ac_status=$? |
| 4119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4120 | rm -f conftest.er1 |
| 4121 | cat conftest.err >&5 |
| 4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4123 | (exit $ac_status); } && |
| 4124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4125 | { (case "(($ac_try" in |
| 4126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4127 | *) ac_try_echo=$ac_try;; |
| 4128 | esac |
| 4129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4130 | (eval "$ac_try") 2>&5 |
| 4131 | ac_status=$? |
| 4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4133 | (exit $ac_status); }; } && |
| 4134 | { ac_try='test -s conftest.$ac_objext' |
| 4135 | { (case "(($ac_try" in |
| 4136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4137 | *) ac_try_echo=$ac_try;; |
| 4138 | esac |
| 4139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4140 | (eval "$ac_try") 2>&5 |
| 4141 | ac_status=$? |
| 4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4143 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4144 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4145 | cat >conftest.$ac_ext <<_ACEOF |
| 4146 | /* confdefs.h. */ |
| 4147 | _ACEOF |
| 4148 | cat confdefs.h >>conftest.$ac_ext |
| 4149 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4150 | /* end confdefs.h. */ |
| 4151 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4152 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4153 | |
| 4154 | int |
| 4155 | main () |
| 4156 | { |
| 4157 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4158 | not big endian |
| 4159 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4160 | |
| 4161 | ; |
| 4162 | return 0; |
| 4163 | } |
| 4164 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4165 | rm -f conftest.$ac_objext |
| 4166 | if { (ac_try="$ac_compile" |
| 4167 | case "(($ac_try" in |
| 4168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4169 | *) ac_try_echo=$ac_try;; |
| 4170 | esac |
| 4171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4172 | (eval "$ac_compile") 2>conftest.er1 |
| 4173 | ac_status=$? |
| 4174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4175 | rm -f conftest.er1 |
| 4176 | cat conftest.err >&5 |
| 4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4178 | (exit $ac_status); } && |
| 4179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4180 | { (case "(($ac_try" in |
| 4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4182 | *) ac_try_echo=$ac_try;; |
| 4183 | esac |
| 4184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4185 | (eval "$ac_try") 2>&5 |
| 4186 | ac_status=$? |
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4188 | (exit $ac_status); }; } && |
| 4189 | { ac_try='test -s conftest.$ac_objext' |
| 4190 | { (case "(($ac_try" in |
| 4191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4192 | *) ac_try_echo=$ac_try;; |
| 4193 | esac |
| 4194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4195 | (eval "$ac_try") 2>&5 |
| 4196 | ac_status=$? |
| 4197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4198 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4199 | ac_cv_c_bigendian=yes |
| 4200 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4201 | echo "$as_me: failed program was:" >&5 |
| 4202 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4203 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4204 | ac_cv_c_bigendian=no |
| 4205 | fi |
| 4206 | |
| 4207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4208 | else |
| 4209 | echo "$as_me: failed program was:" >&5 |
| 4210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4211 | |
| 4212 | # It does not; compile a test program. |
| 4213 | if test "$cross_compiling" = yes; then |
| 4214 | # try to guess the endianness by grepping values into an object file |
| 4215 | ac_cv_c_bigendian=unknown |
| 4216 | cat >conftest.$ac_ext <<_ACEOF |
| 4217 | /* confdefs.h. */ |
| 4218 | _ACEOF |
| 4219 | cat confdefs.h >>conftest.$ac_ext |
| 4220 | cat >>conftest.$ac_ext <<_ACEOF |
| 4221 | /* end confdefs.h. */ |
| 4222 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4223 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4224 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4225 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4226 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4227 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4228 | int |
| 4229 | main () |
| 4230 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4231 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4232 | ; |
| 4233 | return 0; |
| 4234 | } |
| 4235 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4236 | rm -f conftest.$ac_objext |
| 4237 | if { (ac_try="$ac_compile" |
| 4238 | case "(($ac_try" in |
| 4239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4240 | *) ac_try_echo=$ac_try;; |
| 4241 | esac |
| 4242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4243 | (eval "$ac_compile") 2>conftest.er1 |
| 4244 | ac_status=$? |
| 4245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4246 | rm -f conftest.er1 |
| 4247 | cat conftest.err >&5 |
| 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 | (exit $ac_status); } && |
| 4250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4251 | { (case "(($ac_try" in |
| 4252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4253 | *) ac_try_echo=$ac_try;; |
| 4254 | esac |
| 4255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4256 | (eval "$ac_try") 2>&5 |
| 4257 | ac_status=$? |
| 4258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4259 | (exit $ac_status); }; } && |
| 4260 | { ac_try='test -s conftest.$ac_objext' |
| 4261 | { (case "(($ac_try" in |
| 4262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4263 | *) ac_try_echo=$ac_try;; |
| 4264 | esac |
| 4265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4266 | (eval "$ac_try") 2>&5 |
| 4267 | ac_status=$? |
| 4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4269 | (exit $ac_status); }; }; then |
| 4270 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4271 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4272 | fi |
| 4273 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4274 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4275 | ac_cv_c_bigendian=no |
| 4276 | else |
| 4277 | # finding both strings is unlikely to happen, but who knows? |
| 4278 | ac_cv_c_bigendian=unknown |
| 4279 | fi |
| 4280 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4281 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4282 | echo "$as_me: failed program was:" >&5 |
| 4283 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4284 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4285 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4286 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4289 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4290 | cat >conftest.$ac_ext <<_ACEOF |
| 4291 | /* confdefs.h. */ |
| 4292 | _ACEOF |
| 4293 | cat confdefs.h >>conftest.$ac_ext |
| 4294 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4295 | /* end confdefs.h. */ |
| 4296 | $ac_includes_default |
| 4297 | int |
| 4298 | main () |
| 4299 | { |
| 4300 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4301 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4302 | union |
| 4303 | { |
| 4304 | long int l; |
| 4305 | char c[sizeof (long int)]; |
| 4306 | } u; |
| 4307 | u.l = 1; |
| 4308 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4309 | |
| 4310 | ; |
| 4311 | return 0; |
| 4312 | } |
| 4313 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4314 | rm -f conftest$ac_exeext |
| 4315 | if { (ac_try="$ac_link" |
| 4316 | case "(($ac_try" in |
| 4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4318 | *) ac_try_echo=$ac_try;; |
| 4319 | esac |
| 4320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4321 | (eval "$ac_link") 2>&5 |
| 4322 | ac_status=$? |
| 4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4325 | { (case "(($ac_try" in |
| 4326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4327 | *) ac_try_echo=$ac_try;; |
| 4328 | esac |
| 4329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4330 | (eval "$ac_try") 2>&5 |
| 4331 | ac_status=$? |
| 4332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4333 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4334 | ac_cv_c_bigendian=no |
| 4335 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4336 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4337 | echo "$as_me: failed program was:" >&5 |
| 4338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4339 | |
| 4340 | ( exit $ac_status ) |
| 4341 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4342 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4343 | 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] | 4344 | fi |
| 4345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4347 | fi |
| 4348 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4350 | fi |
| 4351 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4352 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4353 | case $ac_cv_c_bigendian in |
| 4354 | yes) |
| 4355 | ENDIAN=big |
| 4356 | ;; |
| 4357 | no) |
| 4358 | ENDIAN=little |
| 4359 | ;; |
| 4360 | *) |
| 4361 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4362 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4363 | echo "$as_me: error: unknown endianness |
| 4364 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4365 | { (exit 1); exit 1; }; } ;; |
| 4366 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4367 | |
| 4368 | |
| 4369 | if test "$cross_compiling" = yes; then |
| 4370 | LLVM_CROSS_COMPILING=1 |
| 4371 | |
| 4372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4373 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4374 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4375 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4377 | else |
| 4378 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4379 | ac_cv_build_exeext=.exe |
| 4380 | else |
| 4381 | ac_build_prefix=${build_alias}- |
| 4382 | |
| 4383 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4384 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4385 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4387 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4389 | else |
| 4390 | if test -n "$BUILD_CC"; then |
| 4391 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4392 | else |
| 4393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4394 | for as_dir in $PATH |
| 4395 | do |
| 4396 | IFS=$as_save_IFS |
| 4397 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4399 | 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] | 4400 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4401 | 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] | 4402 | break 2 |
| 4403 | fi |
| 4404 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4405 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4406 | IFS=$as_save_IFS |
| 4407 | |
| 4408 | fi |
| 4409 | fi |
| 4410 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4411 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4412 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4413 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4416 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4417 | fi |
| 4418 | |
| 4419 | |
| 4420 | if test -z "$BUILD_CC"; then |
| 4421 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4422 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4423 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4425 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4427 | else |
| 4428 | if test -n "$BUILD_CC"; then |
| 4429 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4430 | else |
| 4431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4432 | for as_dir in $PATH |
| 4433 | do |
| 4434 | IFS=$as_save_IFS |
| 4435 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4437 | 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] | 4438 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4439 | 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] | 4440 | break 2 |
| 4441 | fi |
| 4442 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4443 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4444 | IFS=$as_save_IFS |
| 4445 | |
| 4446 | fi |
| 4447 | fi |
| 4448 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4449 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4450 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4451 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4452 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4453 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4454 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4455 | fi |
| 4456 | |
| 4457 | |
| 4458 | if test -z "$BUILD_CC"; then |
| 4459 | # Extract the first word of "cc", so it can be a program name with args. |
| 4460 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4463 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4465 | else |
| 4466 | if test -n "$BUILD_CC"; then |
| 4467 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4468 | else |
| 4469 | ac_prog_rejected=no |
| 4470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4471 | for as_dir in $PATH |
| 4472 | do |
| 4473 | IFS=$as_save_IFS |
| 4474 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4476 | 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] | 4477 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4478 | ac_prog_rejected=yes |
| 4479 | continue |
| 4480 | fi |
| 4481 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4482 | 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] | 4483 | break 2 |
| 4484 | fi |
| 4485 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4486 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4487 | IFS=$as_save_IFS |
| 4488 | |
| 4489 | if test $ac_prog_rejected = yes; then |
| 4490 | # We found a bogon in the path, so make sure we never use it. |
| 4491 | set dummy $ac_cv_prog_BUILD_CC |
| 4492 | shift |
| 4493 | if test $# != 0; then |
| 4494 | # We chose a different compiler from the bogus one. |
| 4495 | # However, it has the same basename, so the bogon will be chosen |
| 4496 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4497 | shift |
| 4498 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4499 | fi |
| 4500 | fi |
| 4501 | fi |
| 4502 | fi |
| 4503 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4504 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4505 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4506 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4507 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4509 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4510 | fi |
| 4511 | |
| 4512 | |
| 4513 | fi |
| 4514 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4515 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4516 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4517 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4518 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4519 | rm -f conftest* |
| 4520 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4521 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4522 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4523 | (eval $ac_build_link) 2>&5 |
| 4524 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4526 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4527 | for file in conftest.*; do |
| 4528 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4529 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4530 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4531 | esac |
| 4532 | done |
| 4533 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4534 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4535 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4536 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4537 | fi |
| 4538 | rm -f conftest* |
| 4539 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4540 | fi |
| 4541 | fi |
| 4542 | |
| 4543 | BUILD_EXEEXT="" |
| 4544 | 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] | 4545 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4546 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4547 | ac_build_exeext=$BUILD_EXEEXT |
| 4548 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4549 | ac_build_prefix=${build_alias}- |
| 4550 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4551 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4554 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4556 | else |
| 4557 | if test -n "$BUILD_CXX"; then |
| 4558 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4559 | else |
| 4560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4561 | for as_dir in $PATH |
| 4562 | do |
| 4563 | IFS=$as_save_IFS |
| 4564 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4566 | 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] | 4567 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4568 | 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] | 4569 | break 2 |
| 4570 | fi |
| 4571 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4572 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4573 | IFS=$as_save_IFS |
| 4574 | |
| 4575 | fi |
| 4576 | fi |
| 4577 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4578 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4580 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4581 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4582 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4583 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4584 | fi |
| 4585 | |
| 4586 | |
| 4587 | if test -z "$BUILD_CXX"; then |
| 4588 | # Extract the first word of "g++", so it can be a program name with args. |
| 4589 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4590 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4592 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4594 | else |
| 4595 | if test -n "$BUILD_CXX"; then |
| 4596 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4597 | else |
| 4598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4599 | for as_dir in $PATH |
| 4600 | do |
| 4601 | IFS=$as_save_IFS |
| 4602 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4603 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4604 | 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] | 4605 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4606 | 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] | 4607 | break 2 |
| 4608 | fi |
| 4609 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4610 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4611 | IFS=$as_save_IFS |
| 4612 | |
| 4613 | fi |
| 4614 | fi |
| 4615 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4616 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4617 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4618 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4619 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4620 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4621 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4622 | fi |
| 4623 | |
| 4624 | |
| 4625 | if test -z "$BUILD_CXX"; then |
| 4626 | # Extract the first word of "c++", so it can be a program name with args. |
| 4627 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4628 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4630 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4632 | else |
| 4633 | if test -n "$BUILD_CXX"; then |
| 4634 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4635 | else |
| 4636 | ac_prog_rejected=no |
| 4637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4638 | for as_dir in $PATH |
| 4639 | do |
| 4640 | IFS=$as_save_IFS |
| 4641 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4642 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4643 | 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] | 4644 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4645 | ac_prog_rejected=yes |
| 4646 | continue |
| 4647 | fi |
| 4648 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4649 | 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] | 4650 | break 2 |
| 4651 | fi |
| 4652 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4653 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4654 | IFS=$as_save_IFS |
| 4655 | |
| 4656 | if test $ac_prog_rejected = yes; then |
| 4657 | # We found a bogon in the path, so make sure we never use it. |
| 4658 | set dummy $ac_cv_prog_BUILD_CXX |
| 4659 | shift |
| 4660 | if test $# != 0; then |
| 4661 | # We chose a different compiler from the bogus one. |
| 4662 | # However, it has the same basename, so the bogon will be chosen |
| 4663 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4664 | shift |
| 4665 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4666 | fi |
| 4667 | fi |
| 4668 | fi |
| 4669 | fi |
| 4670 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4671 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4672 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4673 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4674 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4675 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4676 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4677 | fi |
| 4678 | |
| 4679 | |
| 4680 | fi |
| 4681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4682 | else |
| 4683 | LLVM_CROSS_COMPILING=0 |
| 4684 | |
| 4685 | fi |
| 4686 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4687 | if test -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] | 4688 | cvsbuild="yes" |
| 4689 | optimize="no" |
| 4690 | CVSBUILD=CVSBUILD=1 |
| 4691 | |
| 4692 | else |
| 4693 | cvsbuild="no" |
| 4694 | optimize="yes" |
| 4695 | fi |
| 4696 | |
| 4697 | |
| 4698 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4699 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4700 | enableval=$enable_optimized; |
| 4701 | else |
| 4702 | enableval=$optimize |
| 4703 | fi |
| 4704 | |
| 4705 | if test ${enableval} = "no" ; then |
| 4706 | ENABLE_OPTIMIZED= |
| 4707 | |
| 4708 | else |
| 4709 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4710 | |
| 4711 | fi |
| 4712 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4713 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4714 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4715 | enableval=$enable_profiling; |
| 4716 | else |
| 4717 | enableval="no" |
| 4718 | fi |
| 4719 | |
| 4720 | if test ${enableval} = "no" ; then |
| 4721 | ENABLE_PROFILING= |
| 4722 | |
| 4723 | else |
| 4724 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4725 | |
| 4726 | fi |
| 4727 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4728 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4729 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4730 | enableval=$enable_assertions; |
| 4731 | else |
| 4732 | enableval="yes" |
| 4733 | fi |
| 4734 | |
| 4735 | if test ${enableval} = "yes" ; then |
| 4736 | DISABLE_ASSERTIONS= |
| 4737 | |
| 4738 | else |
| 4739 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4740 | |
| 4741 | fi |
| 4742 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4743 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4744 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4745 | enableval=$enable_expensive_checks; |
| 4746 | else |
| 4747 | enableval="no" |
| 4748 | fi |
| 4749 | |
| 4750 | if test ${enableval} = "yes" ; then |
| 4751 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4752 | |
| 4753 | EXPENSIVE_CHECKS=yes |
| 4754 | |
| 4755 | else |
| 4756 | ENABLE_EXPENSIVE_CHECKS= |
| 4757 | |
| 4758 | EXPENSIVE_CHECKS=no |
| 4759 | |
| 4760 | fi |
| 4761 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4762 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4763 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4764 | enableval=$enable_debug_runtime; |
| 4765 | else |
| 4766 | enableval=no |
| 4767 | fi |
| 4768 | |
| 4769 | if test ${enableval} = "no" ; then |
| 4770 | DEBUG_RUNTIME= |
| 4771 | |
| 4772 | else |
| 4773 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4774 | |
| 4775 | fi |
| 4776 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4777 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4778 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4779 | enableval=$enable_debug_symbols; |
| 4780 | else |
| 4781 | enableval=no |
| 4782 | fi |
| 4783 | |
| 4784 | if test ${enableval} = "no" ; then |
| 4785 | DEBUG_SYMBOLS= |
| 4786 | |
| 4787 | else |
| 4788 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4789 | |
| 4790 | fi |
| 4791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4792 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4793 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4794 | enableval=$enable_jit; |
| 4795 | else |
| 4796 | enableval=default |
| 4797 | fi |
| 4798 | |
| 4799 | if test ${enableval} = "no" |
| 4800 | then |
| 4801 | JIT= |
| 4802 | |
| 4803 | else |
| 4804 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4805 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4806 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4807 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4808 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4809 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4810 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4811 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4812 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4813 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4814 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4815 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4816 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4817 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4818 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4819 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4820 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4821 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4822 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4823 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4824 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4825 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4826 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4827 | Blackfin) TARGET_HAS_JIT=0 |
| 4828 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4829 | MBlaze) TARGET_HAS_JIT=0 |
| 4830 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4831 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4832 | ;; |
| 4833 | esac |
| 4834 | fi |
| 4835 | |
| 4836 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4837 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4838 | enableval=$enable_doxygen; |
| 4839 | else |
| 4840 | enableval=default |
| 4841 | fi |
| 4842 | |
| 4843 | case "$enableval" in |
| 4844 | yes) ENABLE_DOXYGEN=1 |
| 4845 | ;; |
| 4846 | no) ENABLE_DOXYGEN=0 |
| 4847 | ;; |
| 4848 | default) ENABLE_DOXYGEN=0 |
| 4849 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4850 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4851 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4852 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4853 | esac |
| 4854 | |
| 4855 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4856 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4857 | enableval=$enable_threads; |
| 4858 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4859 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4860 | fi |
| 4861 | |
| 4862 | case "$enableval" in |
| 4863 | yes) ENABLE_THREADS=1 |
| 4864 | ;; |
| 4865 | no) ENABLE_THREADS=0 |
| 4866 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4867 | default) ENABLE_THREADS=1 |
| 4868 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4869 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4870 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4871 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4872 | esac |
| 4873 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4874 | cat >>confdefs.h <<_ACEOF |
| 4875 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4876 | _ACEOF |
| 4877 | |
| 4878 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4879 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4880 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4881 | enableval=$enable_pic; |
| 4882 | else |
| 4883 | enableval=default |
| 4884 | fi |
| 4885 | |
| 4886 | case "$enableval" in |
| 4887 | yes) ENABLE_PIC=1 |
| 4888 | ;; |
| 4889 | no) ENABLE_PIC=0 |
| 4890 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4891 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4892 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4893 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4894 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4895 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4896 | esac |
| 4897 | |
| 4898 | cat >>confdefs.h <<_ACEOF |
| 4899 | #define ENABLE_PIC $ENABLE_PIC |
| 4900 | _ACEOF |
| 4901 | |
| 4902 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4903 | # Check whether --enable-shared was given. |
| 4904 | if test "${enable_shared+set}" = set; then |
| 4905 | enableval=$enable_shared; |
| 4906 | else |
| 4907 | enableval=default |
| 4908 | fi |
| 4909 | |
| 4910 | case "$enableval" in |
| 4911 | yes) ENABLE_SHARED=1 |
| 4912 | ;; |
| 4913 | no) ENABLE_SHARED=0 |
| 4914 | ;; |
| 4915 | default) ENABLE_SHARED=0 |
| 4916 | ;; |
| 4917 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 4918 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 4919 | { (exit 1); exit 1; }; } ;; |
| 4920 | esac |
| 4921 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 4922 | # Check whether --enable-timestamps was given. |
| 4923 | if test "${enable_timestamps+set}" = set; then |
| 4924 | enableval=$enable_timestamps; |
| 4925 | else |
| 4926 | enableval=default |
| 4927 | fi |
| 4928 | |
| 4929 | case "$enableval" in |
| 4930 | yes) ENABLE_TIMESTAMPS=1 |
| 4931 | ;; |
| 4932 | no) ENABLE_TIMESTAMPS=0 |
| 4933 | ;; |
| 4934 | default) ENABLE_TIMESTAMPS=1 |
| 4935 | ;; |
| 4936 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 4937 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 4938 | { (exit 1); exit 1; }; } ;; |
| 4939 | esac |
| 4940 | |
| 4941 | cat >>confdefs.h <<_ACEOF |
| 4942 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 4943 | _ACEOF |
| 4944 | |
| 4945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4946 | TARGETS_TO_BUILD="" |
| 4947 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4948 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4949 | enableval=$enable_targets; |
| 4950 | else |
| 4951 | enableval=all |
| 4952 | fi |
| 4953 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4954 | if test "$enableval" = host-only ; then |
| 4955 | enableval=host |
| 4956 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4957 | case "$enableval" in |
Chris Lattner | 885b661 | 2010-08-28 16:33:36 +0000 | [diff] [blame] | 4958 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4959 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4960 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4961 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4962 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4963 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4964 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4965 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4966 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4967 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4968 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4969 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4970 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4971 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4972 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4973 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4974 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4975 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4976 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4977 | host) case "$llvm_cv_target_arch" in |
| 4978 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4979 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4980 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4981 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4982 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4983 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4984 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4985 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4986 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4987 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4988 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4989 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4990 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4991 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4992 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4993 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4994 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4995 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4996 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4997 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4998 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4999 | esac |
| 5000 | done |
| 5001 | ;; |
| 5002 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5003 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5004 | |
| 5005 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5006 | # Determine whether we are building LLVM support for the native architecture. |
| 5007 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5008 | for a_target in $TARGETS_TO_BUILD; do |
| 5009 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5010 | |
| 5011 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5012 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5013 | _ACEOF |
| 5014 | |
| 5015 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5016 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
| 5017 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
| 5018 | |
| 5019 | cat >>confdefs.h <<_ACEOF |
| 5020 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5021 | _ACEOF |
| 5022 | |
| 5023 | |
| 5024 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5025 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5026 | _ACEOF |
| 5027 | |
| 5028 | |
| 5029 | cat >>confdefs.h <<_ACEOF |
| 5030 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5031 | _ACEOF |
| 5032 | |
| 5033 | fi |
| 5034 | done |
| 5035 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5036 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5037 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5038 | LLVM_ENUM_TARGETS="" |
| 5039 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5040 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5041 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5042 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5043 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5044 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5045 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5046 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5047 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5048 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5049 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5050 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5051 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5052 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5053 | done |
| 5054 | |
| 5055 | |
| 5056 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5057 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5058 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5059 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5060 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5061 | enableval=$enable_cbe_printf_a; |
| 5062 | else |
| 5063 | enableval=default |
| 5064 | fi |
| 5065 | |
| 5066 | case "$enableval" in |
| 5067 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5068 | ;; |
| 5069 | no) ENABLE_CBE_PRINTF_A=0 |
| 5070 | ;; |
| 5071 | default) ENABLE_CBE_PRINTF_A=1 |
| 5072 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5073 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5074 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5075 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5076 | esac |
| 5077 | |
| 5078 | cat >>confdefs.h <<_ACEOF |
| 5079 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5080 | _ACEOF |
| 5081 | |
| 5082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5083 | |
| 5084 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5085 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5086 | withval=$with_llvmgccdir; |
| 5087 | else |
| 5088 | withval=default |
| 5089 | fi |
| 5090 | |
| 5091 | case "$withval" in |
| 5092 | default) WITH_LLVMGCCDIR=default ;; |
| 5093 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5094 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5095 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5096 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5097 | esac |
| 5098 | |
| 5099 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5100 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5101 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5102 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5103 | WITH_LLVMGCCDIR="" |
| 5104 | fi |
| 5105 | |
| 5106 | |
| 5107 | |
| 5108 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5109 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5110 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5111 | WITH_LLVMGCCDIR="" |
| 5112 | fi |
| 5113 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5114 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5115 | if test -n "$LLVMGCC"; then |
| 5116 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5117 | fi |
| 5118 | |
| 5119 | if test -n "$LLVMGXX"; then |
| 5120 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5121 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5122 | |
| 5123 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5124 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5125 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5126 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5127 | fi |
| 5128 | |
| 5129 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5130 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5131 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5132 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5133 | fi |
| 5134 | |
| 5135 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5136 | # Check whether --with-clang was given. |
| 5137 | if test "${with_clang+set}" = set; then |
| 5138 | withval=$with_clang; |
| 5139 | else |
| 5140 | with_clang=default |
| 5141 | fi |
| 5142 | |
| 5143 | |
| 5144 | |
| 5145 | # Check whether --with-built-clang was given. |
| 5146 | if test "${with_built_clang+set}" = set; then |
| 5147 | withval=$with_built_clang; |
| 5148 | else |
| 5149 | with_built_clang=check |
| 5150 | fi |
| 5151 | |
| 5152 | |
| 5153 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5154 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5155 | WITH_CLANGPATH="" |
| 5156 | WITH_BUILT_CLANG=0 |
| 5157 | if test "$with_clang" != "default"; then |
| 5158 | WITH_CLANGPATH="$with_clang" |
| 5159 | if ! test -x "$WITH_CLANGPATH"; then |
| 5160 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5161 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5162 | { (exit 1); exit 1; }; } |
| 5163 | fi |
| 5164 | elif test "$with_built_clang" = "yes"; then |
| 5165 | WITH_BUILT_CLANG=1 |
| 5166 | elif test "$with_built_clang" = "no"; then |
| 5167 | WITH_BUILT_CLANG=0 |
| 5168 | else |
| 5169 | if test "$with_built_clang" != "check"; then |
| 5170 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5171 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5172 | { (exit 1); exit 1; }; } |
| 5173 | fi |
| 5174 | |
| 5175 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5176 | WITH_BUILT_CLANG=1 |
| 5177 | fi |
| 5178 | fi |
| 5179 | |
| 5180 | if ! test -z "$WITH_CLANGPATH"; then |
| 5181 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5182 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5183 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5184 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5185 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5186 | echo "${ECHO_T}built" >&6; } |
| 5187 | else |
| 5188 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5189 | echo "${ECHO_T}none" >&6; } |
| 5190 | fi |
| 5191 | CLANGPATH=$WITH_CLANGPATH |
| 5192 | |
| 5193 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5194 | |
| 5195 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5196 | |
| 5197 | |
| 5198 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5199 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5200 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5201 | withval=$with_optimize_option; |
| 5202 | else |
| 5203 | withval=default |
| 5204 | fi |
| 5205 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5206 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5207 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5208 | case "$withval" in |
| 5209 | default) |
| 5210 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5211 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5212 | MingW) optimize_option=-O2 ;; |
| 5213 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5214 | esac ;; |
| 5215 | *) optimize_option="$withval" ;; |
| 5216 | esac |
| 5217 | OPTIMIZE_OPTION=$optimize_option |
| 5218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5219 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5220 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5221 | |
| 5222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5223 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5224 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5225 | withval=$with_extra_options; |
| 5226 | else |
| 5227 | withval=default |
| 5228 | fi |
| 5229 | |
| 5230 | case "$withval" in |
| 5231 | default) EXTRA_OPTIONS= ;; |
| 5232 | *) EXTRA_OPTIONS=$withval ;; |
| 5233 | esac |
| 5234 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5235 | |
| 5236 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5237 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5238 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5239 | enableval=$enable_bindings; |
| 5240 | else |
| 5241 | enableval=default |
| 5242 | fi |
| 5243 | |
| 5244 | BINDINGS_TO_BUILD="" |
| 5245 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5246 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5247 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5248 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5249 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5250 | case "$a_binding" in |
| 5251 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5252 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5253 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5254 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5255 | esac |
| 5256 | done |
| 5257 | ;; |
| 5258 | esac |
| 5259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5260 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5261 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5262 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5263 | withval=$with_ocaml_libdir; |
| 5264 | else |
| 5265 | withval=auto |
| 5266 | fi |
| 5267 | |
| 5268 | case "$withval" in |
| 5269 | auto) with_ocaml_libdir="$withval" ;; |
| 5270 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5271 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5272 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5273 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5274 | esac |
| 5275 | |
| 5276 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5277 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5278 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5279 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5280 | else |
| 5281 | withval="" |
| 5282 | fi |
| 5283 | |
| 5284 | |
| 5285 | cat >>confdefs.h <<_ACEOF |
| 5286 | #define C_INCLUDE_DIRS "$withval" |
| 5287 | _ACEOF |
| 5288 | |
| 5289 | |
| 5290 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5291 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5292 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5293 | withval=$with_cxx_include_root; |
| 5294 | else |
| 5295 | withval="" |
| 5296 | fi |
| 5297 | |
| 5298 | |
| 5299 | cat >>confdefs.h <<_ACEOF |
| 5300 | #define CXX_INCLUDE_ROOT "$withval" |
| 5301 | _ACEOF |
| 5302 | |
| 5303 | |
| 5304 | |
| 5305 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5306 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5307 | withval=$with_cxx_include_arch; |
| 5308 | else |
| 5309 | withval="" |
| 5310 | fi |
| 5311 | |
| 5312 | |
| 5313 | cat >>confdefs.h <<_ACEOF |
| 5314 | #define CXX_INCLUDE_ARCH "$withval" |
| 5315 | _ACEOF |
| 5316 | |
| 5317 | |
| 5318 | |
| 5319 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5320 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5321 | withval=$with_cxx_include_32bit_dir; |
| 5322 | else |
| 5323 | withval="" |
| 5324 | fi |
| 5325 | |
| 5326 | |
| 5327 | cat >>confdefs.h <<_ACEOF |
| 5328 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5329 | _ACEOF |
| 5330 | |
| 5331 | |
| 5332 | |
| 5333 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5334 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5335 | withval=$with_cxx_include_64bit_dir; |
| 5336 | else |
| 5337 | withval="" |
| 5338 | fi |
| 5339 | |
| 5340 | |
| 5341 | cat >>confdefs.h <<_ACEOF |
| 5342 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5343 | _ACEOF |
| 5344 | |
| 5345 | |
| 5346 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5347 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5348 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5349 | withval=$with_binutils_include; |
| 5350 | else |
| 5351 | withval=default |
| 5352 | fi |
| 5353 | |
| 5354 | case "$withval" in |
| 5355 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5356 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5357 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5358 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5359 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5360 | esac |
| 5361 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5362 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5363 | |
| 5364 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5365 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5366 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5367 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5368 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5369 | fi |
| 5370 | fi |
| 5371 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5372 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5373 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5374 | enableval=$enable_libffi; case "$enableval" in |
| 5375 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5376 | no) llvm_cv_enable_libffi="no" ;; |
| 5377 | *) { { 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] | 5378 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5379 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5380 | esac |
| 5381 | else |
| 5382 | llvm_cv_enable_libffi=no |
| 5383 | fi |
| 5384 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5385 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5387 | ac_ext=c |
| 5388 | ac_cpp='$CPP $CPPFLAGS' |
| 5389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5392 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5393 | 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] | 5394 | # On Suns, sometimes $CPP names a directory. |
| 5395 | if test -n "$CPP" && test -d "$CPP"; then |
| 5396 | CPP= |
| 5397 | fi |
| 5398 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5399 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5401 | else |
| 5402 | # Double quotes because CPP needs to be expanded |
| 5403 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5404 | do |
| 5405 | ac_preproc_ok=false |
| 5406 | for ac_c_preproc_warn_flag in '' yes |
| 5407 | do |
| 5408 | # Use a header file that comes with gcc, so configuring glibc |
| 5409 | # with a fresh cross-compiler works. |
| 5410 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5411 | # <limits.h> exists even on freestanding compilers. |
| 5412 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5413 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5414 | cat >conftest.$ac_ext <<_ACEOF |
| 5415 | /* confdefs.h. */ |
| 5416 | _ACEOF |
| 5417 | cat confdefs.h >>conftest.$ac_ext |
| 5418 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5419 | /* end confdefs.h. */ |
| 5420 | #ifdef __STDC__ |
| 5421 | # include <limits.h> |
| 5422 | #else |
| 5423 | # include <assert.h> |
| 5424 | #endif |
| 5425 | Syntax error |
| 5426 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5427 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5428 | case "(($ac_try" in |
| 5429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5430 | *) ac_try_echo=$ac_try;; |
| 5431 | esac |
| 5432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5433 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5434 | ac_status=$? |
| 5435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5436 | rm -f conftest.er1 |
| 5437 | cat conftest.err >&5 |
| 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5439 | (exit $ac_status); } >/dev/null; then |
| 5440 | if test -s conftest.err; then |
| 5441 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5443 | else |
| 5444 | ac_cpp_err= |
| 5445 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5446 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5447 | ac_cpp_err=yes |
| 5448 | fi |
| 5449 | if test -z "$ac_cpp_err"; then |
| 5450 | : |
| 5451 | else |
| 5452 | echo "$as_me: failed program was:" >&5 |
| 5453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5455 | # Broken: fails on valid input. |
| 5456 | continue |
| 5457 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5459 | rm -f conftest.err conftest.$ac_ext |
| 5460 | |
| 5461 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5462 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5463 | cat >conftest.$ac_ext <<_ACEOF |
| 5464 | /* confdefs.h. */ |
| 5465 | _ACEOF |
| 5466 | cat confdefs.h >>conftest.$ac_ext |
| 5467 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5468 | /* end confdefs.h. */ |
| 5469 | #include <ac_nonexistent.h> |
| 5470 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5472 | case "(($ac_try" in |
| 5473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5474 | *) ac_try_echo=$ac_try;; |
| 5475 | esac |
| 5476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5478 | ac_status=$? |
| 5479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5480 | rm -f conftest.er1 |
| 5481 | cat conftest.err >&5 |
| 5482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5483 | (exit $ac_status); } >/dev/null; then |
| 5484 | if test -s conftest.err; then |
| 5485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5487 | else |
| 5488 | ac_cpp_err= |
| 5489 | fi |
| 5490 | else |
| 5491 | ac_cpp_err=yes |
| 5492 | fi |
| 5493 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5494 | # Broken: success on invalid input. |
| 5495 | continue |
| 5496 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5497 | echo "$as_me: failed program was:" >&5 |
| 5498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5500 | # Passes both tests. |
| 5501 | ac_preproc_ok=: |
| 5502 | break |
| 5503 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5505 | rm -f conftest.err conftest.$ac_ext |
| 5506 | |
| 5507 | done |
| 5508 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5509 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5510 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5511 | break |
| 5512 | fi |
| 5513 | |
| 5514 | done |
| 5515 | ac_cv_prog_CPP=$CPP |
| 5516 | |
| 5517 | fi |
| 5518 | CPP=$ac_cv_prog_CPP |
| 5519 | else |
| 5520 | ac_cv_prog_CPP=$CPP |
| 5521 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5522 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5523 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5524 | ac_preproc_ok=false |
| 5525 | for ac_c_preproc_warn_flag in '' yes |
| 5526 | do |
| 5527 | # Use a header file that comes with gcc, so configuring glibc |
| 5528 | # with a fresh cross-compiler works. |
| 5529 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5530 | # <limits.h> exists even on freestanding compilers. |
| 5531 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5532 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5533 | cat >conftest.$ac_ext <<_ACEOF |
| 5534 | /* confdefs.h. */ |
| 5535 | _ACEOF |
| 5536 | cat confdefs.h >>conftest.$ac_ext |
| 5537 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5538 | /* end confdefs.h. */ |
| 5539 | #ifdef __STDC__ |
| 5540 | # include <limits.h> |
| 5541 | #else |
| 5542 | # include <assert.h> |
| 5543 | #endif |
| 5544 | Syntax error |
| 5545 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5546 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5547 | case "(($ac_try" in |
| 5548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5549 | *) ac_try_echo=$ac_try;; |
| 5550 | esac |
| 5551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5552 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5553 | ac_status=$? |
| 5554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5555 | rm -f conftest.er1 |
| 5556 | cat conftest.err >&5 |
| 5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5558 | (exit $ac_status); } >/dev/null; then |
| 5559 | if test -s conftest.err; then |
| 5560 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5561 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5562 | else |
| 5563 | ac_cpp_err= |
| 5564 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5565 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5566 | ac_cpp_err=yes |
| 5567 | fi |
| 5568 | if test -z "$ac_cpp_err"; then |
| 5569 | : |
| 5570 | else |
| 5571 | echo "$as_me: failed program was:" >&5 |
| 5572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5574 | # Broken: fails on valid input. |
| 5575 | continue |
| 5576 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5578 | rm -f conftest.err conftest.$ac_ext |
| 5579 | |
| 5580 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5581 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5582 | cat >conftest.$ac_ext <<_ACEOF |
| 5583 | /* confdefs.h. */ |
| 5584 | _ACEOF |
| 5585 | cat confdefs.h >>conftest.$ac_ext |
| 5586 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5587 | /* end confdefs.h. */ |
| 5588 | #include <ac_nonexistent.h> |
| 5589 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5590 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5591 | case "(($ac_try" in |
| 5592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5593 | *) ac_try_echo=$ac_try;; |
| 5594 | esac |
| 5595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5597 | ac_status=$? |
| 5598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5599 | rm -f conftest.er1 |
| 5600 | cat conftest.err >&5 |
| 5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5602 | (exit $ac_status); } >/dev/null; then |
| 5603 | if test -s conftest.err; then |
| 5604 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5606 | else |
| 5607 | ac_cpp_err= |
| 5608 | fi |
| 5609 | else |
| 5610 | ac_cpp_err=yes |
| 5611 | fi |
| 5612 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5613 | # Broken: success on invalid input. |
| 5614 | continue |
| 5615 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5616 | echo "$as_me: failed program was:" >&5 |
| 5617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5619 | # Passes both tests. |
| 5620 | ac_preproc_ok=: |
| 5621 | break |
| 5622 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5624 | rm -f conftest.err conftest.$ac_ext |
| 5625 | |
| 5626 | done |
| 5627 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5628 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5629 | if $ac_preproc_ok; then |
| 5630 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5631 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5632 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5633 | See \`config.log' for more details." >&5 |
| 5634 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5635 | See \`config.log' for more details." >&2;} |
| 5636 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5637 | fi |
| 5638 | |
| 5639 | ac_ext=c |
| 5640 | ac_cpp='$CPP $CPPFLAGS' |
| 5641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5644 | |
| 5645 | ac_ext=c |
| 5646 | ac_cpp='$CPP $CPPFLAGS' |
| 5647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5650 | if test -n "$ac_tool_prefix"; then |
| 5651 | for ac_prog in gcc |
| 5652 | do |
| 5653 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5654 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5655 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5657 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5659 | else |
| 5660 | if test -n "$CC"; then |
| 5661 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5662 | else |
| 5663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5664 | for as_dir in $PATH |
| 5665 | do |
| 5666 | IFS=$as_save_IFS |
| 5667 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5669 | 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] | 5670 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5671 | 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] | 5672 | break 2 |
| 5673 | fi |
| 5674 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5675 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5676 | IFS=$as_save_IFS |
| 5677 | |
| 5678 | fi |
| 5679 | fi |
| 5680 | CC=$ac_cv_prog_CC |
| 5681 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5682 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5683 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5684 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5685 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5686 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5687 | fi |
| 5688 | |
| 5689 | |
| 5690 | test -n "$CC" && break |
| 5691 | done |
| 5692 | fi |
| 5693 | if test -z "$CC"; then |
| 5694 | ac_ct_CC=$CC |
| 5695 | for ac_prog in gcc |
| 5696 | do |
| 5697 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5698 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5699 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5701 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5703 | else |
| 5704 | if test -n "$ac_ct_CC"; then |
| 5705 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5706 | else |
| 5707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5708 | for as_dir in $PATH |
| 5709 | do |
| 5710 | IFS=$as_save_IFS |
| 5711 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5713 | 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] | 5714 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5715 | 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] | 5716 | break 2 |
| 5717 | fi |
| 5718 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5719 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5720 | IFS=$as_save_IFS |
| 5721 | |
| 5722 | fi |
| 5723 | fi |
| 5724 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5725 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5727 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5728 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5729 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5730 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5731 | fi |
| 5732 | |
| 5733 | |
| 5734 | test -n "$ac_ct_CC" && break |
| 5735 | done |
| 5736 | |
| 5737 | if test "x$ac_ct_CC" = x; then |
| 5738 | CC="" |
| 5739 | else |
| 5740 | case $cross_compiling:$ac_tool_warned in |
| 5741 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5742 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5743 | whose name does not start with the host triplet. If you think this |
| 5744 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5745 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5746 | whose name does not start with the host triplet. If you think this |
| 5747 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5748 | ac_tool_warned=yes ;; |
| 5749 | esac |
| 5750 | CC=$ac_ct_CC |
| 5751 | fi |
| 5752 | fi |
| 5753 | |
| 5754 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5755 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5756 | See \`config.log' for more details." >&5 |
| 5757 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5758 | See \`config.log' for more details." >&2;} |
| 5759 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5760 | |
| 5761 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5762 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5763 | ac_compiler=`set X $ac_compile; echo $2` |
| 5764 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5765 | case "(($ac_try" in |
| 5766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5767 | *) ac_try_echo=$ac_try;; |
| 5768 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5770 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5771 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5773 | (exit $ac_status); } |
| 5774 | { (ac_try="$ac_compiler -v >&5" |
| 5775 | case "(($ac_try" in |
| 5776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5777 | *) ac_try_echo=$ac_try;; |
| 5778 | esac |
| 5779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5780 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5781 | ac_status=$? |
| 5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5783 | (exit $ac_status); } |
| 5784 | { (ac_try="$ac_compiler -V >&5" |
| 5785 | case "(($ac_try" in |
| 5786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5787 | *) ac_try_echo=$ac_try;; |
| 5788 | esac |
| 5789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5790 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5791 | ac_status=$? |
| 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5793 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5795 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5796 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5797 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5799 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5800 | cat >conftest.$ac_ext <<_ACEOF |
| 5801 | /* confdefs.h. */ |
| 5802 | _ACEOF |
| 5803 | cat confdefs.h >>conftest.$ac_ext |
| 5804 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5805 | /* end confdefs.h. */ |
| 5806 | |
| 5807 | int |
| 5808 | main () |
| 5809 | { |
| 5810 | #ifndef __GNUC__ |
| 5811 | choke me |
| 5812 | #endif |
| 5813 | |
| 5814 | ; |
| 5815 | return 0; |
| 5816 | } |
| 5817 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5818 | rm -f conftest.$ac_objext |
| 5819 | if { (ac_try="$ac_compile" |
| 5820 | case "(($ac_try" in |
| 5821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5822 | *) ac_try_echo=$ac_try;; |
| 5823 | esac |
| 5824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5825 | (eval "$ac_compile") 2>conftest.er1 |
| 5826 | ac_status=$? |
| 5827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5828 | rm -f conftest.er1 |
| 5829 | cat conftest.err >&5 |
| 5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5831 | (exit $ac_status); } && |
| 5832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5833 | { (case "(($ac_try" in |
| 5834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5835 | *) ac_try_echo=$ac_try;; |
| 5836 | esac |
| 5837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5838 | (eval "$ac_try") 2>&5 |
| 5839 | ac_status=$? |
| 5840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5841 | (exit $ac_status); }; } && |
| 5842 | { ac_try='test -s conftest.$ac_objext' |
| 5843 | { (case "(($ac_try" in |
| 5844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5845 | *) ac_try_echo=$ac_try;; |
| 5846 | esac |
| 5847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5848 | (eval "$ac_try") 2>&5 |
| 5849 | ac_status=$? |
| 5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5851 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5852 | ac_compiler_gnu=yes |
| 5853 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5854 | echo "$as_me: failed program was:" >&5 |
| 5855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5856 | |
| 5857 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5858 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5859 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5861 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5862 | |
| 5863 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5864 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5865 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5866 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5867 | ac_test_CFLAGS=${CFLAGS+set} |
| 5868 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5869 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5870 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5871 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5873 | else |
| 5874 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5875 | ac_c_werror_flag=yes |
| 5876 | ac_cv_prog_cc_g=no |
| 5877 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5878 | cat >conftest.$ac_ext <<_ACEOF |
| 5879 | /* confdefs.h. */ |
| 5880 | _ACEOF |
| 5881 | cat confdefs.h >>conftest.$ac_ext |
| 5882 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5883 | /* end confdefs.h. */ |
| 5884 | |
| 5885 | int |
| 5886 | main () |
| 5887 | { |
| 5888 | |
| 5889 | ; |
| 5890 | return 0; |
| 5891 | } |
| 5892 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5893 | rm -f conftest.$ac_objext |
| 5894 | if { (ac_try="$ac_compile" |
| 5895 | case "(($ac_try" in |
| 5896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5897 | *) ac_try_echo=$ac_try;; |
| 5898 | esac |
| 5899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5900 | (eval "$ac_compile") 2>conftest.er1 |
| 5901 | ac_status=$? |
| 5902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5903 | rm -f conftest.er1 |
| 5904 | cat conftest.err >&5 |
| 5905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5906 | (exit $ac_status); } && |
| 5907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5908 | { (case "(($ac_try" in |
| 5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5910 | *) ac_try_echo=$ac_try;; |
| 5911 | esac |
| 5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5913 | (eval "$ac_try") 2>&5 |
| 5914 | ac_status=$? |
| 5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5916 | (exit $ac_status); }; } && |
| 5917 | { ac_try='test -s conftest.$ac_objext' |
| 5918 | { (case "(($ac_try" in |
| 5919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5920 | *) ac_try_echo=$ac_try;; |
| 5921 | esac |
| 5922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5923 | (eval "$ac_try") 2>&5 |
| 5924 | ac_status=$? |
| 5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5926 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5927 | ac_cv_prog_cc_g=yes |
| 5928 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5929 | echo "$as_me: failed program was:" >&5 |
| 5930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5931 | |
| 5932 | CFLAGS="" |
| 5933 | cat >conftest.$ac_ext <<_ACEOF |
| 5934 | /* confdefs.h. */ |
| 5935 | _ACEOF |
| 5936 | cat confdefs.h >>conftest.$ac_ext |
| 5937 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5938 | /* end confdefs.h. */ |
| 5939 | |
| 5940 | int |
| 5941 | main () |
| 5942 | { |
| 5943 | |
| 5944 | ; |
| 5945 | return 0; |
| 5946 | } |
| 5947 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5948 | rm -f conftest.$ac_objext |
| 5949 | if { (ac_try="$ac_compile" |
| 5950 | case "(($ac_try" in |
| 5951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5952 | *) ac_try_echo=$ac_try;; |
| 5953 | esac |
| 5954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5955 | (eval "$ac_compile") 2>conftest.er1 |
| 5956 | ac_status=$? |
| 5957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5958 | rm -f conftest.er1 |
| 5959 | cat conftest.err >&5 |
| 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5961 | (exit $ac_status); } && |
| 5962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5963 | { (case "(($ac_try" in |
| 5964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5965 | *) ac_try_echo=$ac_try;; |
| 5966 | esac |
| 5967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5968 | (eval "$ac_try") 2>&5 |
| 5969 | ac_status=$? |
| 5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5971 | (exit $ac_status); }; } && |
| 5972 | { ac_try='test -s conftest.$ac_objext' |
| 5973 | { (case "(($ac_try" in |
| 5974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5975 | *) ac_try_echo=$ac_try;; |
| 5976 | esac |
| 5977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5978 | (eval "$ac_try") 2>&5 |
| 5979 | ac_status=$? |
| 5980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5981 | (exit $ac_status); }; }; then |
| 5982 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5983 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5984 | echo "$as_me: failed program was:" >&5 |
| 5985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5986 | |
| 5987 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5988 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5989 | cat >conftest.$ac_ext <<_ACEOF |
| 5990 | /* confdefs.h. */ |
| 5991 | _ACEOF |
| 5992 | cat confdefs.h >>conftest.$ac_ext |
| 5993 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5994 | /* end confdefs.h. */ |
| 5995 | |
| 5996 | int |
| 5997 | main () |
| 5998 | { |
| 5999 | |
| 6000 | ; |
| 6001 | return 0; |
| 6002 | } |
| 6003 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6004 | rm -f conftest.$ac_objext |
| 6005 | if { (ac_try="$ac_compile" |
| 6006 | case "(($ac_try" in |
| 6007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6008 | *) ac_try_echo=$ac_try;; |
| 6009 | esac |
| 6010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6011 | (eval "$ac_compile") 2>conftest.er1 |
| 6012 | ac_status=$? |
| 6013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6014 | rm -f conftest.er1 |
| 6015 | cat conftest.err >&5 |
| 6016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6017 | (exit $ac_status); } && |
| 6018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6019 | { (case "(($ac_try" in |
| 6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6021 | *) ac_try_echo=$ac_try;; |
| 6022 | esac |
| 6023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6024 | (eval "$ac_try") 2>&5 |
| 6025 | ac_status=$? |
| 6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6027 | (exit $ac_status); }; } && |
| 6028 | { ac_try='test -s conftest.$ac_objext' |
| 6029 | { (case "(($ac_try" in |
| 6030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6031 | *) ac_try_echo=$ac_try;; |
| 6032 | esac |
| 6033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6034 | (eval "$ac_try") 2>&5 |
| 6035 | ac_status=$? |
| 6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6037 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6038 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6039 | else |
| 6040 | echo "$as_me: failed program was:" >&5 |
| 6041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6042 | |
| 6043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6044 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6047 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6048 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6050 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6053 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6054 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6055 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6056 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6057 | if test "$ac_test_CFLAGS" = set; then |
| 6058 | CFLAGS=$ac_save_CFLAGS |
| 6059 | elif test $ac_cv_prog_cc_g = yes; then |
| 6060 | if test "$GCC" = yes; then |
| 6061 | CFLAGS="-g -O2" |
| 6062 | else |
| 6063 | CFLAGS="-g" |
| 6064 | fi |
| 6065 | else |
| 6066 | if test "$GCC" = yes; then |
| 6067 | CFLAGS="-O2" |
| 6068 | else |
| 6069 | CFLAGS= |
| 6070 | fi |
| 6071 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6072 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6073 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6074 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6076 | else |
| 6077 | ac_cv_prog_cc_c89=no |
| 6078 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6079 | cat >conftest.$ac_ext <<_ACEOF |
| 6080 | /* confdefs.h. */ |
| 6081 | _ACEOF |
| 6082 | cat confdefs.h >>conftest.$ac_ext |
| 6083 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6084 | /* end confdefs.h. */ |
| 6085 | #include <stdarg.h> |
| 6086 | #include <stdio.h> |
| 6087 | #include <sys/types.h> |
| 6088 | #include <sys/stat.h> |
| 6089 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6090 | struct buf { int x; }; |
| 6091 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6092 | static char *e (p, i) |
| 6093 | char **p; |
| 6094 | int i; |
| 6095 | { |
| 6096 | return p[i]; |
| 6097 | } |
| 6098 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6099 | { |
| 6100 | char *s; |
| 6101 | va_list v; |
| 6102 | va_start (v,p); |
| 6103 | s = g (p, va_arg (v,int)); |
| 6104 | va_end (v); |
| 6105 | return s; |
| 6106 | } |
| 6107 | |
| 6108 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6109 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6110 | These don't provoke an error unfortunately, instead are silently treated |
| 6111 | as 'x'. The following induces an error, until -std is added to get |
| 6112 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6113 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6114 | that's true only with -std. */ |
| 6115 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6116 | |
| 6117 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6118 | inside strings and character constants. */ |
| 6119 | #define FOO(x) 'x' |
| 6120 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6121 | |
| 6122 | int test (int i, double x); |
| 6123 | struct s1 {int (*f) (int a);}; |
| 6124 | struct s2 {int (*f) (double a);}; |
| 6125 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6126 | int argc; |
| 6127 | char **argv; |
| 6128 | int |
| 6129 | main () |
| 6130 | { |
| 6131 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6132 | ; |
| 6133 | return 0; |
| 6134 | } |
| 6135 | _ACEOF |
| 6136 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6137 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6138 | do |
| 6139 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6140 | rm -f conftest.$ac_objext |
| 6141 | if { (ac_try="$ac_compile" |
| 6142 | case "(($ac_try" in |
| 6143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6144 | *) ac_try_echo=$ac_try;; |
| 6145 | esac |
| 6146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6147 | (eval "$ac_compile") 2>conftest.er1 |
| 6148 | ac_status=$? |
| 6149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6150 | rm -f conftest.er1 |
| 6151 | cat conftest.err >&5 |
| 6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6153 | (exit $ac_status); } && |
| 6154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6155 | { (case "(($ac_try" in |
| 6156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6157 | *) ac_try_echo=$ac_try;; |
| 6158 | esac |
| 6159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6160 | (eval "$ac_try") 2>&5 |
| 6161 | ac_status=$? |
| 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6163 | (exit $ac_status); }; } && |
| 6164 | { ac_try='test -s conftest.$ac_objext' |
| 6165 | { (case "(($ac_try" in |
| 6166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6167 | *) ac_try_echo=$ac_try;; |
| 6168 | esac |
| 6169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6170 | (eval "$ac_try") 2>&5 |
| 6171 | ac_status=$? |
| 6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6173 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6174 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6175 | else |
| 6176 | echo "$as_me: failed program was:" >&5 |
| 6177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6178 | |
| 6179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6180 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6182 | rm -f core conftest.err conftest.$ac_objext |
| 6183 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6184 | done |
| 6185 | rm -f conftest.$ac_ext |
| 6186 | CC=$ac_save_CC |
| 6187 | |
| 6188 | fi |
| 6189 | # AC_CACHE_VAL |
| 6190 | case "x$ac_cv_prog_cc_c89" in |
| 6191 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6192 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6193 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6194 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6195 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6196 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6197 | *) |
| 6198 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6199 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6200 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6201 | esac |
| 6202 | |
| 6203 | |
| 6204 | ac_ext=c |
| 6205 | ac_cpp='$CPP $CPPFLAGS' |
| 6206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6209 | |
| 6210 | ac_ext=cpp |
| 6211 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6215 | if test -z "$CXX"; then |
| 6216 | if test -n "$CCC"; then |
| 6217 | CXX=$CCC |
| 6218 | else |
| 6219 | if test -n "$ac_tool_prefix"; then |
| 6220 | for ac_prog in g++ |
| 6221 | do |
| 6222 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6223 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6224 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6226 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6228 | else |
| 6229 | if test -n "$CXX"; then |
| 6230 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6231 | else |
| 6232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6233 | for as_dir in $PATH |
| 6234 | do |
| 6235 | IFS=$as_save_IFS |
| 6236 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6237 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6238 | 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] | 6239 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6240 | 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] | 6241 | break 2 |
| 6242 | fi |
| 6243 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6244 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6245 | IFS=$as_save_IFS |
| 6246 | |
| 6247 | fi |
| 6248 | fi |
| 6249 | CXX=$ac_cv_prog_CXX |
| 6250 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6251 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6252 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6253 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6254 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6255 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6256 | fi |
| 6257 | |
| 6258 | |
| 6259 | test -n "$CXX" && break |
| 6260 | done |
| 6261 | fi |
| 6262 | if test -z "$CXX"; then |
| 6263 | ac_ct_CXX=$CXX |
| 6264 | for ac_prog in g++ |
| 6265 | do |
| 6266 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6267 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6268 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6270 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6272 | else |
| 6273 | if test -n "$ac_ct_CXX"; then |
| 6274 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6275 | else |
| 6276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6277 | for as_dir in $PATH |
| 6278 | do |
| 6279 | IFS=$as_save_IFS |
| 6280 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6281 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6282 | 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] | 6283 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6284 | 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] | 6285 | break 2 |
| 6286 | fi |
| 6287 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6288 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6289 | IFS=$as_save_IFS |
| 6290 | |
| 6291 | fi |
| 6292 | fi |
| 6293 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6294 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6295 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6296 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6298 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6299 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6300 | fi |
| 6301 | |
| 6302 | |
| 6303 | test -n "$ac_ct_CXX" && break |
| 6304 | done |
| 6305 | |
| 6306 | if test "x$ac_ct_CXX" = x; then |
| 6307 | CXX="g++" |
| 6308 | else |
| 6309 | case $cross_compiling:$ac_tool_warned in |
| 6310 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6311 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6312 | whose name does not start with the host triplet. If you think this |
| 6313 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6314 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6315 | whose name does not start with the host triplet. If you think this |
| 6316 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6317 | ac_tool_warned=yes ;; |
| 6318 | esac |
| 6319 | CXX=$ac_ct_CXX |
| 6320 | fi |
| 6321 | fi |
| 6322 | |
| 6323 | fi |
| 6324 | fi |
| 6325 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6326 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6327 | ac_compiler=`set X $ac_compile; echo $2` |
| 6328 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6329 | case "(($ac_try" in |
| 6330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6331 | *) ac_try_echo=$ac_try;; |
| 6332 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6334 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6335 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6337 | (exit $ac_status); } |
| 6338 | { (ac_try="$ac_compiler -v >&5" |
| 6339 | case "(($ac_try" in |
| 6340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6341 | *) ac_try_echo=$ac_try;; |
| 6342 | esac |
| 6343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6344 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6345 | ac_status=$? |
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6347 | (exit $ac_status); } |
| 6348 | { (ac_try="$ac_compiler -V >&5" |
| 6349 | case "(($ac_try" in |
| 6350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6351 | *) ac_try_echo=$ac_try;; |
| 6352 | esac |
| 6353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6354 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6355 | ac_status=$? |
| 6356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6357 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6358 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6359 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6360 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6361 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6364 | cat >conftest.$ac_ext <<_ACEOF |
| 6365 | /* confdefs.h. */ |
| 6366 | _ACEOF |
| 6367 | cat confdefs.h >>conftest.$ac_ext |
| 6368 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6369 | /* end confdefs.h. */ |
| 6370 | |
| 6371 | int |
| 6372 | main () |
| 6373 | { |
| 6374 | #ifndef __GNUC__ |
| 6375 | choke me |
| 6376 | #endif |
| 6377 | |
| 6378 | ; |
| 6379 | return 0; |
| 6380 | } |
| 6381 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6382 | rm -f conftest.$ac_objext |
| 6383 | if { (ac_try="$ac_compile" |
| 6384 | case "(($ac_try" in |
| 6385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6386 | *) ac_try_echo=$ac_try;; |
| 6387 | esac |
| 6388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6389 | (eval "$ac_compile") 2>conftest.er1 |
| 6390 | ac_status=$? |
| 6391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6392 | rm -f conftest.er1 |
| 6393 | cat conftest.err >&5 |
| 6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6395 | (exit $ac_status); } && |
| 6396 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6397 | { (case "(($ac_try" in |
| 6398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6399 | *) ac_try_echo=$ac_try;; |
| 6400 | esac |
| 6401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6402 | (eval "$ac_try") 2>&5 |
| 6403 | ac_status=$? |
| 6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6405 | (exit $ac_status); }; } && |
| 6406 | { ac_try='test -s conftest.$ac_objext' |
| 6407 | { (case "(($ac_try" in |
| 6408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6409 | *) ac_try_echo=$ac_try;; |
| 6410 | esac |
| 6411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6412 | (eval "$ac_try") 2>&5 |
| 6413 | ac_status=$? |
| 6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6415 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6416 | ac_compiler_gnu=yes |
| 6417 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6418 | echo "$as_me: failed program was:" >&5 |
| 6419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6420 | |
| 6421 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6422 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6425 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6426 | |
| 6427 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6428 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6429 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6430 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6431 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6432 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6433 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6434 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6435 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6437 | else |
| 6438 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6439 | ac_cxx_werror_flag=yes |
| 6440 | ac_cv_prog_cxx_g=no |
| 6441 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6442 | cat >conftest.$ac_ext <<_ACEOF |
| 6443 | /* confdefs.h. */ |
| 6444 | _ACEOF |
| 6445 | cat confdefs.h >>conftest.$ac_ext |
| 6446 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6447 | /* end confdefs.h. */ |
| 6448 | |
| 6449 | int |
| 6450 | main () |
| 6451 | { |
| 6452 | |
| 6453 | ; |
| 6454 | return 0; |
| 6455 | } |
| 6456 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6457 | rm -f conftest.$ac_objext |
| 6458 | if { (ac_try="$ac_compile" |
| 6459 | case "(($ac_try" in |
| 6460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6461 | *) ac_try_echo=$ac_try;; |
| 6462 | esac |
| 6463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6464 | (eval "$ac_compile") 2>conftest.er1 |
| 6465 | ac_status=$? |
| 6466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6467 | rm -f conftest.er1 |
| 6468 | cat conftest.err >&5 |
| 6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6470 | (exit $ac_status); } && |
| 6471 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6472 | { (case "(($ac_try" in |
| 6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6474 | *) ac_try_echo=$ac_try;; |
| 6475 | esac |
| 6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6477 | (eval "$ac_try") 2>&5 |
| 6478 | ac_status=$? |
| 6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6480 | (exit $ac_status); }; } && |
| 6481 | { ac_try='test -s conftest.$ac_objext' |
| 6482 | { (case "(($ac_try" in |
| 6483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6484 | *) ac_try_echo=$ac_try;; |
| 6485 | esac |
| 6486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6487 | (eval "$ac_try") 2>&5 |
| 6488 | ac_status=$? |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6490 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6491 | ac_cv_prog_cxx_g=yes |
| 6492 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6493 | echo "$as_me: failed program was:" >&5 |
| 6494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6495 | |
| 6496 | CXXFLAGS="" |
| 6497 | cat >conftest.$ac_ext <<_ACEOF |
| 6498 | /* confdefs.h. */ |
| 6499 | _ACEOF |
| 6500 | cat confdefs.h >>conftest.$ac_ext |
| 6501 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6502 | /* end confdefs.h. */ |
| 6503 | |
| 6504 | int |
| 6505 | main () |
| 6506 | { |
| 6507 | |
| 6508 | ; |
| 6509 | return 0; |
| 6510 | } |
| 6511 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6512 | rm -f conftest.$ac_objext |
| 6513 | if { (ac_try="$ac_compile" |
| 6514 | case "(($ac_try" in |
| 6515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6516 | *) ac_try_echo=$ac_try;; |
| 6517 | esac |
| 6518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6519 | (eval "$ac_compile") 2>conftest.er1 |
| 6520 | ac_status=$? |
| 6521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6522 | rm -f conftest.er1 |
| 6523 | cat conftest.err >&5 |
| 6524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6525 | (exit $ac_status); } && |
| 6526 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6527 | { (case "(($ac_try" in |
| 6528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6529 | *) ac_try_echo=$ac_try;; |
| 6530 | esac |
| 6531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6532 | (eval "$ac_try") 2>&5 |
| 6533 | ac_status=$? |
| 6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6535 | (exit $ac_status); }; } && |
| 6536 | { ac_try='test -s conftest.$ac_objext' |
| 6537 | { (case "(($ac_try" in |
| 6538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6539 | *) ac_try_echo=$ac_try;; |
| 6540 | esac |
| 6541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6542 | (eval "$ac_try") 2>&5 |
| 6543 | ac_status=$? |
| 6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6545 | (exit $ac_status); }; }; then |
| 6546 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6547 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6548 | echo "$as_me: failed program was:" >&5 |
| 6549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6550 | |
| 6551 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6552 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6553 | cat >conftest.$ac_ext <<_ACEOF |
| 6554 | /* confdefs.h. */ |
| 6555 | _ACEOF |
| 6556 | cat confdefs.h >>conftest.$ac_ext |
| 6557 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6558 | /* end confdefs.h. */ |
| 6559 | |
| 6560 | int |
| 6561 | main () |
| 6562 | { |
| 6563 | |
| 6564 | ; |
| 6565 | return 0; |
| 6566 | } |
| 6567 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6568 | rm -f conftest.$ac_objext |
| 6569 | if { (ac_try="$ac_compile" |
| 6570 | case "(($ac_try" in |
| 6571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6572 | *) ac_try_echo=$ac_try;; |
| 6573 | esac |
| 6574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6575 | (eval "$ac_compile") 2>conftest.er1 |
| 6576 | ac_status=$? |
| 6577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6578 | rm -f conftest.er1 |
| 6579 | cat conftest.err >&5 |
| 6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6581 | (exit $ac_status); } && |
| 6582 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6583 | { (case "(($ac_try" in |
| 6584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6585 | *) ac_try_echo=$ac_try;; |
| 6586 | esac |
| 6587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6588 | (eval "$ac_try") 2>&5 |
| 6589 | ac_status=$? |
| 6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6591 | (exit $ac_status); }; } && |
| 6592 | { ac_try='test -s conftest.$ac_objext' |
| 6593 | { (case "(($ac_try" in |
| 6594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6595 | *) ac_try_echo=$ac_try;; |
| 6596 | esac |
| 6597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6598 | (eval "$ac_try") 2>&5 |
| 6599 | ac_status=$? |
| 6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6601 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6602 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6603 | else |
| 6604 | echo "$as_me: failed program was:" >&5 |
| 6605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6606 | |
| 6607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6608 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6611 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6612 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6614 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6617 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6618 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6619 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6620 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6621 | if test "$ac_test_CXXFLAGS" = set; then |
| 6622 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6623 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6624 | if test "$GXX" = yes; then |
| 6625 | CXXFLAGS="-g -O2" |
| 6626 | else |
| 6627 | CXXFLAGS="-g" |
| 6628 | fi |
| 6629 | else |
| 6630 | if test "$GXX" = yes; then |
| 6631 | CXXFLAGS="-O2" |
| 6632 | else |
| 6633 | CXXFLAGS= |
| 6634 | fi |
| 6635 | fi |
| 6636 | ac_ext=c |
| 6637 | ac_cpp='$CPP $CPPFLAGS' |
| 6638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6642 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6643 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6644 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6645 | if test "${lt_cv_path_NM+set}" = set; then |
| 6646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6647 | else |
| 6648 | if test -n "$NM"; then |
| 6649 | # Let the user override the test. |
| 6650 | lt_cv_path_NM="$NM" |
| 6651 | else |
| 6652 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6653 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6654 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6655 | fi |
| 6656 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6657 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6658 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6659 | IFS="$lt_save_ifs" |
| 6660 | test -z "$ac_dir" && ac_dir=. |
| 6661 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6662 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6663 | # Check to see if the nm accepts a BSD-compat flag. |
| 6664 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6665 | # nm: unknown option "B" ignored |
| 6666 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6667 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6668 | */dev/null* | *'Invalid file or object type'*) |
| 6669 | lt_cv_path_NM="$tmp_nm -B" |
| 6670 | break |
| 6671 | ;; |
| 6672 | *) |
| 6673 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6674 | */dev/null*) |
| 6675 | lt_cv_path_NM="$tmp_nm -p" |
| 6676 | break |
| 6677 | ;; |
| 6678 | *) |
| 6679 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6680 | continue # so that we can try to find one that supports BSD flags |
| 6681 | ;; |
| 6682 | esac |
| 6683 | ;; |
| 6684 | esac |
| 6685 | fi |
| 6686 | done |
| 6687 | IFS="$lt_save_ifs" |
| 6688 | done |
| 6689 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6690 | fi |
| 6691 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6692 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6693 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6694 | NM="$lt_cv_path_NM" |
| 6695 | |
| 6696 | |
| 6697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6698 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6699 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6700 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6702 | else |
| 6703 | llvm_cv_gnu_make_command='' |
| 6704 | for a in "$MAKE" make gmake gnumake ; do |
| 6705 | if test -z "$a" ; then continue ; fi ; |
| 6706 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6707 | then |
| 6708 | llvm_cv_gnu_make_command=$a ; |
| 6709 | break; |
| 6710 | fi |
| 6711 | done |
| 6712 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6713 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6714 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6715 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6716 | ifGNUmake='' ; |
| 6717 | else |
| 6718 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6719 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6720 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6721 | fi |
| 6722 | |
| 6723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6724 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6725 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6726 | LN_S=$as_ln_s |
| 6727 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6728 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6729 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6731 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6732 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6733 | fi |
| 6734 | |
| 6735 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6736 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6737 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6739 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6741 | else |
| 6742 | case $CMP in |
| 6743 | [\\/]* | ?:[\\/]*) |
| 6744 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6745 | ;; |
| 6746 | *) |
| 6747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6748 | for as_dir in $PATH |
| 6749 | do |
| 6750 | IFS=$as_save_IFS |
| 6751 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6753 | 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] | 6754 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6755 | 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] | 6756 | break 2 |
| 6757 | fi |
| 6758 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6759 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6760 | IFS=$as_save_IFS |
| 6761 | |
| 6762 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6763 | ;; |
| 6764 | esac |
| 6765 | fi |
| 6766 | CMP=$ac_cv_path_CMP |
| 6767 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6768 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6769 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6770 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6771 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6772 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6773 | fi |
| 6774 | |
| 6775 | |
| 6776 | # Extract the first word of "cp", so it can be a program name with args. |
| 6777 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6778 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6780 | if test "${ac_cv_path_CP+set}" = set; then |
| 6781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6782 | else |
| 6783 | case $CP in |
| 6784 | [\\/]* | ?:[\\/]*) |
| 6785 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6786 | ;; |
| 6787 | *) |
| 6788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6789 | for as_dir in $PATH |
| 6790 | do |
| 6791 | IFS=$as_save_IFS |
| 6792 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6794 | 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] | 6795 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6796 | 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] | 6797 | break 2 |
| 6798 | fi |
| 6799 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6800 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6801 | IFS=$as_save_IFS |
| 6802 | |
| 6803 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6804 | ;; |
| 6805 | esac |
| 6806 | fi |
| 6807 | CP=$ac_cv_path_CP |
| 6808 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6809 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6810 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6812 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6813 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6814 | fi |
| 6815 | |
| 6816 | |
| 6817 | # Extract the first word of "date", so it can be a program name with args. |
| 6818 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6819 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6821 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6823 | else |
| 6824 | case $DATE in |
| 6825 | [\\/]* | ?:[\\/]*) |
| 6826 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6827 | ;; |
| 6828 | *) |
| 6829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6830 | for as_dir in $PATH |
| 6831 | do |
| 6832 | IFS=$as_save_IFS |
| 6833 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6834 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6835 | 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] | 6836 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6837 | 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] | 6838 | break 2 |
| 6839 | fi |
| 6840 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6841 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6842 | IFS=$as_save_IFS |
| 6843 | |
| 6844 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6845 | ;; |
| 6846 | esac |
| 6847 | fi |
| 6848 | DATE=$ac_cv_path_DATE |
| 6849 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6850 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6851 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6852 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6853 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6854 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6855 | fi |
| 6856 | |
| 6857 | |
| 6858 | # Extract the first word of "find", so it can be a program name with args. |
| 6859 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6860 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6862 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6864 | else |
| 6865 | case $FIND in |
| 6866 | [\\/]* | ?:[\\/]*) |
| 6867 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6868 | ;; |
| 6869 | *) |
| 6870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6871 | for as_dir in $PATH |
| 6872 | do |
| 6873 | IFS=$as_save_IFS |
| 6874 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6876 | 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] | 6877 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6878 | 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] | 6879 | break 2 |
| 6880 | fi |
| 6881 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6882 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6883 | IFS=$as_save_IFS |
| 6884 | |
| 6885 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6886 | ;; |
| 6887 | esac |
| 6888 | fi |
| 6889 | FIND=$ac_cv_path_FIND |
| 6890 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6891 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6892 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6893 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6894 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6895 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6896 | fi |
| 6897 | |
| 6898 | |
| 6899 | # Extract the first word of "grep", so it can be a program name with args. |
| 6900 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6901 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6903 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6905 | else |
| 6906 | case $GREP in |
| 6907 | [\\/]* | ?:[\\/]*) |
| 6908 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6909 | ;; |
| 6910 | *) |
| 6911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6912 | for as_dir in $PATH |
| 6913 | do |
| 6914 | IFS=$as_save_IFS |
| 6915 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6916 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6917 | 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] | 6918 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6919 | 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] | 6920 | break 2 |
| 6921 | fi |
| 6922 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6923 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6924 | IFS=$as_save_IFS |
| 6925 | |
| 6926 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6927 | ;; |
| 6928 | esac |
| 6929 | fi |
| 6930 | GREP=$ac_cv_path_GREP |
| 6931 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6932 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6933 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6934 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6936 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6937 | fi |
| 6938 | |
| 6939 | |
| 6940 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6941 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6944 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6946 | else |
| 6947 | case $MKDIR in |
| 6948 | [\\/]* | ?:[\\/]*) |
| 6949 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6950 | ;; |
| 6951 | *) |
| 6952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6953 | for as_dir in $PATH |
| 6954 | do |
| 6955 | IFS=$as_save_IFS |
| 6956 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6957 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6958 | 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] | 6959 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6960 | 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] | 6961 | break 2 |
| 6962 | fi |
| 6963 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6964 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6965 | IFS=$as_save_IFS |
| 6966 | |
| 6967 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6968 | ;; |
| 6969 | esac |
| 6970 | fi |
| 6971 | MKDIR=$ac_cv_path_MKDIR |
| 6972 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6973 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6974 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6975 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6976 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6977 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6978 | fi |
| 6979 | |
| 6980 | |
| 6981 | # Extract the first word of "mv", so it can be a program name with args. |
| 6982 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6985 | if test "${ac_cv_path_MV+set}" = set; then |
| 6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6987 | else |
| 6988 | case $MV in |
| 6989 | [\\/]* | ?:[\\/]*) |
| 6990 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6991 | ;; |
| 6992 | *) |
| 6993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6994 | for as_dir in $PATH |
| 6995 | do |
| 6996 | IFS=$as_save_IFS |
| 6997 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6999 | 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] | 7000 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7001 | 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] | 7002 | break 2 |
| 7003 | fi |
| 7004 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7005 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7006 | IFS=$as_save_IFS |
| 7007 | |
| 7008 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7009 | ;; |
| 7010 | esac |
| 7011 | fi |
| 7012 | MV=$ac_cv_path_MV |
| 7013 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7014 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7015 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7016 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7018 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7019 | fi |
| 7020 | |
| 7021 | |
| 7022 | if test -n "$ac_tool_prefix"; then |
| 7023 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7024 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7027 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7029 | else |
| 7030 | if test -n "$RANLIB"; then |
| 7031 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7032 | else |
| 7033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7034 | for as_dir in $PATH |
| 7035 | do |
| 7036 | IFS=$as_save_IFS |
| 7037 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7039 | 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] | 7040 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7041 | 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] | 7042 | break 2 |
| 7043 | fi |
| 7044 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7045 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7046 | IFS=$as_save_IFS |
| 7047 | |
| 7048 | fi |
| 7049 | fi |
| 7050 | RANLIB=$ac_cv_prog_RANLIB |
| 7051 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7052 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7053 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7054 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7055 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7056 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7057 | fi |
| 7058 | |
| 7059 | |
| 7060 | fi |
| 7061 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7062 | ac_ct_RANLIB=$RANLIB |
| 7063 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7064 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7065 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7067 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7069 | else |
| 7070 | if test -n "$ac_ct_RANLIB"; then |
| 7071 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7072 | else |
| 7073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7074 | for as_dir in $PATH |
| 7075 | do |
| 7076 | IFS=$as_save_IFS |
| 7077 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7079 | 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] | 7080 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7081 | 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] | 7082 | break 2 |
| 7083 | fi |
| 7084 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7085 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7086 | IFS=$as_save_IFS |
| 7087 | |
| 7088 | fi |
| 7089 | fi |
| 7090 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7091 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7092 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7093 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7094 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7095 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7096 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7097 | fi |
| 7098 | |
| 7099 | if test "x$ac_ct_RANLIB" = x; then |
| 7100 | RANLIB=":" |
| 7101 | else |
| 7102 | case $cross_compiling:$ac_tool_warned in |
| 7103 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7104 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7105 | whose name does not start with the host triplet. If you think this |
| 7106 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7107 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7108 | whose name does not start with the host triplet. If you think this |
| 7109 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7110 | ac_tool_warned=yes ;; |
| 7111 | esac |
| 7112 | RANLIB=$ac_ct_RANLIB |
| 7113 | fi |
| 7114 | else |
| 7115 | RANLIB="$ac_cv_prog_RANLIB" |
| 7116 | fi |
| 7117 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7118 | if test -n "$ac_tool_prefix"; then |
| 7119 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7120 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7121 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7123 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7125 | else |
| 7126 | if test -n "$AR"; then |
| 7127 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7128 | else |
| 7129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7130 | for as_dir in $PATH |
| 7131 | do |
| 7132 | IFS=$as_save_IFS |
| 7133 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7135 | 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] | 7136 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7137 | 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] | 7138 | break 2 |
| 7139 | fi |
| 7140 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7141 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7142 | IFS=$as_save_IFS |
| 7143 | |
| 7144 | fi |
| 7145 | fi |
| 7146 | AR=$ac_cv_prog_AR |
| 7147 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7148 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7149 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7150 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7151 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7152 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7153 | fi |
| 7154 | |
| 7155 | |
| 7156 | fi |
| 7157 | if test -z "$ac_cv_prog_AR"; then |
| 7158 | ac_ct_AR=$AR |
| 7159 | # Extract the first word of "ar", so it can be a program name with args. |
| 7160 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7161 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7163 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7165 | else |
| 7166 | if test -n "$ac_ct_AR"; then |
| 7167 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7168 | else |
| 7169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7170 | for as_dir in $PATH |
| 7171 | do |
| 7172 | IFS=$as_save_IFS |
| 7173 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7174 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7175 | 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] | 7176 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7177 | 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] | 7178 | break 2 |
| 7179 | fi |
| 7180 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7181 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7182 | IFS=$as_save_IFS |
| 7183 | |
| 7184 | fi |
| 7185 | fi |
| 7186 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7187 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7188 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7189 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7190 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7191 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7192 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7193 | fi |
| 7194 | |
| 7195 | if test "x$ac_ct_AR" = x; then |
| 7196 | AR="false" |
| 7197 | else |
| 7198 | case $cross_compiling:$ac_tool_warned in |
| 7199 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7200 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7201 | whose name does not start with the host triplet. If you think this |
| 7202 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7203 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7204 | whose name does not start with the host triplet. If you think this |
| 7205 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7206 | ac_tool_warned=yes ;; |
| 7207 | esac |
| 7208 | AR=$ac_ct_AR |
| 7209 | fi |
| 7210 | else |
| 7211 | AR="$ac_cv_prog_AR" |
| 7212 | fi |
| 7213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7214 | # Extract the first word of "rm", so it can be a program name with args. |
| 7215 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7216 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7217 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7218 | if test "${ac_cv_path_RM+set}" = set; then |
| 7219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7220 | else |
| 7221 | case $RM in |
| 7222 | [\\/]* | ?:[\\/]*) |
| 7223 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7224 | ;; |
| 7225 | *) |
| 7226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7227 | for as_dir in $PATH |
| 7228 | do |
| 7229 | IFS=$as_save_IFS |
| 7230 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7231 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7232 | 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] | 7233 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7234 | 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] | 7235 | break 2 |
| 7236 | fi |
| 7237 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7238 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7239 | IFS=$as_save_IFS |
| 7240 | |
| 7241 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7242 | ;; |
| 7243 | esac |
| 7244 | fi |
| 7245 | RM=$ac_cv_path_RM |
| 7246 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7247 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7248 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7249 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7250 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7251 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7252 | fi |
| 7253 | |
| 7254 | |
| 7255 | # Extract the first word of "sed", so it can be a program name with args. |
| 7256 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7257 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7259 | if test "${ac_cv_path_SED+set}" = set; then |
| 7260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7261 | else |
| 7262 | case $SED in |
| 7263 | [\\/]* | ?:[\\/]*) |
| 7264 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7265 | ;; |
| 7266 | *) |
| 7267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7268 | for as_dir in $PATH |
| 7269 | do |
| 7270 | IFS=$as_save_IFS |
| 7271 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7272 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7273 | 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] | 7274 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7275 | 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] | 7276 | break 2 |
| 7277 | fi |
| 7278 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7279 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7280 | IFS=$as_save_IFS |
| 7281 | |
| 7282 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7283 | ;; |
| 7284 | esac |
| 7285 | fi |
| 7286 | SED=$ac_cv_path_SED |
| 7287 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7288 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7289 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7290 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7291 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7292 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7293 | fi |
| 7294 | |
| 7295 | |
| 7296 | # Extract the first word of "tar", so it can be a program name with args. |
| 7297 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7298 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7300 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7302 | else |
| 7303 | case $TAR in |
| 7304 | [\\/]* | ?:[\\/]*) |
| 7305 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7306 | ;; |
| 7307 | *) |
| 7308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7309 | for as_dir in $PATH |
| 7310 | do |
| 7311 | IFS=$as_save_IFS |
| 7312 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7315 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7316 | 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] | 7317 | break 2 |
| 7318 | fi |
| 7319 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7320 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7321 | IFS=$as_save_IFS |
| 7322 | |
| 7323 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7324 | ;; |
| 7325 | esac |
| 7326 | fi |
| 7327 | TAR=$ac_cv_path_TAR |
| 7328 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7329 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7330 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7331 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7333 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7334 | fi |
| 7335 | |
| 7336 | |
| 7337 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7338 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7341 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7343 | else |
| 7344 | case $BINPWD in |
| 7345 | [\\/]* | ?:[\\/]*) |
| 7346 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7347 | ;; |
| 7348 | *) |
| 7349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7350 | for as_dir in $PATH |
| 7351 | do |
| 7352 | IFS=$as_save_IFS |
| 7353 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7355 | 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] | 7356 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7357 | 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] | 7358 | break 2 |
| 7359 | fi |
| 7360 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7361 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7362 | IFS=$as_save_IFS |
| 7363 | |
| 7364 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7365 | ;; |
| 7366 | esac |
| 7367 | fi |
| 7368 | BINPWD=$ac_cv_path_BINPWD |
| 7369 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7370 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7371 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7372 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7373 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7374 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7375 | fi |
| 7376 | |
| 7377 | |
| 7378 | |
| 7379 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7380 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7383 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7385 | else |
| 7386 | case $GRAPHVIZ in |
| 7387 | [\\/]* | ?:[\\/]*) |
| 7388 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7389 | ;; |
| 7390 | *) |
| 7391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7392 | for as_dir in $PATH |
| 7393 | do |
| 7394 | IFS=$as_save_IFS |
| 7395 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7397 | 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] | 7398 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7399 | 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] | 7400 | break 2 |
| 7401 | fi |
| 7402 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7403 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7404 | IFS=$as_save_IFS |
| 7405 | |
| 7406 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7407 | ;; |
| 7408 | esac |
| 7409 | fi |
| 7410 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7411 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7412 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7413 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7416 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7417 | fi |
| 7418 | |
| 7419 | |
| 7420 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7421 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7422 | cat >>confdefs.h <<\_ACEOF |
| 7423 | #define HAVE_GRAPHVIZ 1 |
| 7424 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7425 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7426 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7427 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7428 | fi |
| 7429 | |
| 7430 | cat >>confdefs.h <<_ACEOF |
| 7431 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7432 | _ACEOF |
| 7433 | |
| 7434 | fi |
| 7435 | # Extract the first word of "dot", so it can be a program name with args. |
| 7436 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7437 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7439 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7441 | else |
| 7442 | case $DOT in |
| 7443 | [\\/]* | ?:[\\/]*) |
| 7444 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7445 | ;; |
| 7446 | *) |
| 7447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7448 | for as_dir in $PATH |
| 7449 | do |
| 7450 | IFS=$as_save_IFS |
| 7451 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7453 | 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] | 7454 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7455 | 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] | 7456 | break 2 |
| 7457 | fi |
| 7458 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7459 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7460 | IFS=$as_save_IFS |
| 7461 | |
| 7462 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7463 | ;; |
| 7464 | esac |
| 7465 | fi |
| 7466 | DOT=$ac_cv_path_DOT |
| 7467 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7468 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7469 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7470 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7471 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7472 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7473 | fi |
| 7474 | |
| 7475 | |
| 7476 | if test "$DOT" != "echo dot" ; then |
| 7477 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7478 | cat >>confdefs.h <<\_ACEOF |
| 7479 | #define HAVE_DOT 1 |
| 7480 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7481 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7482 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7483 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7484 | fi |
| 7485 | |
| 7486 | cat >>confdefs.h <<_ACEOF |
| 7487 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7488 | _ACEOF |
| 7489 | |
| 7490 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7491 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7492 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7493 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7495 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7497 | else |
| 7498 | case $FDP in |
| 7499 | [\\/]* | ?:[\\/]*) |
| 7500 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7501 | ;; |
| 7502 | *) |
| 7503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7504 | for as_dir in $PATH |
| 7505 | do |
| 7506 | IFS=$as_save_IFS |
| 7507 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7508 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7509 | 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] | 7510 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7511 | 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] | 7512 | break 2 |
| 7513 | fi |
| 7514 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7515 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7516 | IFS=$as_save_IFS |
| 7517 | |
| 7518 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7519 | ;; |
| 7520 | esac |
| 7521 | fi |
| 7522 | FDP=$ac_cv_path_FDP |
| 7523 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7524 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7525 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7527 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7528 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7529 | fi |
| 7530 | |
| 7531 | |
| 7532 | if test "$FDP" != "echo fdp" ; then |
| 7533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7534 | cat >>confdefs.h <<\_ACEOF |
| 7535 | #define HAVE_FDP 1 |
| 7536 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7537 | |
| 7538 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7539 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7540 | fi |
| 7541 | |
| 7542 | cat >>confdefs.h <<_ACEOF |
| 7543 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7544 | _ACEOF |
| 7545 | |
| 7546 | fi |
| 7547 | # Extract the first word of "neato", so it can be a program name with args. |
| 7548 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7549 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7551 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7553 | else |
| 7554 | case $NEATO in |
| 7555 | [\\/]* | ?:[\\/]*) |
| 7556 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7557 | ;; |
| 7558 | *) |
| 7559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7560 | for as_dir in $PATH |
| 7561 | do |
| 7562 | IFS=$as_save_IFS |
| 7563 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7564 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7565 | 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] | 7566 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7567 | 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] | 7568 | break 2 |
| 7569 | fi |
| 7570 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7571 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7572 | IFS=$as_save_IFS |
| 7573 | |
| 7574 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7575 | ;; |
| 7576 | esac |
| 7577 | fi |
| 7578 | NEATO=$ac_cv_path_NEATO |
| 7579 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7580 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7581 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7582 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7583 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7584 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7585 | fi |
| 7586 | |
| 7587 | |
| 7588 | if test "$NEATO" != "echo neato" ; then |
| 7589 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7590 | cat >>confdefs.h <<\_ACEOF |
| 7591 | #define HAVE_NEATO 1 |
| 7592 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7593 | |
| 7594 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7595 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7596 | fi |
| 7597 | |
| 7598 | cat >>confdefs.h <<_ACEOF |
| 7599 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7600 | _ACEOF |
| 7601 | |
| 7602 | fi |
| 7603 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7604 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7605 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7607 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7609 | else |
| 7610 | case $TWOPI in |
| 7611 | [\\/]* | ?:[\\/]*) |
| 7612 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7613 | ;; |
| 7614 | *) |
| 7615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7616 | for as_dir in $PATH |
| 7617 | do |
| 7618 | IFS=$as_save_IFS |
| 7619 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7621 | 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] | 7622 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7623 | 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] | 7624 | break 2 |
| 7625 | fi |
| 7626 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7627 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7628 | IFS=$as_save_IFS |
| 7629 | |
| 7630 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7631 | ;; |
| 7632 | esac |
| 7633 | fi |
| 7634 | TWOPI=$ac_cv_path_TWOPI |
| 7635 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7636 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7637 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7638 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7639 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7640 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7641 | fi |
| 7642 | |
| 7643 | |
| 7644 | if test "$TWOPI" != "echo twopi" ; then |
| 7645 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7646 | cat >>confdefs.h <<\_ACEOF |
| 7647 | #define HAVE_TWOPI 1 |
| 7648 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7649 | |
| 7650 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7651 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7652 | fi |
| 7653 | |
| 7654 | cat >>confdefs.h <<_ACEOF |
| 7655 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7656 | _ACEOF |
| 7657 | |
| 7658 | fi |
| 7659 | # Extract the first word of "circo", so it can be a program name with args. |
| 7660 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7661 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7663 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7665 | else |
| 7666 | case $CIRCO in |
| 7667 | [\\/]* | ?:[\\/]*) |
| 7668 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7669 | ;; |
| 7670 | *) |
| 7671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7672 | for as_dir in $PATH |
| 7673 | do |
| 7674 | IFS=$as_save_IFS |
| 7675 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7676 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7677 | 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] | 7678 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7679 | 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] | 7680 | break 2 |
| 7681 | fi |
| 7682 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7683 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7684 | IFS=$as_save_IFS |
| 7685 | |
| 7686 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7687 | ;; |
| 7688 | esac |
| 7689 | fi |
| 7690 | CIRCO=$ac_cv_path_CIRCO |
| 7691 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7692 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7693 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7694 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7695 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7696 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7697 | fi |
| 7698 | |
| 7699 | |
| 7700 | if test "$CIRCO" != "echo circo" ; then |
| 7701 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7702 | cat >>confdefs.h <<\_ACEOF |
| 7703 | #define HAVE_CIRCO 1 |
| 7704 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7705 | |
| 7706 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7707 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7708 | fi |
| 7709 | |
| 7710 | cat >>confdefs.h <<_ACEOF |
| 7711 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7712 | _ACEOF |
| 7713 | |
| 7714 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7715 | for ac_prog in gv gsview32 |
| 7716 | do |
| 7717 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7718 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7719 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7721 | if test "${ac_cv_path_GV+set}" = set; then |
| 7722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7723 | else |
| 7724 | case $GV in |
| 7725 | [\\/]* | ?:[\\/]*) |
| 7726 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7727 | ;; |
| 7728 | *) |
| 7729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7730 | for as_dir in $PATH |
| 7731 | do |
| 7732 | IFS=$as_save_IFS |
| 7733 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7734 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7735 | 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] | 7736 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7737 | 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] | 7738 | break 2 |
| 7739 | fi |
| 7740 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7741 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7742 | IFS=$as_save_IFS |
| 7743 | |
| 7744 | ;; |
| 7745 | esac |
| 7746 | fi |
| 7747 | GV=$ac_cv_path_GV |
| 7748 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7749 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7750 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7751 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7752 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7753 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7754 | fi |
| 7755 | |
| 7756 | |
| 7757 | test -n "$GV" && break |
| 7758 | done |
| 7759 | test -n "$GV" || GV="echo gv" |
| 7760 | |
| 7761 | if test "$GV" != "echo gv" ; then |
| 7762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7763 | cat >>confdefs.h <<\_ACEOF |
| 7764 | #define HAVE_GV 1 |
| 7765 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7766 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7767 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7768 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7769 | fi |
| 7770 | |
| 7771 | cat >>confdefs.h <<_ACEOF |
| 7772 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7773 | _ACEOF |
| 7774 | |
| 7775 | fi |
| 7776 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7777 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7778 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7780 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7782 | else |
| 7783 | case $DOTTY in |
| 7784 | [\\/]* | ?:[\\/]*) |
| 7785 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7786 | ;; |
| 7787 | *) |
| 7788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7789 | for as_dir in $PATH |
| 7790 | do |
| 7791 | IFS=$as_save_IFS |
| 7792 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7794 | 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] | 7795 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7796 | 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] | 7797 | break 2 |
| 7798 | fi |
| 7799 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7800 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7801 | IFS=$as_save_IFS |
| 7802 | |
| 7803 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7804 | ;; |
| 7805 | esac |
| 7806 | fi |
| 7807 | DOTTY=$ac_cv_path_DOTTY |
| 7808 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7809 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7810 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7812 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7813 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7814 | fi |
| 7815 | |
| 7816 | |
| 7817 | if test "$DOTTY" != "echo dotty" ; then |
| 7818 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7819 | cat >>confdefs.h <<\_ACEOF |
| 7820 | #define HAVE_DOTTY 1 |
| 7821 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7822 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7823 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7824 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7825 | fi |
| 7826 | |
| 7827 | cat >>confdefs.h <<_ACEOF |
| 7828 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7829 | _ACEOF |
| 7830 | |
| 7831 | fi |
| 7832 | |
| 7833 | |
| 7834 | # Extract the first word of "perl", so it can be a program name with args. |
| 7835 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7836 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7838 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7840 | else |
| 7841 | case $PERL in |
| 7842 | [\\/]* | ?:[\\/]*) |
| 7843 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7844 | ;; |
| 7845 | *) |
| 7846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7847 | for as_dir in $PATH |
| 7848 | do |
| 7849 | IFS=$as_save_IFS |
| 7850 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7851 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7852 | 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] | 7853 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7854 | 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] | 7855 | break 2 |
| 7856 | fi |
| 7857 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7858 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7859 | IFS=$as_save_IFS |
| 7860 | |
| 7861 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7862 | ;; |
| 7863 | esac |
| 7864 | fi |
| 7865 | PERL=$ac_cv_path_PERL |
| 7866 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7867 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7868 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7869 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7870 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7871 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7872 | fi |
| 7873 | |
| 7874 | |
| 7875 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7876 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7877 | 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] | 7878 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7879 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7880 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7881 | else |
| 7882 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7883 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7884 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7885 | fi |
| 7886 | fi |
| 7887 | |
| 7888 | |
| 7889 | if test x"$PERL" = xnone; then |
| 7890 | HAVE_PERL=0 |
| 7891 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7892 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7893 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7894 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7895 | else |
| 7896 | HAVE_PERL=1 |
| 7897 | |
| 7898 | fi |
| 7899 | |
| 7900 | # Find a good install program. We prefer a C program (faster), |
| 7901 | # so one script is as good as another. But avoid the broken or |
| 7902 | # incompatible versions: |
| 7903 | # SysV /etc/install, /usr/sbin/install |
| 7904 | # SunOS /usr/etc/install |
| 7905 | # IRIX /sbin/install |
| 7906 | # AIX /bin/install |
| 7907 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7908 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7909 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7910 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7911 | # OS/2's system install, which has a completely different semantic |
| 7912 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7913 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7914 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7915 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7916 | if test "${ac_cv_path_install+set}" = set; then |
| 7917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7918 | else |
| 7919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7920 | for as_dir in $PATH |
| 7921 | do |
| 7922 | IFS=$as_save_IFS |
| 7923 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7924 | # Account for people who put trailing slashes in PATH elements. |
| 7925 | case $as_dir/ in |
| 7926 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7927 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7928 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7929 | /usr/ucb/* ) ;; |
| 7930 | *) |
| 7931 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7932 | # Don't use installbsd from OSF since it installs stuff as root |
| 7933 | # by default. |
| 7934 | for ac_prog in ginstall scoinst install; do |
| 7935 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7936 | 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] | 7937 | if test $ac_prog = install && |
| 7938 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7939 | # AIX install. It has an incompatible calling convention. |
| 7940 | : |
| 7941 | elif test $ac_prog = install && |
| 7942 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7943 | # program-specific install script used by HP pwplus--don't use. |
| 7944 | : |
| 7945 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7946 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7947 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7948 | fi |
| 7949 | fi |
| 7950 | done |
| 7951 | done |
| 7952 | ;; |
| 7953 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7954 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7955 | IFS=$as_save_IFS |
| 7956 | |
| 7957 | |
| 7958 | fi |
| 7959 | if test "${ac_cv_path_install+set}" = set; then |
| 7960 | INSTALL=$ac_cv_path_install |
| 7961 | else |
| 7962 | # As a last resort, use the slow shell script. Don't cache a |
| 7963 | # value for INSTALL within a source directory, because that will |
| 7964 | # break other packages using the cache if that directory is |
| 7965 | # removed, or if the value is a relative name. |
| 7966 | INSTALL=$ac_install_sh |
| 7967 | fi |
| 7968 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7969 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7970 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7971 | |
| 7972 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7973 | # It thinks the first close brace ends the variable substitution. |
| 7974 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7975 | |
| 7976 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7977 | |
| 7978 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7979 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7980 | case "$INSTALL" in |
| 7981 | [\\/$]* | ?:[\\/]* ) ;; |
| 7982 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 7983 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7984 | |
| 7985 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7986 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7989 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7991 | else |
| 7992 | case $BZIP2 in |
| 7993 | [\\/]* | ?:[\\/]*) |
| 7994 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7995 | ;; |
| 7996 | *) |
| 7997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7998 | for as_dir in $PATH |
| 7999 | do |
| 8000 | IFS=$as_save_IFS |
| 8001 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8002 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8003 | 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] | 8004 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8005 | 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] | 8006 | break 2 |
| 8007 | fi |
| 8008 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8009 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8010 | IFS=$as_save_IFS |
| 8011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8012 | ;; |
| 8013 | esac |
| 8014 | fi |
| 8015 | BZIP2=$ac_cv_path_BZIP2 |
| 8016 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8017 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8018 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8019 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8020 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8021 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8022 | fi |
| 8023 | |
| 8024 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8025 | # Extract the first word of "cat", so it can be a program name with args. |
| 8026 | set dummy cat; ac_word=$2 |
| 8027 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8029 | if test "${ac_cv_path_CAT+set}" = set; then |
| 8030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8031 | else |
| 8032 | case $CAT in |
| 8033 | [\\/]* | ?:[\\/]*) |
| 8034 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 8035 | ;; |
| 8036 | *) |
| 8037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8038 | for as_dir in $PATH |
| 8039 | do |
| 8040 | IFS=$as_save_IFS |
| 8041 | test -z "$as_dir" && as_dir=. |
| 8042 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8043 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8044 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 8045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8046 | break 2 |
| 8047 | fi |
| 8048 | done |
| 8049 | done |
| 8050 | IFS=$as_save_IFS |
| 8051 | |
| 8052 | ;; |
| 8053 | esac |
| 8054 | fi |
| 8055 | CAT=$ac_cv_path_CAT |
| 8056 | if test -n "$CAT"; then |
| 8057 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 8058 | echo "${ECHO_T}$CAT" >&6; } |
| 8059 | else |
| 8060 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8061 | echo "${ECHO_T}no" >&6; } |
| 8062 | fi |
| 8063 | |
| 8064 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8065 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8066 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8067 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8069 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8071 | else |
| 8072 | case $DOXYGEN in |
| 8073 | [\\/]* | ?:[\\/]*) |
| 8074 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8075 | ;; |
| 8076 | *) |
| 8077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8078 | for as_dir in $PATH |
| 8079 | do |
| 8080 | IFS=$as_save_IFS |
| 8081 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8082 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8083 | 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] | 8084 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8085 | 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] | 8086 | break 2 |
| 8087 | fi |
| 8088 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8089 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8090 | IFS=$as_save_IFS |
| 8091 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8092 | ;; |
| 8093 | esac |
| 8094 | fi |
| 8095 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8096 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8097 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8098 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8099 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8100 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8101 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8102 | fi |
| 8103 | |
| 8104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8105 | # Extract the first word of "groff", so it can be a program name with args. |
| 8106 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8107 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8109 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8111 | else |
| 8112 | case $GROFF in |
| 8113 | [\\/]* | ?:[\\/]*) |
| 8114 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8115 | ;; |
| 8116 | *) |
| 8117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8118 | for as_dir in $PATH |
| 8119 | do |
| 8120 | IFS=$as_save_IFS |
| 8121 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8122 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8123 | 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] | 8124 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8125 | 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] | 8126 | break 2 |
| 8127 | fi |
| 8128 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8129 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8130 | IFS=$as_save_IFS |
| 8131 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8132 | ;; |
| 8133 | esac |
| 8134 | fi |
| 8135 | GROFF=$ac_cv_path_GROFF |
| 8136 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8137 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8138 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8139 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8140 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8141 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8142 | fi |
| 8143 | |
| 8144 | |
| 8145 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8146 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8147 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8149 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8151 | else |
| 8152 | case $GZIP in |
| 8153 | [\\/]* | ?:[\\/]*) |
| 8154 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8155 | ;; |
| 8156 | *) |
| 8157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8158 | for as_dir in $PATH |
| 8159 | do |
| 8160 | IFS=$as_save_IFS |
| 8161 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8163 | 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] | 8164 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8165 | 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] | 8166 | break 2 |
| 8167 | fi |
| 8168 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8169 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8170 | IFS=$as_save_IFS |
| 8171 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8172 | ;; |
| 8173 | esac |
| 8174 | fi |
| 8175 | GZIP=$ac_cv_path_GZIP |
| 8176 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8177 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8178 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8179 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8180 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8181 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8182 | fi |
| 8183 | |
| 8184 | |
| 8185 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8186 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8187 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8189 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8191 | else |
| 8192 | case $POD2HTML in |
| 8193 | [\\/]* | ?:[\\/]*) |
| 8194 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8195 | ;; |
| 8196 | *) |
| 8197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8198 | for as_dir in $PATH |
| 8199 | do |
| 8200 | IFS=$as_save_IFS |
| 8201 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8203 | 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] | 8204 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8205 | 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] | 8206 | break 2 |
| 8207 | fi |
| 8208 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8209 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8210 | IFS=$as_save_IFS |
| 8211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8212 | ;; |
| 8213 | esac |
| 8214 | fi |
| 8215 | POD2HTML=$ac_cv_path_POD2HTML |
| 8216 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8217 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8218 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8219 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8220 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8221 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8222 | fi |
| 8223 | |
| 8224 | |
| 8225 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8226 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8227 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8229 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8231 | else |
| 8232 | case $POD2MAN in |
| 8233 | [\\/]* | ?:[\\/]*) |
| 8234 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8235 | ;; |
| 8236 | *) |
| 8237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8238 | for as_dir in $PATH |
| 8239 | do |
| 8240 | IFS=$as_save_IFS |
| 8241 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8243 | 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] | 8244 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8245 | 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] | 8246 | break 2 |
| 8247 | fi |
| 8248 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8249 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8250 | IFS=$as_save_IFS |
| 8251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8252 | ;; |
| 8253 | esac |
| 8254 | fi |
| 8255 | POD2MAN=$ac_cv_path_POD2MAN |
| 8256 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8257 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8258 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8259 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8260 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8261 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8262 | fi |
| 8263 | |
| 8264 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8265 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 8266 | set dummy pdfroff; ac_word=$2 |
| 8267 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8269 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 8270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8271 | else |
| 8272 | case $PDFROFF in |
| 8273 | [\\/]* | ?:[\\/]*) |
| 8274 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 8275 | ;; |
| 8276 | *) |
| 8277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8278 | for as_dir in $PATH |
| 8279 | do |
| 8280 | IFS=$as_save_IFS |
| 8281 | test -z "$as_dir" && as_dir=. |
| 8282 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8284 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8286 | break 2 |
| 8287 | fi |
| 8288 | done |
| 8289 | done |
| 8290 | IFS=$as_save_IFS |
| 8291 | |
| 8292 | ;; |
| 8293 | esac |
| 8294 | fi |
| 8295 | PDFROFF=$ac_cv_path_PDFROFF |
| 8296 | if test -n "$PDFROFF"; then |
| 8297 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 8298 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 8299 | else |
| 8300 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8301 | echo "${ECHO_T}no" >&6; } |
| 8302 | fi |
| 8303 | |
| 8304 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8305 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8306 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8307 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8309 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8311 | else |
| 8312 | case $RUNTEST in |
| 8313 | [\\/]* | ?:[\\/]*) |
| 8314 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8315 | ;; |
| 8316 | *) |
| 8317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8318 | for as_dir in $PATH |
| 8319 | do |
| 8320 | IFS=$as_save_IFS |
| 8321 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8322 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8324 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8326 | break 2 |
| 8327 | fi |
| 8328 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8329 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8330 | IFS=$as_save_IFS |
| 8331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8332 | ;; |
| 8333 | esac |
| 8334 | fi |
| 8335 | RUNTEST=$ac_cv_path_RUNTEST |
| 8336 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8337 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8338 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8339 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8340 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8341 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8342 | fi |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8347 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8348 | 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] | 8349 | |
| 8350 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8351 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8352 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8353 | else |
| 8354 | with_tclinclude='' |
| 8355 | fi |
| 8356 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8357 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8359 | else |
| 8360 | |
| 8361 | if test x"${with_tclinclude}" != x ; then |
| 8362 | if test -f ${with_tclinclude}/tclsh ; then |
| 8363 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8364 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8365 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8366 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8367 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8368 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8369 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8370 | fi |
| 8371 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8372 | fi |
| 8373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8374 | |
| 8375 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8376 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8377 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8378 | 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 |
| 8379 | do |
| 8380 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8381 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8384 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8386 | else |
| 8387 | case $TCLSH in |
| 8388 | [\\/]* | ?:[\\/]*) |
| 8389 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8390 | ;; |
| 8391 | *) |
| 8392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8393 | for as_dir in $PATH |
| 8394 | do |
| 8395 | IFS=$as_save_IFS |
| 8396 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8397 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8398 | 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] | 8399 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8400 | 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] | 8401 | break 2 |
| 8402 | fi |
| 8403 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8404 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8405 | IFS=$as_save_IFS |
| 8406 | |
| 8407 | ;; |
| 8408 | esac |
| 8409 | fi |
| 8410 | TCLSH=$ac_cv_path_TCLSH |
| 8411 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8412 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8413 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8416 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8417 | fi |
| 8418 | |
| 8419 | |
| 8420 | test -n "$TCLSH" && break |
| 8421 | done |
| 8422 | |
| 8423 | if test x"${TCLSH}" = x ; then |
| 8424 | ac_cv_path_tclsh=''; |
| 8425 | else |
| 8426 | ac_cv_path_tclsh="${TCLSH}"; |
| 8427 | fi |
| 8428 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8429 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8430 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8431 | TCLSH="${ac_cv_path_tclsh}" |
| 8432 | |
| 8433 | fi |
| 8434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8435 | # Extract the first word of "zip", so it can be a program name with args. |
| 8436 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8437 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8439 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8441 | else |
| 8442 | case $ZIP in |
| 8443 | [\\/]* | ?:[\\/]*) |
| 8444 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8445 | ;; |
| 8446 | *) |
| 8447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8448 | for as_dir in $PATH |
| 8449 | do |
| 8450 | IFS=$as_save_IFS |
| 8451 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8453 | 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] | 8454 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8455 | 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] | 8456 | break 2 |
| 8457 | fi |
| 8458 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8459 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8460 | IFS=$as_save_IFS |
| 8461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8462 | ;; |
| 8463 | esac |
| 8464 | fi |
| 8465 | ZIP=$ac_cv_path_ZIP |
| 8466 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8467 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8468 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8469 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8470 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8471 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8472 | fi |
| 8473 | |
| 8474 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8475 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8476 | do |
| 8477 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8478 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8479 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8481 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8483 | else |
| 8484 | case $OCAMLC in |
| 8485 | [\\/]* | ?:[\\/]*) |
| 8486 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8487 | ;; |
| 8488 | *) |
| 8489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8490 | for as_dir in $PATH |
| 8491 | do |
| 8492 | IFS=$as_save_IFS |
| 8493 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8494 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8495 | 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] | 8496 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8497 | 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] | 8498 | break 2 |
| 8499 | fi |
| 8500 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8501 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8502 | IFS=$as_save_IFS |
| 8503 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8504 | ;; |
| 8505 | esac |
| 8506 | fi |
| 8507 | OCAMLC=$ac_cv_path_OCAMLC |
| 8508 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8509 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8510 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8511 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8512 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8513 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8514 | fi |
| 8515 | |
| 8516 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8517 | test -n "$OCAMLC" && break |
| 8518 | done |
| 8519 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8520 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8521 | do |
| 8522 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8523 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8524 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8526 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8528 | else |
| 8529 | case $OCAMLOPT in |
| 8530 | [\\/]* | ?:[\\/]*) |
| 8531 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8532 | ;; |
| 8533 | *) |
| 8534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8535 | for as_dir in $PATH |
| 8536 | do |
| 8537 | IFS=$as_save_IFS |
| 8538 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8539 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8540 | 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] | 8541 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8542 | 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] | 8543 | break 2 |
| 8544 | fi |
| 8545 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8546 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8547 | IFS=$as_save_IFS |
| 8548 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8549 | ;; |
| 8550 | esac |
| 8551 | fi |
| 8552 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8553 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8554 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8555 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8556 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8557 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8558 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8559 | fi |
| 8560 | |
| 8561 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8562 | test -n "$OCAMLOPT" && break |
| 8563 | done |
| 8564 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8565 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8566 | do |
| 8567 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8568 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8569 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8571 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8573 | else |
| 8574 | case $OCAMLDEP in |
| 8575 | [\\/]* | ?:[\\/]*) |
| 8576 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8577 | ;; |
| 8578 | *) |
| 8579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8580 | for as_dir in $PATH |
| 8581 | do |
| 8582 | IFS=$as_save_IFS |
| 8583 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8585 | 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] | 8586 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8587 | 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] | 8588 | break 2 |
| 8589 | fi |
| 8590 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8591 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8592 | IFS=$as_save_IFS |
| 8593 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8594 | ;; |
| 8595 | esac |
| 8596 | fi |
| 8597 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8598 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8599 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8600 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8601 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8602 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8603 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8604 | fi |
| 8605 | |
| 8606 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8607 | test -n "$OCAMLDEP" && break |
| 8608 | done |
| 8609 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8610 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8611 | do |
| 8612 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8613 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8614 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8616 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8618 | else |
| 8619 | case $OCAMLDOC in |
| 8620 | [\\/]* | ?:[\\/]*) |
| 8621 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8622 | ;; |
| 8623 | *) |
| 8624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8625 | for as_dir in $PATH |
| 8626 | do |
| 8627 | IFS=$as_save_IFS |
| 8628 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8629 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8630 | 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] | 8631 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8632 | 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] | 8633 | break 2 |
| 8634 | fi |
| 8635 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8636 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8637 | IFS=$as_save_IFS |
| 8638 | |
| 8639 | ;; |
| 8640 | esac |
| 8641 | fi |
| 8642 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8643 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8644 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8645 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8646 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8647 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8648 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8649 | fi |
| 8650 | |
| 8651 | |
| 8652 | test -n "$OCAMLDOC" && break |
| 8653 | done |
| 8654 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8655 | for ac_prog in gas as |
| 8656 | do |
| 8657 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8658 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8659 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8661 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8663 | else |
| 8664 | case $GAS in |
| 8665 | [\\/]* | ?:[\\/]*) |
| 8666 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8667 | ;; |
| 8668 | *) |
| 8669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8670 | for as_dir in $PATH |
| 8671 | do |
| 8672 | IFS=$as_save_IFS |
| 8673 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8674 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8675 | 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] | 8676 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8677 | 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] | 8678 | break 2 |
| 8679 | fi |
| 8680 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8681 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8682 | IFS=$as_save_IFS |
| 8683 | |
| 8684 | ;; |
| 8685 | esac |
| 8686 | fi |
| 8687 | GAS=$ac_cv_path_GAS |
| 8688 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8689 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8690 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8691 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8692 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8693 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8694 | fi |
| 8695 | |
| 8696 | |
| 8697 | test -n "$GAS" && break |
| 8698 | done |
| 8699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8700 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 8701 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 8702 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 8703 | if test "${llvm_cv_link_version+set}" = set; then |
| 8704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8705 | else |
| 8706 | |
| 8707 | version_string="$(ld -v 2>&1 | head -1)" |
| 8708 | |
| 8709 | # Check for ld64. |
| 8710 | if (echo "$version_string" | grep -q "ld64"); then |
| 8711 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 8712 | else |
| 8713 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 8714 | fi |
| 8715 | |
| 8716 | fi |
| 8717 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 8718 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 8719 | |
| 8720 | cat >>confdefs.h <<_ACEOF |
| 8721 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 8722 | _ACEOF |
| 8723 | |
| 8724 | |
| 8725 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8726 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8727 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8728 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8730 | else |
| 8731 | ac_ext=c |
| 8732 | ac_cpp='$CPP $CPPFLAGS' |
| 8733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8736 | |
| 8737 | oldcflags="$CFLAGS" |
| 8738 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8739 | cat >conftest.$ac_ext <<_ACEOF |
| 8740 | /* confdefs.h. */ |
| 8741 | _ACEOF |
| 8742 | cat confdefs.h >>conftest.$ac_ext |
| 8743 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8744 | /* end confdefs.h. */ |
| 8745 | |
| 8746 | int |
| 8747 | main () |
| 8748 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8750 | ; |
| 8751 | return 0; |
| 8752 | } |
| 8753 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8754 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8755 | if { (ac_try="$ac_link" |
| 8756 | case "(($ac_try" in |
| 8757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8758 | *) ac_try_echo=$ac_try;; |
| 8759 | esac |
| 8760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8761 | (eval "$ac_link") 2>conftest.er1 |
| 8762 | ac_status=$? |
| 8763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8764 | rm -f conftest.er1 |
| 8765 | cat conftest.err >&5 |
| 8766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8767 | (exit $ac_status); } && |
| 8768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8769 | { (case "(($ac_try" in |
| 8770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8771 | *) ac_try_echo=$ac_try;; |
| 8772 | esac |
| 8773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8774 | (eval "$ac_try") 2>&5 |
| 8775 | ac_status=$? |
| 8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8777 | (exit $ac_status); }; } && |
| 8778 | { ac_try='test -s conftest$ac_exeext' |
| 8779 | { (case "(($ac_try" in |
| 8780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8781 | *) ac_try_echo=$ac_try;; |
| 8782 | esac |
| 8783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8784 | (eval "$ac_try") 2>&5 |
| 8785 | ac_status=$? |
| 8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8787 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8788 | llvm_cv_link_use_r=yes |
| 8789 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8790 | echo "$as_me: failed program was:" >&5 |
| 8791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8792 | |
| 8793 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8794 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8795 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8796 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8797 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8798 | CFLAGS="$oldcflags" |
| 8799 | ac_ext=c |
| 8800 | ac_cpp='$CPP $CPPFLAGS' |
| 8801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8804 | |
| 8805 | |
| 8806 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8807 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8808 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8809 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8810 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8811 | cat >>confdefs.h <<\_ACEOF |
| 8812 | #define HAVE_LINK_R 1 |
| 8813 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8814 | |
| 8815 | fi |
| 8816 | |
| 8817 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8818 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8819 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8820 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8822 | else |
| 8823 | ac_ext=c |
| 8824 | ac_cpp='$CPP $CPPFLAGS' |
| 8825 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8826 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8827 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8828 | |
| 8829 | oldcflags="$CFLAGS" |
| 8830 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8831 | cat >conftest.$ac_ext <<_ACEOF |
| 8832 | /* confdefs.h. */ |
| 8833 | _ACEOF |
| 8834 | cat confdefs.h >>conftest.$ac_ext |
| 8835 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8836 | /* end confdefs.h. */ |
| 8837 | |
| 8838 | int |
| 8839 | main () |
| 8840 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8841 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8842 | ; |
| 8843 | return 0; |
| 8844 | } |
| 8845 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8846 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8847 | if { (ac_try="$ac_link" |
| 8848 | case "(($ac_try" in |
| 8849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8850 | *) ac_try_echo=$ac_try;; |
| 8851 | esac |
| 8852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8853 | (eval "$ac_link") 2>conftest.er1 |
| 8854 | ac_status=$? |
| 8855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8856 | rm -f conftest.er1 |
| 8857 | cat conftest.err >&5 |
| 8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8859 | (exit $ac_status); } && |
| 8860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8861 | { (case "(($ac_try" in |
| 8862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8863 | *) ac_try_echo=$ac_try;; |
| 8864 | esac |
| 8865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8866 | (eval "$ac_try") 2>&5 |
| 8867 | ac_status=$? |
| 8868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8869 | (exit $ac_status); }; } && |
| 8870 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8880 | llvm_cv_link_use_export_dynamic=yes |
| 8881 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8882 | echo "$as_me: failed program was:" >&5 |
| 8883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8884 | |
| 8885 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8886 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8887 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8888 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8889 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8890 | CFLAGS="$oldcflags" |
| 8891 | ac_ext=c |
| 8892 | ac_cpp='$CPP $CPPFLAGS' |
| 8893 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8894 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8895 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8896 | |
| 8897 | |
| 8898 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8899 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8900 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8901 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8902 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8903 | cat >>confdefs.h <<\_ACEOF |
| 8904 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8905 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8906 | |
| 8907 | fi |
| 8908 | |
| 8909 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8910 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 8911 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 8912 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8914 | else |
| 8915 | ac_ext=c |
| 8916 | ac_cpp='$CPP $CPPFLAGS' |
| 8917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8920 | |
| 8921 | oldcflags="$CFLAGS" |
| 8922 | |
| 8923 | # The following code is from the autoconf manual, |
| 8924 | # "11.13: Limitations of Usual Tools". |
| 8925 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 8926 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 8927 | # with $RANDOM to make collisions less likely. |
| 8928 | : ${TMPDIR=/tmp} |
| 8929 | { |
| 8930 | tmp=` |
| 8931 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 8932 | ` && |
| 8933 | test -n "$tmp" && test -d "$tmp" |
| 8934 | } || { |
| 8935 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8936 | (umask 077 && mkdir "$tmp") |
| 8937 | } || exit $? |
| 8938 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8939 | echo "{" > "$tmp/export.map" |
| 8940 | echo " global: main;" >> "$tmp/export.map" |
| 8941 | echo " local: *;" >> "$tmp/export.map" |
| 8942 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8943 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8944 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8945 | cat >conftest.$ac_ext <<_ACEOF |
| 8946 | /* confdefs.h. */ |
| 8947 | _ACEOF |
| 8948 | cat confdefs.h >>conftest.$ac_ext |
| 8949 | cat >>conftest.$ac_ext <<_ACEOF |
| 8950 | /* end confdefs.h. */ |
| 8951 | |
| 8952 | int |
| 8953 | main () |
| 8954 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8955 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8956 | ; |
| 8957 | return 0; |
| 8958 | } |
| 8959 | _ACEOF |
| 8960 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8961 | if { (ac_try="$ac_link" |
| 8962 | case "(($ac_try" in |
| 8963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8964 | *) ac_try_echo=$ac_try;; |
| 8965 | esac |
| 8966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8967 | (eval "$ac_link") 2>conftest.er1 |
| 8968 | ac_status=$? |
| 8969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8970 | rm -f conftest.er1 |
| 8971 | cat conftest.err >&5 |
| 8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8973 | (exit $ac_status); } && |
| 8974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8975 | { (case "(($ac_try" in |
| 8976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8977 | *) ac_try_echo=$ac_try;; |
| 8978 | esac |
| 8979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8980 | (eval "$ac_try") 2>&5 |
| 8981 | ac_status=$? |
| 8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8983 | (exit $ac_status); }; } && |
| 8984 | { ac_try='test -s conftest$ac_exeext' |
| 8985 | { (case "(($ac_try" in |
| 8986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8987 | *) ac_try_echo=$ac_try;; |
| 8988 | esac |
| 8989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8990 | (eval "$ac_try") 2>&5 |
| 8991 | ac_status=$? |
| 8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8993 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8994 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8995 | else |
| 8996 | echo "$as_me: failed program was:" >&5 |
| 8997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8998 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8999 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9000 | fi |
| 9001 | |
| 9002 | rm -f core conftest.err conftest.$ac_objext \ |
| 9003 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9004 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9005 | rmdir "$tmp" |
| 9006 | CFLAGS="$oldcflags" |
| 9007 | ac_ext=c |
| 9008 | ac_cpp='$CPP $CPPFLAGS' |
| 9009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9012 | |
| 9013 | |
| 9014 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9015 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 9016 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 9017 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 9018 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9019 | |
| 9020 | fi |
| 9021 | |
| 9022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9023 | |
| 9024 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9025 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 9026 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 9027 | if test "${ac_cv_c_const+set}" = set; then |
| 9028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9029 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9030 | cat >conftest.$ac_ext <<_ACEOF |
| 9031 | /* confdefs.h. */ |
| 9032 | _ACEOF |
| 9033 | cat confdefs.h >>conftest.$ac_ext |
| 9034 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9035 | /* end confdefs.h. */ |
| 9036 | |
| 9037 | int |
| 9038 | main () |
| 9039 | { |
| 9040 | /* FIXME: Include the comments suggested by Paul. */ |
| 9041 | #ifndef __cplusplus |
| 9042 | /* Ultrix mips cc rejects this. */ |
| 9043 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9044 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9045 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9046 | char const *const *ccp; |
| 9047 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9048 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 9049 | struct point {int x, y;}; |
| 9050 | static struct point const zero = {0,0}; |
| 9051 | /* AIX XL C 1.02.0.0 rejects this. |
| 9052 | It does not let you subtract one const X* pointer from another in |
| 9053 | an arm of an if-expression whose if-part is not a constant |
| 9054 | expression */ |
| 9055 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9056 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9057 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9058 | ++ccp; |
| 9059 | p = (char**) ccp; |
| 9060 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9061 | { /* SCO 3.2v4 cc rejects this. */ |
| 9062 | char *t; |
| 9063 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 9064 | |
| 9065 | *t++ = 0; |
| 9066 | if (s) return 0; |
| 9067 | } |
| 9068 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 9069 | int x[] = {25, 17}; |
| 9070 | const int *foo = &x[0]; |
| 9071 | ++foo; |
| 9072 | } |
| 9073 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 9074 | typedef const int *iptr; |
| 9075 | iptr p = 0; |
| 9076 | ++p; |
| 9077 | } |
| 9078 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 9079 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 9080 | struct s { int j; const int *ap[3]; }; |
| 9081 | struct s *b; b->j = 5; |
| 9082 | } |
| 9083 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 9084 | const int foo = 10; |
| 9085 | if (!foo) return 0; |
| 9086 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9087 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9088 | #endif |
| 9089 | |
| 9090 | ; |
| 9091 | return 0; |
| 9092 | } |
| 9093 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9094 | rm -f conftest.$ac_objext |
| 9095 | if { (ac_try="$ac_compile" |
| 9096 | case "(($ac_try" in |
| 9097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9098 | *) ac_try_echo=$ac_try;; |
| 9099 | esac |
| 9100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9101 | (eval "$ac_compile") 2>conftest.er1 |
| 9102 | ac_status=$? |
| 9103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9104 | rm -f conftest.er1 |
| 9105 | cat conftest.err >&5 |
| 9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9107 | (exit $ac_status); } && |
| 9108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9109 | { (case "(($ac_try" in |
| 9110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9111 | *) ac_try_echo=$ac_try;; |
| 9112 | esac |
| 9113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9114 | (eval "$ac_try") 2>&5 |
| 9115 | ac_status=$? |
| 9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9117 | (exit $ac_status); }; } && |
| 9118 | { ac_try='test -s conftest.$ac_objext' |
| 9119 | { (case "(($ac_try" in |
| 9120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9121 | *) ac_try_echo=$ac_try;; |
| 9122 | esac |
| 9123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9124 | (eval "$ac_try") 2>&5 |
| 9125 | ac_status=$? |
| 9126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9127 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9128 | ac_cv_c_const=yes |
| 9129 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9130 | echo "$as_me: failed program was:" >&5 |
| 9131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9132 | |
| 9133 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9134 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9137 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9138 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 9139 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9140 | if test $ac_cv_c_const = no; then |
| 9141 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9142 | cat >>confdefs.h <<\_ACEOF |
| 9143 | #define const |
| 9144 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9145 | |
| 9146 | fi |
| 9147 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9148 | |
| 9149 | |
| 9150 | |
| 9151 | |
| 9152 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9153 | ac_header_dirent=no |
| 9154 | 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] | 9155 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9156 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9157 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 9158 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9160 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9161 | cat >conftest.$ac_ext <<_ACEOF |
| 9162 | /* confdefs.h. */ |
| 9163 | _ACEOF |
| 9164 | cat confdefs.h >>conftest.$ac_ext |
| 9165 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9166 | /* end confdefs.h. */ |
| 9167 | #include <sys/types.h> |
| 9168 | #include <$ac_hdr> |
| 9169 | |
| 9170 | int |
| 9171 | main () |
| 9172 | { |
| 9173 | if ((DIR *) 0) |
| 9174 | return 0; |
| 9175 | ; |
| 9176 | return 0; |
| 9177 | } |
| 9178 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9179 | rm -f conftest.$ac_objext |
| 9180 | if { (ac_try="$ac_compile" |
| 9181 | case "(($ac_try" in |
| 9182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9183 | *) ac_try_echo=$ac_try;; |
| 9184 | esac |
| 9185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9186 | (eval "$ac_compile") 2>conftest.er1 |
| 9187 | ac_status=$? |
| 9188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9189 | rm -f conftest.er1 |
| 9190 | cat conftest.err >&5 |
| 9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9192 | (exit $ac_status); } && |
| 9193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9194 | { (case "(($ac_try" in |
| 9195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9196 | *) ac_try_echo=$ac_try;; |
| 9197 | esac |
| 9198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9199 | (eval "$ac_try") 2>&5 |
| 9200 | ac_status=$? |
| 9201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9202 | (exit $ac_status); }; } && |
| 9203 | { ac_try='test -s conftest.$ac_objext' |
| 9204 | { (case "(($ac_try" in |
| 9205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9206 | *) ac_try_echo=$ac_try;; |
| 9207 | esac |
| 9208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9209 | (eval "$ac_try") 2>&5 |
| 9210 | ac_status=$? |
| 9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9212 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9213 | eval "$as_ac_Header=yes" |
| 9214 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9215 | echo "$as_me: failed program was:" >&5 |
| 9216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9217 | |
| 9218 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9219 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9222 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9223 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9224 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9225 | echo "${ECHO_T}$ac_res" >&6; } |
| 9226 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9227 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9228 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9229 | _ACEOF |
| 9230 | |
| 9231 | ac_header_dirent=$ac_hdr; break |
| 9232 | fi |
| 9233 | |
| 9234 | done |
| 9235 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9236 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9237 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9238 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9239 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9241 | else |
| 9242 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9243 | cat >conftest.$ac_ext <<_ACEOF |
| 9244 | /* confdefs.h. */ |
| 9245 | _ACEOF |
| 9246 | cat confdefs.h >>conftest.$ac_ext |
| 9247 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | /* end confdefs.h. */ |
| 9249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9250 | /* Override any GCC internal prototype to avoid an error. |
| 9251 | Use char because int might match the return type of a GCC |
| 9252 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9253 | #ifdef __cplusplus |
| 9254 | extern "C" |
| 9255 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9256 | char opendir (); |
| 9257 | int |
| 9258 | main () |
| 9259 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9260 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9261 | ; |
| 9262 | return 0; |
| 9263 | } |
| 9264 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9265 | for ac_lib in '' dir; do |
| 9266 | if test -z "$ac_lib"; then |
| 9267 | ac_res="none required" |
| 9268 | else |
| 9269 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9270 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9271 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9272 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9273 | if { (ac_try="$ac_link" |
| 9274 | case "(($ac_try" in |
| 9275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9276 | *) ac_try_echo=$ac_try;; |
| 9277 | esac |
| 9278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9279 | (eval "$ac_link") 2>conftest.er1 |
| 9280 | ac_status=$? |
| 9281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9282 | rm -f conftest.er1 |
| 9283 | cat conftest.err >&5 |
| 9284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9285 | (exit $ac_status); } && |
| 9286 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9287 | { (case "(($ac_try" in |
| 9288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9289 | *) ac_try_echo=$ac_try;; |
| 9290 | esac |
| 9291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9292 | (eval "$ac_try") 2>&5 |
| 9293 | ac_status=$? |
| 9294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9295 | (exit $ac_status); }; } && |
| 9296 | { ac_try='test -s conftest$ac_exeext' |
| 9297 | { (case "(($ac_try" in |
| 9298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9299 | *) ac_try_echo=$ac_try;; |
| 9300 | esac |
| 9301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9302 | (eval "$ac_try") 2>&5 |
| 9303 | ac_status=$? |
| 9304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9305 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9306 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9307 | else |
| 9308 | echo "$as_me: failed program was:" >&5 |
| 9309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9310 | |
| 9311 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9312 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9313 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9314 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9315 | conftest$ac_exeext |
| 9316 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9317 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9318 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9319 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9320 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9321 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9322 | else |
| 9323 | ac_cv_search_opendir=no |
| 9324 | fi |
| 9325 | rm conftest.$ac_ext |
| 9326 | LIBS=$ac_func_search_save_LIBS |
| 9327 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9328 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9329 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9330 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9331 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9332 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9334 | fi |
| 9335 | |
| 9336 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9337 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9338 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9339 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9341 | else |
| 9342 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9343 | cat >conftest.$ac_ext <<_ACEOF |
| 9344 | /* confdefs.h. */ |
| 9345 | _ACEOF |
| 9346 | cat confdefs.h >>conftest.$ac_ext |
| 9347 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9348 | /* end confdefs.h. */ |
| 9349 | |
| 9350 | /* Override any GCC internal prototype to avoid an error. |
| 9351 | Use char because int might match the return type of a GCC |
| 9352 | builtin and then its argument prototype would still apply. */ |
| 9353 | #ifdef __cplusplus |
| 9354 | extern "C" |
| 9355 | #endif |
| 9356 | char opendir (); |
| 9357 | int |
| 9358 | main () |
| 9359 | { |
| 9360 | return opendir (); |
| 9361 | ; |
| 9362 | return 0; |
| 9363 | } |
| 9364 | _ACEOF |
| 9365 | for ac_lib in '' x; do |
| 9366 | if test -z "$ac_lib"; then |
| 9367 | ac_res="none required" |
| 9368 | else |
| 9369 | ac_res=-l$ac_lib |
| 9370 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9371 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9372 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9373 | if { (ac_try="$ac_link" |
| 9374 | case "(($ac_try" in |
| 9375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9376 | *) ac_try_echo=$ac_try;; |
| 9377 | esac |
| 9378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9379 | (eval "$ac_link") 2>conftest.er1 |
| 9380 | ac_status=$? |
| 9381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9382 | rm -f conftest.er1 |
| 9383 | cat conftest.err >&5 |
| 9384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9385 | (exit $ac_status); } && |
| 9386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9387 | { (case "(($ac_try" in |
| 9388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9389 | *) ac_try_echo=$ac_try;; |
| 9390 | esac |
| 9391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9392 | (eval "$ac_try") 2>&5 |
| 9393 | ac_status=$? |
| 9394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9395 | (exit $ac_status); }; } && |
| 9396 | { ac_try='test -s conftest$ac_exeext' |
| 9397 | { (case "(($ac_try" in |
| 9398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9399 | *) ac_try_echo=$ac_try;; |
| 9400 | esac |
| 9401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9402 | (eval "$ac_try") 2>&5 |
| 9403 | ac_status=$? |
| 9404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9405 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9406 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9407 | else |
| 9408 | echo "$as_me: failed program was:" >&5 |
| 9409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9410 | |
| 9411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9412 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9413 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9414 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9415 | conftest$ac_exeext |
| 9416 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9417 | break |
| 9418 | fi |
| 9419 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9420 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9421 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9422 | else |
| 9423 | ac_cv_search_opendir=no |
| 9424 | fi |
| 9425 | rm conftest.$ac_ext |
| 9426 | LIBS=$ac_func_search_save_LIBS |
| 9427 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9428 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9429 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9430 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9431 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9432 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9433 | |
| 9434 | fi |
| 9435 | |
| 9436 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9437 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9438 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9439 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9440 | do |
| 9441 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9443 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9447 | fi |
| 9448 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9449 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9450 | echo "${ECHO_T}$ac_res" >&6; } |
| 9451 | else |
| 9452 | # Is the header compilable? |
| 9453 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9454 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9455 | cat >conftest.$ac_ext <<_ACEOF |
| 9456 | /* confdefs.h. */ |
| 9457 | _ACEOF |
| 9458 | cat confdefs.h >>conftest.$ac_ext |
| 9459 | cat >>conftest.$ac_ext <<_ACEOF |
| 9460 | /* end confdefs.h. */ |
| 9461 | $ac_includes_default |
| 9462 | #include <$ac_header> |
| 9463 | _ACEOF |
| 9464 | rm -f conftest.$ac_objext |
| 9465 | if { (ac_try="$ac_compile" |
| 9466 | case "(($ac_try" in |
| 9467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9468 | *) ac_try_echo=$ac_try;; |
| 9469 | esac |
| 9470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9471 | (eval "$ac_compile") 2>conftest.er1 |
| 9472 | ac_status=$? |
| 9473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9474 | rm -f conftest.er1 |
| 9475 | cat conftest.err >&5 |
| 9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9477 | (exit $ac_status); } && |
| 9478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9479 | { (case "(($ac_try" in |
| 9480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9481 | *) ac_try_echo=$ac_try;; |
| 9482 | esac |
| 9483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9484 | (eval "$ac_try") 2>&5 |
| 9485 | ac_status=$? |
| 9486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9487 | (exit $ac_status); }; } && |
| 9488 | { ac_try='test -s conftest.$ac_objext' |
| 9489 | { (case "(($ac_try" in |
| 9490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9491 | *) ac_try_echo=$ac_try;; |
| 9492 | esac |
| 9493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9494 | (eval "$ac_try") 2>&5 |
| 9495 | ac_status=$? |
| 9496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9497 | (exit $ac_status); }; }; then |
| 9498 | ac_header_compiler=yes |
| 9499 | else |
| 9500 | echo "$as_me: failed program was:" >&5 |
| 9501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9502 | |
| 9503 | ac_header_compiler=no |
| 9504 | fi |
| 9505 | |
| 9506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9507 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9508 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9509 | |
| 9510 | # Is the header present? |
| 9511 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9512 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9513 | cat >conftest.$ac_ext <<_ACEOF |
| 9514 | /* confdefs.h. */ |
| 9515 | _ACEOF |
| 9516 | cat confdefs.h >>conftest.$ac_ext |
| 9517 | cat >>conftest.$ac_ext <<_ACEOF |
| 9518 | /* end confdefs.h. */ |
| 9519 | #include <$ac_header> |
| 9520 | _ACEOF |
| 9521 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9522 | case "(($ac_try" in |
| 9523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9524 | *) ac_try_echo=$ac_try;; |
| 9525 | esac |
| 9526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9527 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9528 | ac_status=$? |
| 9529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9530 | rm -f conftest.er1 |
| 9531 | cat conftest.err >&5 |
| 9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9533 | (exit $ac_status); } >/dev/null; then |
| 9534 | if test -s conftest.err; then |
| 9535 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9536 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9537 | else |
| 9538 | ac_cpp_err= |
| 9539 | fi |
| 9540 | else |
| 9541 | ac_cpp_err=yes |
| 9542 | fi |
| 9543 | if test -z "$ac_cpp_err"; then |
| 9544 | ac_header_preproc=yes |
| 9545 | else |
| 9546 | echo "$as_me: failed program was:" >&5 |
| 9547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9548 | |
| 9549 | ac_header_preproc=no |
| 9550 | fi |
| 9551 | |
| 9552 | rm -f conftest.err conftest.$ac_ext |
| 9553 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9554 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9555 | |
| 9556 | # So? What about this header? |
| 9557 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9558 | yes:no: ) |
| 9559 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9560 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9562 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9563 | ac_header_preproc=yes |
| 9564 | ;; |
| 9565 | no:yes:* ) |
| 9566 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9567 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9568 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9569 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9570 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9571 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9572 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9573 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9575 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9576 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9577 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9578 | ( cat <<\_ASBOX |
| 9579 | ## ----------------------------------- ## |
| 9580 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9581 | ## ----------------------------------- ## |
| 9582 | _ASBOX |
| 9583 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9584 | ;; |
| 9585 | esac |
| 9586 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9587 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9588 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9590 | else |
| 9591 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9592 | fi |
| 9593 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9595 | echo "${ECHO_T}$ac_res" >&6; } |
| 9596 | |
| 9597 | fi |
| 9598 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9599 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9600 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9601 | _ACEOF |
| 9602 | |
| 9603 | fi |
| 9604 | |
| 9605 | done |
| 9606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9607 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9608 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9609 | enableval=$enable_ltdl_install; |
| 9610 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9611 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9612 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9613 | |
| 9614 | |
| 9615 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9616 | INSTALL_LTDL_TRUE= |
| 9617 | INSTALL_LTDL_FALSE='#' |
| 9618 | else |
| 9619 | INSTALL_LTDL_TRUE='#' |
| 9620 | INSTALL_LTDL_FALSE= |
| 9621 | fi |
| 9622 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9623 | |
| 9624 | |
| 9625 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9626 | CONVENIENCE_LTDL_TRUE= |
| 9627 | CONVENIENCE_LTDL_FALSE='#' |
| 9628 | else |
| 9629 | CONVENIENCE_LTDL_TRUE='#' |
| 9630 | CONVENIENCE_LTDL_FALSE= |
| 9631 | fi |
| 9632 | |
| 9633 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9634 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9635 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9636 | library_names_spec= |
| 9637 | libname_spec='lib$name' |
| 9638 | soname_spec= |
| 9639 | shrext_cmds=".so" |
| 9640 | postinstall_cmds= |
| 9641 | postuninstall_cmds= |
| 9642 | finish_cmds= |
| 9643 | finish_eval= |
| 9644 | shlibpath_var= |
| 9645 | shlibpath_overrides_runpath=unknown |
| 9646 | version_type=none |
| 9647 | dynamic_linker="$host_os ld.so" |
| 9648 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9649 | if test "$GCC" = yes; then |
| 9650 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9651 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9652 | # if the path contains ";" then we assume it to be the separator |
| 9653 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9654 | # assumed that no part of a normal pathname contains ";" but that should |
| 9655 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9656 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9657 | else |
| 9658 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9659 | fi |
| 9660 | else |
| 9661 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9662 | fi |
| 9663 | need_lib_prefix=unknown |
| 9664 | hardcode_into_libs=no |
| 9665 | |
| 9666 | # when you set need_version to no, make sure it does not cause -set_version |
| 9667 | # flags to be left without arguments |
| 9668 | need_version=unknown |
| 9669 | |
| 9670 | case $host_os in |
| 9671 | aix3*) |
| 9672 | version_type=linux |
| 9673 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9674 | shlibpath_var=LIBPATH |
| 9675 | |
| 9676 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9677 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9678 | ;; |
| 9679 | |
| 9680 | aix4* | aix5*) |
| 9681 | version_type=linux |
| 9682 | need_lib_prefix=no |
| 9683 | need_version=no |
| 9684 | hardcode_into_libs=yes |
| 9685 | if test "$host_cpu" = ia64; then |
| 9686 | # AIX 5 supports IA64 |
| 9687 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9688 | shlibpath_var=LD_LIBRARY_PATH |
| 9689 | else |
| 9690 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9691 | # for dependence libraries. The import file would start with |
| 9692 | # the line `#! .'. This would cause the generated library to |
| 9693 | # depend on `.', always an invalid library. This was fixed in |
| 9694 | # development snapshots of GCC prior to 3.0. |
| 9695 | case $host_os in |
| 9696 | aix4 | aix4.[01] | aix4.[01].*) |
| 9697 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9698 | echo ' yes ' |
| 9699 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9700 | : |
| 9701 | else |
| 9702 | can_build_shared=no |
| 9703 | fi |
| 9704 | ;; |
| 9705 | esac |
| 9706 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9707 | # soname into executable. Probably we can add versioning support to |
| 9708 | # collect2, so additional links can be useful in future. |
| 9709 | if test "$aix_use_runtimelinking" = yes; then |
| 9710 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9711 | # instead of lib<name>.a to let people know that these are not |
| 9712 | # typical AIX shared libraries. |
| 9713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9714 | else |
| 9715 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9716 | # and later when we are not doing run time linking. |
| 9717 | library_names_spec='${libname}${release}.a $libname.a' |
| 9718 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9719 | fi |
| 9720 | shlibpath_var=LIBPATH |
| 9721 | fi |
| 9722 | ;; |
| 9723 | |
| 9724 | amigaos*) |
| 9725 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9726 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9727 | 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' |
| 9728 | ;; |
| 9729 | |
| 9730 | beos*) |
| 9731 | library_names_spec='${libname}${shared_ext}' |
| 9732 | dynamic_linker="$host_os ld.so" |
| 9733 | shlibpath_var=LIBRARY_PATH |
| 9734 | ;; |
| 9735 | |
| 9736 | bsdi[45]*) |
| 9737 | version_type=linux |
| 9738 | need_version=no |
| 9739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9740 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9741 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9742 | shlibpath_var=LD_LIBRARY_PATH |
| 9743 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9744 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9745 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9746 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9747 | # libtool to hard-code these into programs |
| 9748 | ;; |
| 9749 | |
| 9750 | cygwin* | mingw* | pw32*) |
| 9751 | version_type=windows |
| 9752 | shrext_cmds=".dll" |
| 9753 | need_version=no |
| 9754 | need_lib_prefix=no |
| 9755 | |
| 9756 | case $GCC,$host_os in |
| 9757 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9758 | library_names_spec='$libname.dll.a' |
| 9759 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9760 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9761 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9762 | dldir=$destdir/`dirname \$dlpath`~ |
| 9763 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9764 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9765 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9766 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9767 | dlpath=$dir/\$dldll~ |
| 9768 | $rm \$dlpath' |
| 9769 | shlibpath_overrides_runpath=yes |
| 9770 | |
| 9771 | case $host_os in |
| 9772 | cygwin*) |
| 9773 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9774 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9775 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9776 | ;; |
| 9777 | mingw*) |
| 9778 | # MinGW DLLs use traditional 'lib' prefix |
| 9779 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9780 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9781 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9782 | # It is most probably a Windows format PATH printed by |
| 9783 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9784 | # path with ; separators, and with drive letters. We can handle the |
| 9785 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9786 | # especially as we might pass files found there to a mingw objdump, |
| 9787 | # which wouldn't understand a cygwinified path. Ahh. |
| 9788 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9789 | else |
| 9790 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9791 | fi |
| 9792 | ;; |
| 9793 | pw32*) |
| 9794 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9795 | 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] | 9796 | ;; |
| 9797 | esac |
| 9798 | ;; |
| 9799 | |
| 9800 | *) |
| 9801 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9802 | ;; |
| 9803 | esac |
| 9804 | dynamic_linker='Win32 ld.exe' |
| 9805 | # FIXME: first we should search . and the directory the executable is in |
| 9806 | shlibpath_var=PATH |
| 9807 | ;; |
| 9808 | |
| 9809 | darwin* | rhapsody*) |
| 9810 | dynamic_linker="$host_os dyld" |
| 9811 | version_type=darwin |
| 9812 | need_lib_prefix=no |
| 9813 | need_version=no |
| 9814 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9815 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9816 | shlibpath_overrides_runpath=yes |
| 9817 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9818 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9819 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9820 | if test "$GCC" = yes; then |
| 9821 | 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"` |
| 9822 | else |
| 9823 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9824 | fi |
| 9825 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9826 | ;; |
| 9827 | |
| 9828 | dgux*) |
| 9829 | version_type=linux |
| 9830 | need_lib_prefix=no |
| 9831 | need_version=no |
| 9832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9833 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9834 | shlibpath_var=LD_LIBRARY_PATH |
| 9835 | ;; |
| 9836 | |
| 9837 | freebsd1*) |
| 9838 | dynamic_linker=no |
| 9839 | ;; |
| 9840 | |
| 9841 | kfreebsd*-gnu) |
| 9842 | version_type=linux |
| 9843 | need_lib_prefix=no |
| 9844 | need_version=no |
| 9845 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9846 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9847 | shlibpath_var=LD_LIBRARY_PATH |
| 9848 | shlibpath_overrides_runpath=no |
| 9849 | hardcode_into_libs=yes |
| 9850 | dynamic_linker='GNU ld.so' |
| 9851 | ;; |
| 9852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9853 | freebsd* | dragonfly*) |
| 9854 | # DragonFly does not have aout. When/if they implement a new |
| 9855 | # versioning mechanism, adjust this. |
| 9856 | if test -x /usr/bin/objformat; then |
| 9857 | objformat=`/usr/bin/objformat` |
| 9858 | else |
| 9859 | case $host_os in |
| 9860 | freebsd[123]*) objformat=aout ;; |
| 9861 | *) objformat=elf ;; |
| 9862 | esac |
| 9863 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9864 | version_type=freebsd-$objformat |
| 9865 | case $version_type in |
| 9866 | freebsd-elf*) |
| 9867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9868 | need_version=no |
| 9869 | need_lib_prefix=no |
| 9870 | ;; |
| 9871 | freebsd-*) |
| 9872 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9873 | need_version=yes |
| 9874 | ;; |
| 9875 | esac |
| 9876 | shlibpath_var=LD_LIBRARY_PATH |
| 9877 | case $host_os in |
| 9878 | freebsd2*) |
| 9879 | shlibpath_overrides_runpath=yes |
| 9880 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9881 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9882 | shlibpath_overrides_runpath=yes |
| 9883 | hardcode_into_libs=yes |
| 9884 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9885 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9886 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9887 | shlibpath_overrides_runpath=no |
| 9888 | hardcode_into_libs=yes |
| 9889 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9890 | freebsd*) # from 4.6 on |
| 9891 | shlibpath_overrides_runpath=yes |
| 9892 | hardcode_into_libs=yes |
| 9893 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9894 | esac |
| 9895 | ;; |
| 9896 | |
| 9897 | gnu*) |
| 9898 | version_type=linux |
| 9899 | need_lib_prefix=no |
| 9900 | need_version=no |
| 9901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9902 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9903 | shlibpath_var=LD_LIBRARY_PATH |
| 9904 | hardcode_into_libs=yes |
| 9905 | ;; |
| 9906 | |
| 9907 | hpux9* | hpux10* | hpux11*) |
| 9908 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9909 | # link against other versions. |
| 9910 | version_type=sunos |
| 9911 | need_lib_prefix=no |
| 9912 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9913 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9914 | ia64*) |
| 9915 | shrext_cmds='.so' |
| 9916 | hardcode_into_libs=yes |
| 9917 | dynamic_linker="$host_os dld.so" |
| 9918 | shlibpath_var=LD_LIBRARY_PATH |
| 9919 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9921 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9922 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9923 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9924 | else |
| 9925 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9926 | fi |
| 9927 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9928 | ;; |
| 9929 | hppa*64*) |
| 9930 | shrext_cmds='.sl' |
| 9931 | hardcode_into_libs=yes |
| 9932 | dynamic_linker="$host_os dld.sl" |
| 9933 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9934 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9936 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9937 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9938 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9939 | ;; |
| 9940 | *) |
| 9941 | shrext_cmds='.sl' |
| 9942 | dynamic_linker="$host_os dld.sl" |
| 9943 | shlibpath_var=SHLIB_PATH |
| 9944 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9946 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9947 | ;; |
| 9948 | esac |
| 9949 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9950 | postinstall_cmds='chmod 555 $lib' |
| 9951 | ;; |
| 9952 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9953 | interix3*) |
| 9954 | version_type=linux |
| 9955 | need_lib_prefix=no |
| 9956 | need_version=no |
| 9957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9959 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9960 | shlibpath_var=LD_LIBRARY_PATH |
| 9961 | shlibpath_overrides_runpath=no |
| 9962 | hardcode_into_libs=yes |
| 9963 | ;; |
| 9964 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9965 | irix5* | irix6* | nonstopux*) |
| 9966 | case $host_os in |
| 9967 | nonstopux*) version_type=nonstopux ;; |
| 9968 | *) |
| 9969 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9970 | version_type=linux |
| 9971 | else |
| 9972 | version_type=irix |
| 9973 | fi ;; |
| 9974 | esac |
| 9975 | need_lib_prefix=no |
| 9976 | need_version=no |
| 9977 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9979 | case $host_os in |
| 9980 | irix5* | nonstopux*) |
| 9981 | libsuff= shlibsuff= |
| 9982 | ;; |
| 9983 | *) |
| 9984 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9985 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9986 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9987 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9988 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9989 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9990 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9991 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9992 | esac |
| 9993 | ;; |
| 9994 | esac |
| 9995 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9996 | shlibpath_overrides_runpath=no |
| 9997 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9998 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9999 | hardcode_into_libs=yes |
| 10000 | ;; |
| 10001 | |
| 10002 | # No shared lib support for Linux oldld, aout, or coff. |
| 10003 | linux*oldld* | linux*aout* | linux*coff*) |
| 10004 | dynamic_linker=no |
| 10005 | ;; |
| 10006 | |
| 10007 | # This must be Linux ELF. |
| 10008 | linux*) |
| 10009 | version_type=linux |
| 10010 | need_lib_prefix=no |
| 10011 | need_version=no |
| 10012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10013 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10014 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10015 | shlibpath_var=LD_LIBRARY_PATH |
| 10016 | shlibpath_overrides_runpath=no |
| 10017 | # This implies no fast_install, which is unacceptable. |
| 10018 | # Some rework will be needed to allow for fast_install |
| 10019 | # before this can be enabled. |
| 10020 | hardcode_into_libs=yes |
| 10021 | |
| 10022 | # Append ld.so.conf contents to the search path |
| 10023 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10024 | 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] | 10025 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10026 | fi |
| 10027 | |
| 10028 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10029 | # powerpc, because MkLinux only supported shared libraries with the |
| 10030 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10031 | # most powerpc-linux boxes support dynamic linking these days and |
| 10032 | # people can always --disable-shared, the test was removed, and we |
| 10033 | # assume the GNU/Linux dynamic linker is in use. |
| 10034 | dynamic_linker='GNU/Linux ld.so' |
| 10035 | ;; |
| 10036 | |
| 10037 | knetbsd*-gnu) |
| 10038 | version_type=linux |
| 10039 | need_lib_prefix=no |
| 10040 | need_version=no |
| 10041 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10042 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10043 | shlibpath_var=LD_LIBRARY_PATH |
| 10044 | shlibpath_overrides_runpath=no |
| 10045 | hardcode_into_libs=yes |
| 10046 | dynamic_linker='GNU ld.so' |
| 10047 | ;; |
| 10048 | |
| 10049 | netbsd*) |
| 10050 | version_type=sunos |
| 10051 | need_lib_prefix=no |
| 10052 | need_version=no |
| 10053 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10055 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10056 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10057 | else |
| 10058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10059 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10060 | dynamic_linker='NetBSD ld.elf_so' |
| 10061 | fi |
| 10062 | shlibpath_var=LD_LIBRARY_PATH |
| 10063 | shlibpath_overrides_runpath=yes |
| 10064 | hardcode_into_libs=yes |
| 10065 | ;; |
| 10066 | |
| 10067 | newsos6) |
| 10068 | version_type=linux |
| 10069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10070 | shlibpath_var=LD_LIBRARY_PATH |
| 10071 | shlibpath_overrides_runpath=yes |
| 10072 | ;; |
| 10073 | |
| 10074 | nto-qnx*) |
| 10075 | version_type=linux |
| 10076 | need_lib_prefix=no |
| 10077 | need_version=no |
| 10078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10079 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10080 | shlibpath_var=LD_LIBRARY_PATH |
| 10081 | shlibpath_overrides_runpath=yes |
| 10082 | ;; |
| 10083 | |
| 10084 | openbsd*) |
| 10085 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10086 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10087 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10088 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10089 | case $host_os in |
| 10090 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10091 | *) need_version=no ;; |
| 10092 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10094 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10095 | shlibpath_var=LD_LIBRARY_PATH |
| 10096 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10097 | case $host_os in |
| 10098 | openbsd2.[89] | openbsd2.[89].*) |
| 10099 | shlibpath_overrides_runpath=no |
| 10100 | ;; |
| 10101 | *) |
| 10102 | shlibpath_overrides_runpath=yes |
| 10103 | ;; |
| 10104 | esac |
| 10105 | else |
| 10106 | shlibpath_overrides_runpath=yes |
| 10107 | fi |
| 10108 | ;; |
| 10109 | |
| 10110 | os2*) |
| 10111 | libname_spec='$name' |
| 10112 | shrext_cmds=".dll" |
| 10113 | need_lib_prefix=no |
| 10114 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10115 | dynamic_linker='OS/2 ld.exe' |
| 10116 | shlibpath_var=LIBPATH |
| 10117 | ;; |
| 10118 | |
| 10119 | osf3* | osf4* | osf5*) |
| 10120 | version_type=osf |
| 10121 | need_lib_prefix=no |
| 10122 | need_version=no |
| 10123 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10125 | shlibpath_var=LD_LIBRARY_PATH |
| 10126 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10127 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10128 | ;; |
| 10129 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10130 | solaris*) |
| 10131 | version_type=linux |
| 10132 | need_lib_prefix=no |
| 10133 | need_version=no |
| 10134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10135 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10136 | shlibpath_var=LD_LIBRARY_PATH |
| 10137 | shlibpath_overrides_runpath=yes |
| 10138 | hardcode_into_libs=yes |
| 10139 | # ldd complains unless libraries are executable |
| 10140 | postinstall_cmds='chmod +x $lib' |
| 10141 | ;; |
| 10142 | |
| 10143 | sunos4*) |
| 10144 | version_type=sunos |
| 10145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10146 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10147 | shlibpath_var=LD_LIBRARY_PATH |
| 10148 | shlibpath_overrides_runpath=yes |
| 10149 | if test "$with_gnu_ld" = yes; then |
| 10150 | need_lib_prefix=no |
| 10151 | fi |
| 10152 | need_version=yes |
| 10153 | ;; |
| 10154 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10155 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10156 | version_type=linux |
| 10157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10158 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10159 | shlibpath_var=LD_LIBRARY_PATH |
| 10160 | case $host_vendor in |
| 10161 | sni) |
| 10162 | shlibpath_overrides_runpath=no |
| 10163 | need_lib_prefix=no |
| 10164 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10165 | runpath_var=LD_RUN_PATH |
| 10166 | ;; |
| 10167 | siemens) |
| 10168 | need_lib_prefix=no |
| 10169 | ;; |
| 10170 | motorola) |
| 10171 | need_lib_prefix=no |
| 10172 | need_version=no |
| 10173 | shlibpath_overrides_runpath=no |
| 10174 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10175 | ;; |
| 10176 | esac |
| 10177 | ;; |
| 10178 | |
| 10179 | sysv4*MP*) |
| 10180 | if test -d /usr/nec ;then |
| 10181 | version_type=linux |
| 10182 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10183 | soname_spec='$libname${shared_ext}.$major' |
| 10184 | shlibpath_var=LD_LIBRARY_PATH |
| 10185 | fi |
| 10186 | ;; |
| 10187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10188 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10189 | version_type=freebsd-elf |
| 10190 | need_lib_prefix=no |
| 10191 | need_version=no |
| 10192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10193 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10194 | shlibpath_var=LD_LIBRARY_PATH |
| 10195 | hardcode_into_libs=yes |
| 10196 | if test "$with_gnu_ld" = yes; then |
| 10197 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10198 | shlibpath_overrides_runpath=no |
| 10199 | else |
| 10200 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10201 | shlibpath_overrides_runpath=yes |
| 10202 | case $host_os in |
| 10203 | sco3.2v5*) |
| 10204 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10205 | ;; |
| 10206 | esac |
| 10207 | fi |
| 10208 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10209 | ;; |
| 10210 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10211 | uts4*) |
| 10212 | version_type=linux |
| 10213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10214 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10215 | shlibpath_var=LD_LIBRARY_PATH |
| 10216 | ;; |
| 10217 | |
| 10218 | *) |
| 10219 | dynamic_linker=no |
| 10220 | ;; |
| 10221 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10222 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10223 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10224 | test "$dynamic_linker" = no && can_build_shared=no |
| 10225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10226 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10227 | if test "$GCC" = yes; then |
| 10228 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10229 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10231 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10232 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10233 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10234 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 10235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10236 | else |
| 10237 | |
| 10238 | module=yes |
| 10239 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10240 | |
| 10241 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10242 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10243 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10244 | if test -n "$libltdl_cv_shlibext"; then |
| 10245 | |
| 10246 | cat >>confdefs.h <<_ACEOF |
| 10247 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10248 | _ACEOF |
| 10249 | |
| 10250 | fi |
| 10251 | |
| 10252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10253 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10254 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10255 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10257 | else |
| 10258 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10259 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10260 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10261 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10262 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10263 | |
| 10264 | cat >>confdefs.h <<_ACEOF |
| 10265 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10266 | _ACEOF |
| 10267 | |
| 10268 | fi |
| 10269 | |
| 10270 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10271 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10272 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10273 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10275 | else |
| 10276 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10277 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10278 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10279 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10280 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10281 | sys_search_path= |
| 10282 | for dir in $libltdl_cv_sys_search_path; do |
| 10283 | if test -z "$sys_search_path"; then |
| 10284 | sys_search_path="$dir" |
| 10285 | else |
| 10286 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10287 | fi |
| 10288 | done |
| 10289 | |
| 10290 | cat >>confdefs.h <<_ACEOF |
| 10291 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10292 | _ACEOF |
| 10293 | |
| 10294 | fi |
| 10295 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10296 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10297 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10298 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10300 | else |
| 10301 | libltdl_cv_objdir="$objdir" |
| 10302 | if test -n "$objdir"; then |
| 10303 | : |
| 10304 | else |
| 10305 | rm -f .libs 2>/dev/null |
| 10306 | mkdir .libs 2>/dev/null |
| 10307 | if test -d .libs; then |
| 10308 | libltdl_cv_objdir=.libs |
| 10309 | else |
| 10310 | # MS-DOS does not allow filenames that begin with a dot. |
| 10311 | libltdl_cv_objdir=_libs |
| 10312 | fi |
| 10313 | rmdir .libs 2>/dev/null |
| 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_objdir" >&5 |
| 10318 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10319 | |
| 10320 | cat >>confdefs.h <<_ACEOF |
| 10321 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10322 | _ACEOF |
| 10323 | |
| 10324 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10325 | |
| 10326 | |
| 10327 | |
| 10328 | |
| 10329 | # 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] | 10330 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10331 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10332 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10334 | else |
| 10335 | |
| 10336 | # These are sane defaults that work on at least a few old systems. |
| 10337 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10338 | |
| 10339 | # Character class describing NM global symbol codes. |
| 10340 | symcode='[BCDEGRST]' |
| 10341 | |
| 10342 | # Regexp to match symbols that can be accessed directly from C. |
| 10343 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10344 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10345 | # Transform an extracted symbol line into a proper C declaration |
| 10346 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10347 | |
| 10348 | # Transform an extracted symbol line into symbol name and symbol address |
| 10349 | 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'" |
| 10350 | |
| 10351 | # Define system-specific variables. |
| 10352 | case $host_os in |
| 10353 | aix*) |
| 10354 | symcode='[BCDT]' |
| 10355 | ;; |
| 10356 | cygwin* | mingw* | pw32*) |
| 10357 | symcode='[ABCDGISTW]' |
| 10358 | ;; |
| 10359 | hpux*) # Its linker distinguishes data from code symbols |
| 10360 | if test "$host_cpu" = ia64; then |
| 10361 | symcode='[ABCDEGRST]' |
| 10362 | fi |
| 10363 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10364 | 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'" |
| 10365 | ;; |
| 10366 | linux*) |
| 10367 | if test "$host_cpu" = ia64; then |
| 10368 | symcode='[ABCDGIRSTW]' |
| 10369 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10370 | 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'" |
| 10371 | fi |
| 10372 | ;; |
| 10373 | irix* | nonstopux*) |
| 10374 | symcode='[BCDEGRST]' |
| 10375 | ;; |
| 10376 | osf*) |
| 10377 | symcode='[BCDEGQRST]' |
| 10378 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10379 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10380 | symcode='[BDRT]' |
| 10381 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10382 | sco3.2v5*) |
| 10383 | symcode='[DT]' |
| 10384 | ;; |
| 10385 | sysv4.2uw2*) |
| 10386 | symcode='[DT]' |
| 10387 | ;; |
| 10388 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10389 | symcode='[ABDT]' |
| 10390 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10391 | sysv4) |
| 10392 | symcode='[DFNSTU]' |
| 10393 | ;; |
| 10394 | esac |
| 10395 | |
| 10396 | # Handle CRLF in mingw tool chain |
| 10397 | opt_cr= |
| 10398 | case $build_os in |
| 10399 | mingw*) |
| 10400 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10401 | ;; |
| 10402 | esac |
| 10403 | |
| 10404 | # If we're using GNU nm, then use its standard symbol codes. |
| 10405 | case `$NM -V 2>&1` in |
| 10406 | *GNU* | *'with BFD'*) |
| 10407 | symcode='[ABCDGIRSTW]' ;; |
| 10408 | esac |
| 10409 | |
| 10410 | # Try without a prefix undercore, then with it. |
| 10411 | for ac_symprfx in "" "_"; do |
| 10412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10413 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10414 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10415 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10416 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10417 | 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] | 10418 | |
| 10419 | # Check to see that the pipe works correctly. |
| 10420 | pipe_works=no |
| 10421 | |
| 10422 | rm -f conftest* |
| 10423 | cat > conftest.$ac_ext <<EOF |
| 10424 | #ifdef __cplusplus |
| 10425 | extern "C" { |
| 10426 | #endif |
| 10427 | char nm_test_var; |
| 10428 | void nm_test_func(){} |
| 10429 | #ifdef __cplusplus |
| 10430 | } |
| 10431 | #endif |
| 10432 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10433 | EOF |
| 10434 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10436 | (eval $ac_compile) 2>&5 |
| 10437 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10439 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10440 | # Now try to grab the symbols. |
| 10441 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10442 | 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] | 10443 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10444 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10446 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10447 | # Try sorting and uniquifying the output. |
| 10448 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10449 | mv -f "$nlist"T "$nlist" |
| 10450 | else |
| 10451 | rm -f "$nlist"T |
| 10452 | fi |
| 10453 | |
| 10454 | # Make sure that we snagged all the symbols we need. |
| 10455 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10456 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10457 | cat <<EOF > conftest.$ac_ext |
| 10458 | #ifdef __cplusplus |
| 10459 | extern "C" { |
| 10460 | #endif |
| 10461 | |
| 10462 | EOF |
| 10463 | # Now generate the symbol file. |
| 10464 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10465 | |
| 10466 | cat <<EOF >> conftest.$ac_ext |
| 10467 | #if defined (__STDC__) && __STDC__ |
| 10468 | # define lt_ptr_t void * |
| 10469 | #else |
| 10470 | # define lt_ptr_t char * |
| 10471 | # define const |
| 10472 | #endif |
| 10473 | |
| 10474 | /* The mapping between symbol names and symbols. */ |
| 10475 | const struct { |
| 10476 | const char *name; |
| 10477 | lt_ptr_t address; |
| 10478 | } |
| 10479 | lt_preloaded_symbols[] = |
| 10480 | { |
| 10481 | EOF |
| 10482 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10483 | cat <<\EOF >> conftest.$ac_ext |
| 10484 | {0, (lt_ptr_t) 0} |
| 10485 | }; |
| 10486 | |
| 10487 | #ifdef __cplusplus |
| 10488 | } |
| 10489 | #endif |
| 10490 | EOF |
| 10491 | # Now try linking the two files. |
| 10492 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10493 | lt_save_LIBS="$LIBS" |
| 10494 | lt_save_CFLAGS="$CFLAGS" |
| 10495 | LIBS="conftstm.$ac_objext" |
| 10496 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10498 | (eval $ac_link) 2>&5 |
| 10499 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10501 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10502 | pipe_works=yes |
| 10503 | fi |
| 10504 | LIBS="$lt_save_LIBS" |
| 10505 | CFLAGS="$lt_save_CFLAGS" |
| 10506 | else |
| 10507 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10508 | fi |
| 10509 | else |
| 10510 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10511 | fi |
| 10512 | else |
| 10513 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10514 | fi |
| 10515 | else |
| 10516 | echo "$progname: failed program was:" >&5 |
| 10517 | cat conftest.$ac_ext >&5 |
| 10518 | fi |
| 10519 | rm -f conftest* conftst* |
| 10520 | |
| 10521 | # Do not use the global_symbol_pipe unless it works. |
| 10522 | if test "$pipe_works" = yes; then |
| 10523 | break |
| 10524 | else |
| 10525 | lt_cv_sys_global_symbol_pipe= |
| 10526 | fi |
| 10527 | done |
| 10528 | |
| 10529 | fi |
| 10530 | |
| 10531 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10532 | lt_cv_sys_global_symbol_to_cdecl= |
| 10533 | fi |
| 10534 | 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] | 10535 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10536 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10537 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10538 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10539 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10540 | fi |
| 10541 | |
| 10542 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10543 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10544 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10545 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10547 | else |
| 10548 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10549 | libltdl_cv_preloaded_symbols=yes |
| 10550 | else |
| 10551 | libltdl_cv_preloaded_symbols=no |
| 10552 | fi |
| 10553 | |
| 10554 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10555 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10556 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10557 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10558 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10559 | cat >>confdefs.h <<\_ACEOF |
| 10560 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10561 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10562 | |
| 10563 | fi |
| 10564 | |
| 10565 | LIBADD_DL= |
| 10566 | |
| 10567 | ac_ext=c |
| 10568 | ac_cpp='$CPP $CPPFLAGS' |
| 10569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10572 | |
| 10573 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10574 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10575 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10576 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10578 | else |
| 10579 | cat >conftest.$ac_ext <<_ACEOF |
| 10580 | /* confdefs.h. */ |
| 10581 | _ACEOF |
| 10582 | cat confdefs.h >>conftest.$ac_ext |
| 10583 | cat >>conftest.$ac_ext <<_ACEOF |
| 10584 | /* end confdefs.h. */ |
| 10585 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10587 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10588 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10589 | /* System header to define __stub macros and hopefully few prototypes, |
| 10590 | which can conflict with char shl_load (); below. |
| 10591 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10592 | <limits.h> exists even on freestanding compilers. */ |
| 10593 | |
| 10594 | #ifdef __STDC__ |
| 10595 | # include <limits.h> |
| 10596 | #else |
| 10597 | # include <assert.h> |
| 10598 | #endif |
| 10599 | |
| 10600 | #undef shl_load |
| 10601 | |
| 10602 | /* Override any GCC internal prototype to avoid an error. |
| 10603 | Use char because int might match the return type of a GCC |
| 10604 | builtin and then its argument prototype would still apply. */ |
| 10605 | #ifdef __cplusplus |
| 10606 | extern "C" |
| 10607 | #endif |
| 10608 | char shl_load (); |
| 10609 | /* The GNU C library defines this for functions which it implements |
| 10610 | to always fail with ENOSYS. Some functions are actually named |
| 10611 | something starting with __ and the normal name is an alias. */ |
| 10612 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10613 | choke me |
| 10614 | #endif |
| 10615 | |
| 10616 | int |
| 10617 | main () |
| 10618 | { |
| 10619 | return shl_load (); |
| 10620 | ; |
| 10621 | return 0; |
| 10622 | } |
| 10623 | _ACEOF |
| 10624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10625 | if { (ac_try="$ac_link" |
| 10626 | case "(($ac_try" in |
| 10627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10628 | *) ac_try_echo=$ac_try;; |
| 10629 | esac |
| 10630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10631 | (eval "$ac_link") 2>conftest.er1 |
| 10632 | ac_status=$? |
| 10633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10634 | rm -f conftest.er1 |
| 10635 | cat conftest.err >&5 |
| 10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10637 | (exit $ac_status); } && |
| 10638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10639 | { (case "(($ac_try" in |
| 10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10641 | *) ac_try_echo=$ac_try;; |
| 10642 | esac |
| 10643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10644 | (eval "$ac_try") 2>&5 |
| 10645 | ac_status=$? |
| 10646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10647 | (exit $ac_status); }; } && |
| 10648 | { ac_try='test -s conftest$ac_exeext' |
| 10649 | { (case "(($ac_try" in |
| 10650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10651 | *) ac_try_echo=$ac_try;; |
| 10652 | esac |
| 10653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10654 | (eval "$ac_try") 2>&5 |
| 10655 | ac_status=$? |
| 10656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10657 | (exit $ac_status); }; }; then |
| 10658 | ac_cv_func_shl_load=yes |
| 10659 | else |
| 10660 | echo "$as_me: failed program was:" >&5 |
| 10661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10662 | |
| 10663 | ac_cv_func_shl_load=no |
| 10664 | fi |
| 10665 | |
| 10666 | rm -f core conftest.err conftest.$ac_objext \ |
| 10667 | conftest$ac_exeext conftest.$ac_ext |
| 10668 | fi |
| 10669 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10670 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10671 | if test $ac_cv_func_shl_load = yes; then |
| 10672 | |
| 10673 | cat >>confdefs.h <<\_ACEOF |
| 10674 | #define HAVE_SHL_LOAD 1 |
| 10675 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10676 | |
| 10677 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10678 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10679 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10680 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10682 | else |
| 10683 | ac_check_lib_save_LIBS=$LIBS |
| 10684 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10685 | cat >conftest.$ac_ext <<_ACEOF |
| 10686 | /* confdefs.h. */ |
| 10687 | _ACEOF |
| 10688 | cat confdefs.h >>conftest.$ac_ext |
| 10689 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10690 | /* end confdefs.h. */ |
| 10691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10692 | /* Override any GCC internal prototype to avoid an error. |
| 10693 | Use char because int might match the return type of a GCC |
| 10694 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10695 | #ifdef __cplusplus |
| 10696 | extern "C" |
| 10697 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10698 | char shl_load (); |
| 10699 | int |
| 10700 | main () |
| 10701 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10702 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10703 | ; |
| 10704 | return 0; |
| 10705 | } |
| 10706 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10707 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10708 | if { (ac_try="$ac_link" |
| 10709 | case "(($ac_try" in |
| 10710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10711 | *) ac_try_echo=$ac_try;; |
| 10712 | esac |
| 10713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10714 | (eval "$ac_link") 2>conftest.er1 |
| 10715 | ac_status=$? |
| 10716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10717 | rm -f conftest.er1 |
| 10718 | cat conftest.err >&5 |
| 10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10720 | (exit $ac_status); } && |
| 10721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10722 | { (case "(($ac_try" in |
| 10723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10724 | *) ac_try_echo=$ac_try;; |
| 10725 | esac |
| 10726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10727 | (eval "$ac_try") 2>&5 |
| 10728 | ac_status=$? |
| 10729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10730 | (exit $ac_status); }; } && |
| 10731 | { ac_try='test -s conftest$ac_exeext' |
| 10732 | { (case "(($ac_try" in |
| 10733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10734 | *) ac_try_echo=$ac_try;; |
| 10735 | esac |
| 10736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10737 | (eval "$ac_try") 2>&5 |
| 10738 | ac_status=$? |
| 10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10740 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10741 | ac_cv_lib_dld_shl_load=yes |
| 10742 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10743 | echo "$as_me: failed program was:" >&5 |
| 10744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10745 | |
| 10746 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10747 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10748 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10749 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10750 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10751 | LIBS=$ac_check_lib_save_LIBS |
| 10752 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10753 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10754 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10755 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10756 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10757 | cat >>confdefs.h <<\_ACEOF |
| 10758 | #define HAVE_SHL_LOAD 1 |
| 10759 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10760 | |
| 10761 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10762 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10763 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10764 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10765 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10767 | else |
| 10768 | ac_check_lib_save_LIBS=$LIBS |
| 10769 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10770 | cat >conftest.$ac_ext <<_ACEOF |
| 10771 | /* confdefs.h. */ |
| 10772 | _ACEOF |
| 10773 | cat confdefs.h >>conftest.$ac_ext |
| 10774 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10775 | /* end confdefs.h. */ |
| 10776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10777 | /* Override any GCC internal prototype to avoid an error. |
| 10778 | Use char because int might match the return type of a GCC |
| 10779 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10780 | #ifdef __cplusplus |
| 10781 | extern "C" |
| 10782 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10783 | char dlopen (); |
| 10784 | int |
| 10785 | main () |
| 10786 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10787 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10788 | ; |
| 10789 | return 0; |
| 10790 | } |
| 10791 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10792 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10793 | if { (ac_try="$ac_link" |
| 10794 | case "(($ac_try" in |
| 10795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10796 | *) ac_try_echo=$ac_try;; |
| 10797 | esac |
| 10798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10799 | (eval "$ac_link") 2>conftest.er1 |
| 10800 | ac_status=$? |
| 10801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10802 | rm -f conftest.er1 |
| 10803 | cat conftest.err >&5 |
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10805 | (exit $ac_status); } && |
| 10806 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10807 | { (case "(($ac_try" in |
| 10808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10809 | *) ac_try_echo=$ac_try;; |
| 10810 | esac |
| 10811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10812 | (eval "$ac_try") 2>&5 |
| 10813 | ac_status=$? |
| 10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10815 | (exit $ac_status); }; } && |
| 10816 | { ac_try='test -s conftest$ac_exeext' |
| 10817 | { (case "(($ac_try" in |
| 10818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10819 | *) ac_try_echo=$ac_try;; |
| 10820 | esac |
| 10821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10822 | (eval "$ac_try") 2>&5 |
| 10823 | ac_status=$? |
| 10824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10825 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10826 | ac_cv_lib_dl_dlopen=yes |
| 10827 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10828 | echo "$as_me: failed program was:" >&5 |
| 10829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10830 | |
| 10831 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10832 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10833 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10834 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10835 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10836 | LIBS=$ac_check_lib_save_LIBS |
| 10837 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10838 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10839 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10840 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10841 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10842 | cat >>confdefs.h <<\_ACEOF |
| 10843 | #define HAVE_LIBDL 1 |
| 10844 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10845 | |
| 10846 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10847 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10848 | cat >conftest.$ac_ext <<_ACEOF |
| 10849 | /* confdefs.h. */ |
| 10850 | _ACEOF |
| 10851 | cat confdefs.h >>conftest.$ac_ext |
| 10852 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10853 | /* end confdefs.h. */ |
| 10854 | #if HAVE_DLFCN_H |
| 10855 | # include <dlfcn.h> |
| 10856 | #endif |
| 10857 | |
| 10858 | int |
| 10859 | main () |
| 10860 | { |
| 10861 | dlopen(0, 0); |
| 10862 | ; |
| 10863 | return 0; |
| 10864 | } |
| 10865 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10866 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10867 | if { (ac_try="$ac_link" |
| 10868 | case "(($ac_try" in |
| 10869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10870 | *) ac_try_echo=$ac_try;; |
| 10871 | esac |
| 10872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10873 | (eval "$ac_link") 2>conftest.er1 |
| 10874 | ac_status=$? |
| 10875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10876 | rm -f conftest.er1 |
| 10877 | cat conftest.err >&5 |
| 10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10879 | (exit $ac_status); } && |
| 10880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10881 | { (case "(($ac_try" in |
| 10882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10883 | *) ac_try_echo=$ac_try;; |
| 10884 | esac |
| 10885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10886 | (eval "$ac_try") 2>&5 |
| 10887 | ac_status=$? |
| 10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10889 | (exit $ac_status); }; } && |
| 10890 | { ac_try='test -s conftest$ac_exeext' |
| 10891 | { (case "(($ac_try" in |
| 10892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10893 | *) ac_try_echo=$ac_try;; |
| 10894 | esac |
| 10895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10896 | (eval "$ac_try") 2>&5 |
| 10897 | ac_status=$? |
| 10898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10899 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10900 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10901 | cat >>confdefs.h <<\_ACEOF |
| 10902 | #define HAVE_LIBDL 1 |
| 10903 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10904 | libltdl_cv_func_dlopen="yes" |
| 10905 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10906 | echo "$as_me: failed program was:" >&5 |
| 10907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10908 | |
| 10909 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10910 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10911 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10913 | else |
| 10914 | ac_check_lib_save_LIBS=$LIBS |
| 10915 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10916 | cat >conftest.$ac_ext <<_ACEOF |
| 10917 | /* confdefs.h. */ |
| 10918 | _ACEOF |
| 10919 | cat confdefs.h >>conftest.$ac_ext |
| 10920 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10921 | /* end confdefs.h. */ |
| 10922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10923 | /* Override any GCC internal prototype to avoid an error. |
| 10924 | Use char because int might match the return type of a GCC |
| 10925 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10926 | #ifdef __cplusplus |
| 10927 | extern "C" |
| 10928 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10929 | char dlopen (); |
| 10930 | int |
| 10931 | main () |
| 10932 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10933 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10934 | ; |
| 10935 | return 0; |
| 10936 | } |
| 10937 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10938 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10939 | if { (ac_try="$ac_link" |
| 10940 | case "(($ac_try" in |
| 10941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10942 | *) ac_try_echo=$ac_try;; |
| 10943 | esac |
| 10944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10945 | (eval "$ac_link") 2>conftest.er1 |
| 10946 | ac_status=$? |
| 10947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10948 | rm -f conftest.er1 |
| 10949 | cat conftest.err >&5 |
| 10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10951 | (exit $ac_status); } && |
| 10952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10953 | { (case "(($ac_try" in |
| 10954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10955 | *) ac_try_echo=$ac_try;; |
| 10956 | esac |
| 10957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10958 | (eval "$ac_try") 2>&5 |
| 10959 | ac_status=$? |
| 10960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10961 | (exit $ac_status); }; } && |
| 10962 | { ac_try='test -s conftest$ac_exeext' |
| 10963 | { (case "(($ac_try" in |
| 10964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10965 | *) ac_try_echo=$ac_try;; |
| 10966 | esac |
| 10967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10968 | (eval "$ac_try") 2>&5 |
| 10969 | ac_status=$? |
| 10970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10971 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10972 | ac_cv_lib_svld_dlopen=yes |
| 10973 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10974 | echo "$as_me: failed program was:" >&5 |
| 10975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10976 | |
| 10977 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10978 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10979 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10980 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10981 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10982 | LIBS=$ac_check_lib_save_LIBS |
| 10983 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10984 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10985 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10986 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10987 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10988 | cat >>confdefs.h <<\_ACEOF |
| 10989 | #define HAVE_LIBDL 1 |
| 10990 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10991 | |
| 10992 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10993 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10994 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10995 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10996 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10998 | else |
| 10999 | ac_check_lib_save_LIBS=$LIBS |
| 11000 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11001 | cat >conftest.$ac_ext <<_ACEOF |
| 11002 | /* confdefs.h. */ |
| 11003 | _ACEOF |
| 11004 | cat confdefs.h >>conftest.$ac_ext |
| 11005 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11006 | /* end confdefs.h. */ |
| 11007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11008 | /* Override any GCC internal prototype to avoid an error. |
| 11009 | Use char because int might match the return type of a GCC |
| 11010 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11011 | #ifdef __cplusplus |
| 11012 | extern "C" |
| 11013 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11014 | char dld_link (); |
| 11015 | int |
| 11016 | main () |
| 11017 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11018 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11019 | ; |
| 11020 | return 0; |
| 11021 | } |
| 11022 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11023 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11024 | if { (ac_try="$ac_link" |
| 11025 | case "(($ac_try" in |
| 11026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11027 | *) ac_try_echo=$ac_try;; |
| 11028 | esac |
| 11029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11030 | (eval "$ac_link") 2>conftest.er1 |
| 11031 | ac_status=$? |
| 11032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11033 | rm -f conftest.er1 |
| 11034 | cat conftest.err >&5 |
| 11035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11036 | (exit $ac_status); } && |
| 11037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11038 | { (case "(($ac_try" in |
| 11039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11040 | *) ac_try_echo=$ac_try;; |
| 11041 | esac |
| 11042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11043 | (eval "$ac_try") 2>&5 |
| 11044 | ac_status=$? |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); }; } && |
| 11047 | { ac_try='test -s conftest$ac_exeext' |
| 11048 | { (case "(($ac_try" in |
| 11049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11050 | *) ac_try_echo=$ac_try;; |
| 11051 | esac |
| 11052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11053 | (eval "$ac_try") 2>&5 |
| 11054 | ac_status=$? |
| 11055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11056 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11057 | ac_cv_lib_dld_dld_link=yes |
| 11058 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11059 | echo "$as_me: failed program was:" >&5 |
| 11060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11061 | |
| 11062 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11063 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11064 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11065 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11066 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11067 | LIBS=$ac_check_lib_save_LIBS |
| 11068 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11069 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11070 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11071 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11072 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11073 | cat >>confdefs.h <<\_ACEOF |
| 11074 | #define HAVE_DLD 1 |
| 11075 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11076 | |
| 11077 | LIBADD_DL="$LIBADD_DL -ldld" |
| 11078 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11079 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 11080 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 11081 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 11082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11083 | else |
| 11084 | cat >conftest.$ac_ext <<_ACEOF |
| 11085 | /* confdefs.h. */ |
| 11086 | _ACEOF |
| 11087 | cat confdefs.h >>conftest.$ac_ext |
| 11088 | cat >>conftest.$ac_ext <<_ACEOF |
| 11089 | /* end confdefs.h. */ |
| 11090 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 11091 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11092 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11093 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11094 | /* System header to define __stub macros and hopefully few prototypes, |
| 11095 | which can conflict with char _dyld_func_lookup (); below. |
| 11096 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11097 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11098 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11099 | #ifdef __STDC__ |
| 11100 | # include <limits.h> |
| 11101 | #else |
| 11102 | # include <assert.h> |
| 11103 | #endif |
| 11104 | |
| 11105 | #undef _dyld_func_lookup |
| 11106 | |
| 11107 | /* Override any GCC internal prototype to avoid an error. |
| 11108 | Use char because int might match the return type of a GCC |
| 11109 | builtin and then its argument prototype would still apply. */ |
| 11110 | #ifdef __cplusplus |
| 11111 | extern "C" |
| 11112 | #endif |
| 11113 | char _dyld_func_lookup (); |
| 11114 | /* The GNU C library defines this for functions which it implements |
| 11115 | to always fail with ENOSYS. Some functions are actually named |
| 11116 | something starting with __ and the normal name is an alias. */ |
| 11117 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 11118 | choke me |
| 11119 | #endif |
| 11120 | |
| 11121 | int |
| 11122 | main () |
| 11123 | { |
| 11124 | return _dyld_func_lookup (); |
| 11125 | ; |
| 11126 | return 0; |
| 11127 | } |
| 11128 | _ACEOF |
| 11129 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11130 | if { (ac_try="$ac_link" |
| 11131 | case "(($ac_try" in |
| 11132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11133 | *) ac_try_echo=$ac_try;; |
| 11134 | esac |
| 11135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11136 | (eval "$ac_link") 2>conftest.er1 |
| 11137 | ac_status=$? |
| 11138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11139 | rm -f conftest.er1 |
| 11140 | cat conftest.err >&5 |
| 11141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11142 | (exit $ac_status); } && |
| 11143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11144 | { (case "(($ac_try" in |
| 11145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11146 | *) ac_try_echo=$ac_try;; |
| 11147 | esac |
| 11148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11149 | (eval "$ac_try") 2>&5 |
| 11150 | ac_status=$? |
| 11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11152 | (exit $ac_status); }; } && |
| 11153 | { ac_try='test -s conftest$ac_exeext' |
| 11154 | { (case "(($ac_try" in |
| 11155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11156 | *) ac_try_echo=$ac_try;; |
| 11157 | esac |
| 11158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11159 | (eval "$ac_try") 2>&5 |
| 11160 | ac_status=$? |
| 11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11162 | (exit $ac_status); }; }; then |
| 11163 | ac_cv_func__dyld_func_lookup=yes |
| 11164 | else |
| 11165 | echo "$as_me: failed program was:" >&5 |
| 11166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11167 | |
| 11168 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11169 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11170 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11171 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11172 | conftest$ac_exeext conftest.$ac_ext |
| 11173 | fi |
| 11174 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 11175 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 11176 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 11177 | |
| 11178 | cat >>confdefs.h <<\_ACEOF |
| 11179 | #define HAVE_DYLD 1 |
| 11180 | _ACEOF |
| 11181 | |
| 11182 | fi |
| 11183 | |
| 11184 | |
| 11185 | fi |
| 11186 | |
| 11187 | |
| 11188 | fi |
| 11189 | |
| 11190 | |
| 11191 | fi |
| 11192 | |
| 11193 | rm -f core conftest.err conftest.$ac_objext \ |
| 11194 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11195 | |
| 11196 | fi |
| 11197 | |
| 11198 | |
| 11199 | fi |
| 11200 | |
| 11201 | |
| 11202 | fi |
| 11203 | |
| 11204 | |
| 11205 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 11206 | then |
| 11207 | lt_save_LIBS="$LIBS" |
| 11208 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11209 | |
| 11210 | for ac_func in dlerror |
| 11211 | do |
| 11212 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11213 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11214 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11215 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11217 | else |
| 11218 | cat >conftest.$ac_ext <<_ACEOF |
| 11219 | /* confdefs.h. */ |
| 11220 | _ACEOF |
| 11221 | cat confdefs.h >>conftest.$ac_ext |
| 11222 | cat >>conftest.$ac_ext <<_ACEOF |
| 11223 | /* end confdefs.h. */ |
| 11224 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11225 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11226 | #define $ac_func innocuous_$ac_func |
| 11227 | |
| 11228 | /* System header to define __stub macros and hopefully few prototypes, |
| 11229 | which can conflict with char $ac_func (); below. |
| 11230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11231 | <limits.h> exists even on freestanding compilers. */ |
| 11232 | |
| 11233 | #ifdef __STDC__ |
| 11234 | # include <limits.h> |
| 11235 | #else |
| 11236 | # include <assert.h> |
| 11237 | #endif |
| 11238 | |
| 11239 | #undef $ac_func |
| 11240 | |
| 11241 | /* Override any GCC internal prototype to avoid an error. |
| 11242 | Use char because int might match the return type of a GCC |
| 11243 | builtin and then its argument prototype would still apply. */ |
| 11244 | #ifdef __cplusplus |
| 11245 | extern "C" |
| 11246 | #endif |
| 11247 | char $ac_func (); |
| 11248 | /* The GNU C library defines this for functions which it implements |
| 11249 | to always fail with ENOSYS. Some functions are actually named |
| 11250 | something starting with __ and the normal name is an alias. */ |
| 11251 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11252 | choke me |
| 11253 | #endif |
| 11254 | |
| 11255 | int |
| 11256 | main () |
| 11257 | { |
| 11258 | return $ac_func (); |
| 11259 | ; |
| 11260 | return 0; |
| 11261 | } |
| 11262 | _ACEOF |
| 11263 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11264 | if { (ac_try="$ac_link" |
| 11265 | case "(($ac_try" in |
| 11266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11267 | *) ac_try_echo=$ac_try;; |
| 11268 | esac |
| 11269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11270 | (eval "$ac_link") 2>conftest.er1 |
| 11271 | ac_status=$? |
| 11272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11273 | rm -f conftest.er1 |
| 11274 | cat conftest.err >&5 |
| 11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11276 | (exit $ac_status); } && |
| 11277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11278 | { (case "(($ac_try" in |
| 11279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11280 | *) ac_try_echo=$ac_try;; |
| 11281 | esac |
| 11282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11283 | (eval "$ac_try") 2>&5 |
| 11284 | ac_status=$? |
| 11285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11286 | (exit $ac_status); }; } && |
| 11287 | { ac_try='test -s conftest$ac_exeext' |
| 11288 | { (case "(($ac_try" in |
| 11289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11290 | *) ac_try_echo=$ac_try;; |
| 11291 | esac |
| 11292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11293 | (eval "$ac_try") 2>&5 |
| 11294 | ac_status=$? |
| 11295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11296 | (exit $ac_status); }; }; then |
| 11297 | eval "$as_ac_var=yes" |
| 11298 | else |
| 11299 | echo "$as_me: failed program was:" >&5 |
| 11300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11301 | |
| 11302 | eval "$as_ac_var=no" |
| 11303 | fi |
| 11304 | |
| 11305 | rm -f core conftest.err conftest.$ac_objext \ |
| 11306 | conftest$ac_exeext conftest.$ac_ext |
| 11307 | fi |
| 11308 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11310 | echo "${ECHO_T}$ac_res" >&6; } |
| 11311 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11312 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11314 | _ACEOF |
| 11315 | |
| 11316 | fi |
| 11317 | done |
| 11318 | |
| 11319 | LIBS="$lt_save_LIBS" |
| 11320 | fi |
| 11321 | ac_ext=c |
| 11322 | ac_cpp='$CPP $CPPFLAGS' |
| 11323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11326 | |
| 11327 | |
| 11328 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11329 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11330 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11331 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11333 | else |
| 11334 | ac_cv_sys_symbol_underscore=no |
| 11335 | cat > conftest.$ac_ext <<EOF |
| 11336 | void nm_test_func(){} |
| 11337 | int main(){nm_test_func;return 0;} |
| 11338 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11340 | (eval $ac_compile) 2>&5 |
| 11341 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11343 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11344 | # Now try to grab the symbols. |
| 11345 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11346 | 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] | 11347 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11348 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11350 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11351 | # See whether the symbols have a leading underscore. |
| 11352 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11353 | ac_cv_sys_symbol_underscore=yes |
| 11354 | else |
| 11355 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11356 | : |
| 11357 | else |
| 11358 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11359 | fi |
| 11360 | fi |
| 11361 | else |
| 11362 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11363 | fi |
| 11364 | else |
| 11365 | echo "configure: failed program was:" >&5 |
| 11366 | cat conftest.c >&5 |
| 11367 | fi |
| 11368 | rm -rf conftest* |
| 11369 | |
| 11370 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11371 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11372 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11373 | |
| 11374 | |
| 11375 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11376 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11377 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11378 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11379 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11380 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11382 | else |
| 11383 | libltdl_cv_need_uscore=unknown |
| 11384 | save_LIBS="$LIBS" |
| 11385 | LIBS="$LIBS $LIBADD_DL" |
| 11386 | if test "$cross_compiling" = yes; then : |
| 11387 | libltdl_cv_need_uscore=cross |
| 11388 | else |
| 11389 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11390 | lt_status=$lt_dlunknown |
| 11391 | cat > conftest.$ac_ext <<EOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 11392 | #line 11392 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11393 | #include "confdefs.h" |
| 11394 | |
| 11395 | #if HAVE_DLFCN_H |
| 11396 | #include <dlfcn.h> |
| 11397 | #endif |
| 11398 | |
| 11399 | #include <stdio.h> |
| 11400 | |
| 11401 | #ifdef RTLD_GLOBAL |
| 11402 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11403 | #else |
| 11404 | # ifdef DL_GLOBAL |
| 11405 | # define LT_DLGLOBAL DL_GLOBAL |
| 11406 | # else |
| 11407 | # define LT_DLGLOBAL 0 |
| 11408 | # endif |
| 11409 | #endif |
| 11410 | |
| 11411 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11412 | find out it does not work in some platform. */ |
| 11413 | #ifndef LT_DLLAZY_OR_NOW |
| 11414 | # ifdef RTLD_LAZY |
| 11415 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11416 | # else |
| 11417 | # ifdef DL_LAZY |
| 11418 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11419 | # else |
| 11420 | # ifdef RTLD_NOW |
| 11421 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11422 | # else |
| 11423 | # ifdef DL_NOW |
| 11424 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11425 | # else |
| 11426 | # define LT_DLLAZY_OR_NOW 0 |
| 11427 | # endif |
| 11428 | # endif |
| 11429 | # endif |
| 11430 | # endif |
| 11431 | #endif |
| 11432 | |
| 11433 | #ifdef __cplusplus |
| 11434 | extern "C" void exit (int); |
| 11435 | #endif |
| 11436 | |
| 11437 | void fnord() { int i=42;} |
| 11438 | int main () |
| 11439 | { |
| 11440 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11441 | int status = $lt_dlunknown; |
| 11442 | |
| 11443 | if (self) |
| 11444 | { |
| 11445 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11446 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11447 | /* dlclose (self); */ |
| 11448 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11449 | else |
| 11450 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11451 | |
| 11452 | exit (status); |
| 11453 | } |
| 11454 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11456 | (eval $ac_link) 2>&5 |
| 11457 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11459 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11460 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11461 | lt_status=$? |
| 11462 | case x$lt_status in |
| 11463 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11464 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11465 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11466 | esac |
| 11467 | else : |
| 11468 | # compilation failed |
| 11469 | |
| 11470 | fi |
| 11471 | fi |
| 11472 | rm -fr conftest* |
| 11473 | |
| 11474 | LIBS="$save_LIBS" |
| 11475 | |
| 11476 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11477 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11478 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11479 | fi |
| 11480 | fi |
| 11481 | |
| 11482 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11483 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11484 | cat >>confdefs.h <<\_ACEOF |
| 11485 | #define NEED_USCORE 1 |
| 11486 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11487 | |
| 11488 | fi |
| 11489 | |
| 11490 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11491 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11492 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11493 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11495 | else |
| 11496 | # PORTME does your system automatically load deplibs for dlopen? |
| 11497 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11498 | # For now, we just catch OSes we know something about -- in the |
| 11499 | # future, we'll try test this programmatically. |
| 11500 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11501 | case "$host_os" in |
| 11502 | aix3*|aix4.1.*|aix4.2.*) |
| 11503 | # Unknown whether this is true for these versions of AIX, but |
| 11504 | # we want this `case' here to explicitly catch those versions. |
| 11505 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11506 | ;; |
| 11507 | aix[45]*) |
| 11508 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11509 | ;; |
| 11510 | darwin*) |
| 11511 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11512 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11513 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11514 | ;; |
| 11515 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11516 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11517 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11518 | ;; |
| 11519 | hpux10*|hpux11*) |
| 11520 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11521 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11522 | interix*) |
| 11523 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11524 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11525 | irix[12345]*|irix6.[01]*) |
| 11526 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11527 | # know how it worked for any of those versions. |
| 11528 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11529 | ;; |
| 11530 | irix*) |
| 11531 | # The case above catches anything before 6.2, and it's known that |
| 11532 | # at 6.2 and later dlopen does load deplibs. |
| 11533 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11534 | ;; |
| 11535 | netbsd*) |
| 11536 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11537 | ;; |
| 11538 | openbsd*) |
| 11539 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11540 | ;; |
| 11541 | osf[1234]*) |
| 11542 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11543 | # it did *not* use an RPATH in a shared library to find objects the |
| 11544 | # library depends on, so we explictly say `no'. |
| 11545 | libltdl_cv_sys_dlopen_deplibs=no |
| 11546 | ;; |
| 11547 | osf5.0|osf5.0a|osf5.1) |
| 11548 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11549 | # it even uses RPATH in a shared library to search for shared objects |
| 11550 | # that the library depends on, but there's no easy way to know if that |
| 11551 | # patch is installed. Since this is the case, all we can really |
| 11552 | # say is unknown -- it depends on the patch being installed. If |
| 11553 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11554 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11555 | ;; |
| 11556 | osf*) |
| 11557 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11558 | # the comments above for what we know about them. |
| 11559 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11560 | # is used to find them so we can finally say `yes'. |
| 11561 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11562 | ;; |
| 11563 | solaris*) |
| 11564 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11565 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11566 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11567 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11568 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11569 | esac |
| 11570 | |
| 11571 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11572 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11573 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11574 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11575 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11576 | cat >>confdefs.h <<\_ACEOF |
| 11577 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11578 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11579 | |
| 11580 | fi |
| 11581 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11582 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11583 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11584 | do |
| 11585 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11586 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11587 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11588 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11589 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11591 | fi |
| 11592 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11593 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11594 | echo "${ECHO_T}$ac_res" >&6; } |
| 11595 | else |
| 11596 | # Is the header compilable? |
| 11597 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11598 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11599 | cat >conftest.$ac_ext <<_ACEOF |
| 11600 | /* confdefs.h. */ |
| 11601 | _ACEOF |
| 11602 | cat confdefs.h >>conftest.$ac_ext |
| 11603 | cat >>conftest.$ac_ext <<_ACEOF |
| 11604 | /* end confdefs.h. */ |
| 11605 | $ac_includes_default |
| 11606 | #include <$ac_header> |
| 11607 | _ACEOF |
| 11608 | rm -f conftest.$ac_objext |
| 11609 | if { (ac_try="$ac_compile" |
| 11610 | case "(($ac_try" in |
| 11611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11612 | *) ac_try_echo=$ac_try;; |
| 11613 | esac |
| 11614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11615 | (eval "$ac_compile") 2>conftest.er1 |
| 11616 | ac_status=$? |
| 11617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11618 | rm -f conftest.er1 |
| 11619 | cat conftest.err >&5 |
| 11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11621 | (exit $ac_status); } && |
| 11622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11623 | { (case "(($ac_try" in |
| 11624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11625 | *) ac_try_echo=$ac_try;; |
| 11626 | esac |
| 11627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11628 | (eval "$ac_try") 2>&5 |
| 11629 | ac_status=$? |
| 11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11631 | (exit $ac_status); }; } && |
| 11632 | { ac_try='test -s conftest.$ac_objext' |
| 11633 | { (case "(($ac_try" in |
| 11634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11635 | *) ac_try_echo=$ac_try;; |
| 11636 | esac |
| 11637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11638 | (eval "$ac_try") 2>&5 |
| 11639 | ac_status=$? |
| 11640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11641 | (exit $ac_status); }; }; then |
| 11642 | ac_header_compiler=yes |
| 11643 | else |
| 11644 | echo "$as_me: failed program was:" >&5 |
| 11645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11646 | |
| 11647 | ac_header_compiler=no |
| 11648 | fi |
| 11649 | |
| 11650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11651 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11652 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11653 | |
| 11654 | # Is the header present? |
| 11655 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11656 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11657 | cat >conftest.$ac_ext <<_ACEOF |
| 11658 | /* confdefs.h. */ |
| 11659 | _ACEOF |
| 11660 | cat confdefs.h >>conftest.$ac_ext |
| 11661 | cat >>conftest.$ac_ext <<_ACEOF |
| 11662 | /* end confdefs.h. */ |
| 11663 | #include <$ac_header> |
| 11664 | _ACEOF |
| 11665 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11666 | case "(($ac_try" in |
| 11667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11668 | *) ac_try_echo=$ac_try;; |
| 11669 | esac |
| 11670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11671 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11672 | ac_status=$? |
| 11673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11674 | rm -f conftest.er1 |
| 11675 | cat conftest.err >&5 |
| 11676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11677 | (exit $ac_status); } >/dev/null; then |
| 11678 | if test -s conftest.err; then |
| 11679 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11680 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11681 | else |
| 11682 | ac_cpp_err= |
| 11683 | fi |
| 11684 | else |
| 11685 | ac_cpp_err=yes |
| 11686 | fi |
| 11687 | if test -z "$ac_cpp_err"; then |
| 11688 | ac_header_preproc=yes |
| 11689 | else |
| 11690 | echo "$as_me: failed program was:" >&5 |
| 11691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11692 | |
| 11693 | ac_header_preproc=no |
| 11694 | fi |
| 11695 | |
| 11696 | rm -f conftest.err conftest.$ac_ext |
| 11697 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11698 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11699 | |
| 11700 | # So? What about this header? |
| 11701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11702 | yes:no: ) |
| 11703 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11704 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11706 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11707 | ac_header_preproc=yes |
| 11708 | ;; |
| 11709 | no:yes:* ) |
| 11710 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11711 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11712 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11713 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11714 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11715 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11716 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11717 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11718 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11719 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11720 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11721 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11722 | ( cat <<\_ASBOX |
| 11723 | ## ----------------------------------- ## |
| 11724 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11725 | ## ----------------------------------- ## |
| 11726 | _ASBOX |
| 11727 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11728 | ;; |
| 11729 | esac |
| 11730 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11731 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11732 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11734 | else |
| 11735 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11736 | fi |
| 11737 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11738 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11739 | echo "${ECHO_T}$ac_res" >&6; } |
| 11740 | |
| 11741 | fi |
| 11742 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11743 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11744 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11745 | _ACEOF |
| 11746 | |
| 11747 | fi |
| 11748 | |
| 11749 | done |
| 11750 | |
| 11751 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11752 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11753 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11754 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11756 | else |
| 11757 | cat >conftest.$ac_ext <<_ACEOF |
| 11758 | /* confdefs.h. */ |
| 11759 | _ACEOF |
| 11760 | cat confdefs.h >>conftest.$ac_ext |
| 11761 | cat >>conftest.$ac_ext <<_ACEOF |
| 11762 | /* end confdefs.h. */ |
| 11763 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11764 | # include <argz.h> |
| 11765 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11766 | |
| 11767 | typedef error_t ac__type_new_; |
| 11768 | int |
| 11769 | main () |
| 11770 | { |
| 11771 | if ((ac__type_new_ *) 0) |
| 11772 | return 0; |
| 11773 | if (sizeof (ac__type_new_)) |
| 11774 | return 0; |
| 11775 | ; |
| 11776 | return 0; |
| 11777 | } |
| 11778 | _ACEOF |
| 11779 | rm -f conftest.$ac_objext |
| 11780 | if { (ac_try="$ac_compile" |
| 11781 | case "(($ac_try" in |
| 11782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11783 | *) ac_try_echo=$ac_try;; |
| 11784 | esac |
| 11785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11786 | (eval "$ac_compile") 2>conftest.er1 |
| 11787 | ac_status=$? |
| 11788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11789 | rm -f conftest.er1 |
| 11790 | cat conftest.err >&5 |
| 11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11792 | (exit $ac_status); } && |
| 11793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11794 | { (case "(($ac_try" in |
| 11795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11796 | *) ac_try_echo=$ac_try;; |
| 11797 | esac |
| 11798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11799 | (eval "$ac_try") 2>&5 |
| 11800 | ac_status=$? |
| 11801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11802 | (exit $ac_status); }; } && |
| 11803 | { ac_try='test -s conftest.$ac_objext' |
| 11804 | { (case "(($ac_try" in |
| 11805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11806 | *) ac_try_echo=$ac_try;; |
| 11807 | esac |
| 11808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11809 | (eval "$ac_try") 2>&5 |
| 11810 | ac_status=$? |
| 11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11812 | (exit $ac_status); }; }; then |
| 11813 | ac_cv_type_error_t=yes |
| 11814 | else |
| 11815 | echo "$as_me: failed program was:" >&5 |
| 11816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11817 | |
| 11818 | ac_cv_type_error_t=no |
| 11819 | fi |
| 11820 | |
| 11821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11822 | fi |
| 11823 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11824 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11825 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11826 | |
| 11827 | cat >>confdefs.h <<_ACEOF |
| 11828 | #define HAVE_ERROR_T 1 |
| 11829 | _ACEOF |
| 11830 | |
| 11831 | |
| 11832 | else |
| 11833 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11834 | cat >>confdefs.h <<\_ACEOF |
| 11835 | #define error_t int |
| 11836 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11837 | |
| 11838 | fi |
| 11839 | |
| 11840 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11841 | |
| 11842 | |
| 11843 | |
| 11844 | |
| 11845 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11846 | 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] | 11847 | do |
| 11848 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11849 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11850 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11851 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11853 | else |
| 11854 | cat >conftest.$ac_ext <<_ACEOF |
| 11855 | /* confdefs.h. */ |
| 11856 | _ACEOF |
| 11857 | cat confdefs.h >>conftest.$ac_ext |
| 11858 | cat >>conftest.$ac_ext <<_ACEOF |
| 11859 | /* end confdefs.h. */ |
| 11860 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11862 | #define $ac_func innocuous_$ac_func |
| 11863 | |
| 11864 | /* System header to define __stub macros and hopefully few prototypes, |
| 11865 | which can conflict with char $ac_func (); below. |
| 11866 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11867 | <limits.h> exists even on freestanding compilers. */ |
| 11868 | |
| 11869 | #ifdef __STDC__ |
| 11870 | # include <limits.h> |
| 11871 | #else |
| 11872 | # include <assert.h> |
| 11873 | #endif |
| 11874 | |
| 11875 | #undef $ac_func |
| 11876 | |
| 11877 | /* Override any GCC internal prototype to avoid an error. |
| 11878 | Use char because int might match the return type of a GCC |
| 11879 | builtin and then its argument prototype would still apply. */ |
| 11880 | #ifdef __cplusplus |
| 11881 | extern "C" |
| 11882 | #endif |
| 11883 | char $ac_func (); |
| 11884 | /* The GNU C library defines this for functions which it implements |
| 11885 | to always fail with ENOSYS. Some functions are actually named |
| 11886 | something starting with __ and the normal name is an alias. */ |
| 11887 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11888 | choke me |
| 11889 | #endif |
| 11890 | |
| 11891 | int |
| 11892 | main () |
| 11893 | { |
| 11894 | return $ac_func (); |
| 11895 | ; |
| 11896 | return 0; |
| 11897 | } |
| 11898 | _ACEOF |
| 11899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11900 | if { (ac_try="$ac_link" |
| 11901 | case "(($ac_try" in |
| 11902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11903 | *) ac_try_echo=$ac_try;; |
| 11904 | esac |
| 11905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11906 | (eval "$ac_link") 2>conftest.er1 |
| 11907 | ac_status=$? |
| 11908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11909 | rm -f conftest.er1 |
| 11910 | cat conftest.err >&5 |
| 11911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11912 | (exit $ac_status); } && |
| 11913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11914 | { (case "(($ac_try" in |
| 11915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11916 | *) ac_try_echo=$ac_try;; |
| 11917 | esac |
| 11918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11919 | (eval "$ac_try") 2>&5 |
| 11920 | ac_status=$? |
| 11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11922 | (exit $ac_status); }; } && |
| 11923 | { ac_try='test -s conftest$ac_exeext' |
| 11924 | { (case "(($ac_try" in |
| 11925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11926 | *) ac_try_echo=$ac_try;; |
| 11927 | esac |
| 11928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11929 | (eval "$ac_try") 2>&5 |
| 11930 | ac_status=$? |
| 11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11932 | (exit $ac_status); }; }; then |
| 11933 | eval "$as_ac_var=yes" |
| 11934 | else |
| 11935 | echo "$as_me: failed program was:" >&5 |
| 11936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11937 | |
| 11938 | eval "$as_ac_var=no" |
| 11939 | fi |
| 11940 | |
| 11941 | rm -f core conftest.err conftest.$ac_objext \ |
| 11942 | conftest$ac_exeext conftest.$ac_ext |
| 11943 | fi |
| 11944 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11945 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11946 | echo "${ECHO_T}$ac_res" >&6; } |
| 11947 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11948 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11949 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11950 | _ACEOF |
| 11951 | |
| 11952 | fi |
| 11953 | done |
| 11954 | |
| 11955 | |
| 11956 | |
| 11957 | |
| 11958 | |
| 11959 | |
| 11960 | |
| 11961 | |
| 11962 | |
| 11963 | |
| 11964 | |
| 11965 | |
| 11966 | |
| 11967 | |
| 11968 | |
| 11969 | |
| 11970 | |
| 11971 | |
| 11972 | |
| 11973 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11974 | |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | |
| 11979 | |
| 11980 | |
| 11981 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11982 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11983 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11984 | do |
| 11985 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11986 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11987 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11991 | fi |
| 11992 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11994 | echo "${ECHO_T}$ac_res" >&6; } |
| 11995 | else |
| 11996 | # Is the header compilable? |
| 11997 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11998 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11999 | cat >conftest.$ac_ext <<_ACEOF |
| 12000 | /* confdefs.h. */ |
| 12001 | _ACEOF |
| 12002 | cat confdefs.h >>conftest.$ac_ext |
| 12003 | cat >>conftest.$ac_ext <<_ACEOF |
| 12004 | /* end confdefs.h. */ |
| 12005 | $ac_includes_default |
| 12006 | #include <$ac_header> |
| 12007 | _ACEOF |
| 12008 | rm -f conftest.$ac_objext |
| 12009 | if { (ac_try="$ac_compile" |
| 12010 | case "(($ac_try" in |
| 12011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12012 | *) ac_try_echo=$ac_try;; |
| 12013 | esac |
| 12014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12015 | (eval "$ac_compile") 2>conftest.er1 |
| 12016 | ac_status=$? |
| 12017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12018 | rm -f conftest.er1 |
| 12019 | cat conftest.err >&5 |
| 12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12021 | (exit $ac_status); } && |
| 12022 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12023 | { (case "(($ac_try" in |
| 12024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12025 | *) ac_try_echo=$ac_try;; |
| 12026 | esac |
| 12027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12028 | (eval "$ac_try") 2>&5 |
| 12029 | ac_status=$? |
| 12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12031 | (exit $ac_status); }; } && |
| 12032 | { ac_try='test -s conftest.$ac_objext' |
| 12033 | { (case "(($ac_try" in |
| 12034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12035 | *) ac_try_echo=$ac_try;; |
| 12036 | esac |
| 12037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12038 | (eval "$ac_try") 2>&5 |
| 12039 | ac_status=$? |
| 12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12041 | (exit $ac_status); }; }; then |
| 12042 | ac_header_compiler=yes |
| 12043 | else |
| 12044 | echo "$as_me: failed program was:" >&5 |
| 12045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12046 | |
| 12047 | ac_header_compiler=no |
| 12048 | fi |
| 12049 | |
| 12050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12051 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12052 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12053 | |
| 12054 | # Is the header present? |
| 12055 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12056 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12057 | cat >conftest.$ac_ext <<_ACEOF |
| 12058 | /* confdefs.h. */ |
| 12059 | _ACEOF |
| 12060 | cat confdefs.h >>conftest.$ac_ext |
| 12061 | cat >>conftest.$ac_ext <<_ACEOF |
| 12062 | /* end confdefs.h. */ |
| 12063 | #include <$ac_header> |
| 12064 | _ACEOF |
| 12065 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12066 | case "(($ac_try" in |
| 12067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12068 | *) ac_try_echo=$ac_try;; |
| 12069 | esac |
| 12070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12071 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12072 | ac_status=$? |
| 12073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12074 | rm -f conftest.er1 |
| 12075 | cat conftest.err >&5 |
| 12076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12077 | (exit $ac_status); } >/dev/null; then |
| 12078 | if test -s conftest.err; then |
| 12079 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12080 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12081 | else |
| 12082 | ac_cpp_err= |
| 12083 | fi |
| 12084 | else |
| 12085 | ac_cpp_err=yes |
| 12086 | fi |
| 12087 | if test -z "$ac_cpp_err"; then |
| 12088 | ac_header_preproc=yes |
| 12089 | else |
| 12090 | echo "$as_me: failed program was:" >&5 |
| 12091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12092 | |
| 12093 | ac_header_preproc=no |
| 12094 | fi |
| 12095 | |
| 12096 | rm -f conftest.err conftest.$ac_ext |
| 12097 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12098 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12099 | |
| 12100 | # So? What about this header? |
| 12101 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12102 | yes:no: ) |
| 12103 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12104 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12105 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12106 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12107 | ac_header_preproc=yes |
| 12108 | ;; |
| 12109 | no:yes:* ) |
| 12110 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12111 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12112 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12113 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12114 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12115 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12116 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12117 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12119 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12120 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12121 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12122 | ( cat <<\_ASBOX |
| 12123 | ## ----------------------------------- ## |
| 12124 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12125 | ## ----------------------------------- ## |
| 12126 | _ASBOX |
| 12127 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12128 | ;; |
| 12129 | esac |
| 12130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12134 | else |
| 12135 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12136 | fi |
| 12137 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12138 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12139 | echo "${ECHO_T}$ac_res" >&6; } |
| 12140 | |
| 12141 | fi |
| 12142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12143 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12145 | _ACEOF |
| 12146 | |
| 12147 | fi |
| 12148 | |
| 12149 | done |
| 12150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12151 | |
| 12152 | |
| 12153 | |
| 12154 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12155 | 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] | 12156 | do |
| 12157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12158 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12159 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12163 | fi |
| 12164 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12165 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12166 | echo "${ECHO_T}$ac_res" >&6; } |
| 12167 | else |
| 12168 | # Is the header compilable? |
| 12169 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12170 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12171 | cat >conftest.$ac_ext <<_ACEOF |
| 12172 | /* confdefs.h. */ |
| 12173 | _ACEOF |
| 12174 | cat confdefs.h >>conftest.$ac_ext |
| 12175 | cat >>conftest.$ac_ext <<_ACEOF |
| 12176 | /* end confdefs.h. */ |
| 12177 | $ac_includes_default |
| 12178 | #include <$ac_header> |
| 12179 | _ACEOF |
| 12180 | rm -f conftest.$ac_objext |
| 12181 | if { (ac_try="$ac_compile" |
| 12182 | case "(($ac_try" in |
| 12183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12184 | *) ac_try_echo=$ac_try;; |
| 12185 | esac |
| 12186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12187 | (eval "$ac_compile") 2>conftest.er1 |
| 12188 | ac_status=$? |
| 12189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12190 | rm -f conftest.er1 |
| 12191 | cat conftest.err >&5 |
| 12192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12193 | (exit $ac_status); } && |
| 12194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12195 | { (case "(($ac_try" in |
| 12196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12197 | *) ac_try_echo=$ac_try;; |
| 12198 | esac |
| 12199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12200 | (eval "$ac_try") 2>&5 |
| 12201 | ac_status=$? |
| 12202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12203 | (exit $ac_status); }; } && |
| 12204 | { ac_try='test -s conftest.$ac_objext' |
| 12205 | { (case "(($ac_try" in |
| 12206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12207 | *) ac_try_echo=$ac_try;; |
| 12208 | esac |
| 12209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12210 | (eval "$ac_try") 2>&5 |
| 12211 | ac_status=$? |
| 12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12213 | (exit $ac_status); }; }; then |
| 12214 | ac_header_compiler=yes |
| 12215 | else |
| 12216 | echo "$as_me: failed program was:" >&5 |
| 12217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12218 | |
| 12219 | ac_header_compiler=no |
| 12220 | fi |
| 12221 | |
| 12222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12223 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12224 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12225 | |
| 12226 | # Is the header present? |
| 12227 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12228 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12229 | cat >conftest.$ac_ext <<_ACEOF |
| 12230 | /* confdefs.h. */ |
| 12231 | _ACEOF |
| 12232 | cat confdefs.h >>conftest.$ac_ext |
| 12233 | cat >>conftest.$ac_ext <<_ACEOF |
| 12234 | /* end confdefs.h. */ |
| 12235 | #include <$ac_header> |
| 12236 | _ACEOF |
| 12237 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12238 | case "(($ac_try" in |
| 12239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12240 | *) ac_try_echo=$ac_try;; |
| 12241 | esac |
| 12242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12243 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12244 | ac_status=$? |
| 12245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12246 | rm -f conftest.er1 |
| 12247 | cat conftest.err >&5 |
| 12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12249 | (exit $ac_status); } >/dev/null; then |
| 12250 | if test -s conftest.err; then |
| 12251 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12252 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12253 | else |
| 12254 | ac_cpp_err= |
| 12255 | fi |
| 12256 | else |
| 12257 | ac_cpp_err=yes |
| 12258 | fi |
| 12259 | if test -z "$ac_cpp_err"; then |
| 12260 | ac_header_preproc=yes |
| 12261 | else |
| 12262 | echo "$as_me: failed program was:" >&5 |
| 12263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12264 | |
| 12265 | ac_header_preproc=no |
| 12266 | fi |
| 12267 | |
| 12268 | rm -f conftest.err conftest.$ac_ext |
| 12269 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12270 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12271 | |
| 12272 | # So? What about this header? |
| 12273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12274 | yes:no: ) |
| 12275 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12276 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12278 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12279 | ac_header_preproc=yes |
| 12280 | ;; |
| 12281 | no:yes:* ) |
| 12282 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12283 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12284 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12285 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12286 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12287 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12288 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12289 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12291 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12292 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12293 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12294 | ( cat <<\_ASBOX |
| 12295 | ## ----------------------------------- ## |
| 12296 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12297 | ## ----------------------------------- ## |
| 12298 | _ASBOX |
| 12299 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12300 | ;; |
| 12301 | esac |
| 12302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12306 | else |
| 12307 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12308 | fi |
| 12309 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12310 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12311 | echo "${ECHO_T}$ac_res" >&6; } |
| 12312 | |
| 12313 | fi |
| 12314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12315 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12317 | _ACEOF |
| 12318 | |
| 12319 | fi |
| 12320 | |
| 12321 | done |
| 12322 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12323 | |
| 12324 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12325 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12326 | do |
| 12327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12328 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12329 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12331 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12333 | fi |
| 12334 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12335 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12336 | echo "${ECHO_T}$ac_res" >&6; } |
| 12337 | else |
| 12338 | # Is the header compilable? |
| 12339 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12340 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12341 | cat >conftest.$ac_ext <<_ACEOF |
| 12342 | /* confdefs.h. */ |
| 12343 | _ACEOF |
| 12344 | cat confdefs.h >>conftest.$ac_ext |
| 12345 | cat >>conftest.$ac_ext <<_ACEOF |
| 12346 | /* end confdefs.h. */ |
| 12347 | $ac_includes_default |
| 12348 | #include <$ac_header> |
| 12349 | _ACEOF |
| 12350 | rm -f conftest.$ac_objext |
| 12351 | if { (ac_try="$ac_compile" |
| 12352 | case "(($ac_try" in |
| 12353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12354 | *) ac_try_echo=$ac_try;; |
| 12355 | esac |
| 12356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12357 | (eval "$ac_compile") 2>conftest.er1 |
| 12358 | ac_status=$? |
| 12359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12360 | rm -f conftest.er1 |
| 12361 | cat conftest.err >&5 |
| 12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12363 | (exit $ac_status); } && |
| 12364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12365 | { (case "(($ac_try" in |
| 12366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12367 | *) ac_try_echo=$ac_try;; |
| 12368 | esac |
| 12369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12370 | (eval "$ac_try") 2>&5 |
| 12371 | ac_status=$? |
| 12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12373 | (exit $ac_status); }; } && |
| 12374 | { ac_try='test -s conftest.$ac_objext' |
| 12375 | { (case "(($ac_try" in |
| 12376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12377 | *) ac_try_echo=$ac_try;; |
| 12378 | esac |
| 12379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12380 | (eval "$ac_try") 2>&5 |
| 12381 | ac_status=$? |
| 12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12383 | (exit $ac_status); }; }; then |
| 12384 | ac_header_compiler=yes |
| 12385 | else |
| 12386 | echo "$as_me: failed program was:" >&5 |
| 12387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12388 | |
| 12389 | ac_header_compiler=no |
| 12390 | fi |
| 12391 | |
| 12392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12393 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12394 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12395 | |
| 12396 | # Is the header present? |
| 12397 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12398 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12399 | cat >conftest.$ac_ext <<_ACEOF |
| 12400 | /* confdefs.h. */ |
| 12401 | _ACEOF |
| 12402 | cat confdefs.h >>conftest.$ac_ext |
| 12403 | cat >>conftest.$ac_ext <<_ACEOF |
| 12404 | /* end confdefs.h. */ |
| 12405 | #include <$ac_header> |
| 12406 | _ACEOF |
| 12407 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12408 | case "(($ac_try" in |
| 12409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12410 | *) ac_try_echo=$ac_try;; |
| 12411 | esac |
| 12412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12413 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12414 | ac_status=$? |
| 12415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12416 | rm -f conftest.er1 |
| 12417 | cat conftest.err >&5 |
| 12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12419 | (exit $ac_status); } >/dev/null; then |
| 12420 | if test -s conftest.err; then |
| 12421 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12422 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12423 | else |
| 12424 | ac_cpp_err= |
| 12425 | fi |
| 12426 | else |
| 12427 | ac_cpp_err=yes |
| 12428 | fi |
| 12429 | if test -z "$ac_cpp_err"; then |
| 12430 | ac_header_preproc=yes |
| 12431 | else |
| 12432 | echo "$as_me: failed program was:" >&5 |
| 12433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12434 | |
| 12435 | ac_header_preproc=no |
| 12436 | fi |
| 12437 | |
| 12438 | rm -f conftest.err conftest.$ac_ext |
| 12439 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12440 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12441 | |
| 12442 | # So? What about this header? |
| 12443 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12444 | yes:no: ) |
| 12445 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12446 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12447 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12448 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12449 | ac_header_preproc=yes |
| 12450 | ;; |
| 12451 | no:yes:* ) |
| 12452 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12453 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12454 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12455 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12456 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12457 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12458 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12459 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12460 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12461 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12462 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12463 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12464 | ( cat <<\_ASBOX |
| 12465 | ## ----------------------------------- ## |
| 12466 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12467 | ## ----------------------------------- ## |
| 12468 | _ASBOX |
| 12469 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12470 | ;; |
| 12471 | esac |
| 12472 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12474 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12476 | else |
| 12477 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12478 | fi |
| 12479 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12480 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12481 | echo "${ECHO_T}$ac_res" >&6; } |
| 12482 | |
| 12483 | fi |
| 12484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12485 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12487 | _ACEOF |
| 12488 | break |
| 12489 | fi |
| 12490 | |
| 12491 | done |
| 12492 | |
| 12493 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12494 | |
| 12495 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12496 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12497 | do |
| 12498 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12499 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12500 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12501 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12503 | else |
| 12504 | cat >conftest.$ac_ext <<_ACEOF |
| 12505 | /* confdefs.h. */ |
| 12506 | _ACEOF |
| 12507 | cat confdefs.h >>conftest.$ac_ext |
| 12508 | cat >>conftest.$ac_ext <<_ACEOF |
| 12509 | /* end confdefs.h. */ |
| 12510 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12511 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12512 | #define $ac_func innocuous_$ac_func |
| 12513 | |
| 12514 | /* System header to define __stub macros and hopefully few prototypes, |
| 12515 | which can conflict with char $ac_func (); below. |
| 12516 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12517 | <limits.h> exists even on freestanding compilers. */ |
| 12518 | |
| 12519 | #ifdef __STDC__ |
| 12520 | # include <limits.h> |
| 12521 | #else |
| 12522 | # include <assert.h> |
| 12523 | #endif |
| 12524 | |
| 12525 | #undef $ac_func |
| 12526 | |
| 12527 | /* Override any GCC internal prototype to avoid an error. |
| 12528 | Use char because int might match the return type of a GCC |
| 12529 | builtin and then its argument prototype would still apply. */ |
| 12530 | #ifdef __cplusplus |
| 12531 | extern "C" |
| 12532 | #endif |
| 12533 | char $ac_func (); |
| 12534 | /* The GNU C library defines this for functions which it implements |
| 12535 | to always fail with ENOSYS. Some functions are actually named |
| 12536 | something starting with __ and the normal name is an alias. */ |
| 12537 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12538 | choke me |
| 12539 | #endif |
| 12540 | |
| 12541 | int |
| 12542 | main () |
| 12543 | { |
| 12544 | return $ac_func (); |
| 12545 | ; |
| 12546 | return 0; |
| 12547 | } |
| 12548 | _ACEOF |
| 12549 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12550 | if { (ac_try="$ac_link" |
| 12551 | case "(($ac_try" in |
| 12552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12553 | *) ac_try_echo=$ac_try;; |
| 12554 | esac |
| 12555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12556 | (eval "$ac_link") 2>conftest.er1 |
| 12557 | ac_status=$? |
| 12558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12559 | rm -f conftest.er1 |
| 12560 | cat conftest.err >&5 |
| 12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12562 | (exit $ac_status); } && |
| 12563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12564 | { (case "(($ac_try" in |
| 12565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12566 | *) ac_try_echo=$ac_try;; |
| 12567 | esac |
| 12568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12569 | (eval "$ac_try") 2>&5 |
| 12570 | ac_status=$? |
| 12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12572 | (exit $ac_status); }; } && |
| 12573 | { ac_try='test -s conftest$ac_exeext' |
| 12574 | { (case "(($ac_try" in |
| 12575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12576 | *) ac_try_echo=$ac_try;; |
| 12577 | esac |
| 12578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12579 | (eval "$ac_try") 2>&5 |
| 12580 | ac_status=$? |
| 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12582 | (exit $ac_status); }; }; then |
| 12583 | eval "$as_ac_var=yes" |
| 12584 | else |
| 12585 | echo "$as_me: failed program was:" >&5 |
| 12586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12587 | |
| 12588 | eval "$as_ac_var=no" |
| 12589 | fi |
| 12590 | |
| 12591 | rm -f core conftest.err conftest.$ac_objext \ |
| 12592 | conftest$ac_exeext conftest.$ac_ext |
| 12593 | fi |
| 12594 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12595 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12596 | echo "${ECHO_T}$ac_res" >&6; } |
| 12597 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12598 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12599 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12600 | _ACEOF |
| 12601 | break |
| 12602 | fi |
| 12603 | done |
| 12604 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12605 | |
| 12606 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12607 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12608 | do |
| 12609 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12610 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12611 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12612 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12614 | else |
| 12615 | cat >conftest.$ac_ext <<_ACEOF |
| 12616 | /* confdefs.h. */ |
| 12617 | _ACEOF |
| 12618 | cat confdefs.h >>conftest.$ac_ext |
| 12619 | cat >>conftest.$ac_ext <<_ACEOF |
| 12620 | /* end confdefs.h. */ |
| 12621 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12623 | #define $ac_func innocuous_$ac_func |
| 12624 | |
| 12625 | /* System header to define __stub macros and hopefully few prototypes, |
| 12626 | which can conflict with char $ac_func (); below. |
| 12627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12628 | <limits.h> exists even on freestanding compilers. */ |
| 12629 | |
| 12630 | #ifdef __STDC__ |
| 12631 | # include <limits.h> |
| 12632 | #else |
| 12633 | # include <assert.h> |
| 12634 | #endif |
| 12635 | |
| 12636 | #undef $ac_func |
| 12637 | |
| 12638 | /* Override any GCC internal prototype to avoid an error. |
| 12639 | Use char because int might match the return type of a GCC |
| 12640 | builtin and then its argument prototype would still apply. */ |
| 12641 | #ifdef __cplusplus |
| 12642 | extern "C" |
| 12643 | #endif |
| 12644 | char $ac_func (); |
| 12645 | /* The GNU C library defines this for functions which it implements |
| 12646 | to always fail with ENOSYS. Some functions are actually named |
| 12647 | something starting with __ and the normal name is an alias. */ |
| 12648 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12649 | choke me |
| 12650 | #endif |
| 12651 | |
| 12652 | int |
| 12653 | main () |
| 12654 | { |
| 12655 | return $ac_func (); |
| 12656 | ; |
| 12657 | return 0; |
| 12658 | } |
| 12659 | _ACEOF |
| 12660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12661 | if { (ac_try="$ac_link" |
| 12662 | case "(($ac_try" in |
| 12663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12664 | *) ac_try_echo=$ac_try;; |
| 12665 | esac |
| 12666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12667 | (eval "$ac_link") 2>conftest.er1 |
| 12668 | ac_status=$? |
| 12669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12670 | rm -f conftest.er1 |
| 12671 | cat conftest.err >&5 |
| 12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12673 | (exit $ac_status); } && |
| 12674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12675 | { (case "(($ac_try" in |
| 12676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12677 | *) ac_try_echo=$ac_try;; |
| 12678 | esac |
| 12679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12680 | (eval "$ac_try") 2>&5 |
| 12681 | ac_status=$? |
| 12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12683 | (exit $ac_status); }; } && |
| 12684 | { ac_try='test -s conftest$ac_exeext' |
| 12685 | { (case "(($ac_try" in |
| 12686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12687 | *) ac_try_echo=$ac_try;; |
| 12688 | esac |
| 12689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12690 | (eval "$ac_try") 2>&5 |
| 12691 | ac_status=$? |
| 12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12693 | (exit $ac_status); }; }; then |
| 12694 | eval "$as_ac_var=yes" |
| 12695 | else |
| 12696 | echo "$as_me: failed program was:" >&5 |
| 12697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12698 | |
| 12699 | eval "$as_ac_var=no" |
| 12700 | fi |
| 12701 | |
| 12702 | rm -f core conftest.err conftest.$ac_objext \ |
| 12703 | conftest$ac_exeext conftest.$ac_ext |
| 12704 | fi |
| 12705 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12706 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12707 | echo "${ECHO_T}$ac_res" >&6; } |
| 12708 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12709 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12711 | _ACEOF |
| 12712 | break |
| 12713 | fi |
| 12714 | done |
| 12715 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12716 | |
| 12717 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12718 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12719 | do |
| 12720 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12721 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12722 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12723 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12725 | else |
| 12726 | cat >conftest.$ac_ext <<_ACEOF |
| 12727 | /* confdefs.h. */ |
| 12728 | _ACEOF |
| 12729 | cat confdefs.h >>conftest.$ac_ext |
| 12730 | cat >>conftest.$ac_ext <<_ACEOF |
| 12731 | /* end confdefs.h. */ |
| 12732 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12733 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12734 | #define $ac_func innocuous_$ac_func |
| 12735 | |
| 12736 | /* System header to define __stub macros and hopefully few prototypes, |
| 12737 | which can conflict with char $ac_func (); below. |
| 12738 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12739 | <limits.h> exists even on freestanding compilers. */ |
| 12740 | |
| 12741 | #ifdef __STDC__ |
| 12742 | # include <limits.h> |
| 12743 | #else |
| 12744 | # include <assert.h> |
| 12745 | #endif |
| 12746 | |
| 12747 | #undef $ac_func |
| 12748 | |
| 12749 | /* Override any GCC internal prototype to avoid an error. |
| 12750 | Use char because int might match the return type of a GCC |
| 12751 | builtin and then its argument prototype would still apply. */ |
| 12752 | #ifdef __cplusplus |
| 12753 | extern "C" |
| 12754 | #endif |
| 12755 | char $ac_func (); |
| 12756 | /* The GNU C library defines this for functions which it implements |
| 12757 | to always fail with ENOSYS. Some functions are actually named |
| 12758 | something starting with __ and the normal name is an alias. */ |
| 12759 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12760 | choke me |
| 12761 | #endif |
| 12762 | |
| 12763 | int |
| 12764 | main () |
| 12765 | { |
| 12766 | return $ac_func (); |
| 12767 | ; |
| 12768 | return 0; |
| 12769 | } |
| 12770 | _ACEOF |
| 12771 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12772 | if { (ac_try="$ac_link" |
| 12773 | case "(($ac_try" in |
| 12774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12775 | *) ac_try_echo=$ac_try;; |
| 12776 | esac |
| 12777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12778 | (eval "$ac_link") 2>conftest.er1 |
| 12779 | ac_status=$? |
| 12780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12781 | rm -f conftest.er1 |
| 12782 | cat conftest.err >&5 |
| 12783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12784 | (exit $ac_status); } && |
| 12785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12786 | { (case "(($ac_try" in |
| 12787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12788 | *) ac_try_echo=$ac_try;; |
| 12789 | esac |
| 12790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12791 | (eval "$ac_try") 2>&5 |
| 12792 | ac_status=$? |
| 12793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12794 | (exit $ac_status); }; } && |
| 12795 | { ac_try='test -s conftest$ac_exeext' |
| 12796 | { (case "(($ac_try" in |
| 12797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12798 | *) ac_try_echo=$ac_try;; |
| 12799 | esac |
| 12800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12801 | (eval "$ac_try") 2>&5 |
| 12802 | ac_status=$? |
| 12803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12804 | (exit $ac_status); }; }; then |
| 12805 | eval "$as_ac_var=yes" |
| 12806 | else |
| 12807 | echo "$as_me: failed program was:" >&5 |
| 12808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12809 | |
| 12810 | eval "$as_ac_var=no" |
| 12811 | fi |
| 12812 | |
| 12813 | rm -f core conftest.err conftest.$ac_objext \ |
| 12814 | conftest$ac_exeext conftest.$ac_ext |
| 12815 | fi |
| 12816 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12817 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12818 | echo "${ECHO_T}$ac_res" >&6; } |
| 12819 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12820 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12821 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12822 | _ACEOF |
| 12823 | break |
| 12824 | fi |
| 12825 | done |
| 12826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12827 | |
| 12828 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12829 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12830 | do |
| 12831 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12832 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12833 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12834 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12836 | else |
| 12837 | cat >conftest.$ac_ext <<_ACEOF |
| 12838 | /* confdefs.h. */ |
| 12839 | _ACEOF |
| 12840 | cat confdefs.h >>conftest.$ac_ext |
| 12841 | cat >>conftest.$ac_ext <<_ACEOF |
| 12842 | /* end confdefs.h. */ |
| 12843 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12844 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12845 | #define $ac_func innocuous_$ac_func |
| 12846 | |
| 12847 | /* System header to define __stub macros and hopefully few prototypes, |
| 12848 | which can conflict with char $ac_func (); below. |
| 12849 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12850 | <limits.h> exists even on freestanding compilers. */ |
| 12851 | |
| 12852 | #ifdef __STDC__ |
| 12853 | # include <limits.h> |
| 12854 | #else |
| 12855 | # include <assert.h> |
| 12856 | #endif |
| 12857 | |
| 12858 | #undef $ac_func |
| 12859 | |
| 12860 | /* Override any GCC internal prototype to avoid an error. |
| 12861 | Use char because int might match the return type of a GCC |
| 12862 | builtin and then its argument prototype would still apply. */ |
| 12863 | #ifdef __cplusplus |
| 12864 | extern "C" |
| 12865 | #endif |
| 12866 | char $ac_func (); |
| 12867 | /* The GNU C library defines this for functions which it implements |
| 12868 | to always fail with ENOSYS. Some functions are actually named |
| 12869 | something starting with __ and the normal name is an alias. */ |
| 12870 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12871 | choke me |
| 12872 | #endif |
| 12873 | |
| 12874 | int |
| 12875 | main () |
| 12876 | { |
| 12877 | return $ac_func (); |
| 12878 | ; |
| 12879 | return 0; |
| 12880 | } |
| 12881 | _ACEOF |
| 12882 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12883 | if { (ac_try="$ac_link" |
| 12884 | case "(($ac_try" in |
| 12885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12886 | *) ac_try_echo=$ac_try;; |
| 12887 | esac |
| 12888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12889 | (eval "$ac_link") 2>conftest.er1 |
| 12890 | ac_status=$? |
| 12891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12892 | rm -f conftest.er1 |
| 12893 | cat conftest.err >&5 |
| 12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12895 | (exit $ac_status); } && |
| 12896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12897 | { (case "(($ac_try" in |
| 12898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12899 | *) ac_try_echo=$ac_try;; |
| 12900 | esac |
| 12901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12902 | (eval "$ac_try") 2>&5 |
| 12903 | ac_status=$? |
| 12904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12905 | (exit $ac_status); }; } && |
| 12906 | { ac_try='test -s conftest$ac_exeext' |
| 12907 | { (case "(($ac_try" in |
| 12908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12909 | *) ac_try_echo=$ac_try;; |
| 12910 | esac |
| 12911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12912 | (eval "$ac_try") 2>&5 |
| 12913 | ac_status=$? |
| 12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12915 | (exit $ac_status); }; }; then |
| 12916 | eval "$as_ac_var=yes" |
| 12917 | else |
| 12918 | echo "$as_me: failed program was:" >&5 |
| 12919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12920 | |
| 12921 | eval "$as_ac_var=no" |
| 12922 | fi |
| 12923 | |
| 12924 | rm -f core conftest.err conftest.$ac_objext \ |
| 12925 | conftest$ac_exeext conftest.$ac_ext |
| 12926 | fi |
| 12927 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12928 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12929 | echo "${ECHO_T}$ac_res" >&6; } |
| 12930 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12931 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12932 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12933 | _ACEOF |
| 12934 | |
| 12935 | fi |
| 12936 | done |
| 12937 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12938 | |
| 12939 | |
| 12940 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12941 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12942 | do |
| 12943 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12944 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12945 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12946 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12948 | else |
| 12949 | cat >conftest.$ac_ext <<_ACEOF |
| 12950 | /* confdefs.h. */ |
| 12951 | _ACEOF |
| 12952 | cat confdefs.h >>conftest.$ac_ext |
| 12953 | cat >>conftest.$ac_ext <<_ACEOF |
| 12954 | /* end confdefs.h. */ |
| 12955 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12956 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12957 | #define $ac_func innocuous_$ac_func |
| 12958 | |
| 12959 | /* System header to define __stub macros and hopefully few prototypes, |
| 12960 | which can conflict with char $ac_func (); below. |
| 12961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12962 | <limits.h> exists even on freestanding compilers. */ |
| 12963 | |
| 12964 | #ifdef __STDC__ |
| 12965 | # include <limits.h> |
| 12966 | #else |
| 12967 | # include <assert.h> |
| 12968 | #endif |
| 12969 | |
| 12970 | #undef $ac_func |
| 12971 | |
| 12972 | /* Override any GCC internal prototype to avoid an error. |
| 12973 | Use char because int might match the return type of a GCC |
| 12974 | builtin and then its argument prototype would still apply. */ |
| 12975 | #ifdef __cplusplus |
| 12976 | extern "C" |
| 12977 | #endif |
| 12978 | char $ac_func (); |
| 12979 | /* The GNU C library defines this for functions which it implements |
| 12980 | to always fail with ENOSYS. Some functions are actually named |
| 12981 | something starting with __ and the normal name is an alias. */ |
| 12982 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12983 | choke me |
| 12984 | #endif |
| 12985 | |
| 12986 | int |
| 12987 | main () |
| 12988 | { |
| 12989 | return $ac_func (); |
| 12990 | ; |
| 12991 | return 0; |
| 12992 | } |
| 12993 | _ACEOF |
| 12994 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12995 | if { (ac_try="$ac_link" |
| 12996 | case "(($ac_try" in |
| 12997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12998 | *) ac_try_echo=$ac_try;; |
| 12999 | esac |
| 13000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13001 | (eval "$ac_link") 2>conftest.er1 |
| 13002 | ac_status=$? |
| 13003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13004 | rm -f conftest.er1 |
| 13005 | cat conftest.err >&5 |
| 13006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13007 | (exit $ac_status); } && |
| 13008 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13009 | { (case "(($ac_try" in |
| 13010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13011 | *) ac_try_echo=$ac_try;; |
| 13012 | esac |
| 13013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13014 | (eval "$ac_try") 2>&5 |
| 13015 | ac_status=$? |
| 13016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13017 | (exit $ac_status); }; } && |
| 13018 | { ac_try='test -s conftest$ac_exeext' |
| 13019 | { (case "(($ac_try" in |
| 13020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13021 | *) ac_try_echo=$ac_try;; |
| 13022 | esac |
| 13023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13024 | (eval "$ac_try") 2>&5 |
| 13025 | ac_status=$? |
| 13026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13027 | (exit $ac_status); }; }; then |
| 13028 | eval "$as_ac_var=yes" |
| 13029 | else |
| 13030 | echo "$as_me: failed program was:" >&5 |
| 13031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13032 | |
| 13033 | eval "$as_ac_var=no" |
| 13034 | fi |
| 13035 | |
| 13036 | rm -f core conftest.err conftest.$ac_objext \ |
| 13037 | conftest$ac_exeext conftest.$ac_ext |
| 13038 | fi |
| 13039 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13040 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13041 | echo "${ECHO_T}$ac_res" >&6; } |
| 13042 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13043 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13045 | _ACEOF |
| 13046 | |
| 13047 | fi |
| 13048 | done |
| 13049 | |
| 13050 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 13051 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 13052 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13053 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 13054 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13055 | LLVMGCCCOMMAND="$LLVMGCC" |
| 13056 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13057 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13058 | |
| 13059 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13060 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13061 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 13062 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13063 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13065 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 13066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13067 | else |
| 13068 | case $LLVMGCC in |
| 13069 | [\\/]* | ?:[\\/]*) |
| 13070 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 13071 | ;; |
| 13072 | *) |
| 13073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13074 | for as_dir in $PATH |
| 13075 | do |
| 13076 | IFS=$as_save_IFS |
| 13077 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13079 | 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] | 13080 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13081 | 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] | 13082 | break 2 |
| 13083 | fi |
| 13084 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13085 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13086 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13087 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13088 | ;; |
| 13089 | esac |
| 13090 | fi |
| 13091 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13092 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13093 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 13094 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13095 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13096 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13097 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13098 | fi |
| 13099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13100 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13101 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 13102 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13103 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13105 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 13106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13107 | else |
| 13108 | case $LLVMGXX in |
| 13109 | [\\/]* | ?:[\\/]*) |
| 13110 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 13111 | ;; |
| 13112 | *) |
| 13113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13114 | for as_dir in $PATH |
| 13115 | do |
| 13116 | IFS=$as_save_IFS |
| 13117 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13118 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13119 | 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] | 13120 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13121 | 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] | 13122 | break 2 |
| 13123 | fi |
| 13124 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13125 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13126 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13127 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13128 | ;; |
| 13129 | esac |
| 13130 | fi |
| 13131 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13132 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13133 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 13134 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13135 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13136 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13137 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13138 | fi |
| 13139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13140 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13141 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13142 | if test -z "$LLVMGCC"; then |
| 13143 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13144 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13145 | fi |
| 13146 | if test -z "$LLVMGXX"; then |
| 13147 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13148 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13149 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13150 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13151 | LLVMGCC=$LLVMGCC |
| 13152 | |
| 13153 | LLVMGXX=$LLVMGXX |
| 13154 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13155 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13156 | |
| 13157 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13158 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13159 | fi |
| 13160 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13161 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 13162 | # Check whether --with-llvmcc was given. |
| 13163 | if test "${with_llvmcc+set}" = set; then |
| 13164 | withval=$with_llvmcc; |
| 13165 | else |
| 13166 | with_llvmcc=check |
| 13167 | fi |
| 13168 | |
| 13169 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 13170 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 13171 | if test "$with_llvmcc" != "check"; then |
| 13172 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 13173 | test "$with_llvmcc" != "clang" && |
| 13174 | test "$with_llvmcc" != "none"); then |
| 13175 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 13176 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 13177 | { (exit 1); exit 1; }; } |
| 13178 | fi |
| 13179 | WITH_LLVMCC="$with_llvmcc" |
| 13180 | elif test -n "$LLVMGCC"; then |
| 13181 | WITH_LLVMCC=llvm-gcc |
| 13182 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 13183 | WITH_LLVMCC=clang |
| 13184 | else |
| 13185 | WITH_LLVMCC=none |
| 13186 | fi |
| 13187 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 13188 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 13189 | LLVMCC_OPTION=$WITH_LLVMCC |
| 13190 | |
| 13191 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13192 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 13193 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13194 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13195 | ICC=no |
| 13196 | IXX=no |
| 13197 | case $CC in |
| 13198 | icc*|icpc*) |
| 13199 | ICC=yes |
| 13200 | IXX=yes |
| 13201 | ;; |
| 13202 | *) |
| 13203 | ;; |
| 13204 | esac |
| 13205 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13206 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 13207 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13208 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 13209 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 13210 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13211 | fi |
| 13212 | |
| 13213 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 13214 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13215 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 13216 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 13217 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13218 | fi |
| 13219 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13220 | if test "$GCC" = "yes" |
| 13221 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13222 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13223 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 13224 | #error Unsupported GCC version |
| 13225 | #endif |
| 13226 | |
| 13227 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13228 | rm -f conftest.$ac_objext |
| 13229 | if { (ac_try="$ac_compile" |
| 13230 | case "(($ac_try" in |
| 13231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13232 | *) ac_try_echo=$ac_try;; |
| 13233 | esac |
| 13234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13235 | (eval "$ac_compile") 2>conftest.er1 |
| 13236 | ac_status=$? |
| 13237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13238 | rm -f conftest.er1 |
| 13239 | cat conftest.err >&5 |
| 13240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13241 | (exit $ac_status); } && |
| 13242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13243 | { (case "(($ac_try" in |
| 13244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13245 | *) ac_try_echo=$ac_try;; |
| 13246 | esac |
| 13247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13248 | (eval "$ac_try") 2>&5 |
| 13249 | ac_status=$? |
| 13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13251 | (exit $ac_status); }; } && |
| 13252 | { ac_try='test -s conftest.$ac_objext' |
| 13253 | { (case "(($ac_try" in |
| 13254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13255 | *) ac_try_echo=$ac_try;; |
| 13256 | esac |
| 13257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13258 | (eval "$ac_try") 2>&5 |
| 13259 | ac_status=$? |
| 13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13261 | (exit $ac_status); }; }; then |
| 13262 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13263 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13264 | echo "$as_me: failed program was:" >&5 |
| 13265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13266 | |
| 13267 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13268 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13269 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13270 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13271 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13273 | fi |
| 13274 | |
| 13275 | if test -z "$llvm_cv_gnu_make_command" |
| 13276 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13277 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13278 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13279 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13280 | fi |
| 13281 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13282 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13283 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13284 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13285 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13286 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13287 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13288 | |
| 13289 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13290 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13291 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13292 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13293 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13294 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13295 | |
| 13296 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13297 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13298 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13300 | else |
| 13301 | ac_check_lib_save_LIBS=$LIBS |
| 13302 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13303 | cat >conftest.$ac_ext <<_ACEOF |
| 13304 | /* confdefs.h. */ |
| 13305 | _ACEOF |
| 13306 | cat confdefs.h >>conftest.$ac_ext |
| 13307 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13308 | /* end confdefs.h. */ |
| 13309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13310 | /* Override any GCC internal prototype to avoid an error. |
| 13311 | Use char because int might match the return type of a GCC |
| 13312 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13313 | #ifdef __cplusplus |
| 13314 | extern "C" |
| 13315 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13316 | char sin (); |
| 13317 | int |
| 13318 | main () |
| 13319 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13320 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13321 | ; |
| 13322 | return 0; |
| 13323 | } |
| 13324 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13325 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13326 | if { (ac_try="$ac_link" |
| 13327 | case "(($ac_try" in |
| 13328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13329 | *) ac_try_echo=$ac_try;; |
| 13330 | esac |
| 13331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13332 | (eval "$ac_link") 2>conftest.er1 |
| 13333 | ac_status=$? |
| 13334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13335 | rm -f conftest.er1 |
| 13336 | cat conftest.err >&5 |
| 13337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13338 | (exit $ac_status); } && |
| 13339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13340 | { (case "(($ac_try" in |
| 13341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13342 | *) ac_try_echo=$ac_try;; |
| 13343 | esac |
| 13344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13345 | (eval "$ac_try") 2>&5 |
| 13346 | ac_status=$? |
| 13347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13348 | (exit $ac_status); }; } && |
| 13349 | { ac_try='test -s conftest$ac_exeext' |
| 13350 | { (case "(($ac_try" in |
| 13351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13352 | *) ac_try_echo=$ac_try;; |
| 13353 | esac |
| 13354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13355 | (eval "$ac_try") 2>&5 |
| 13356 | ac_status=$? |
| 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13358 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13359 | ac_cv_lib_m_sin=yes |
| 13360 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13361 | echo "$as_me: failed program was:" >&5 |
| 13362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13363 | |
| 13364 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13365 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13366 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13367 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13368 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13369 | LIBS=$ac_check_lib_save_LIBS |
| 13370 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13371 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13372 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13373 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13374 | cat >>confdefs.h <<_ACEOF |
| 13375 | #define HAVE_LIBM 1 |
| 13376 | _ACEOF |
| 13377 | |
| 13378 | LIBS="-lm $LIBS" |
| 13379 | |
| 13380 | fi |
| 13381 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13382 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13383 | |
| 13384 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13385 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13386 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13388 | else |
| 13389 | ac_check_lib_save_LIBS=$LIBS |
| 13390 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13391 | cat >conftest.$ac_ext <<_ACEOF |
| 13392 | /* confdefs.h. */ |
| 13393 | _ACEOF |
| 13394 | cat confdefs.h >>conftest.$ac_ext |
| 13395 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13396 | /* end confdefs.h. */ |
| 13397 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13398 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13399 | int |
| 13400 | main () |
| 13401 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13402 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13403 | ; |
| 13404 | return 0; |
| 13405 | } |
| 13406 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13407 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13408 | if { (ac_try="$ac_link" |
| 13409 | case "(($ac_try" in |
| 13410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13411 | *) ac_try_echo=$ac_try;; |
| 13412 | esac |
| 13413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13414 | (eval "$ac_link") 2>conftest.er1 |
| 13415 | ac_status=$? |
| 13416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13417 | rm -f conftest.er1 |
| 13418 | cat conftest.err >&5 |
| 13419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13420 | (exit $ac_status); } && |
| 13421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13422 | { (case "(($ac_try" in |
| 13423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13424 | *) ac_try_echo=$ac_try;; |
| 13425 | esac |
| 13426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13427 | (eval "$ac_try") 2>&5 |
| 13428 | ac_status=$? |
| 13429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13430 | (exit $ac_status); }; } && |
| 13431 | { ac_try='test -s conftest$ac_exeext' |
| 13432 | { (case "(($ac_try" in |
| 13433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13434 | *) ac_try_echo=$ac_try;; |
| 13435 | esac |
| 13436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13437 | (eval "$ac_try") 2>&5 |
| 13438 | ac_status=$? |
| 13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13440 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13441 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13442 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13443 | echo "$as_me: failed program was:" >&5 |
| 13444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13445 | |
| 13446 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13447 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13448 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13449 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13450 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13451 | LIBS=$ac_check_lib_save_LIBS |
| 13452 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13453 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13454 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13455 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13456 | cat >>confdefs.h <<_ACEOF |
| 13457 | #define HAVE_LIBIMAGEHLP 1 |
| 13458 | _ACEOF |
| 13459 | |
| 13460 | LIBS="-limagehlp $LIBS" |
| 13461 | |
| 13462 | fi |
| 13463 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13464 | |
| 13465 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13466 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13467 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13469 | else |
| 13470 | ac_check_lib_save_LIBS=$LIBS |
| 13471 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13472 | cat >conftest.$ac_ext <<_ACEOF |
| 13473 | /* confdefs.h. */ |
| 13474 | _ACEOF |
| 13475 | cat confdefs.h >>conftest.$ac_ext |
| 13476 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13477 | /* end confdefs.h. */ |
| 13478 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13479 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13480 | int |
| 13481 | main () |
| 13482 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13483 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13484 | ; |
| 13485 | return 0; |
| 13486 | } |
| 13487 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13488 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13489 | if { (ac_try="$ac_link" |
| 13490 | case "(($ac_try" in |
| 13491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13492 | *) ac_try_echo=$ac_try;; |
| 13493 | esac |
| 13494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13495 | (eval "$ac_link") 2>conftest.er1 |
| 13496 | ac_status=$? |
| 13497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13498 | rm -f conftest.er1 |
| 13499 | cat conftest.err >&5 |
| 13500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13501 | (exit $ac_status); } && |
| 13502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13503 | { (case "(($ac_try" in |
| 13504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13505 | *) ac_try_echo=$ac_try;; |
| 13506 | esac |
| 13507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13508 | (eval "$ac_try") 2>&5 |
| 13509 | ac_status=$? |
| 13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13511 | (exit $ac_status); }; } && |
| 13512 | { ac_try='test -s conftest$ac_exeext' |
| 13513 | { (case "(($ac_try" in |
| 13514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13515 | *) ac_try_echo=$ac_try;; |
| 13516 | esac |
| 13517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13518 | (eval "$ac_try") 2>&5 |
| 13519 | ac_status=$? |
| 13520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13521 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13522 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13523 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13524 | echo "$as_me: failed program was:" >&5 |
| 13525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13526 | |
| 13527 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13528 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13529 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13530 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13531 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13532 | LIBS=$ac_check_lib_save_LIBS |
| 13533 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13534 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13535 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13536 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13537 | cat >>confdefs.h <<_ACEOF |
| 13538 | #define HAVE_LIBPSAPI 1 |
| 13539 | _ACEOF |
| 13540 | |
| 13541 | LIBS="-lpsapi $LIBS" |
| 13542 | |
| 13543 | fi |
| 13544 | |
| 13545 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13546 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13547 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13548 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13549 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13551 | else |
| 13552 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13553 | cat >conftest.$ac_ext <<_ACEOF |
| 13554 | /* confdefs.h. */ |
| 13555 | _ACEOF |
| 13556 | cat confdefs.h >>conftest.$ac_ext |
| 13557 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13558 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13560 | /* Override any GCC internal prototype to avoid an error. |
| 13561 | Use char because int might match the return type of a GCC |
| 13562 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13563 | #ifdef __cplusplus |
| 13564 | extern "C" |
| 13565 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13566 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13567 | int |
| 13568 | main () |
| 13569 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13570 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13571 | ; |
| 13572 | return 0; |
| 13573 | } |
| 13574 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13575 | for ac_lib in '' dl; do |
| 13576 | if test -z "$ac_lib"; then |
| 13577 | ac_res="none required" |
| 13578 | else |
| 13579 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13580 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13581 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13582 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13583 | if { (ac_try="$ac_link" |
| 13584 | case "(($ac_try" in |
| 13585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13586 | *) ac_try_echo=$ac_try;; |
| 13587 | esac |
| 13588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13589 | (eval "$ac_link") 2>conftest.er1 |
| 13590 | ac_status=$? |
| 13591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13592 | rm -f conftest.er1 |
| 13593 | cat conftest.err >&5 |
| 13594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13595 | (exit $ac_status); } && |
| 13596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13597 | { (case "(($ac_try" in |
| 13598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13599 | *) ac_try_echo=$ac_try;; |
| 13600 | esac |
| 13601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13602 | (eval "$ac_try") 2>&5 |
| 13603 | ac_status=$? |
| 13604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13605 | (exit $ac_status); }; } && |
| 13606 | { ac_try='test -s conftest$ac_exeext' |
| 13607 | { (case "(($ac_try" in |
| 13608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13609 | *) ac_try_echo=$ac_try;; |
| 13610 | esac |
| 13611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13612 | (eval "$ac_try") 2>&5 |
| 13613 | ac_status=$? |
| 13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13615 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13616 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13617 | else |
| 13618 | echo "$as_me: failed program was:" >&5 |
| 13619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13620 | |
| 13621 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13622 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13623 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13624 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13625 | conftest$ac_exeext |
| 13626 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13627 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13628 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13629 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13630 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13631 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13632 | else |
| 13633 | ac_cv_search_dlopen=no |
| 13634 | fi |
| 13635 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13636 | LIBS=$ac_func_search_save_LIBS |
| 13637 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13638 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13639 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13640 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13641 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13642 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13643 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13644 | cat >>confdefs.h <<\_ACEOF |
| 13645 | #define HAVE_DLOPEN 1 |
| 13646 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13647 | |
| 13648 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13649 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13650 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13651 | fi |
| 13652 | |
| 13653 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13654 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13655 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13656 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13657 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13659 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13660 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13661 | cat >conftest.$ac_ext <<_ACEOF |
| 13662 | /* confdefs.h. */ |
| 13663 | _ACEOF |
| 13664 | cat confdefs.h >>conftest.$ac_ext |
| 13665 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13666 | /* end confdefs.h. */ |
| 13667 | |
| 13668 | /* Override any GCC internal prototype to avoid an error. |
| 13669 | Use char because int might match the return type of a GCC |
| 13670 | builtin and then its argument prototype would still apply. */ |
| 13671 | #ifdef __cplusplus |
| 13672 | extern "C" |
| 13673 | #endif |
| 13674 | char ffi_call (); |
| 13675 | int |
| 13676 | main () |
| 13677 | { |
| 13678 | return ffi_call (); |
| 13679 | ; |
| 13680 | return 0; |
| 13681 | } |
| 13682 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13683 | for ac_lib in '' ffi; do |
| 13684 | if test -z "$ac_lib"; then |
| 13685 | ac_res="none required" |
| 13686 | else |
| 13687 | ac_res=-l$ac_lib |
| 13688 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13689 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13690 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13691 | if { (ac_try="$ac_link" |
| 13692 | case "(($ac_try" in |
| 13693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13694 | *) ac_try_echo=$ac_try;; |
| 13695 | esac |
| 13696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13697 | (eval "$ac_link") 2>conftest.er1 |
| 13698 | ac_status=$? |
| 13699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13700 | rm -f conftest.er1 |
| 13701 | cat conftest.err >&5 |
| 13702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13703 | (exit $ac_status); } && |
| 13704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13705 | { (case "(($ac_try" in |
| 13706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13707 | *) ac_try_echo=$ac_try;; |
| 13708 | esac |
| 13709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13710 | (eval "$ac_try") 2>&5 |
| 13711 | ac_status=$? |
| 13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13713 | (exit $ac_status); }; } && |
| 13714 | { ac_try='test -s conftest$ac_exeext' |
| 13715 | { (case "(($ac_try" in |
| 13716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13717 | *) ac_try_echo=$ac_try;; |
| 13718 | esac |
| 13719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13720 | (eval "$ac_try") 2>&5 |
| 13721 | ac_status=$? |
| 13722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13723 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13724 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13725 | else |
| 13726 | echo "$as_me: failed program was:" >&5 |
| 13727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13728 | |
| 13729 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13730 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13731 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13732 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13733 | conftest$ac_exeext |
| 13734 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13735 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13736 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13737 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13738 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13739 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13740 | else |
| 13741 | ac_cv_search_ffi_call=no |
| 13742 | fi |
| 13743 | rm conftest.$ac_ext |
| 13744 | LIBS=$ac_func_search_save_LIBS |
| 13745 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13746 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13747 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13748 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13749 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13750 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13751 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13752 | cat >>confdefs.h <<\_ACEOF |
| 13753 | #define HAVE_FFI_CALL 1 |
| 13754 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13755 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13756 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13757 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13758 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13759 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13760 | fi |
| 13761 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13762 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13763 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13764 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13765 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13766 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13768 | else |
| 13769 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13770 | cat >conftest.$ac_ext <<_ACEOF |
| 13771 | /* confdefs.h. */ |
| 13772 | _ACEOF |
| 13773 | cat confdefs.h >>conftest.$ac_ext |
| 13774 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13775 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13777 | /* Override any GCC internal prototype to avoid an error. |
| 13778 | Use char because int might match the return type of a GCC |
| 13779 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13780 | #ifdef __cplusplus |
| 13781 | extern "C" |
| 13782 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13783 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13784 | int |
| 13785 | main () |
| 13786 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13787 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13788 | ; |
| 13789 | return 0; |
| 13790 | } |
| 13791 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13792 | for ac_lib in '' malloc; do |
| 13793 | if test -z "$ac_lib"; then |
| 13794 | ac_res="none required" |
| 13795 | else |
| 13796 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13797 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13798 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13799 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13800 | if { (ac_try="$ac_link" |
| 13801 | case "(($ac_try" in |
| 13802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13803 | *) ac_try_echo=$ac_try;; |
| 13804 | esac |
| 13805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13806 | (eval "$ac_link") 2>conftest.er1 |
| 13807 | ac_status=$? |
| 13808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13809 | rm -f conftest.er1 |
| 13810 | cat conftest.err >&5 |
| 13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13812 | (exit $ac_status); } && |
| 13813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13814 | { (case "(($ac_try" in |
| 13815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13816 | *) ac_try_echo=$ac_try;; |
| 13817 | esac |
| 13818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13819 | (eval "$ac_try") 2>&5 |
| 13820 | ac_status=$? |
| 13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13822 | (exit $ac_status); }; } && |
| 13823 | { ac_try='test -s conftest$ac_exeext' |
| 13824 | { (case "(($ac_try" in |
| 13825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13826 | *) ac_try_echo=$ac_try;; |
| 13827 | esac |
| 13828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13829 | (eval "$ac_try") 2>&5 |
| 13830 | ac_status=$? |
| 13831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13832 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13833 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13834 | else |
| 13835 | echo "$as_me: failed program was:" >&5 |
| 13836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13837 | |
| 13838 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13839 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13840 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13841 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13842 | conftest$ac_exeext |
| 13843 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13844 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13845 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13846 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13847 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13848 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13849 | else |
| 13850 | ac_cv_search_mallinfo=no |
| 13851 | fi |
| 13852 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13853 | LIBS=$ac_func_search_save_LIBS |
| 13854 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13855 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13856 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13857 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13858 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13859 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13860 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13861 | cat >>confdefs.h <<\_ACEOF |
| 13862 | #define HAVE_MALLINFO 1 |
| 13863 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13864 | |
| 13865 | fi |
| 13866 | |
| 13867 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13868 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13869 | |
| 13870 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13871 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13872 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13874 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13875 | ac_check_lib_save_LIBS=$LIBS |
| 13876 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13877 | cat >conftest.$ac_ext <<_ACEOF |
| 13878 | /* confdefs.h. */ |
| 13879 | _ACEOF |
| 13880 | cat confdefs.h >>conftest.$ac_ext |
| 13881 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13882 | /* end confdefs.h. */ |
| 13883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13884 | /* Override any GCC internal prototype to avoid an error. |
| 13885 | Use char because int might match the return type of a GCC |
| 13886 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13887 | #ifdef __cplusplus |
| 13888 | extern "C" |
| 13889 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13890 | char pthread_mutex_init (); |
| 13891 | int |
| 13892 | main () |
| 13893 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13894 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13895 | ; |
| 13896 | return 0; |
| 13897 | } |
| 13898 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13900 | if { (ac_try="$ac_link" |
| 13901 | case "(($ac_try" in |
| 13902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13903 | *) ac_try_echo=$ac_try;; |
| 13904 | esac |
| 13905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13906 | (eval "$ac_link") 2>conftest.er1 |
| 13907 | ac_status=$? |
| 13908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13909 | rm -f conftest.er1 |
| 13910 | cat conftest.err >&5 |
| 13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13912 | (exit $ac_status); } && |
| 13913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13914 | { (case "(($ac_try" in |
| 13915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13916 | *) ac_try_echo=$ac_try;; |
| 13917 | esac |
| 13918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13919 | (eval "$ac_try") 2>&5 |
| 13920 | ac_status=$? |
| 13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13922 | (exit $ac_status); }; } && |
| 13923 | { ac_try='test -s conftest$ac_exeext' |
| 13924 | { (case "(($ac_try" in |
| 13925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13926 | *) ac_try_echo=$ac_try;; |
| 13927 | esac |
| 13928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13929 | (eval "$ac_try") 2>&5 |
| 13930 | ac_status=$? |
| 13931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13932 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13933 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13934 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13935 | echo "$as_me: failed program was:" >&5 |
| 13936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13937 | |
| 13938 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13939 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13940 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13941 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13942 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13943 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13944 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13945 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13946 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13947 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13948 | cat >>confdefs.h <<_ACEOF |
| 13949 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13950 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13951 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13952 | LIBS="-lpthread $LIBS" |
| 13953 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13954 | fi |
| 13955 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13956 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13957 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13958 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13960 | else |
| 13961 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13962 | cat >conftest.$ac_ext <<_ACEOF |
| 13963 | /* confdefs.h. */ |
| 13964 | _ACEOF |
| 13965 | cat confdefs.h >>conftest.$ac_ext |
| 13966 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13967 | /* end confdefs.h. */ |
| 13968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13969 | /* Override any GCC internal prototype to avoid an error. |
| 13970 | Use char because int might match the return type of a GCC |
| 13971 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13972 | #ifdef __cplusplus |
| 13973 | extern "C" |
| 13974 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13975 | char pthread_mutex_lock (); |
| 13976 | int |
| 13977 | main () |
| 13978 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13979 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13980 | ; |
| 13981 | return 0; |
| 13982 | } |
| 13983 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13984 | for ac_lib in '' pthread; do |
| 13985 | if test -z "$ac_lib"; then |
| 13986 | ac_res="none required" |
| 13987 | else |
| 13988 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13989 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13990 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13992 | if { (ac_try="$ac_link" |
| 13993 | case "(($ac_try" in |
| 13994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13995 | *) ac_try_echo=$ac_try;; |
| 13996 | esac |
| 13997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13998 | (eval "$ac_link") 2>conftest.er1 |
| 13999 | ac_status=$? |
| 14000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14001 | rm -f conftest.er1 |
| 14002 | cat conftest.err >&5 |
| 14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14004 | (exit $ac_status); } && |
| 14005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14006 | { (case "(($ac_try" in |
| 14007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14008 | *) ac_try_echo=$ac_try;; |
| 14009 | esac |
| 14010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14011 | (eval "$ac_try") 2>&5 |
| 14012 | ac_status=$? |
| 14013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14014 | (exit $ac_status); }; } && |
| 14015 | { ac_try='test -s conftest$ac_exeext' |
| 14016 | { (case "(($ac_try" in |
| 14017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14018 | *) ac_try_echo=$ac_try;; |
| 14019 | esac |
| 14020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14021 | (eval "$ac_try") 2>&5 |
| 14022 | ac_status=$? |
| 14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14024 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14025 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14026 | else |
| 14027 | echo "$as_me: failed program was:" >&5 |
| 14028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14029 | |
| 14030 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14031 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14032 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14033 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14034 | conftest$ac_exeext |
| 14035 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14036 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14037 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14038 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14039 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14040 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14041 | else |
| 14042 | ac_cv_search_pthread_mutex_lock=no |
| 14043 | fi |
| 14044 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14045 | LIBS=$ac_func_search_save_LIBS |
| 14046 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14047 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 14048 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14049 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14050 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14051 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14052 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14053 | cat >>confdefs.h <<\_ACEOF |
| 14054 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 14055 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 14056 | |
| 14057 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14058 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14059 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 14060 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 14061 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14063 | else |
| 14064 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14065 | cat >conftest.$ac_ext <<_ACEOF |
| 14066 | /* confdefs.h. */ |
| 14067 | _ACEOF |
| 14068 | cat confdefs.h >>conftest.$ac_ext |
| 14069 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14070 | /* end confdefs.h. */ |
| 14071 | |
| 14072 | /* Override any GCC internal prototype to avoid an error. |
| 14073 | Use char because int might match the return type of a GCC |
| 14074 | builtin and then its argument prototype would still apply. */ |
| 14075 | #ifdef __cplusplus |
| 14076 | extern "C" |
| 14077 | #endif |
| 14078 | char pthread_rwlock_init (); |
| 14079 | int |
| 14080 | main () |
| 14081 | { |
| 14082 | return pthread_rwlock_init (); |
| 14083 | ; |
| 14084 | return 0; |
| 14085 | } |
| 14086 | _ACEOF |
| 14087 | for ac_lib in '' pthread; do |
| 14088 | if test -z "$ac_lib"; then |
| 14089 | ac_res="none required" |
| 14090 | else |
| 14091 | ac_res=-l$ac_lib |
| 14092 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14093 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14095 | if { (ac_try="$ac_link" |
| 14096 | case "(($ac_try" in |
| 14097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14098 | *) ac_try_echo=$ac_try;; |
| 14099 | esac |
| 14100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14101 | (eval "$ac_link") 2>conftest.er1 |
| 14102 | ac_status=$? |
| 14103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14104 | rm -f conftest.er1 |
| 14105 | cat conftest.err >&5 |
| 14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14107 | (exit $ac_status); } && |
| 14108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14109 | { (case "(($ac_try" in |
| 14110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14111 | *) ac_try_echo=$ac_try;; |
| 14112 | esac |
| 14113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14114 | (eval "$ac_try") 2>&5 |
| 14115 | ac_status=$? |
| 14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14117 | (exit $ac_status); }; } && |
| 14118 | { ac_try='test -s conftest$ac_exeext' |
| 14119 | { (case "(($ac_try" in |
| 14120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14121 | *) ac_try_echo=$ac_try;; |
| 14122 | esac |
| 14123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14124 | (eval "$ac_try") 2>&5 |
| 14125 | ac_status=$? |
| 14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14127 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14128 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14129 | else |
| 14130 | echo "$as_me: failed program was:" >&5 |
| 14131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14132 | |
| 14133 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14134 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14135 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14136 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14137 | conftest$ac_exeext |
| 14138 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14139 | break |
| 14140 | fi |
| 14141 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14142 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14143 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14144 | else |
| 14145 | ac_cv_search_pthread_rwlock_init=no |
| 14146 | fi |
| 14147 | rm conftest.$ac_ext |
| 14148 | LIBS=$ac_func_search_save_LIBS |
| 14149 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14150 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 14151 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14152 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14153 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14154 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14155 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14156 | cat >>confdefs.h <<\_ACEOF |
| 14157 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 14158 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14159 | |
| 14160 | fi |
| 14161 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14162 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 14163 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 14164 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14166 | else |
| 14167 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14168 | cat >conftest.$ac_ext <<_ACEOF |
| 14169 | /* confdefs.h. */ |
| 14170 | _ACEOF |
| 14171 | cat confdefs.h >>conftest.$ac_ext |
| 14172 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14173 | /* end confdefs.h. */ |
| 14174 | |
| 14175 | /* Override any GCC internal prototype to avoid an error. |
| 14176 | Use char because int might match the return type of a GCC |
| 14177 | builtin and then its argument prototype would still apply. */ |
| 14178 | #ifdef __cplusplus |
| 14179 | extern "C" |
| 14180 | #endif |
| 14181 | char pthread_getspecific (); |
| 14182 | int |
| 14183 | main () |
| 14184 | { |
| 14185 | return pthread_getspecific (); |
| 14186 | ; |
| 14187 | return 0; |
| 14188 | } |
| 14189 | _ACEOF |
| 14190 | for ac_lib in '' pthread; do |
| 14191 | if test -z "$ac_lib"; then |
| 14192 | ac_res="none required" |
| 14193 | else |
| 14194 | ac_res=-l$ac_lib |
| 14195 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14196 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14197 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14198 | if { (ac_try="$ac_link" |
| 14199 | case "(($ac_try" in |
| 14200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14201 | *) ac_try_echo=$ac_try;; |
| 14202 | esac |
| 14203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14204 | (eval "$ac_link") 2>conftest.er1 |
| 14205 | ac_status=$? |
| 14206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14207 | rm -f conftest.er1 |
| 14208 | cat conftest.err >&5 |
| 14209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14210 | (exit $ac_status); } && |
| 14211 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14212 | { (case "(($ac_try" in |
| 14213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14214 | *) ac_try_echo=$ac_try;; |
| 14215 | esac |
| 14216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14217 | (eval "$ac_try") 2>&5 |
| 14218 | ac_status=$? |
| 14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14220 | (exit $ac_status); }; } && |
| 14221 | { ac_try='test -s conftest$ac_exeext' |
| 14222 | { (case "(($ac_try" in |
| 14223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14224 | *) ac_try_echo=$ac_try;; |
| 14225 | esac |
| 14226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14227 | (eval "$ac_try") 2>&5 |
| 14228 | ac_status=$? |
| 14229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14230 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14231 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14232 | else |
| 14233 | echo "$as_me: failed program was:" >&5 |
| 14234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14235 | |
| 14236 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14237 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14238 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14239 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14240 | conftest$ac_exeext |
| 14241 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14242 | break |
| 14243 | fi |
| 14244 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14245 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14246 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14247 | else |
| 14248 | ac_cv_search_pthread_getspecific=no |
| 14249 | fi |
| 14250 | rm conftest.$ac_ext |
| 14251 | LIBS=$ac_func_search_save_LIBS |
| 14252 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14253 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14254 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14255 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14256 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14257 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14259 | cat >>confdefs.h <<\_ACEOF |
| 14260 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14261 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14262 | |
| 14263 | fi |
| 14264 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14265 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14266 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14267 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14268 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14269 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14270 | withval=$with_udis86; |
| 14271 | USE_UDIS86=1 |
| 14272 | |
| 14273 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14274 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14275 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14276 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14277 | |
| 14278 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14279 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14280 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14282 | else |
| 14283 | ac_check_lib_save_LIBS=$LIBS |
| 14284 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14285 | cat >conftest.$ac_ext <<_ACEOF |
| 14286 | /* confdefs.h. */ |
| 14287 | _ACEOF |
| 14288 | cat confdefs.h >>conftest.$ac_ext |
| 14289 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14290 | /* end confdefs.h. */ |
| 14291 | |
| 14292 | /* Override any GCC internal prototype to avoid an error. |
| 14293 | Use char because int might match the return type of a GCC |
| 14294 | builtin and then its argument prototype would still apply. */ |
| 14295 | #ifdef __cplusplus |
| 14296 | extern "C" |
| 14297 | #endif |
| 14298 | char ud_init (); |
| 14299 | int |
| 14300 | main () |
| 14301 | { |
| 14302 | return ud_init (); |
| 14303 | ; |
| 14304 | return 0; |
| 14305 | } |
| 14306 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14308 | if { (ac_try="$ac_link" |
| 14309 | case "(($ac_try" in |
| 14310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14311 | *) ac_try_echo=$ac_try;; |
| 14312 | esac |
| 14313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14314 | (eval "$ac_link") 2>conftest.er1 |
| 14315 | ac_status=$? |
| 14316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14317 | rm -f conftest.er1 |
| 14318 | cat conftest.err >&5 |
| 14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14320 | (exit $ac_status); } && |
| 14321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14322 | { (case "(($ac_try" in |
| 14323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14324 | *) ac_try_echo=$ac_try;; |
| 14325 | esac |
| 14326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14327 | (eval "$ac_try") 2>&5 |
| 14328 | ac_status=$? |
| 14329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14330 | (exit $ac_status); }; } && |
| 14331 | { ac_try='test -s conftest$ac_exeext' |
| 14332 | { (case "(($ac_try" in |
| 14333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14334 | *) ac_try_echo=$ac_try;; |
| 14335 | esac |
| 14336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14337 | (eval "$ac_try") 2>&5 |
| 14338 | ac_status=$? |
| 14339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14340 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14341 | ac_cv_lib_udis86_ud_init=yes |
| 14342 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14343 | echo "$as_me: failed program was:" >&5 |
| 14344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14345 | |
| 14346 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14347 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14348 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14349 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14350 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14351 | LIBS=$ac_check_lib_save_LIBS |
| 14352 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14353 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14354 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14355 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14356 | cat >>confdefs.h <<_ACEOF |
| 14357 | #define HAVE_LIBUDIS86 1 |
| 14358 | _ACEOF |
| 14359 | |
| 14360 | LIBS="-ludis86 $LIBS" |
| 14361 | |
| 14362 | else |
| 14363 | |
| 14364 | echo "Error! You need to have libudis86 around." |
| 14365 | exit -1 |
| 14366 | |
| 14367 | fi |
| 14368 | |
| 14369 | |
| 14370 | else |
| 14371 | USE_UDIS86=0 |
| 14372 | |
| 14373 | fi |
| 14374 | |
| 14375 | |
| 14376 | cat >>confdefs.h <<_ACEOF |
| 14377 | #define USE_UDIS86 $USE_UDIS86 |
| 14378 | _ACEOF |
| 14379 | |
| 14380 | |
| 14381 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14382 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14383 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14384 | withval=$with_oprofile; |
| 14385 | USE_OPROFILE=1 |
| 14386 | |
| 14387 | case "$withval" in |
| 14388 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14389 | no) llvm_cv_oppath= |
| 14390 | USE_OPROFILE=0 |
| 14391 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14392 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14393 | CPPFLAGS="-I${withval}/include";; |
| 14394 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14395 | if test -n "$llvm_cv_oppath" ; then |
| 14396 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14397 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14398 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14399 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14401 | else |
| 14402 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14403 | cat >conftest.$ac_ext <<_ACEOF |
| 14404 | /* confdefs.h. */ |
| 14405 | _ACEOF |
| 14406 | cat confdefs.h >>conftest.$ac_ext |
| 14407 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14408 | /* end confdefs.h. */ |
| 14409 | |
| 14410 | /* Override any GCC internal prototype to avoid an error. |
| 14411 | Use char because int might match the return type of a GCC |
| 14412 | builtin and then its argument prototype would still apply. */ |
| 14413 | #ifdef __cplusplus |
| 14414 | extern "C" |
| 14415 | #endif |
| 14416 | char bfd_init (); |
| 14417 | int |
| 14418 | main () |
| 14419 | { |
| 14420 | return bfd_init (); |
| 14421 | ; |
| 14422 | return 0; |
| 14423 | } |
| 14424 | _ACEOF |
| 14425 | for ac_lib in '' bfd; do |
| 14426 | if test -z "$ac_lib"; then |
| 14427 | ac_res="none required" |
| 14428 | else |
| 14429 | ac_res=-l$ac_lib |
| 14430 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14431 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14432 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14433 | if { (ac_try="$ac_link" |
| 14434 | case "(($ac_try" in |
| 14435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14436 | *) ac_try_echo=$ac_try;; |
| 14437 | esac |
| 14438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14439 | (eval "$ac_link") 2>conftest.er1 |
| 14440 | ac_status=$? |
| 14441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14442 | rm -f conftest.er1 |
| 14443 | cat conftest.err >&5 |
| 14444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14445 | (exit $ac_status); } && |
| 14446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14447 | { (case "(($ac_try" in |
| 14448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14449 | *) ac_try_echo=$ac_try;; |
| 14450 | esac |
| 14451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14452 | (eval "$ac_try") 2>&5 |
| 14453 | ac_status=$? |
| 14454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14455 | (exit $ac_status); }; } && |
| 14456 | { ac_try='test -s conftest$ac_exeext' |
| 14457 | { (case "(($ac_try" in |
| 14458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14459 | *) ac_try_echo=$ac_try;; |
| 14460 | esac |
| 14461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14462 | (eval "$ac_try") 2>&5 |
| 14463 | ac_status=$? |
| 14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14465 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14466 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14467 | else |
| 14468 | echo "$as_me: failed program was:" >&5 |
| 14469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14470 | |
| 14471 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14472 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14473 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14474 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14475 | conftest$ac_exeext |
| 14476 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14477 | break |
| 14478 | fi |
| 14479 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14480 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14481 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14482 | else |
| 14483 | ac_cv_search_bfd_init=no |
| 14484 | fi |
| 14485 | rm conftest.$ac_ext |
| 14486 | LIBS=$ac_func_search_save_LIBS |
| 14487 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14488 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14489 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14490 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14491 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14492 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14493 | |
| 14494 | fi |
| 14495 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14496 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14497 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14498 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14500 | else |
| 14501 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14502 | cat >conftest.$ac_ext <<_ACEOF |
| 14503 | /* confdefs.h. */ |
| 14504 | _ACEOF |
| 14505 | cat confdefs.h >>conftest.$ac_ext |
| 14506 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14507 | /* end confdefs.h. */ |
| 14508 | |
| 14509 | /* Override any GCC internal prototype to avoid an error. |
| 14510 | Use char because int might match the return type of a GCC |
| 14511 | builtin and then its argument prototype would still apply. */ |
| 14512 | #ifdef __cplusplus |
| 14513 | extern "C" |
| 14514 | #endif |
| 14515 | char op_open_agent (); |
| 14516 | int |
| 14517 | main () |
| 14518 | { |
| 14519 | return op_open_agent (); |
| 14520 | ; |
| 14521 | return 0; |
| 14522 | } |
| 14523 | _ACEOF |
| 14524 | for ac_lib in '' opagent; do |
| 14525 | if test -z "$ac_lib"; then |
| 14526 | ac_res="none required" |
| 14527 | else |
| 14528 | ac_res=-l$ac_lib |
| 14529 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14531 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14532 | if { (ac_try="$ac_link" |
| 14533 | case "(($ac_try" in |
| 14534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14535 | *) ac_try_echo=$ac_try;; |
| 14536 | esac |
| 14537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14538 | (eval "$ac_link") 2>conftest.er1 |
| 14539 | ac_status=$? |
| 14540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14541 | rm -f conftest.er1 |
| 14542 | cat conftest.err >&5 |
| 14543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14544 | (exit $ac_status); } && |
| 14545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14546 | { (case "(($ac_try" in |
| 14547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14548 | *) ac_try_echo=$ac_try;; |
| 14549 | esac |
| 14550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14551 | (eval "$ac_try") 2>&5 |
| 14552 | ac_status=$? |
| 14553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14554 | (exit $ac_status); }; } && |
| 14555 | { ac_try='test -s conftest$ac_exeext' |
| 14556 | { (case "(($ac_try" in |
| 14557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14558 | *) ac_try_echo=$ac_try;; |
| 14559 | esac |
| 14560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14561 | (eval "$ac_try") 2>&5 |
| 14562 | ac_status=$? |
| 14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14564 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14565 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14566 | else |
| 14567 | echo "$as_me: failed program was:" >&5 |
| 14568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14569 | |
| 14570 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14571 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14572 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14573 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14574 | conftest$ac_exeext |
| 14575 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14576 | break |
| 14577 | fi |
| 14578 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14579 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14580 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14581 | else |
| 14582 | ac_cv_search_op_open_agent=no |
| 14583 | fi |
| 14584 | rm conftest.$ac_ext |
| 14585 | LIBS=$ac_func_search_save_LIBS |
| 14586 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14587 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14588 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14589 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14590 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14591 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14592 | |
| 14593 | else |
| 14594 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14595 | echo "Error! You need to have libopagent around." |
| 14596 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14597 | |
| 14598 | fi |
| 14599 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14600 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14601 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14602 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14603 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14605 | fi |
| 14606 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14607 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14608 | else |
| 14609 | # Is the header compilable? |
| 14610 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14611 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14612 | cat >conftest.$ac_ext <<_ACEOF |
| 14613 | /* confdefs.h. */ |
| 14614 | _ACEOF |
| 14615 | cat confdefs.h >>conftest.$ac_ext |
| 14616 | cat >>conftest.$ac_ext <<_ACEOF |
| 14617 | /* end confdefs.h. */ |
| 14618 | $ac_includes_default |
| 14619 | #include <opagent.h> |
| 14620 | _ACEOF |
| 14621 | rm -f conftest.$ac_objext |
| 14622 | if { (ac_try="$ac_compile" |
| 14623 | case "(($ac_try" in |
| 14624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14625 | *) ac_try_echo=$ac_try;; |
| 14626 | esac |
| 14627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14628 | (eval "$ac_compile") 2>conftest.er1 |
| 14629 | ac_status=$? |
| 14630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14631 | rm -f conftest.er1 |
| 14632 | cat conftest.err >&5 |
| 14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14634 | (exit $ac_status); } && |
| 14635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14636 | { (case "(($ac_try" in |
| 14637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14638 | *) ac_try_echo=$ac_try;; |
| 14639 | esac |
| 14640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14641 | (eval "$ac_try") 2>&5 |
| 14642 | ac_status=$? |
| 14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14644 | (exit $ac_status); }; } && |
| 14645 | { ac_try='test -s conftest.$ac_objext' |
| 14646 | { (case "(($ac_try" in |
| 14647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14648 | *) ac_try_echo=$ac_try;; |
| 14649 | esac |
| 14650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14651 | (eval "$ac_try") 2>&5 |
| 14652 | ac_status=$? |
| 14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14654 | (exit $ac_status); }; }; then |
| 14655 | ac_header_compiler=yes |
| 14656 | else |
| 14657 | echo "$as_me: failed program was:" >&5 |
| 14658 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14659 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14660 | ac_header_compiler=no |
| 14661 | fi |
| 14662 | |
| 14663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14664 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14665 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14666 | |
| 14667 | # Is the header present? |
| 14668 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14669 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14670 | cat >conftest.$ac_ext <<_ACEOF |
| 14671 | /* confdefs.h. */ |
| 14672 | _ACEOF |
| 14673 | cat confdefs.h >>conftest.$ac_ext |
| 14674 | cat >>conftest.$ac_ext <<_ACEOF |
| 14675 | /* end confdefs.h. */ |
| 14676 | #include <opagent.h> |
| 14677 | _ACEOF |
| 14678 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14679 | case "(($ac_try" in |
| 14680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14681 | *) ac_try_echo=$ac_try;; |
| 14682 | esac |
| 14683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14684 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14685 | ac_status=$? |
| 14686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14687 | rm -f conftest.er1 |
| 14688 | cat conftest.err >&5 |
| 14689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14690 | (exit $ac_status); } >/dev/null; then |
| 14691 | if test -s conftest.err; then |
| 14692 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14693 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14694 | else |
| 14695 | ac_cpp_err= |
| 14696 | fi |
| 14697 | else |
| 14698 | ac_cpp_err=yes |
| 14699 | fi |
| 14700 | if test -z "$ac_cpp_err"; then |
| 14701 | ac_header_preproc=yes |
| 14702 | else |
| 14703 | echo "$as_me: failed program was:" >&5 |
| 14704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14705 | |
| 14706 | ac_header_preproc=no |
| 14707 | fi |
| 14708 | |
| 14709 | rm -f conftest.err conftest.$ac_ext |
| 14710 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14711 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14712 | |
| 14713 | # So? What about this header? |
| 14714 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14715 | yes:no: ) |
| 14716 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14717 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14718 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14719 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14720 | ac_header_preproc=yes |
| 14721 | ;; |
| 14722 | no:yes:* ) |
| 14723 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14724 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14725 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14726 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14727 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14728 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14729 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14730 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14731 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14732 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14733 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14734 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14735 | ( cat <<\_ASBOX |
| 14736 | ## ----------------------------------- ## |
| 14737 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14738 | ## ----------------------------------- ## |
| 14739 | _ASBOX |
| 14740 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14741 | ;; |
| 14742 | esac |
| 14743 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14744 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14745 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14747 | else |
| 14748 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14749 | fi |
| 14750 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14751 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14752 | |
| 14753 | fi |
| 14754 | if test $ac_cv_header_opagent_h = yes; then |
| 14755 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14756 | else |
| 14757 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14758 | echo "Error! You need to have opagent.h around." |
| 14759 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14760 | |
| 14761 | fi |
| 14762 | |
| 14763 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14764 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14765 | |
| 14766 | else |
| 14767 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14768 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14769 | |
| 14770 | |
| 14771 | fi |
| 14772 | |
| 14773 | |
| 14774 | cat >>confdefs.h <<_ACEOF |
| 14775 | #define USE_OPROFILE $USE_OPROFILE |
| 14776 | _ACEOF |
| 14777 | |
| 14778 | |
| 14779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14780 | |
| 14781 | |
| 14782 | |
| 14783 | |
| 14784 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14785 | ac_header_dirent=no |
| 14786 | 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] | 14787 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14788 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14789 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14790 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14792 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14793 | cat >conftest.$ac_ext <<_ACEOF |
| 14794 | /* confdefs.h. */ |
| 14795 | _ACEOF |
| 14796 | cat confdefs.h >>conftest.$ac_ext |
| 14797 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14798 | /* end confdefs.h. */ |
| 14799 | #include <sys/types.h> |
| 14800 | #include <$ac_hdr> |
| 14801 | |
| 14802 | int |
| 14803 | main () |
| 14804 | { |
| 14805 | if ((DIR *) 0) |
| 14806 | return 0; |
| 14807 | ; |
| 14808 | return 0; |
| 14809 | } |
| 14810 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14811 | rm -f conftest.$ac_objext |
| 14812 | if { (ac_try="$ac_compile" |
| 14813 | case "(($ac_try" in |
| 14814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14815 | *) ac_try_echo=$ac_try;; |
| 14816 | esac |
| 14817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14818 | (eval "$ac_compile") 2>conftest.er1 |
| 14819 | ac_status=$? |
| 14820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14821 | rm -f conftest.er1 |
| 14822 | cat conftest.err >&5 |
| 14823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14824 | (exit $ac_status); } && |
| 14825 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14826 | { (case "(($ac_try" in |
| 14827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14828 | *) ac_try_echo=$ac_try;; |
| 14829 | esac |
| 14830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14831 | (eval "$ac_try") 2>&5 |
| 14832 | ac_status=$? |
| 14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14834 | (exit $ac_status); }; } && |
| 14835 | { ac_try='test -s conftest.$ac_objext' |
| 14836 | { (case "(($ac_try" in |
| 14837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14838 | *) ac_try_echo=$ac_try;; |
| 14839 | esac |
| 14840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14841 | (eval "$ac_try") 2>&5 |
| 14842 | ac_status=$? |
| 14843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14845 | eval "$as_ac_Header=yes" |
| 14846 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14847 | echo "$as_me: failed program was:" >&5 |
| 14848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14849 | |
| 14850 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14851 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14854 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14855 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14856 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14857 | echo "${ECHO_T}$ac_res" >&6; } |
| 14858 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14859 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14860 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14861 | _ACEOF |
| 14862 | |
| 14863 | ac_header_dirent=$ac_hdr; break |
| 14864 | fi |
| 14865 | |
| 14866 | done |
| 14867 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14868 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14869 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14870 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14871 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14873 | else |
| 14874 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14875 | cat >conftest.$ac_ext <<_ACEOF |
| 14876 | /* confdefs.h. */ |
| 14877 | _ACEOF |
| 14878 | cat confdefs.h >>conftest.$ac_ext |
| 14879 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14880 | /* end confdefs.h. */ |
| 14881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14882 | /* Override any GCC internal prototype to avoid an error. |
| 14883 | Use char because int might match the return type of a GCC |
| 14884 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14885 | #ifdef __cplusplus |
| 14886 | extern "C" |
| 14887 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14888 | char opendir (); |
| 14889 | int |
| 14890 | main () |
| 14891 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14892 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14893 | ; |
| 14894 | return 0; |
| 14895 | } |
| 14896 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14897 | for ac_lib in '' dir; do |
| 14898 | if test -z "$ac_lib"; then |
| 14899 | ac_res="none required" |
| 14900 | else |
| 14901 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14902 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14903 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14904 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14905 | if { (ac_try="$ac_link" |
| 14906 | case "(($ac_try" in |
| 14907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14908 | *) ac_try_echo=$ac_try;; |
| 14909 | esac |
| 14910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14911 | (eval "$ac_link") 2>conftest.er1 |
| 14912 | ac_status=$? |
| 14913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14914 | rm -f conftest.er1 |
| 14915 | cat conftest.err >&5 |
| 14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14917 | (exit $ac_status); } && |
| 14918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14919 | { (case "(($ac_try" in |
| 14920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14921 | *) ac_try_echo=$ac_try;; |
| 14922 | esac |
| 14923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14924 | (eval "$ac_try") 2>&5 |
| 14925 | ac_status=$? |
| 14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14927 | (exit $ac_status); }; } && |
| 14928 | { ac_try='test -s conftest$ac_exeext' |
| 14929 | { (case "(($ac_try" in |
| 14930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14931 | *) ac_try_echo=$ac_try;; |
| 14932 | esac |
| 14933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14934 | (eval "$ac_try") 2>&5 |
| 14935 | ac_status=$? |
| 14936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14937 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14938 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14939 | else |
| 14940 | echo "$as_me: failed program was:" >&5 |
| 14941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14942 | |
| 14943 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14944 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14945 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14946 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14947 | conftest$ac_exeext |
| 14948 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14949 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14950 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14951 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14952 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14953 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14954 | else |
| 14955 | ac_cv_search_opendir=no |
| 14956 | fi |
| 14957 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14958 | LIBS=$ac_func_search_save_LIBS |
| 14959 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14960 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14961 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14962 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14963 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14964 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14965 | |
| 14966 | fi |
| 14967 | |
| 14968 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14969 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14970 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14971 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14973 | else |
| 14974 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14975 | cat >conftest.$ac_ext <<_ACEOF |
| 14976 | /* confdefs.h. */ |
| 14977 | _ACEOF |
| 14978 | cat confdefs.h >>conftest.$ac_ext |
| 14979 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14980 | /* end confdefs.h. */ |
| 14981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14982 | /* Override any GCC internal prototype to avoid an error. |
| 14983 | Use char because int might match the return type of a GCC |
| 14984 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14985 | #ifdef __cplusplus |
| 14986 | extern "C" |
| 14987 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14988 | char opendir (); |
| 14989 | int |
| 14990 | main () |
| 14991 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14992 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14993 | ; |
| 14994 | return 0; |
| 14995 | } |
| 14996 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14997 | for ac_lib in '' x; do |
| 14998 | if test -z "$ac_lib"; then |
| 14999 | ac_res="none required" |
| 15000 | else |
| 15001 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15002 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15003 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15004 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15005 | if { (ac_try="$ac_link" |
| 15006 | case "(($ac_try" in |
| 15007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15008 | *) ac_try_echo=$ac_try;; |
| 15009 | esac |
| 15010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15011 | (eval "$ac_link") 2>conftest.er1 |
| 15012 | ac_status=$? |
| 15013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15014 | rm -f conftest.er1 |
| 15015 | cat conftest.err >&5 |
| 15016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15017 | (exit $ac_status); } && |
| 15018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15019 | { (case "(($ac_try" in |
| 15020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15021 | *) ac_try_echo=$ac_try;; |
| 15022 | esac |
| 15023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15024 | (eval "$ac_try") 2>&5 |
| 15025 | ac_status=$? |
| 15026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15027 | (exit $ac_status); }; } && |
| 15028 | { ac_try='test -s conftest$ac_exeext' |
| 15029 | { (case "(($ac_try" in |
| 15030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15031 | *) ac_try_echo=$ac_try;; |
| 15032 | esac |
| 15033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15034 | (eval "$ac_try") 2>&5 |
| 15035 | ac_status=$? |
| 15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15037 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15038 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15039 | else |
| 15040 | echo "$as_me: failed program was:" >&5 |
| 15041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15042 | |
| 15043 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15044 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15045 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15046 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15047 | conftest$ac_exeext |
| 15048 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15049 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15050 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15051 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15052 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15053 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15054 | else |
| 15055 | ac_cv_search_opendir=no |
| 15056 | fi |
| 15057 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15058 | LIBS=$ac_func_search_save_LIBS |
| 15059 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15060 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15061 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15062 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15063 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15064 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15065 | |
| 15066 | fi |
| 15067 | |
| 15068 | fi |
| 15069 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15070 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 15071 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 15072 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 15073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15074 | else |
| 15075 | ac_ext=c |
| 15076 | ac_cpp='$CPP $CPPFLAGS' |
| 15077 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15078 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15079 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15080 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15081 | cat >conftest.$ac_ext <<_ACEOF |
| 15082 | /* confdefs.h. */ |
| 15083 | _ACEOF |
| 15084 | cat confdefs.h >>conftest.$ac_ext |
| 15085 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15086 | /* end confdefs.h. */ |
| 15087 | #include <sys/mman.h> |
| 15088 | #include <unistd.h> |
| 15089 | #include <fcntl.h> |
| 15090 | int |
| 15091 | main () |
| 15092 | { |
| 15093 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 15094 | ; |
| 15095 | return 0; |
| 15096 | } |
| 15097 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15098 | rm -f conftest.$ac_objext |
| 15099 | if { (ac_try="$ac_compile" |
| 15100 | case "(($ac_try" in |
| 15101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15102 | *) ac_try_echo=$ac_try;; |
| 15103 | esac |
| 15104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15105 | (eval "$ac_compile") 2>conftest.er1 |
| 15106 | ac_status=$? |
| 15107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15108 | rm -f conftest.er1 |
| 15109 | cat conftest.err >&5 |
| 15110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15111 | (exit $ac_status); } && |
| 15112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15113 | { (case "(($ac_try" in |
| 15114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15115 | *) ac_try_echo=$ac_try;; |
| 15116 | esac |
| 15117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15118 | (eval "$ac_try") 2>&5 |
| 15119 | ac_status=$? |
| 15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15121 | (exit $ac_status); }; } && |
| 15122 | { ac_try='test -s conftest.$ac_objext' |
| 15123 | { (case "(($ac_try" in |
| 15124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15125 | *) ac_try_echo=$ac_try;; |
| 15126 | esac |
| 15127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15128 | (eval "$ac_try") 2>&5 |
| 15129 | ac_status=$? |
| 15130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15131 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15132 | ac_cv_header_mmap_anon=yes |
| 15133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15134 | echo "$as_me: failed program was:" >&5 |
| 15135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15136 | |
| 15137 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15138 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15141 | ac_ext=c |
| 15142 | ac_cpp='$CPP $CPPFLAGS' |
| 15143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15146 | |
| 15147 | |
| 15148 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15149 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 15150 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15151 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 15152 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15153 | cat >>confdefs.h <<\_ACEOF |
| 15154 | #define HAVE_MMAP_ANONYMOUS 1 |
| 15155 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15156 | |
| 15157 | fi |
| 15158 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15159 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 15160 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 15161 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 15162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15163 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15164 | cat >conftest.$ac_ext <<_ACEOF |
| 15165 | /* confdefs.h. */ |
| 15166 | _ACEOF |
| 15167 | cat confdefs.h >>conftest.$ac_ext |
| 15168 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15169 | /* end confdefs.h. */ |
| 15170 | #include <sys/types.h> |
| 15171 | #include <sys/stat.h> |
| 15172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15173 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15174 | # if S_ISBLK (S_IFDIR) |
| 15175 | You lose. |
| 15176 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15177 | #endif |
| 15178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15179 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15180 | # if S_ISBLK (S_IFCHR) |
| 15181 | You lose. |
| 15182 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15183 | #endif |
| 15184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15185 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15186 | # if S_ISLNK (S_IFREG) |
| 15187 | You lose. |
| 15188 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15189 | #endif |
| 15190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15191 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15192 | # if S_ISSOCK (S_IFREG) |
| 15193 | You lose. |
| 15194 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15195 | #endif |
| 15196 | |
| 15197 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15198 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15199 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 15200 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15201 | else |
| 15202 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 15203 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15204 | rm -f conftest* |
| 15205 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15206 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15207 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 15208 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15209 | if test $ac_cv_header_stat_broken = yes; then |
| 15210 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15211 | cat >>confdefs.h <<\_ACEOF |
| 15212 | #define STAT_MACROS_BROKEN 1 |
| 15213 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15214 | |
| 15215 | fi |
| 15216 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15217 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 15218 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 15219 | if test "${ac_cv_header_stdc+set}" = set; then |
| 15220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15221 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15222 | cat >conftest.$ac_ext <<_ACEOF |
| 15223 | /* confdefs.h. */ |
| 15224 | _ACEOF |
| 15225 | cat confdefs.h >>conftest.$ac_ext |
| 15226 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15227 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15228 | #include <stdlib.h> |
| 15229 | #include <stdarg.h> |
| 15230 | #include <string.h> |
| 15231 | #include <float.h> |
| 15232 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15233 | int |
| 15234 | main () |
| 15235 | { |
| 15236 | |
| 15237 | ; |
| 15238 | return 0; |
| 15239 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15240 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15241 | rm -f conftest.$ac_objext |
| 15242 | if { (ac_try="$ac_compile" |
| 15243 | case "(($ac_try" in |
| 15244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15245 | *) ac_try_echo=$ac_try;; |
| 15246 | esac |
| 15247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15248 | (eval "$ac_compile") 2>conftest.er1 |
| 15249 | ac_status=$? |
| 15250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15251 | rm -f conftest.er1 |
| 15252 | cat conftest.err >&5 |
| 15253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15254 | (exit $ac_status); } && |
| 15255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15256 | { (case "(($ac_try" in |
| 15257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15258 | *) ac_try_echo=$ac_try;; |
| 15259 | esac |
| 15260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15261 | (eval "$ac_try") 2>&5 |
| 15262 | ac_status=$? |
| 15263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15264 | (exit $ac_status); }; } && |
| 15265 | { ac_try='test -s conftest.$ac_objext' |
| 15266 | { (case "(($ac_try" in |
| 15267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15268 | *) ac_try_echo=$ac_try;; |
| 15269 | esac |
| 15270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15271 | (eval "$ac_try") 2>&5 |
| 15272 | ac_status=$? |
| 15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15274 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15275 | ac_cv_header_stdc=yes |
| 15276 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15277 | echo "$as_me: failed program was:" >&5 |
| 15278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15279 | |
| 15280 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15281 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15282 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15284 | |
| 15285 | if test $ac_cv_header_stdc = yes; then |
| 15286 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15287 | cat >conftest.$ac_ext <<_ACEOF |
| 15288 | /* confdefs.h. */ |
| 15289 | _ACEOF |
| 15290 | cat confdefs.h >>conftest.$ac_ext |
| 15291 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15292 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15293 | #include <string.h> |
| 15294 | |
| 15295 | _ACEOF |
| 15296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15297 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15298 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15299 | else |
| 15300 | ac_cv_header_stdc=no |
| 15301 | fi |
| 15302 | rm -f conftest* |
| 15303 | |
| 15304 | fi |
| 15305 | |
| 15306 | if test $ac_cv_header_stdc = yes; then |
| 15307 | # 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] | 15308 | cat >conftest.$ac_ext <<_ACEOF |
| 15309 | /* confdefs.h. */ |
| 15310 | _ACEOF |
| 15311 | cat confdefs.h >>conftest.$ac_ext |
| 15312 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15313 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15314 | #include <stdlib.h> |
| 15315 | |
| 15316 | _ACEOF |
| 15317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15318 | $EGREP "free" >/dev/null 2>&1; then |
| 15319 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15320 | else |
| 15321 | ac_cv_header_stdc=no |
| 15322 | fi |
| 15323 | rm -f conftest* |
| 15324 | |
| 15325 | fi |
| 15326 | |
| 15327 | if test $ac_cv_header_stdc = yes; then |
| 15328 | # /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] | 15329 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15330 | : |
| 15331 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15332 | cat >conftest.$ac_ext <<_ACEOF |
| 15333 | /* confdefs.h. */ |
| 15334 | _ACEOF |
| 15335 | cat confdefs.h >>conftest.$ac_ext |
| 15336 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15337 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15338 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15339 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15340 | #if ((' ' & 0x0FF) == 0x020) |
| 15341 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15342 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15343 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15344 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15345 | (('a' <= (c) && (c) <= 'i') \ |
| 15346 | || ('j' <= (c) && (c) <= 'r') \ |
| 15347 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15348 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15349 | #endif |
| 15350 | |
| 15351 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15352 | int |
| 15353 | main () |
| 15354 | { |
| 15355 | int i; |
| 15356 | for (i = 0; i < 256; i++) |
| 15357 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15358 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15359 | return 2; |
| 15360 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15361 | } |
| 15362 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15363 | rm -f conftest$ac_exeext |
| 15364 | if { (ac_try="$ac_link" |
| 15365 | case "(($ac_try" in |
| 15366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15367 | *) ac_try_echo=$ac_try;; |
| 15368 | esac |
| 15369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15370 | (eval "$ac_link") 2>&5 |
| 15371 | ac_status=$? |
| 15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15373 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15374 | { (case "(($ac_try" in |
| 15375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15376 | *) ac_try_echo=$ac_try;; |
| 15377 | esac |
| 15378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15379 | (eval "$ac_try") 2>&5 |
| 15380 | ac_status=$? |
| 15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15382 | (exit $ac_status); }; }; then |
| 15383 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15384 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15385 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15386 | echo "$as_me: failed program was:" >&5 |
| 15387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15388 | |
| 15389 | ( exit $ac_status ) |
| 15390 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15391 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15392 | 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] | 15393 | fi |
| 15394 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15395 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15396 | fi |
| 15397 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15398 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15399 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15400 | if test $ac_cv_header_stdc = yes; then |
| 15401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15402 | cat >>confdefs.h <<\_ACEOF |
| 15403 | #define STDC_HEADERS 1 |
| 15404 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15405 | |
| 15406 | fi |
| 15407 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15408 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15409 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15410 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15412 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15413 | cat >conftest.$ac_ext <<_ACEOF |
| 15414 | /* confdefs.h. */ |
| 15415 | _ACEOF |
| 15416 | cat confdefs.h >>conftest.$ac_ext |
| 15417 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15418 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15419 | #include <sys/types.h> |
| 15420 | #include <sys/wait.h> |
| 15421 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15422 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15423 | #endif |
| 15424 | #ifndef WIFEXITED |
| 15425 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15426 | #endif |
| 15427 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15428 | int |
| 15429 | main () |
| 15430 | { |
| 15431 | int s; |
| 15432 | wait (&s); |
| 15433 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15434 | ; |
| 15435 | return 0; |
| 15436 | } |
| 15437 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15438 | rm -f conftest.$ac_objext |
| 15439 | if { (ac_try="$ac_compile" |
| 15440 | case "(($ac_try" in |
| 15441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15442 | *) ac_try_echo=$ac_try;; |
| 15443 | esac |
| 15444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15445 | (eval "$ac_compile") 2>conftest.er1 |
| 15446 | ac_status=$? |
| 15447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15448 | rm -f conftest.er1 |
| 15449 | cat conftest.err >&5 |
| 15450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15451 | (exit $ac_status); } && |
| 15452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15453 | { (case "(($ac_try" in |
| 15454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15455 | *) ac_try_echo=$ac_try;; |
| 15456 | esac |
| 15457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15458 | (eval "$ac_try") 2>&5 |
| 15459 | ac_status=$? |
| 15460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15461 | (exit $ac_status); }; } && |
| 15462 | { ac_try='test -s conftest.$ac_objext' |
| 15463 | { (case "(($ac_try" in |
| 15464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15465 | *) ac_try_echo=$ac_try;; |
| 15466 | esac |
| 15467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15468 | (eval "$ac_try") 2>&5 |
| 15469 | ac_status=$? |
| 15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15471 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15472 | ac_cv_header_sys_wait_h=yes |
| 15473 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15474 | echo "$as_me: failed program was:" >&5 |
| 15475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15476 | |
| 15477 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15478 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15479 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15481 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15482 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15483 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15484 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15485 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15486 | cat >>confdefs.h <<\_ACEOF |
| 15487 | #define HAVE_SYS_WAIT_H 1 |
| 15488 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15489 | |
| 15490 | fi |
| 15491 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15492 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15493 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15494 | if test "${ac_cv_header_time+set}" = set; then |
| 15495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15496 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15497 | cat >conftest.$ac_ext <<_ACEOF |
| 15498 | /* confdefs.h. */ |
| 15499 | _ACEOF |
| 15500 | cat confdefs.h >>conftest.$ac_ext |
| 15501 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15502 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15503 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15504 | #include <sys/time.h> |
| 15505 | #include <time.h> |
| 15506 | |
| 15507 | int |
| 15508 | main () |
| 15509 | { |
| 15510 | if ((struct tm *) 0) |
| 15511 | return 0; |
| 15512 | ; |
| 15513 | return 0; |
| 15514 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15515 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15516 | rm -f conftest.$ac_objext |
| 15517 | if { (ac_try="$ac_compile" |
| 15518 | case "(($ac_try" in |
| 15519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15520 | *) ac_try_echo=$ac_try;; |
| 15521 | esac |
| 15522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15523 | (eval "$ac_compile") 2>conftest.er1 |
| 15524 | ac_status=$? |
| 15525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15526 | rm -f conftest.er1 |
| 15527 | cat conftest.err >&5 |
| 15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15529 | (exit $ac_status); } && |
| 15530 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15531 | { (case "(($ac_try" in |
| 15532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15533 | *) ac_try_echo=$ac_try;; |
| 15534 | esac |
| 15535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15536 | (eval "$ac_try") 2>&5 |
| 15537 | ac_status=$? |
| 15538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15539 | (exit $ac_status); }; } && |
| 15540 | { ac_try='test -s conftest.$ac_objext' |
| 15541 | { (case "(($ac_try" in |
| 15542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15543 | *) ac_try_echo=$ac_try;; |
| 15544 | esac |
| 15545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15546 | (eval "$ac_try") 2>&5 |
| 15547 | ac_status=$? |
| 15548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15549 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15550 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15551 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15552 | echo "$as_me: failed program was:" >&5 |
| 15553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15554 | |
| 15555 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15556 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15560 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15561 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15562 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15563 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15564 | cat >>confdefs.h <<\_ACEOF |
| 15565 | #define TIME_WITH_SYS_TIME 1 |
| 15566 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15567 | |
| 15568 | fi |
| 15569 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15570 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15571 | |
| 15572 | |
| 15573 | |
| 15574 | |
| 15575 | |
| 15576 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15577 | 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] | 15578 | do |
| 15579 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15580 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15581 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15583 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15585 | fi |
| 15586 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15588 | echo "${ECHO_T}$ac_res" >&6; } |
| 15589 | else |
| 15590 | # Is the header compilable? |
| 15591 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15592 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15593 | cat >conftest.$ac_ext <<_ACEOF |
| 15594 | /* confdefs.h. */ |
| 15595 | _ACEOF |
| 15596 | cat confdefs.h >>conftest.$ac_ext |
| 15597 | cat >>conftest.$ac_ext <<_ACEOF |
| 15598 | /* end confdefs.h. */ |
| 15599 | $ac_includes_default |
| 15600 | #include <$ac_header> |
| 15601 | _ACEOF |
| 15602 | rm -f conftest.$ac_objext |
| 15603 | if { (ac_try="$ac_compile" |
| 15604 | case "(($ac_try" in |
| 15605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15606 | *) ac_try_echo=$ac_try;; |
| 15607 | esac |
| 15608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15609 | (eval "$ac_compile") 2>conftest.er1 |
| 15610 | ac_status=$? |
| 15611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15612 | rm -f conftest.er1 |
| 15613 | cat conftest.err >&5 |
| 15614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15615 | (exit $ac_status); } && |
| 15616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15617 | { (case "(($ac_try" in |
| 15618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15619 | *) ac_try_echo=$ac_try;; |
| 15620 | esac |
| 15621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15622 | (eval "$ac_try") 2>&5 |
| 15623 | ac_status=$? |
| 15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15625 | (exit $ac_status); }; } && |
| 15626 | { ac_try='test -s conftest.$ac_objext' |
| 15627 | { (case "(($ac_try" in |
| 15628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15629 | *) ac_try_echo=$ac_try;; |
| 15630 | esac |
| 15631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15632 | (eval "$ac_try") 2>&5 |
| 15633 | ac_status=$? |
| 15634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15635 | (exit $ac_status); }; }; then |
| 15636 | ac_header_compiler=yes |
| 15637 | else |
| 15638 | echo "$as_me: failed program was:" >&5 |
| 15639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15640 | |
| 15641 | ac_header_compiler=no |
| 15642 | fi |
| 15643 | |
| 15644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15645 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15646 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15647 | |
| 15648 | # Is the header present? |
| 15649 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15651 | cat >conftest.$ac_ext <<_ACEOF |
| 15652 | /* confdefs.h. */ |
| 15653 | _ACEOF |
| 15654 | cat confdefs.h >>conftest.$ac_ext |
| 15655 | cat >>conftest.$ac_ext <<_ACEOF |
| 15656 | /* end confdefs.h. */ |
| 15657 | #include <$ac_header> |
| 15658 | _ACEOF |
| 15659 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15660 | case "(($ac_try" in |
| 15661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15662 | *) ac_try_echo=$ac_try;; |
| 15663 | esac |
| 15664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15665 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15666 | ac_status=$? |
| 15667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15668 | rm -f conftest.er1 |
| 15669 | cat conftest.err >&5 |
| 15670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15671 | (exit $ac_status); } >/dev/null; then |
| 15672 | if test -s conftest.err; then |
| 15673 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15674 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15675 | else |
| 15676 | ac_cpp_err= |
| 15677 | fi |
| 15678 | else |
| 15679 | ac_cpp_err=yes |
| 15680 | fi |
| 15681 | if test -z "$ac_cpp_err"; then |
| 15682 | ac_header_preproc=yes |
| 15683 | else |
| 15684 | echo "$as_me: failed program was:" >&5 |
| 15685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15686 | |
| 15687 | ac_header_preproc=no |
| 15688 | fi |
| 15689 | |
| 15690 | rm -f conftest.err conftest.$ac_ext |
| 15691 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15692 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15693 | |
| 15694 | # So? What about this header? |
| 15695 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15696 | yes:no: ) |
| 15697 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15698 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15699 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15700 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15701 | ac_header_preproc=yes |
| 15702 | ;; |
| 15703 | no:yes:* ) |
| 15704 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15705 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15706 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15707 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15708 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15709 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15710 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15711 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15712 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15713 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15714 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15715 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15716 | ( cat <<\_ASBOX |
| 15717 | ## ----------------------------------- ## |
| 15718 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15719 | ## ----------------------------------- ## |
| 15720 | _ASBOX |
| 15721 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15722 | ;; |
| 15723 | esac |
| 15724 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15725 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15726 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15728 | else |
| 15729 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15730 | fi |
| 15731 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15732 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15733 | echo "${ECHO_T}$ac_res" >&6; } |
| 15734 | |
| 15735 | fi |
| 15736 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15737 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15738 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15739 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15740 | |
| 15741 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15742 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15743 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15744 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15745 | |
| 15746 | |
| 15747 | |
| 15748 | |
| 15749 | |
| 15750 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15751 | 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] | 15752 | do |
| 15753 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15754 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15755 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15759 | fi |
| 15760 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15761 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15762 | echo "${ECHO_T}$ac_res" >&6; } |
| 15763 | else |
| 15764 | # Is the header compilable? |
| 15765 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15766 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15767 | cat >conftest.$ac_ext <<_ACEOF |
| 15768 | /* confdefs.h. */ |
| 15769 | _ACEOF |
| 15770 | cat confdefs.h >>conftest.$ac_ext |
| 15771 | cat >>conftest.$ac_ext <<_ACEOF |
| 15772 | /* end confdefs.h. */ |
| 15773 | $ac_includes_default |
| 15774 | #include <$ac_header> |
| 15775 | _ACEOF |
| 15776 | rm -f conftest.$ac_objext |
| 15777 | if { (ac_try="$ac_compile" |
| 15778 | case "(($ac_try" in |
| 15779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15780 | *) ac_try_echo=$ac_try;; |
| 15781 | esac |
| 15782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15783 | (eval "$ac_compile") 2>conftest.er1 |
| 15784 | ac_status=$? |
| 15785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15786 | rm -f conftest.er1 |
| 15787 | cat conftest.err >&5 |
| 15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15789 | (exit $ac_status); } && |
| 15790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15791 | { (case "(($ac_try" in |
| 15792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15793 | *) ac_try_echo=$ac_try;; |
| 15794 | esac |
| 15795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15796 | (eval "$ac_try") 2>&5 |
| 15797 | ac_status=$? |
| 15798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15799 | (exit $ac_status); }; } && |
| 15800 | { ac_try='test -s conftest.$ac_objext' |
| 15801 | { (case "(($ac_try" in |
| 15802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15803 | *) ac_try_echo=$ac_try;; |
| 15804 | esac |
| 15805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15806 | (eval "$ac_try") 2>&5 |
| 15807 | ac_status=$? |
| 15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15809 | (exit $ac_status); }; }; then |
| 15810 | ac_header_compiler=yes |
| 15811 | else |
| 15812 | echo "$as_me: failed program was:" >&5 |
| 15813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15814 | |
| 15815 | ac_header_compiler=no |
| 15816 | fi |
| 15817 | |
| 15818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15819 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15820 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15821 | |
| 15822 | # Is the header present? |
| 15823 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15824 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15825 | cat >conftest.$ac_ext <<_ACEOF |
| 15826 | /* confdefs.h. */ |
| 15827 | _ACEOF |
| 15828 | cat confdefs.h >>conftest.$ac_ext |
| 15829 | cat >>conftest.$ac_ext <<_ACEOF |
| 15830 | /* end confdefs.h. */ |
| 15831 | #include <$ac_header> |
| 15832 | _ACEOF |
| 15833 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15834 | case "(($ac_try" in |
| 15835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15836 | *) ac_try_echo=$ac_try;; |
| 15837 | esac |
| 15838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15839 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15840 | ac_status=$? |
| 15841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15842 | rm -f conftest.er1 |
| 15843 | cat conftest.err >&5 |
| 15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15845 | (exit $ac_status); } >/dev/null; then |
| 15846 | if test -s conftest.err; then |
| 15847 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15848 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15849 | else |
| 15850 | ac_cpp_err= |
| 15851 | fi |
| 15852 | else |
| 15853 | ac_cpp_err=yes |
| 15854 | fi |
| 15855 | if test -z "$ac_cpp_err"; then |
| 15856 | ac_header_preproc=yes |
| 15857 | else |
| 15858 | echo "$as_me: failed program was:" >&5 |
| 15859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15860 | |
| 15861 | ac_header_preproc=no |
| 15862 | fi |
| 15863 | |
| 15864 | rm -f conftest.err conftest.$ac_ext |
| 15865 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15866 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15867 | |
| 15868 | # So? What about this header? |
| 15869 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15870 | yes:no: ) |
| 15871 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15872 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15874 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15875 | ac_header_preproc=yes |
| 15876 | ;; |
| 15877 | no:yes:* ) |
| 15878 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15879 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15880 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15881 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15882 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15883 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15884 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15885 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15887 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15888 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15889 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15890 | ( cat <<\_ASBOX |
| 15891 | ## ----------------------------------- ## |
| 15892 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15893 | ## ----------------------------------- ## |
| 15894 | _ASBOX |
| 15895 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15896 | ;; |
| 15897 | esac |
| 15898 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15900 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15902 | else |
| 15903 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15904 | fi |
| 15905 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15906 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15907 | echo "${ECHO_T}$ac_res" >&6; } |
| 15908 | |
| 15909 | fi |
| 15910 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15911 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15912 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15913 | _ACEOF |
| 15914 | |
| 15915 | fi |
| 15916 | |
| 15917 | done |
| 15918 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15919 | |
| 15920 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15921 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15922 | do |
| 15923 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15925 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15929 | fi |
| 15930 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15931 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15932 | echo "${ECHO_T}$ac_res" >&6; } |
| 15933 | else |
| 15934 | # Is the header compilable? |
| 15935 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15936 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15937 | cat >conftest.$ac_ext <<_ACEOF |
| 15938 | /* confdefs.h. */ |
| 15939 | _ACEOF |
| 15940 | cat confdefs.h >>conftest.$ac_ext |
| 15941 | cat >>conftest.$ac_ext <<_ACEOF |
| 15942 | /* end confdefs.h. */ |
| 15943 | $ac_includes_default |
| 15944 | #include <$ac_header> |
| 15945 | _ACEOF |
| 15946 | rm -f conftest.$ac_objext |
| 15947 | if { (ac_try="$ac_compile" |
| 15948 | case "(($ac_try" in |
| 15949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15950 | *) ac_try_echo=$ac_try;; |
| 15951 | esac |
| 15952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15953 | (eval "$ac_compile") 2>conftest.er1 |
| 15954 | ac_status=$? |
| 15955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15956 | rm -f conftest.er1 |
| 15957 | cat conftest.err >&5 |
| 15958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15959 | (exit $ac_status); } && |
| 15960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15961 | { (case "(($ac_try" in |
| 15962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15963 | *) ac_try_echo=$ac_try;; |
| 15964 | esac |
| 15965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15966 | (eval "$ac_try") 2>&5 |
| 15967 | ac_status=$? |
| 15968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15969 | (exit $ac_status); }; } && |
| 15970 | { ac_try='test -s conftest.$ac_objext' |
| 15971 | { (case "(($ac_try" in |
| 15972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15973 | *) ac_try_echo=$ac_try;; |
| 15974 | esac |
| 15975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15976 | (eval "$ac_try") 2>&5 |
| 15977 | ac_status=$? |
| 15978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15979 | (exit $ac_status); }; }; then |
| 15980 | ac_header_compiler=yes |
| 15981 | else |
| 15982 | echo "$as_me: failed program was:" >&5 |
| 15983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15984 | |
| 15985 | ac_header_compiler=no |
| 15986 | fi |
| 15987 | |
| 15988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15989 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15990 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15991 | |
| 15992 | # Is the header present? |
| 15993 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15994 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15995 | cat >conftest.$ac_ext <<_ACEOF |
| 15996 | /* confdefs.h. */ |
| 15997 | _ACEOF |
| 15998 | cat confdefs.h >>conftest.$ac_ext |
| 15999 | cat >>conftest.$ac_ext <<_ACEOF |
| 16000 | /* end confdefs.h. */ |
| 16001 | #include <$ac_header> |
| 16002 | _ACEOF |
| 16003 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16004 | case "(($ac_try" in |
| 16005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16006 | *) ac_try_echo=$ac_try;; |
| 16007 | esac |
| 16008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16009 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16010 | ac_status=$? |
| 16011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16012 | rm -f conftest.er1 |
| 16013 | cat conftest.err >&5 |
| 16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16015 | (exit $ac_status); } >/dev/null; then |
| 16016 | if test -s conftest.err; then |
| 16017 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16018 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16019 | else |
| 16020 | ac_cpp_err= |
| 16021 | fi |
| 16022 | else |
| 16023 | ac_cpp_err=yes |
| 16024 | fi |
| 16025 | if test -z "$ac_cpp_err"; then |
| 16026 | ac_header_preproc=yes |
| 16027 | else |
| 16028 | echo "$as_me: failed program was:" >&5 |
| 16029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16030 | |
| 16031 | ac_header_preproc=no |
| 16032 | fi |
| 16033 | |
| 16034 | rm -f conftest.err conftest.$ac_ext |
| 16035 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16036 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16037 | |
| 16038 | # So? What about this header? |
| 16039 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16040 | yes:no: ) |
| 16041 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16042 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16044 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16045 | ac_header_preproc=yes |
| 16046 | ;; |
| 16047 | no:yes:* ) |
| 16048 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16049 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16050 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16051 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16052 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16053 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16054 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16055 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16056 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16057 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16058 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16059 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16060 | ( cat <<\_ASBOX |
| 16061 | ## ----------------------------------- ## |
| 16062 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16063 | ## ----------------------------------- ## |
| 16064 | _ASBOX |
| 16065 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16066 | ;; |
| 16067 | esac |
| 16068 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16072 | else |
| 16073 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16074 | fi |
| 16075 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16076 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16077 | echo "${ECHO_T}$ac_res" >&6; } |
| 16078 | |
| 16079 | fi |
| 16080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16081 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16083 | _ACEOF |
| 16084 | |
| 16085 | fi |
| 16086 | |
| 16087 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16088 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16089 | |
| 16090 | |
| 16091 | |
| 16092 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16093 | 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] | 16094 | do |
| 16095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16096 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16097 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16101 | fi |
| 16102 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16103 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16104 | echo "${ECHO_T}$ac_res" >&6; } |
| 16105 | else |
| 16106 | # Is the header compilable? |
| 16107 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16108 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16109 | cat >conftest.$ac_ext <<_ACEOF |
| 16110 | /* confdefs.h. */ |
| 16111 | _ACEOF |
| 16112 | cat confdefs.h >>conftest.$ac_ext |
| 16113 | cat >>conftest.$ac_ext <<_ACEOF |
| 16114 | /* end confdefs.h. */ |
| 16115 | $ac_includes_default |
| 16116 | #include <$ac_header> |
| 16117 | _ACEOF |
| 16118 | rm -f conftest.$ac_objext |
| 16119 | if { (ac_try="$ac_compile" |
| 16120 | case "(($ac_try" in |
| 16121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16122 | *) ac_try_echo=$ac_try;; |
| 16123 | esac |
| 16124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16125 | (eval "$ac_compile") 2>conftest.er1 |
| 16126 | ac_status=$? |
| 16127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16128 | rm -f conftest.er1 |
| 16129 | cat conftest.err >&5 |
| 16130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16131 | (exit $ac_status); } && |
| 16132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16133 | { (case "(($ac_try" in |
| 16134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16135 | *) ac_try_echo=$ac_try;; |
| 16136 | esac |
| 16137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16138 | (eval "$ac_try") 2>&5 |
| 16139 | ac_status=$? |
| 16140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16141 | (exit $ac_status); }; } && |
| 16142 | { ac_try='test -s conftest.$ac_objext' |
| 16143 | { (case "(($ac_try" in |
| 16144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16145 | *) ac_try_echo=$ac_try;; |
| 16146 | esac |
| 16147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16148 | (eval "$ac_try") 2>&5 |
| 16149 | ac_status=$? |
| 16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16151 | (exit $ac_status); }; }; then |
| 16152 | ac_header_compiler=yes |
| 16153 | else |
| 16154 | echo "$as_me: failed program was:" >&5 |
| 16155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16156 | |
| 16157 | ac_header_compiler=no |
| 16158 | fi |
| 16159 | |
| 16160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16161 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16162 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16163 | |
| 16164 | # Is the header present? |
| 16165 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16166 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16167 | cat >conftest.$ac_ext <<_ACEOF |
| 16168 | /* confdefs.h. */ |
| 16169 | _ACEOF |
| 16170 | cat confdefs.h >>conftest.$ac_ext |
| 16171 | cat >>conftest.$ac_ext <<_ACEOF |
| 16172 | /* end confdefs.h. */ |
| 16173 | #include <$ac_header> |
| 16174 | _ACEOF |
| 16175 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16176 | case "(($ac_try" in |
| 16177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16178 | *) ac_try_echo=$ac_try;; |
| 16179 | esac |
| 16180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16181 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16182 | ac_status=$? |
| 16183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16184 | rm -f conftest.er1 |
| 16185 | cat conftest.err >&5 |
| 16186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16187 | (exit $ac_status); } >/dev/null; then |
| 16188 | if test -s conftest.err; then |
| 16189 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16190 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16191 | else |
| 16192 | ac_cpp_err= |
| 16193 | fi |
| 16194 | else |
| 16195 | ac_cpp_err=yes |
| 16196 | fi |
| 16197 | if test -z "$ac_cpp_err"; then |
| 16198 | ac_header_preproc=yes |
| 16199 | else |
| 16200 | echo "$as_me: failed program was:" >&5 |
| 16201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16202 | |
| 16203 | ac_header_preproc=no |
| 16204 | fi |
| 16205 | |
| 16206 | rm -f conftest.err conftest.$ac_ext |
| 16207 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16208 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16209 | |
| 16210 | # So? What about this header? |
| 16211 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16212 | yes:no: ) |
| 16213 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16214 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16215 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16216 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16217 | ac_header_preproc=yes |
| 16218 | ;; |
| 16219 | no:yes:* ) |
| 16220 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16221 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16222 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16223 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16224 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16225 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16226 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16227 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16228 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16229 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16230 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16231 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16232 | ( cat <<\_ASBOX |
| 16233 | ## ----------------------------------- ## |
| 16234 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16235 | ## ----------------------------------- ## |
| 16236 | _ASBOX |
| 16237 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16238 | ;; |
| 16239 | esac |
| 16240 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16242 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16244 | else |
| 16245 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16246 | fi |
| 16247 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16248 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16249 | echo "${ECHO_T}$ac_res" >&6; } |
| 16250 | |
| 16251 | fi |
| 16252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16253 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16254 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16255 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16256 | |
| 16257 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16258 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16259 | done |
| 16260 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16261 | |
| 16262 | |
| 16263 | |
| 16264 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16265 | 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] | 16266 | do |
| 16267 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16268 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16269 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16271 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16273 | fi |
| 16274 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16275 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16276 | echo "${ECHO_T}$ac_res" >&6; } |
| 16277 | else |
| 16278 | # Is the header compilable? |
| 16279 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16280 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16281 | cat >conftest.$ac_ext <<_ACEOF |
| 16282 | /* confdefs.h. */ |
| 16283 | _ACEOF |
| 16284 | cat confdefs.h >>conftest.$ac_ext |
| 16285 | cat >>conftest.$ac_ext <<_ACEOF |
| 16286 | /* end confdefs.h. */ |
| 16287 | $ac_includes_default |
| 16288 | #include <$ac_header> |
| 16289 | _ACEOF |
| 16290 | rm -f conftest.$ac_objext |
| 16291 | if { (ac_try="$ac_compile" |
| 16292 | case "(($ac_try" in |
| 16293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16294 | *) ac_try_echo=$ac_try;; |
| 16295 | esac |
| 16296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16297 | (eval "$ac_compile") 2>conftest.er1 |
| 16298 | ac_status=$? |
| 16299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16300 | rm -f conftest.er1 |
| 16301 | cat conftest.err >&5 |
| 16302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16303 | (exit $ac_status); } && |
| 16304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16305 | { (case "(($ac_try" in |
| 16306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16307 | *) ac_try_echo=$ac_try;; |
| 16308 | esac |
| 16309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16310 | (eval "$ac_try") 2>&5 |
| 16311 | ac_status=$? |
| 16312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16313 | (exit $ac_status); }; } && |
| 16314 | { ac_try='test -s conftest.$ac_objext' |
| 16315 | { (case "(($ac_try" in |
| 16316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16317 | *) ac_try_echo=$ac_try;; |
| 16318 | esac |
| 16319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16320 | (eval "$ac_try") 2>&5 |
| 16321 | ac_status=$? |
| 16322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16323 | (exit $ac_status); }; }; then |
| 16324 | ac_header_compiler=yes |
| 16325 | else |
| 16326 | echo "$as_me: failed program was:" >&5 |
| 16327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16328 | |
| 16329 | ac_header_compiler=no |
| 16330 | fi |
| 16331 | |
| 16332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16333 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16334 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16335 | |
| 16336 | # Is the header present? |
| 16337 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16339 | cat >conftest.$ac_ext <<_ACEOF |
| 16340 | /* confdefs.h. */ |
| 16341 | _ACEOF |
| 16342 | cat confdefs.h >>conftest.$ac_ext |
| 16343 | cat >>conftest.$ac_ext <<_ACEOF |
| 16344 | /* end confdefs.h. */ |
| 16345 | #include <$ac_header> |
| 16346 | _ACEOF |
| 16347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16348 | case "(($ac_try" in |
| 16349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16350 | *) ac_try_echo=$ac_try;; |
| 16351 | esac |
| 16352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16354 | ac_status=$? |
| 16355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16356 | rm -f conftest.er1 |
| 16357 | cat conftest.err >&5 |
| 16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16359 | (exit $ac_status); } >/dev/null; then |
| 16360 | if test -s conftest.err; then |
| 16361 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16362 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16363 | else |
| 16364 | ac_cpp_err= |
| 16365 | fi |
| 16366 | else |
| 16367 | ac_cpp_err=yes |
| 16368 | fi |
| 16369 | if test -z "$ac_cpp_err"; then |
| 16370 | ac_header_preproc=yes |
| 16371 | else |
| 16372 | echo "$as_me: failed program was:" >&5 |
| 16373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16374 | |
| 16375 | ac_header_preproc=no |
| 16376 | fi |
| 16377 | |
| 16378 | rm -f conftest.err conftest.$ac_ext |
| 16379 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16380 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16381 | |
| 16382 | # So? What about this header? |
| 16383 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16384 | yes:no: ) |
| 16385 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16386 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16388 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16389 | ac_header_preproc=yes |
| 16390 | ;; |
| 16391 | no:yes:* ) |
| 16392 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16393 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16394 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16395 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16396 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16397 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16398 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16399 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16401 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16402 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16403 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16404 | ( cat <<\_ASBOX |
| 16405 | ## ----------------------------------- ## |
| 16406 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16407 | ## ----------------------------------- ## |
| 16408 | _ASBOX |
| 16409 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16410 | ;; |
| 16411 | esac |
| 16412 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16414 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16416 | else |
| 16417 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16418 | fi |
| 16419 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16420 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16421 | echo "${ECHO_T}$ac_res" >&6; } |
| 16422 | |
| 16423 | fi |
| 16424 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16425 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16426 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16427 | _ACEOF |
| 16428 | |
| 16429 | fi |
| 16430 | |
| 16431 | done |
| 16432 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16433 | |
| 16434 | for ac_header in valgrind/valgrind.h |
| 16435 | do |
| 16436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16437 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16438 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16440 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16442 | fi |
| 16443 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16445 | echo "${ECHO_T}$ac_res" >&6; } |
| 16446 | else |
| 16447 | # Is the header compilable? |
| 16448 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16449 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16450 | cat >conftest.$ac_ext <<_ACEOF |
| 16451 | /* confdefs.h. */ |
| 16452 | _ACEOF |
| 16453 | cat confdefs.h >>conftest.$ac_ext |
| 16454 | cat >>conftest.$ac_ext <<_ACEOF |
| 16455 | /* end confdefs.h. */ |
| 16456 | $ac_includes_default |
| 16457 | #include <$ac_header> |
| 16458 | _ACEOF |
| 16459 | rm -f conftest.$ac_objext |
| 16460 | if { (ac_try="$ac_compile" |
| 16461 | case "(($ac_try" in |
| 16462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16463 | *) ac_try_echo=$ac_try;; |
| 16464 | esac |
| 16465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16466 | (eval "$ac_compile") 2>conftest.er1 |
| 16467 | ac_status=$? |
| 16468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16469 | rm -f conftest.er1 |
| 16470 | cat conftest.err >&5 |
| 16471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16472 | (exit $ac_status); } && |
| 16473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16474 | { (case "(($ac_try" in |
| 16475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16476 | *) ac_try_echo=$ac_try;; |
| 16477 | esac |
| 16478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16479 | (eval "$ac_try") 2>&5 |
| 16480 | ac_status=$? |
| 16481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16482 | (exit $ac_status); }; } && |
| 16483 | { ac_try='test -s conftest.$ac_objext' |
| 16484 | { (case "(($ac_try" in |
| 16485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16486 | *) ac_try_echo=$ac_try;; |
| 16487 | esac |
| 16488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16489 | (eval "$ac_try") 2>&5 |
| 16490 | ac_status=$? |
| 16491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16492 | (exit $ac_status); }; }; then |
| 16493 | ac_header_compiler=yes |
| 16494 | else |
| 16495 | echo "$as_me: failed program was:" >&5 |
| 16496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16497 | |
| 16498 | ac_header_compiler=no |
| 16499 | fi |
| 16500 | |
| 16501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16502 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16503 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16504 | |
| 16505 | # Is the header present? |
| 16506 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16507 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16508 | cat >conftest.$ac_ext <<_ACEOF |
| 16509 | /* confdefs.h. */ |
| 16510 | _ACEOF |
| 16511 | cat confdefs.h >>conftest.$ac_ext |
| 16512 | cat >>conftest.$ac_ext <<_ACEOF |
| 16513 | /* end confdefs.h. */ |
| 16514 | #include <$ac_header> |
| 16515 | _ACEOF |
| 16516 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16517 | case "(($ac_try" in |
| 16518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16519 | *) ac_try_echo=$ac_try;; |
| 16520 | esac |
| 16521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16522 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16523 | ac_status=$? |
| 16524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16525 | rm -f conftest.er1 |
| 16526 | cat conftest.err >&5 |
| 16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16528 | (exit $ac_status); } >/dev/null; then |
| 16529 | if test -s conftest.err; then |
| 16530 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16531 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16532 | else |
| 16533 | ac_cpp_err= |
| 16534 | fi |
| 16535 | else |
| 16536 | ac_cpp_err=yes |
| 16537 | fi |
| 16538 | if test -z "$ac_cpp_err"; then |
| 16539 | ac_header_preproc=yes |
| 16540 | else |
| 16541 | echo "$as_me: failed program was:" >&5 |
| 16542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16543 | |
| 16544 | ac_header_preproc=no |
| 16545 | fi |
| 16546 | |
| 16547 | rm -f conftest.err conftest.$ac_ext |
| 16548 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16549 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16550 | |
| 16551 | # So? What about this header? |
| 16552 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16553 | yes:no: ) |
| 16554 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16555 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16557 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16558 | ac_header_preproc=yes |
| 16559 | ;; |
| 16560 | no:yes:* ) |
| 16561 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16562 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16563 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16564 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16565 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16566 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16567 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16568 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16569 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16570 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16571 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16572 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16573 | ( cat <<\_ASBOX |
| 16574 | ## ----------------------------------- ## |
| 16575 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16576 | ## ----------------------------------- ## |
| 16577 | _ASBOX |
| 16578 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16579 | ;; |
| 16580 | esac |
| 16581 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16583 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16585 | else |
| 16586 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16587 | fi |
| 16588 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16589 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16590 | echo "${ECHO_T}$ac_res" >&6; } |
| 16591 | |
| 16592 | fi |
| 16593 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16594 | cat >>confdefs.h <<_ACEOF |
| 16595 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16596 | _ACEOF |
| 16597 | |
| 16598 | fi |
| 16599 | |
| 16600 | done |
| 16601 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16602 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16603 | |
| 16604 | for ac_header in pthread.h |
| 16605 | do |
| 16606 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16607 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16608 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16610 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16612 | fi |
| 16613 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16614 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16615 | echo "${ECHO_T}$ac_res" >&6; } |
| 16616 | else |
| 16617 | # Is the header compilable? |
| 16618 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16619 | echo $ECHO_N "checking $ac_header usability... $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 | $ac_includes_default |
| 16627 | #include <$ac_header> |
| 16628 | _ACEOF |
| 16629 | rm -f conftest.$ac_objext |
| 16630 | if { (ac_try="$ac_compile" |
| 16631 | case "(($ac_try" in |
| 16632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16633 | *) ac_try_echo=$ac_try;; |
| 16634 | esac |
| 16635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16636 | (eval "$ac_compile") 2>conftest.er1 |
| 16637 | ac_status=$? |
| 16638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16639 | rm -f conftest.er1 |
| 16640 | cat conftest.err >&5 |
| 16641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16642 | (exit $ac_status); } && |
| 16643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16644 | { (case "(($ac_try" in |
| 16645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16646 | *) ac_try_echo=$ac_try;; |
| 16647 | esac |
| 16648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16649 | (eval "$ac_try") 2>&5 |
| 16650 | ac_status=$? |
| 16651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16652 | (exit $ac_status); }; } && |
| 16653 | { ac_try='test -s conftest.$ac_objext' |
| 16654 | { (case "(($ac_try" in |
| 16655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16656 | *) ac_try_echo=$ac_try;; |
| 16657 | esac |
| 16658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16659 | (eval "$ac_try") 2>&5 |
| 16660 | ac_status=$? |
| 16661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16662 | (exit $ac_status); }; }; then |
| 16663 | ac_header_compiler=yes |
| 16664 | else |
| 16665 | echo "$as_me: failed program was:" >&5 |
| 16666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16667 | |
| 16668 | ac_header_compiler=no |
| 16669 | fi |
| 16670 | |
| 16671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16672 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16673 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16674 | |
| 16675 | # Is the header present? |
| 16676 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16677 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16678 | cat >conftest.$ac_ext <<_ACEOF |
| 16679 | /* confdefs.h. */ |
| 16680 | _ACEOF |
| 16681 | cat confdefs.h >>conftest.$ac_ext |
| 16682 | cat >>conftest.$ac_ext <<_ACEOF |
| 16683 | /* end confdefs.h. */ |
| 16684 | #include <$ac_header> |
| 16685 | _ACEOF |
| 16686 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16687 | case "(($ac_try" in |
| 16688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16689 | *) ac_try_echo=$ac_try;; |
| 16690 | esac |
| 16691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16692 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16693 | ac_status=$? |
| 16694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16695 | rm -f conftest.er1 |
| 16696 | cat conftest.err >&5 |
| 16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16698 | (exit $ac_status); } >/dev/null; then |
| 16699 | if test -s conftest.err; then |
| 16700 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16701 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16702 | else |
| 16703 | ac_cpp_err= |
| 16704 | fi |
| 16705 | else |
| 16706 | ac_cpp_err=yes |
| 16707 | fi |
| 16708 | if test -z "$ac_cpp_err"; then |
| 16709 | ac_header_preproc=yes |
| 16710 | else |
| 16711 | echo "$as_me: failed program was:" >&5 |
| 16712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16713 | |
| 16714 | ac_header_preproc=no |
| 16715 | fi |
| 16716 | |
| 16717 | rm -f conftest.err conftest.$ac_ext |
| 16718 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16719 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16720 | |
| 16721 | # So? What about this header? |
| 16722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16723 | yes:no: ) |
| 16724 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16725 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16726 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16727 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16728 | ac_header_preproc=yes |
| 16729 | ;; |
| 16730 | no:yes:* ) |
| 16731 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16732 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16733 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16734 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16735 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16736 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16737 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16738 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16739 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16740 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16741 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16742 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16743 | ( cat <<\_ASBOX |
| 16744 | ## ----------------------------------- ## |
| 16745 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16746 | ## ----------------------------------- ## |
| 16747 | _ASBOX |
| 16748 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16749 | ;; |
| 16750 | esac |
| 16751 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16753 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16755 | else |
| 16756 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16757 | fi |
| 16758 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16759 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16760 | echo "${ECHO_T}$ac_res" >&6; } |
| 16761 | |
| 16762 | fi |
| 16763 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16764 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16765 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16766 | _ACEOF |
| 16767 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16768 | |
| 16769 | else |
| 16770 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16771 | |
| 16772 | fi |
| 16773 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16774 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16775 | |
| 16776 | else |
| 16777 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16778 | |
| 16779 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16780 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16781 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16782 | |
| 16783 | |
| 16784 | for ac_header in ffi.h ffi/ffi.h |
| 16785 | do |
| 16786 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16788 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16789 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16790 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16792 | fi |
| 16793 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16794 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16795 | echo "${ECHO_T}$ac_res" >&6; } |
| 16796 | else |
| 16797 | # Is the header compilable? |
| 16798 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16799 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16800 | cat >conftest.$ac_ext <<_ACEOF |
| 16801 | /* confdefs.h. */ |
| 16802 | _ACEOF |
| 16803 | cat confdefs.h >>conftest.$ac_ext |
| 16804 | cat >>conftest.$ac_ext <<_ACEOF |
| 16805 | /* end confdefs.h. */ |
| 16806 | $ac_includes_default |
| 16807 | #include <$ac_header> |
| 16808 | _ACEOF |
| 16809 | rm -f conftest.$ac_objext |
| 16810 | if { (ac_try="$ac_compile" |
| 16811 | case "(($ac_try" in |
| 16812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16813 | *) ac_try_echo=$ac_try;; |
| 16814 | esac |
| 16815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16816 | (eval "$ac_compile") 2>conftest.er1 |
| 16817 | ac_status=$? |
| 16818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16819 | rm -f conftest.er1 |
| 16820 | cat conftest.err >&5 |
| 16821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16822 | (exit $ac_status); } && |
| 16823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 16830 | ac_status=$? |
| 16831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16832 | (exit $ac_status); }; } && |
| 16833 | { ac_try='test -s conftest.$ac_objext' |
| 16834 | { (case "(($ac_try" in |
| 16835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16836 | *) ac_try_echo=$ac_try;; |
| 16837 | esac |
| 16838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16839 | (eval "$ac_try") 2>&5 |
| 16840 | ac_status=$? |
| 16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16842 | (exit $ac_status); }; }; then |
| 16843 | ac_header_compiler=yes |
| 16844 | else |
| 16845 | echo "$as_me: failed program was:" >&5 |
| 16846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16847 | |
| 16848 | ac_header_compiler=no |
| 16849 | fi |
| 16850 | |
| 16851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16852 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16853 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16854 | |
| 16855 | # Is the header present? |
| 16856 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16857 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16858 | cat >conftest.$ac_ext <<_ACEOF |
| 16859 | /* confdefs.h. */ |
| 16860 | _ACEOF |
| 16861 | cat confdefs.h >>conftest.$ac_ext |
| 16862 | cat >>conftest.$ac_ext <<_ACEOF |
| 16863 | /* end confdefs.h. */ |
| 16864 | #include <$ac_header> |
| 16865 | _ACEOF |
| 16866 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16867 | case "(($ac_try" in |
| 16868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16869 | *) ac_try_echo=$ac_try;; |
| 16870 | esac |
| 16871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16872 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16873 | ac_status=$? |
| 16874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16875 | rm -f conftest.er1 |
| 16876 | cat conftest.err >&5 |
| 16877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16878 | (exit $ac_status); } >/dev/null; then |
| 16879 | if test -s conftest.err; then |
| 16880 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16881 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16882 | else |
| 16883 | ac_cpp_err= |
| 16884 | fi |
| 16885 | else |
| 16886 | ac_cpp_err=yes |
| 16887 | fi |
| 16888 | if test -z "$ac_cpp_err"; then |
| 16889 | ac_header_preproc=yes |
| 16890 | else |
| 16891 | echo "$as_me: failed program was:" >&5 |
| 16892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16893 | |
| 16894 | ac_header_preproc=no |
| 16895 | fi |
| 16896 | |
| 16897 | rm -f conftest.err conftest.$ac_ext |
| 16898 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16899 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16900 | |
| 16901 | # So? What about this header? |
| 16902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16903 | yes:no: ) |
| 16904 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16905 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16907 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16908 | ac_header_preproc=yes |
| 16909 | ;; |
| 16910 | no:yes:* ) |
| 16911 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16912 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16913 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16914 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16915 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16916 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16917 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16918 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16921 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16922 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16923 | ( cat <<\_ASBOX |
| 16924 | ## ----------------------------------- ## |
| 16925 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16926 | ## ----------------------------------- ## |
| 16927 | _ASBOX |
| 16928 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16929 | ;; |
| 16930 | esac |
| 16931 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16933 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16935 | else |
| 16936 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16937 | fi |
| 16938 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16939 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16940 | echo "${ECHO_T}$ac_res" >&6; } |
| 16941 | |
| 16942 | fi |
| 16943 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16944 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16945 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16946 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16947 | |
| 16948 | fi |
| 16949 | |
| 16950 | done |
| 16951 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16952 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16953 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16954 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16955 | for ac_header in CrashReporterClient.h |
| 16956 | do |
| 16957 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16958 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16959 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16961 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16963 | fi |
| 16964 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16965 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16966 | echo "${ECHO_T}$ac_res" >&6; } |
| 16967 | else |
| 16968 | # Is the header compilable? |
| 16969 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16970 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16971 | cat >conftest.$ac_ext <<_ACEOF |
| 16972 | /* confdefs.h. */ |
| 16973 | _ACEOF |
| 16974 | cat confdefs.h >>conftest.$ac_ext |
| 16975 | cat >>conftest.$ac_ext <<_ACEOF |
| 16976 | /* end confdefs.h. */ |
| 16977 | $ac_includes_default |
| 16978 | #include <$ac_header> |
| 16979 | _ACEOF |
| 16980 | rm -f conftest.$ac_objext |
| 16981 | if { (ac_try="$ac_compile" |
| 16982 | case "(($ac_try" in |
| 16983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16984 | *) ac_try_echo=$ac_try;; |
| 16985 | esac |
| 16986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16987 | (eval "$ac_compile") 2>conftest.er1 |
| 16988 | ac_status=$? |
| 16989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16990 | rm -f conftest.er1 |
| 16991 | cat conftest.err >&5 |
| 16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16993 | (exit $ac_status); } && |
| 16994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16995 | { (case "(($ac_try" in |
| 16996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16997 | *) ac_try_echo=$ac_try;; |
| 16998 | esac |
| 16999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17000 | (eval "$ac_try") 2>&5 |
| 17001 | ac_status=$? |
| 17002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17003 | (exit $ac_status); }; } && |
| 17004 | { ac_try='test -s conftest.$ac_objext' |
| 17005 | { (case "(($ac_try" in |
| 17006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17007 | *) ac_try_echo=$ac_try;; |
| 17008 | esac |
| 17009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17010 | (eval "$ac_try") 2>&5 |
| 17011 | ac_status=$? |
| 17012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17013 | (exit $ac_status); }; }; then |
| 17014 | ac_header_compiler=yes |
| 17015 | else |
| 17016 | echo "$as_me: failed program was:" >&5 |
| 17017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17018 | |
| 17019 | ac_header_compiler=no |
| 17020 | fi |
| 17021 | |
| 17022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17023 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17024 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17025 | |
| 17026 | # Is the header present? |
| 17027 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17028 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17029 | cat >conftest.$ac_ext <<_ACEOF |
| 17030 | /* confdefs.h. */ |
| 17031 | _ACEOF |
| 17032 | cat confdefs.h >>conftest.$ac_ext |
| 17033 | cat >>conftest.$ac_ext <<_ACEOF |
| 17034 | /* end confdefs.h. */ |
| 17035 | #include <$ac_header> |
| 17036 | _ACEOF |
| 17037 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17038 | case "(($ac_try" in |
| 17039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17040 | *) ac_try_echo=$ac_try;; |
| 17041 | esac |
| 17042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17043 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17044 | ac_status=$? |
| 17045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17046 | rm -f conftest.er1 |
| 17047 | cat conftest.err >&5 |
| 17048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17049 | (exit $ac_status); } >/dev/null; then |
| 17050 | if test -s conftest.err; then |
| 17051 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17052 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17053 | else |
| 17054 | ac_cpp_err= |
| 17055 | fi |
| 17056 | else |
| 17057 | ac_cpp_err=yes |
| 17058 | fi |
| 17059 | if test -z "$ac_cpp_err"; then |
| 17060 | ac_header_preproc=yes |
| 17061 | else |
| 17062 | echo "$as_me: failed program was:" >&5 |
| 17063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17064 | |
| 17065 | ac_header_preproc=no |
| 17066 | fi |
| 17067 | |
| 17068 | rm -f conftest.err conftest.$ac_ext |
| 17069 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17070 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17071 | |
| 17072 | # So? What about this header? |
| 17073 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17074 | yes:no: ) |
| 17075 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17076 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17077 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17078 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17079 | ac_header_preproc=yes |
| 17080 | ;; |
| 17081 | no:yes:* ) |
| 17082 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17083 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17084 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17085 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17086 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17087 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17088 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17089 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17090 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17091 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17092 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17093 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17094 | ( cat <<\_ASBOX |
| 17095 | ## ----------------------------------- ## |
| 17096 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17097 | ## ----------------------------------- ## |
| 17098 | _ASBOX |
| 17099 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17100 | ;; |
| 17101 | esac |
| 17102 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17104 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17106 | else |
| 17107 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17108 | fi |
| 17109 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17110 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17111 | echo "${ECHO_T}$ac_res" >&6; } |
| 17112 | |
| 17113 | fi |
| 17114 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17115 | cat >>confdefs.h <<_ACEOF |
| 17116 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17117 | _ACEOF |
| 17118 | |
| 17119 | fi |
| 17120 | |
| 17121 | done |
| 17122 | |
| 17123 | |
| 17124 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17125 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17126 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17127 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 17128 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 17129 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 17130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17131 | else |
| 17132 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17133 | ac_ext=cpp |
| 17134 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17135 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17136 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17137 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17138 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17139 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17140 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17141 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17142 | ac_cv_huge_val_sanity=yes |
| 17143 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17144 | cat >conftest.$ac_ext <<_ACEOF |
| 17145 | /* confdefs.h. */ |
| 17146 | _ACEOF |
| 17147 | cat confdefs.h >>conftest.$ac_ext |
| 17148 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17149 | /* end confdefs.h. */ |
| 17150 | #include <math.h> |
| 17151 | int |
| 17152 | main () |
| 17153 | { |
| 17154 | double x = HUGE_VAL; return x != x; |
| 17155 | ; |
| 17156 | return 0; |
| 17157 | } |
| 17158 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17159 | rm -f conftest$ac_exeext |
| 17160 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
| 17167 | ac_status=$? |
| 17168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17169 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17170 | { (case "(($ac_try" in |
| 17171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17172 | *) ac_try_echo=$ac_try;; |
| 17173 | esac |
| 17174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17175 | (eval "$ac_try") 2>&5 |
| 17176 | ac_status=$? |
| 17177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17178 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17179 | ac_cv_huge_val_sanity=yes |
| 17180 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17181 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17182 | echo "$as_me: failed program was:" >&5 |
| 17183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17184 | |
| 17185 | ( exit $ac_status ) |
| 17186 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17187 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17188 | 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] | 17189 | fi |
| 17190 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17191 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17192 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17193 | ac_ext=c |
| 17194 | ac_cpp='$CPP $CPPFLAGS' |
| 17195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17198 | |
| 17199 | |
| 17200 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17201 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 17202 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17203 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 17204 | |
| 17205 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17206 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17207 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 17208 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17210 | else |
| 17211 | cat >conftest.$ac_ext <<_ACEOF |
| 17212 | /* confdefs.h. */ |
| 17213 | _ACEOF |
| 17214 | cat confdefs.h >>conftest.$ac_ext |
| 17215 | cat >>conftest.$ac_ext <<_ACEOF |
| 17216 | /* end confdefs.h. */ |
| 17217 | $ac_includes_default |
| 17218 | typedef pid_t ac__type_new_; |
| 17219 | int |
| 17220 | main () |
| 17221 | { |
| 17222 | if ((ac__type_new_ *) 0) |
| 17223 | return 0; |
| 17224 | if (sizeof (ac__type_new_)) |
| 17225 | return 0; |
| 17226 | ; |
| 17227 | return 0; |
| 17228 | } |
| 17229 | _ACEOF |
| 17230 | rm -f conftest.$ac_objext |
| 17231 | if { (ac_try="$ac_compile" |
| 17232 | case "(($ac_try" in |
| 17233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17234 | *) ac_try_echo=$ac_try;; |
| 17235 | esac |
| 17236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17237 | (eval "$ac_compile") 2>conftest.er1 |
| 17238 | ac_status=$? |
| 17239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17240 | rm -f conftest.er1 |
| 17241 | cat conftest.err >&5 |
| 17242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17243 | (exit $ac_status); } && |
| 17244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17245 | { (case "(($ac_try" in |
| 17246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17247 | *) ac_try_echo=$ac_try;; |
| 17248 | esac |
| 17249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17250 | (eval "$ac_try") 2>&5 |
| 17251 | ac_status=$? |
| 17252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17253 | (exit $ac_status); }; } && |
| 17254 | { ac_try='test -s conftest.$ac_objext' |
| 17255 | { (case "(($ac_try" in |
| 17256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17257 | *) ac_try_echo=$ac_try;; |
| 17258 | esac |
| 17259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17260 | (eval "$ac_try") 2>&5 |
| 17261 | ac_status=$? |
| 17262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17263 | (exit $ac_status); }; }; then |
| 17264 | ac_cv_type_pid_t=yes |
| 17265 | else |
| 17266 | echo "$as_me: failed program was:" >&5 |
| 17267 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17268 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17269 | ac_cv_type_pid_t=no |
| 17270 | fi |
| 17271 | |
| 17272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17273 | fi |
| 17274 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17275 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 17276 | if test $ac_cv_type_pid_t = yes; then |
| 17277 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17278 | else |
| 17279 | |
| 17280 | cat >>confdefs.h <<_ACEOF |
| 17281 | #define pid_t int |
| 17282 | _ACEOF |
| 17283 | |
| 17284 | fi |
| 17285 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17286 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17287 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 17288 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17290 | else |
| 17291 | cat >conftest.$ac_ext <<_ACEOF |
| 17292 | /* confdefs.h. */ |
| 17293 | _ACEOF |
| 17294 | cat confdefs.h >>conftest.$ac_ext |
| 17295 | cat >>conftest.$ac_ext <<_ACEOF |
| 17296 | /* end confdefs.h. */ |
| 17297 | $ac_includes_default |
| 17298 | typedef size_t ac__type_new_; |
| 17299 | int |
| 17300 | main () |
| 17301 | { |
| 17302 | if ((ac__type_new_ *) 0) |
| 17303 | return 0; |
| 17304 | if (sizeof (ac__type_new_)) |
| 17305 | return 0; |
| 17306 | ; |
| 17307 | return 0; |
| 17308 | } |
| 17309 | _ACEOF |
| 17310 | rm -f conftest.$ac_objext |
| 17311 | if { (ac_try="$ac_compile" |
| 17312 | case "(($ac_try" in |
| 17313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17314 | *) ac_try_echo=$ac_try;; |
| 17315 | esac |
| 17316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17317 | (eval "$ac_compile") 2>conftest.er1 |
| 17318 | ac_status=$? |
| 17319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17320 | rm -f conftest.er1 |
| 17321 | cat conftest.err >&5 |
| 17322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17323 | (exit $ac_status); } && |
| 17324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17325 | { (case "(($ac_try" in |
| 17326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17327 | *) ac_try_echo=$ac_try;; |
| 17328 | esac |
| 17329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17330 | (eval "$ac_try") 2>&5 |
| 17331 | ac_status=$? |
| 17332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17333 | (exit $ac_status); }; } && |
| 17334 | { ac_try='test -s conftest.$ac_objext' |
| 17335 | { (case "(($ac_try" in |
| 17336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17337 | *) ac_try_echo=$ac_try;; |
| 17338 | esac |
| 17339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17340 | (eval "$ac_try") 2>&5 |
| 17341 | ac_status=$? |
| 17342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17343 | (exit $ac_status); }; }; then |
| 17344 | ac_cv_type_size_t=yes |
| 17345 | else |
| 17346 | echo "$as_me: failed program was:" >&5 |
| 17347 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17348 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17349 | ac_cv_type_size_t=no |
| 17350 | fi |
| 17351 | |
| 17352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17353 | fi |
| 17354 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17355 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 17356 | if test $ac_cv_type_size_t = yes; then |
| 17357 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17358 | else |
| 17359 | |
| 17360 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17361 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17362 | _ACEOF |
| 17363 | |
| 17364 | fi |
| 17365 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17366 | |
| 17367 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17368 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17369 | _ACEOF |
| 17370 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17371 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17372 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 17373 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17375 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17376 | cat >conftest.$ac_ext <<_ACEOF |
| 17377 | /* confdefs.h. */ |
| 17378 | _ACEOF |
| 17379 | cat confdefs.h >>conftest.$ac_ext |
| 17380 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17381 | /* end confdefs.h. */ |
| 17382 | #include <sys/types.h> |
| 17383 | #include <time.h> |
| 17384 | |
| 17385 | int |
| 17386 | main () |
| 17387 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17388 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17389 | ; |
| 17390 | return 0; |
| 17391 | } |
| 17392 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17393 | rm -f conftest.$ac_objext |
| 17394 | if { (ac_try="$ac_compile" |
| 17395 | case "(($ac_try" in |
| 17396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17397 | *) ac_try_echo=$ac_try;; |
| 17398 | esac |
| 17399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17400 | (eval "$ac_compile") 2>conftest.er1 |
| 17401 | ac_status=$? |
| 17402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17403 | rm -f conftest.er1 |
| 17404 | cat conftest.err >&5 |
| 17405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17406 | (exit $ac_status); } && |
| 17407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17408 | { (case "(($ac_try" in |
| 17409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17410 | *) ac_try_echo=$ac_try;; |
| 17411 | esac |
| 17412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17413 | (eval "$ac_try") 2>&5 |
| 17414 | ac_status=$? |
| 17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17416 | (exit $ac_status); }; } && |
| 17417 | { ac_try='test -s conftest.$ac_objext' |
| 17418 | { (case "(($ac_try" in |
| 17419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17420 | *) ac_try_echo=$ac_try;; |
| 17421 | esac |
| 17422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17423 | (eval "$ac_try") 2>&5 |
| 17424 | ac_status=$? |
| 17425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17426 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17427 | ac_cv_struct_tm=time.h |
| 17428 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17429 | echo "$as_me: failed program was:" >&5 |
| 17430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17431 | |
| 17432 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17433 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17436 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17437 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17438 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17439 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17440 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17441 | cat >>confdefs.h <<\_ACEOF |
| 17442 | #define TM_IN_SYS_TIME 1 |
| 17443 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17444 | |
| 17445 | fi |
| 17446 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17447 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17448 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17449 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17451 | else |
| 17452 | cat >conftest.$ac_ext <<_ACEOF |
| 17453 | /* confdefs.h. */ |
| 17454 | _ACEOF |
| 17455 | cat confdefs.h >>conftest.$ac_ext |
| 17456 | cat >>conftest.$ac_ext <<_ACEOF |
| 17457 | /* end confdefs.h. */ |
| 17458 | $ac_includes_default |
| 17459 | typedef int64_t ac__type_new_; |
| 17460 | int |
| 17461 | main () |
| 17462 | { |
| 17463 | if ((ac__type_new_ *) 0) |
| 17464 | return 0; |
| 17465 | if (sizeof (ac__type_new_)) |
| 17466 | return 0; |
| 17467 | ; |
| 17468 | return 0; |
| 17469 | } |
| 17470 | _ACEOF |
| 17471 | rm -f conftest.$ac_objext |
| 17472 | if { (ac_try="$ac_compile" |
| 17473 | case "(($ac_try" in |
| 17474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17475 | *) ac_try_echo=$ac_try;; |
| 17476 | esac |
| 17477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17478 | (eval "$ac_compile") 2>conftest.er1 |
| 17479 | ac_status=$? |
| 17480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17481 | rm -f conftest.er1 |
| 17482 | cat conftest.err >&5 |
| 17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17484 | (exit $ac_status); } && |
| 17485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17486 | { (case "(($ac_try" in |
| 17487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17488 | *) ac_try_echo=$ac_try;; |
| 17489 | esac |
| 17490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17491 | (eval "$ac_try") 2>&5 |
| 17492 | ac_status=$? |
| 17493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17494 | (exit $ac_status); }; } && |
| 17495 | { ac_try='test -s conftest.$ac_objext' |
| 17496 | { (case "(($ac_try" in |
| 17497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17498 | *) ac_try_echo=$ac_try;; |
| 17499 | esac |
| 17500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17501 | (eval "$ac_try") 2>&5 |
| 17502 | ac_status=$? |
| 17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17504 | (exit $ac_status); }; }; then |
| 17505 | ac_cv_type_int64_t=yes |
| 17506 | else |
| 17507 | echo "$as_me: failed program was:" >&5 |
| 17508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17509 | |
| 17510 | ac_cv_type_int64_t=no |
| 17511 | fi |
| 17512 | |
| 17513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17514 | fi |
| 17515 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17516 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17517 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17518 | |
| 17519 | cat >>confdefs.h <<_ACEOF |
| 17520 | #define HAVE_INT64_T 1 |
| 17521 | _ACEOF |
| 17522 | |
| 17523 | |
| 17524 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17525 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17526 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17527 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17528 | fi |
| 17529 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17530 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17531 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17532 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17534 | else |
| 17535 | cat >conftest.$ac_ext <<_ACEOF |
| 17536 | /* confdefs.h. */ |
| 17537 | _ACEOF |
| 17538 | cat confdefs.h >>conftest.$ac_ext |
| 17539 | cat >>conftest.$ac_ext <<_ACEOF |
| 17540 | /* end confdefs.h. */ |
| 17541 | $ac_includes_default |
| 17542 | typedef uint64_t ac__type_new_; |
| 17543 | int |
| 17544 | main () |
| 17545 | { |
| 17546 | if ((ac__type_new_ *) 0) |
| 17547 | return 0; |
| 17548 | if (sizeof (ac__type_new_)) |
| 17549 | return 0; |
| 17550 | ; |
| 17551 | return 0; |
| 17552 | } |
| 17553 | _ACEOF |
| 17554 | rm -f conftest.$ac_objext |
| 17555 | if { (ac_try="$ac_compile" |
| 17556 | case "(($ac_try" in |
| 17557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17558 | *) ac_try_echo=$ac_try;; |
| 17559 | esac |
| 17560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17561 | (eval "$ac_compile") 2>conftest.er1 |
| 17562 | ac_status=$? |
| 17563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17564 | rm -f conftest.er1 |
| 17565 | cat conftest.err >&5 |
| 17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17567 | (exit $ac_status); } && |
| 17568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17569 | { (case "(($ac_try" in |
| 17570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17571 | *) ac_try_echo=$ac_try;; |
| 17572 | esac |
| 17573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17574 | (eval "$ac_try") 2>&5 |
| 17575 | ac_status=$? |
| 17576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17577 | (exit $ac_status); }; } && |
| 17578 | { ac_try='test -s conftest.$ac_objext' |
| 17579 | { (case "(($ac_try" in |
| 17580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17581 | *) ac_try_echo=$ac_try;; |
| 17582 | esac |
| 17583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17584 | (eval "$ac_try") 2>&5 |
| 17585 | ac_status=$? |
| 17586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17587 | (exit $ac_status); }; }; then |
| 17588 | ac_cv_type_uint64_t=yes |
| 17589 | else |
| 17590 | echo "$as_me: failed program was:" >&5 |
| 17591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17592 | |
| 17593 | ac_cv_type_uint64_t=no |
| 17594 | fi |
| 17595 | |
| 17596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17597 | fi |
| 17598 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 17599 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 17600 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17601 | |
| 17602 | cat >>confdefs.h <<_ACEOF |
| 17603 | #define HAVE_UINT64_T 1 |
| 17604 | _ACEOF |
| 17605 | |
| 17606 | |
| 17607 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17608 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17609 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 17610 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17612 | else |
| 17613 | cat >conftest.$ac_ext <<_ACEOF |
| 17614 | /* confdefs.h. */ |
| 17615 | _ACEOF |
| 17616 | cat confdefs.h >>conftest.$ac_ext |
| 17617 | cat >>conftest.$ac_ext <<_ACEOF |
| 17618 | /* end confdefs.h. */ |
| 17619 | $ac_includes_default |
| 17620 | typedef u_int64_t ac__type_new_; |
| 17621 | int |
| 17622 | main () |
| 17623 | { |
| 17624 | if ((ac__type_new_ *) 0) |
| 17625 | return 0; |
| 17626 | if (sizeof (ac__type_new_)) |
| 17627 | return 0; |
| 17628 | ; |
| 17629 | return 0; |
| 17630 | } |
| 17631 | _ACEOF |
| 17632 | rm -f conftest.$ac_objext |
| 17633 | if { (ac_try="$ac_compile" |
| 17634 | case "(($ac_try" in |
| 17635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17636 | *) ac_try_echo=$ac_try;; |
| 17637 | esac |
| 17638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17639 | (eval "$ac_compile") 2>conftest.er1 |
| 17640 | ac_status=$? |
| 17641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17642 | rm -f conftest.er1 |
| 17643 | cat conftest.err >&5 |
| 17644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17645 | (exit $ac_status); } && |
| 17646 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17647 | { (case "(($ac_try" in |
| 17648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17649 | *) ac_try_echo=$ac_try;; |
| 17650 | esac |
| 17651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17652 | (eval "$ac_try") 2>&5 |
| 17653 | ac_status=$? |
| 17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17655 | (exit $ac_status); }; } && |
| 17656 | { ac_try='test -s conftest.$ac_objext' |
| 17657 | { (case "(($ac_try" in |
| 17658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17659 | *) ac_try_echo=$ac_try;; |
| 17660 | esac |
| 17661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17662 | (eval "$ac_try") 2>&5 |
| 17663 | ac_status=$? |
| 17664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17665 | (exit $ac_status); }; }; then |
| 17666 | ac_cv_type_u_int64_t=yes |
| 17667 | else |
| 17668 | echo "$as_me: failed program was:" >&5 |
| 17669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17670 | |
| 17671 | ac_cv_type_u_int64_t=no |
| 17672 | fi |
| 17673 | |
| 17674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17675 | fi |
| 17676 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17677 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17678 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17679 | |
| 17680 | cat >>confdefs.h <<_ACEOF |
| 17681 | #define HAVE_U_INT64_T 1 |
| 17682 | _ACEOF |
| 17683 | |
| 17684 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17685 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17686 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17687 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17688 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17689 | fi |
| 17690 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17691 | fi |
| 17692 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17693 | |
| 17694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17695 | |
| 17696 | |
| 17697 | |
| 17698 | |
| 17699 | |
| 17700 | |
| 17701 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17702 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17703 | do |
| 17704 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17705 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17706 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17707 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17709 | else |
| 17710 | cat >conftest.$ac_ext <<_ACEOF |
| 17711 | /* confdefs.h. */ |
| 17712 | _ACEOF |
| 17713 | cat confdefs.h >>conftest.$ac_ext |
| 17714 | cat >>conftest.$ac_ext <<_ACEOF |
| 17715 | /* end confdefs.h. */ |
| 17716 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17717 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17718 | #define $ac_func innocuous_$ac_func |
| 17719 | |
| 17720 | /* System header to define __stub macros and hopefully few prototypes, |
| 17721 | which can conflict with char $ac_func (); below. |
| 17722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17723 | <limits.h> exists even on freestanding compilers. */ |
| 17724 | |
| 17725 | #ifdef __STDC__ |
| 17726 | # include <limits.h> |
| 17727 | #else |
| 17728 | # include <assert.h> |
| 17729 | #endif |
| 17730 | |
| 17731 | #undef $ac_func |
| 17732 | |
| 17733 | /* Override any GCC internal prototype to avoid an error. |
| 17734 | Use char because int might match the return type of a GCC |
| 17735 | builtin and then its argument prototype would still apply. */ |
| 17736 | #ifdef __cplusplus |
| 17737 | extern "C" |
| 17738 | #endif |
| 17739 | char $ac_func (); |
| 17740 | /* The GNU C library defines this for functions which it implements |
| 17741 | to always fail with ENOSYS. Some functions are actually named |
| 17742 | something starting with __ and the normal name is an alias. */ |
| 17743 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17744 | choke me |
| 17745 | #endif |
| 17746 | |
| 17747 | int |
| 17748 | main () |
| 17749 | { |
| 17750 | return $ac_func (); |
| 17751 | ; |
| 17752 | return 0; |
| 17753 | } |
| 17754 | _ACEOF |
| 17755 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17756 | if { (ac_try="$ac_link" |
| 17757 | case "(($ac_try" in |
| 17758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17759 | *) ac_try_echo=$ac_try;; |
| 17760 | esac |
| 17761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17762 | (eval "$ac_link") 2>conftest.er1 |
| 17763 | ac_status=$? |
| 17764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17765 | rm -f conftest.er1 |
| 17766 | cat conftest.err >&5 |
| 17767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17768 | (exit $ac_status); } && |
| 17769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17770 | { (case "(($ac_try" in |
| 17771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17772 | *) ac_try_echo=$ac_try;; |
| 17773 | esac |
| 17774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17775 | (eval "$ac_try") 2>&5 |
| 17776 | ac_status=$? |
| 17777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17778 | (exit $ac_status); }; } && |
| 17779 | { ac_try='test -s conftest$ac_exeext' |
| 17780 | { (case "(($ac_try" in |
| 17781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17782 | *) ac_try_echo=$ac_try;; |
| 17783 | esac |
| 17784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17785 | (eval "$ac_try") 2>&5 |
| 17786 | ac_status=$? |
| 17787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17788 | (exit $ac_status); }; }; then |
| 17789 | eval "$as_ac_var=yes" |
| 17790 | else |
| 17791 | echo "$as_me: failed program was:" >&5 |
| 17792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17793 | |
| 17794 | eval "$as_ac_var=no" |
| 17795 | fi |
| 17796 | |
| 17797 | rm -f core conftest.err conftest.$ac_objext \ |
| 17798 | conftest$ac_exeext conftest.$ac_ext |
| 17799 | fi |
| 17800 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17801 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17802 | echo "${ECHO_T}$ac_res" >&6; } |
| 17803 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17804 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17805 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17806 | _ACEOF |
| 17807 | |
| 17808 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17809 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17810 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17811 | |
| 17812 | |
| 17813 | |
| 17814 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17815 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17816 | do |
| 17817 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17818 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17819 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17820 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17822 | else |
| 17823 | cat >conftest.$ac_ext <<_ACEOF |
| 17824 | /* confdefs.h. */ |
| 17825 | _ACEOF |
| 17826 | cat confdefs.h >>conftest.$ac_ext |
| 17827 | cat >>conftest.$ac_ext <<_ACEOF |
| 17828 | /* end confdefs.h. */ |
| 17829 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17830 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17831 | #define $ac_func innocuous_$ac_func |
| 17832 | |
| 17833 | /* System header to define __stub macros and hopefully few prototypes, |
| 17834 | which can conflict with char $ac_func (); below. |
| 17835 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17836 | <limits.h> exists even on freestanding compilers. */ |
| 17837 | |
| 17838 | #ifdef __STDC__ |
| 17839 | # include <limits.h> |
| 17840 | #else |
| 17841 | # include <assert.h> |
| 17842 | #endif |
| 17843 | |
| 17844 | #undef $ac_func |
| 17845 | |
| 17846 | /* Override any GCC internal prototype to avoid an error. |
| 17847 | Use char because int might match the return type of a GCC |
| 17848 | builtin and then its argument prototype would still apply. */ |
| 17849 | #ifdef __cplusplus |
| 17850 | extern "C" |
| 17851 | #endif |
| 17852 | char $ac_func (); |
| 17853 | /* The GNU C library defines this for functions which it implements |
| 17854 | to always fail with ENOSYS. Some functions are actually named |
| 17855 | something starting with __ and the normal name is an alias. */ |
| 17856 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17857 | choke me |
| 17858 | #endif |
| 17859 | |
| 17860 | int |
| 17861 | main () |
| 17862 | { |
| 17863 | return $ac_func (); |
| 17864 | ; |
| 17865 | return 0; |
| 17866 | } |
| 17867 | _ACEOF |
| 17868 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17869 | if { (ac_try="$ac_link" |
| 17870 | case "(($ac_try" in |
| 17871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17872 | *) ac_try_echo=$ac_try;; |
| 17873 | esac |
| 17874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17875 | (eval "$ac_link") 2>conftest.er1 |
| 17876 | ac_status=$? |
| 17877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17878 | rm -f conftest.er1 |
| 17879 | cat conftest.err >&5 |
| 17880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17881 | (exit $ac_status); } && |
| 17882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17883 | { (case "(($ac_try" in |
| 17884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17885 | *) ac_try_echo=$ac_try;; |
| 17886 | esac |
| 17887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17888 | (eval "$ac_try") 2>&5 |
| 17889 | ac_status=$? |
| 17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17891 | (exit $ac_status); }; } && |
| 17892 | { ac_try='test -s conftest$ac_exeext' |
| 17893 | { (case "(($ac_try" in |
| 17894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17895 | *) ac_try_echo=$ac_try;; |
| 17896 | esac |
| 17897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17898 | (eval "$ac_try") 2>&5 |
| 17899 | ac_status=$? |
| 17900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17901 | (exit $ac_status); }; }; then |
| 17902 | eval "$as_ac_var=yes" |
| 17903 | else |
| 17904 | echo "$as_me: failed program was:" >&5 |
| 17905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17906 | |
| 17907 | eval "$as_ac_var=no" |
| 17908 | fi |
| 17909 | |
| 17910 | rm -f core conftest.err conftest.$ac_objext \ |
| 17911 | conftest$ac_exeext conftest.$ac_ext |
| 17912 | fi |
| 17913 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17914 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17915 | echo "${ECHO_T}$ac_res" >&6; } |
| 17916 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17917 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17918 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17919 | _ACEOF |
| 17920 | |
| 17921 | fi |
| 17922 | done |
| 17923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17924 | |
| 17925 | |
| 17926 | |
| 17927 | |
| 17928 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17929 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17930 | do |
| 17931 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17932 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17933 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17934 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17936 | else |
| 17937 | cat >conftest.$ac_ext <<_ACEOF |
| 17938 | /* confdefs.h. */ |
| 17939 | _ACEOF |
| 17940 | cat confdefs.h >>conftest.$ac_ext |
| 17941 | cat >>conftest.$ac_ext <<_ACEOF |
| 17942 | /* end confdefs.h. */ |
| 17943 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17945 | #define $ac_func innocuous_$ac_func |
| 17946 | |
| 17947 | /* System header to define __stub macros and hopefully few prototypes, |
| 17948 | which can conflict with char $ac_func (); below. |
| 17949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17950 | <limits.h> exists even on freestanding compilers. */ |
| 17951 | |
| 17952 | #ifdef __STDC__ |
| 17953 | # include <limits.h> |
| 17954 | #else |
| 17955 | # include <assert.h> |
| 17956 | #endif |
| 17957 | |
| 17958 | #undef $ac_func |
| 17959 | |
| 17960 | /* Override any GCC internal prototype to avoid an error. |
| 17961 | Use char because int might match the return type of a GCC |
| 17962 | builtin and then its argument prototype would still apply. */ |
| 17963 | #ifdef __cplusplus |
| 17964 | extern "C" |
| 17965 | #endif |
| 17966 | char $ac_func (); |
| 17967 | /* The GNU C library defines this for functions which it implements |
| 17968 | to always fail with ENOSYS. Some functions are actually named |
| 17969 | something starting with __ and the normal name is an alias. */ |
| 17970 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17971 | choke me |
| 17972 | #endif |
| 17973 | |
| 17974 | int |
| 17975 | main () |
| 17976 | { |
| 17977 | return $ac_func (); |
| 17978 | ; |
| 17979 | return 0; |
| 17980 | } |
| 17981 | _ACEOF |
| 17982 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17983 | if { (ac_try="$ac_link" |
| 17984 | case "(($ac_try" in |
| 17985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17986 | *) ac_try_echo=$ac_try;; |
| 17987 | esac |
| 17988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17989 | (eval "$ac_link") 2>conftest.er1 |
| 17990 | ac_status=$? |
| 17991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17992 | rm -f conftest.er1 |
| 17993 | cat conftest.err >&5 |
| 17994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17995 | (exit $ac_status); } && |
| 17996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17997 | { (case "(($ac_try" in |
| 17998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17999 | *) ac_try_echo=$ac_try;; |
| 18000 | esac |
| 18001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18002 | (eval "$ac_try") 2>&5 |
| 18003 | ac_status=$? |
| 18004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18005 | (exit $ac_status); }; } && |
| 18006 | { ac_try='test -s conftest$ac_exeext' |
| 18007 | { (case "(($ac_try" in |
| 18008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18009 | *) ac_try_echo=$ac_try;; |
| 18010 | esac |
| 18011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18012 | (eval "$ac_try") 2>&5 |
| 18013 | ac_status=$? |
| 18014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18015 | (exit $ac_status); }; }; then |
| 18016 | eval "$as_ac_var=yes" |
| 18017 | else |
| 18018 | echo "$as_me: failed program was:" >&5 |
| 18019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18020 | |
| 18021 | eval "$as_ac_var=no" |
| 18022 | fi |
| 18023 | |
| 18024 | rm -f core conftest.err conftest.$ac_objext \ |
| 18025 | conftest$ac_exeext conftest.$ac_ext |
| 18026 | fi |
| 18027 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18029 | echo "${ECHO_T}$ac_res" >&6; } |
| 18030 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18031 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18032 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18033 | _ACEOF |
| 18034 | |
| 18035 | fi |
| 18036 | done |
| 18037 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18038 | |
| 18039 | |
| 18040 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18041 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18042 | do |
| 18043 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18044 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18045 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18046 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18048 | else |
| 18049 | cat >conftest.$ac_ext <<_ACEOF |
| 18050 | /* confdefs.h. */ |
| 18051 | _ACEOF |
| 18052 | cat confdefs.h >>conftest.$ac_ext |
| 18053 | cat >>conftest.$ac_ext <<_ACEOF |
| 18054 | /* end confdefs.h. */ |
| 18055 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18057 | #define $ac_func innocuous_$ac_func |
| 18058 | |
| 18059 | /* System header to define __stub macros and hopefully few prototypes, |
| 18060 | which can conflict with char $ac_func (); below. |
| 18061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18062 | <limits.h> exists even on freestanding compilers. */ |
| 18063 | |
| 18064 | #ifdef __STDC__ |
| 18065 | # include <limits.h> |
| 18066 | #else |
| 18067 | # include <assert.h> |
| 18068 | #endif |
| 18069 | |
| 18070 | #undef $ac_func |
| 18071 | |
| 18072 | /* Override any GCC internal prototype to avoid an error. |
| 18073 | Use char because int might match the return type of a GCC |
| 18074 | builtin and then its argument prototype would still apply. */ |
| 18075 | #ifdef __cplusplus |
| 18076 | extern "C" |
| 18077 | #endif |
| 18078 | char $ac_func (); |
| 18079 | /* The GNU C library defines this for functions which it implements |
| 18080 | to always fail with ENOSYS. Some functions are actually named |
| 18081 | something starting with __ and the normal name is an alias. */ |
| 18082 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18083 | choke me |
| 18084 | #endif |
| 18085 | |
| 18086 | int |
| 18087 | main () |
| 18088 | { |
| 18089 | return $ac_func (); |
| 18090 | ; |
| 18091 | return 0; |
| 18092 | } |
| 18093 | _ACEOF |
| 18094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18095 | if { (ac_try="$ac_link" |
| 18096 | case "(($ac_try" in |
| 18097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18098 | *) ac_try_echo=$ac_try;; |
| 18099 | esac |
| 18100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18101 | (eval "$ac_link") 2>conftest.er1 |
| 18102 | ac_status=$? |
| 18103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18104 | rm -f conftest.er1 |
| 18105 | cat conftest.err >&5 |
| 18106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18107 | (exit $ac_status); } && |
| 18108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18109 | { (case "(($ac_try" in |
| 18110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18111 | *) ac_try_echo=$ac_try;; |
| 18112 | esac |
| 18113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18114 | (eval "$ac_try") 2>&5 |
| 18115 | ac_status=$? |
| 18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18117 | (exit $ac_status); }; } && |
| 18118 | { ac_try='test -s conftest$ac_exeext' |
| 18119 | { (case "(($ac_try" in |
| 18120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18121 | *) ac_try_echo=$ac_try;; |
| 18122 | esac |
| 18123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18124 | (eval "$ac_try") 2>&5 |
| 18125 | ac_status=$? |
| 18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18127 | (exit $ac_status); }; }; then |
| 18128 | eval "$as_ac_var=yes" |
| 18129 | else |
| 18130 | echo "$as_me: failed program was:" >&5 |
| 18131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18132 | |
| 18133 | eval "$as_ac_var=no" |
| 18134 | fi |
| 18135 | |
| 18136 | rm -f core conftest.err conftest.$ac_objext \ |
| 18137 | conftest$ac_exeext conftest.$ac_ext |
| 18138 | fi |
| 18139 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18140 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18141 | echo "${ECHO_T}$ac_res" >&6; } |
| 18142 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18143 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18144 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18145 | _ACEOF |
| 18146 | |
| 18147 | fi |
| 18148 | done |
| 18149 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18150 | |
| 18151 | |
| 18152 | |
| 18153 | |
| 18154 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 18155 | |
| 18156 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18157 | do |
| 18158 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18159 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18160 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18161 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18163 | else |
| 18164 | cat >conftest.$ac_ext <<_ACEOF |
| 18165 | /* confdefs.h. */ |
| 18166 | _ACEOF |
| 18167 | cat confdefs.h >>conftest.$ac_ext |
| 18168 | cat >>conftest.$ac_ext <<_ACEOF |
| 18169 | /* end confdefs.h. */ |
| 18170 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18171 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18172 | #define $ac_func innocuous_$ac_func |
| 18173 | |
| 18174 | /* System header to define __stub macros and hopefully few prototypes, |
| 18175 | which can conflict with char $ac_func (); below. |
| 18176 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18177 | <limits.h> exists even on freestanding compilers. */ |
| 18178 | |
| 18179 | #ifdef __STDC__ |
| 18180 | # include <limits.h> |
| 18181 | #else |
| 18182 | # include <assert.h> |
| 18183 | #endif |
| 18184 | |
| 18185 | #undef $ac_func |
| 18186 | |
| 18187 | /* Override any GCC internal prototype to avoid an error. |
| 18188 | Use char because int might match the return type of a GCC |
| 18189 | builtin and then its argument prototype would still apply. */ |
| 18190 | #ifdef __cplusplus |
| 18191 | extern "C" |
| 18192 | #endif |
| 18193 | char $ac_func (); |
| 18194 | /* The GNU C library defines this for functions which it implements |
| 18195 | to always fail with ENOSYS. Some functions are actually named |
| 18196 | something starting with __ and the normal name is an alias. */ |
| 18197 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18198 | choke me |
| 18199 | #endif |
| 18200 | |
| 18201 | int |
| 18202 | main () |
| 18203 | { |
| 18204 | return $ac_func (); |
| 18205 | ; |
| 18206 | return 0; |
| 18207 | } |
| 18208 | _ACEOF |
| 18209 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18210 | if { (ac_try="$ac_link" |
| 18211 | case "(($ac_try" in |
| 18212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18213 | *) ac_try_echo=$ac_try;; |
| 18214 | esac |
| 18215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18216 | (eval "$ac_link") 2>conftest.er1 |
| 18217 | ac_status=$? |
| 18218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18219 | rm -f conftest.er1 |
| 18220 | cat conftest.err >&5 |
| 18221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18222 | (exit $ac_status); } && |
| 18223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18224 | { (case "(($ac_try" in |
| 18225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18226 | *) ac_try_echo=$ac_try;; |
| 18227 | esac |
| 18228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18229 | (eval "$ac_try") 2>&5 |
| 18230 | ac_status=$? |
| 18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18232 | (exit $ac_status); }; } && |
| 18233 | { ac_try='test -s conftest$ac_exeext' |
| 18234 | { (case "(($ac_try" in |
| 18235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18236 | *) ac_try_echo=$ac_try;; |
| 18237 | esac |
| 18238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18239 | (eval "$ac_try") 2>&5 |
| 18240 | ac_status=$? |
| 18241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18242 | (exit $ac_status); }; }; then |
| 18243 | eval "$as_ac_var=yes" |
| 18244 | else |
| 18245 | echo "$as_me: failed program was:" >&5 |
| 18246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18247 | |
| 18248 | eval "$as_ac_var=no" |
| 18249 | fi |
| 18250 | |
| 18251 | rm -f core conftest.err conftest.$ac_objext \ |
| 18252 | conftest$ac_exeext conftest.$ac_ext |
| 18253 | fi |
| 18254 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18255 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18256 | echo "${ECHO_T}$ac_res" >&6; } |
| 18257 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18258 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18259 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18260 | _ACEOF |
| 18261 | |
| 18262 | fi |
| 18263 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18264 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18265 | |
| 18266 | |
| 18267 | |
| 18268 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 18269 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18270 | do |
| 18271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18272 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18274 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18276 | else |
| 18277 | cat >conftest.$ac_ext <<_ACEOF |
| 18278 | /* confdefs.h. */ |
| 18279 | _ACEOF |
| 18280 | cat confdefs.h >>conftest.$ac_ext |
| 18281 | cat >>conftest.$ac_ext <<_ACEOF |
| 18282 | /* end confdefs.h. */ |
| 18283 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18284 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18285 | #define $ac_func innocuous_$ac_func |
| 18286 | |
| 18287 | /* System header to define __stub macros and hopefully few prototypes, |
| 18288 | which can conflict with char $ac_func (); below. |
| 18289 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18290 | <limits.h> exists even on freestanding compilers. */ |
| 18291 | |
| 18292 | #ifdef __STDC__ |
| 18293 | # include <limits.h> |
| 18294 | #else |
| 18295 | # include <assert.h> |
| 18296 | #endif |
| 18297 | |
| 18298 | #undef $ac_func |
| 18299 | |
| 18300 | /* Override any GCC internal prototype to avoid an error. |
| 18301 | Use char because int might match the return type of a GCC |
| 18302 | builtin and then its argument prototype would still apply. */ |
| 18303 | #ifdef __cplusplus |
| 18304 | extern "C" |
| 18305 | #endif |
| 18306 | char $ac_func (); |
| 18307 | /* The GNU C library defines this for functions which it implements |
| 18308 | to always fail with ENOSYS. Some functions are actually named |
| 18309 | something starting with __ and the normal name is an alias. */ |
| 18310 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18311 | choke me |
| 18312 | #endif |
| 18313 | |
| 18314 | int |
| 18315 | main () |
| 18316 | { |
| 18317 | return $ac_func (); |
| 18318 | ; |
| 18319 | return 0; |
| 18320 | } |
| 18321 | _ACEOF |
| 18322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18323 | if { (ac_try="$ac_link" |
| 18324 | case "(($ac_try" in |
| 18325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18326 | *) ac_try_echo=$ac_try;; |
| 18327 | esac |
| 18328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18329 | (eval "$ac_link") 2>conftest.er1 |
| 18330 | ac_status=$? |
| 18331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18332 | rm -f conftest.er1 |
| 18333 | cat conftest.err >&5 |
| 18334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18335 | (exit $ac_status); } && |
| 18336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18337 | { (case "(($ac_try" in |
| 18338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18339 | *) ac_try_echo=$ac_try;; |
| 18340 | esac |
| 18341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18342 | (eval "$ac_try") 2>&5 |
| 18343 | ac_status=$? |
| 18344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18345 | (exit $ac_status); }; } && |
| 18346 | { ac_try='test -s conftest$ac_exeext' |
| 18347 | { (case "(($ac_try" in |
| 18348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18349 | *) ac_try_echo=$ac_try;; |
| 18350 | esac |
| 18351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18352 | (eval "$ac_try") 2>&5 |
| 18353 | ac_status=$? |
| 18354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18355 | (exit $ac_status); }; }; then |
| 18356 | eval "$as_ac_var=yes" |
| 18357 | else |
| 18358 | echo "$as_me: failed program was:" >&5 |
| 18359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18360 | |
| 18361 | eval "$as_ac_var=no" |
| 18362 | fi |
| 18363 | |
| 18364 | rm -f core conftest.err conftest.$ac_objext \ |
| 18365 | conftest$ac_exeext conftest.$ac_ext |
| 18366 | fi |
| 18367 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18368 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18369 | echo "${ECHO_T}$ac_res" >&6; } |
| 18370 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18371 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18372 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18373 | _ACEOF |
| 18374 | |
| 18375 | fi |
| 18376 | done |
| 18377 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18378 | |
| 18379 | |
| 18380 | |
| 18381 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 18382 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18383 | do |
| 18384 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18385 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18386 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18387 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18389 | else |
| 18390 | cat >conftest.$ac_ext <<_ACEOF |
| 18391 | /* confdefs.h. */ |
| 18392 | _ACEOF |
| 18393 | cat confdefs.h >>conftest.$ac_ext |
| 18394 | cat >>conftest.$ac_ext <<_ACEOF |
| 18395 | /* end confdefs.h. */ |
| 18396 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18397 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18398 | #define $ac_func innocuous_$ac_func |
| 18399 | |
| 18400 | /* System header to define __stub macros and hopefully few prototypes, |
| 18401 | which can conflict with char $ac_func (); below. |
| 18402 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18403 | <limits.h> exists even on freestanding compilers. */ |
| 18404 | |
| 18405 | #ifdef __STDC__ |
| 18406 | # include <limits.h> |
| 18407 | #else |
| 18408 | # include <assert.h> |
| 18409 | #endif |
| 18410 | |
| 18411 | #undef $ac_func |
| 18412 | |
| 18413 | /* Override any GCC internal prototype to avoid an error. |
| 18414 | Use char because int might match the return type of a GCC |
| 18415 | builtin and then its argument prototype would still apply. */ |
| 18416 | #ifdef __cplusplus |
| 18417 | extern "C" |
| 18418 | #endif |
| 18419 | char $ac_func (); |
| 18420 | /* The GNU C library defines this for functions which it implements |
| 18421 | to always fail with ENOSYS. Some functions are actually named |
| 18422 | something starting with __ and the normal name is an alias. */ |
| 18423 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18424 | choke me |
| 18425 | #endif |
| 18426 | |
| 18427 | int |
| 18428 | main () |
| 18429 | { |
| 18430 | return $ac_func (); |
| 18431 | ; |
| 18432 | return 0; |
| 18433 | } |
| 18434 | _ACEOF |
| 18435 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18436 | if { (ac_try="$ac_link" |
| 18437 | case "(($ac_try" in |
| 18438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18439 | *) ac_try_echo=$ac_try;; |
| 18440 | esac |
| 18441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18442 | (eval "$ac_link") 2>conftest.er1 |
| 18443 | ac_status=$? |
| 18444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18445 | rm -f conftest.er1 |
| 18446 | cat conftest.err >&5 |
| 18447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18448 | (exit $ac_status); } && |
| 18449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18450 | { (case "(($ac_try" in |
| 18451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18452 | *) ac_try_echo=$ac_try;; |
| 18453 | esac |
| 18454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18455 | (eval "$ac_try") 2>&5 |
| 18456 | ac_status=$? |
| 18457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18458 | (exit $ac_status); }; } && |
| 18459 | { ac_try='test -s conftest$ac_exeext' |
| 18460 | { (case "(($ac_try" in |
| 18461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18462 | *) ac_try_echo=$ac_try;; |
| 18463 | esac |
| 18464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18465 | (eval "$ac_try") 2>&5 |
| 18466 | ac_status=$? |
| 18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18468 | (exit $ac_status); }; }; then |
| 18469 | eval "$as_ac_var=yes" |
| 18470 | else |
| 18471 | echo "$as_me: failed program was:" >&5 |
| 18472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18473 | |
| 18474 | eval "$as_ac_var=no" |
| 18475 | fi |
| 18476 | |
| 18477 | rm -f core conftest.err conftest.$ac_objext \ |
| 18478 | conftest$ac_exeext conftest.$ac_ext |
| 18479 | fi |
| 18480 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18482 | echo "${ECHO_T}$ac_res" >&6; } |
| 18483 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18484 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18486 | _ACEOF |
| 18487 | |
| 18488 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18489 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18490 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18491 | |
| 18492 | |
| 18493 | |
| 18494 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 18495 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18496 | do |
| 18497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18498 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18500 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18502 | else |
| 18503 | cat >conftest.$ac_ext <<_ACEOF |
| 18504 | /* confdefs.h. */ |
| 18505 | _ACEOF |
| 18506 | cat confdefs.h >>conftest.$ac_ext |
| 18507 | cat >>conftest.$ac_ext <<_ACEOF |
| 18508 | /* end confdefs.h. */ |
| 18509 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18510 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18511 | #define $ac_func innocuous_$ac_func |
| 18512 | |
| 18513 | /* System header to define __stub macros and hopefully few prototypes, |
| 18514 | which can conflict with char $ac_func (); below. |
| 18515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18516 | <limits.h> exists even on freestanding compilers. */ |
| 18517 | |
| 18518 | #ifdef __STDC__ |
| 18519 | # include <limits.h> |
| 18520 | #else |
| 18521 | # include <assert.h> |
| 18522 | #endif |
| 18523 | |
| 18524 | #undef $ac_func |
| 18525 | |
| 18526 | /* Override any GCC internal prototype to avoid an error. |
| 18527 | Use char because int might match the return type of a GCC |
| 18528 | builtin and then its argument prototype would still apply. */ |
| 18529 | #ifdef __cplusplus |
| 18530 | extern "C" |
| 18531 | #endif |
| 18532 | char $ac_func (); |
| 18533 | /* The GNU C library defines this for functions which it implements |
| 18534 | to always fail with ENOSYS. Some functions are actually named |
| 18535 | something starting with __ and the normal name is an alias. */ |
| 18536 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18537 | choke me |
| 18538 | #endif |
| 18539 | |
| 18540 | int |
| 18541 | main () |
| 18542 | { |
| 18543 | return $ac_func (); |
| 18544 | ; |
| 18545 | return 0; |
| 18546 | } |
| 18547 | _ACEOF |
| 18548 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18549 | if { (ac_try="$ac_link" |
| 18550 | case "(($ac_try" in |
| 18551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18552 | *) ac_try_echo=$ac_try;; |
| 18553 | esac |
| 18554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18555 | (eval "$ac_link") 2>conftest.er1 |
| 18556 | ac_status=$? |
| 18557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18558 | rm -f conftest.er1 |
| 18559 | cat conftest.err >&5 |
| 18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18561 | (exit $ac_status); } && |
| 18562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18563 | { (case "(($ac_try" in |
| 18564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18565 | *) ac_try_echo=$ac_try;; |
| 18566 | esac |
| 18567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18568 | (eval "$ac_try") 2>&5 |
| 18569 | ac_status=$? |
| 18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18571 | (exit $ac_status); }; } && |
| 18572 | { ac_try='test -s conftest$ac_exeext' |
| 18573 | { (case "(($ac_try" in |
| 18574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18575 | *) ac_try_echo=$ac_try;; |
| 18576 | esac |
| 18577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18578 | (eval "$ac_try") 2>&5 |
| 18579 | ac_status=$? |
| 18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18581 | (exit $ac_status); }; }; then |
| 18582 | eval "$as_ac_var=yes" |
| 18583 | else |
| 18584 | echo "$as_me: failed program was:" >&5 |
| 18585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18586 | |
| 18587 | eval "$as_ac_var=no" |
| 18588 | fi |
| 18589 | |
| 18590 | rm -f core conftest.err conftest.$ac_objext \ |
| 18591 | conftest$ac_exeext conftest.$ac_ext |
| 18592 | fi |
| 18593 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18595 | echo "${ECHO_T}$ac_res" >&6; } |
| 18596 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18597 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18598 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18599 | _ACEOF |
| 18600 | |
| 18601 | fi |
| 18602 | done |
| 18603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18604 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 18605 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 18606 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 18607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18608 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18609 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18610 | ac_cpp='$CPP $CPPFLAGS' |
| 18611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18614 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18615 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18616 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18617 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18618 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18619 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18620 | /* confdefs.h. */ |
| 18621 | _ACEOF |
| 18622 | cat confdefs.h >>conftest.$ac_ext |
| 18623 | cat >>conftest.$ac_ext <<_ACEOF |
| 18624 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18625 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18626 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18627 | #include <stdlib.h> |
| 18628 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18629 | int |
| 18630 | main () |
| 18631 | { |
| 18632 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18633 | volatile double A, B; |
| 18634 | char Buffer[100]; |
| 18635 | A = 1; |
| 18636 | A /= 10.0; |
| 18637 | sprintf(Buffer, "%a", A); |
| 18638 | B = atof(Buffer); |
| 18639 | if (A != B) |
| 18640 | return (1); |
| 18641 | if (A != 0x1.999999999999ap-4) |
| 18642 | return (1); |
| 18643 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18644 | ; |
| 18645 | return 0; |
| 18646 | } |
| 18647 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18648 | rm -f conftest$ac_exeext |
| 18649 | if { (ac_try="$ac_link" |
| 18650 | case "(($ac_try" in |
| 18651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18652 | *) ac_try_echo=$ac_try;; |
| 18653 | esac |
| 18654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18655 | (eval "$ac_link") 2>&5 |
| 18656 | ac_status=$? |
| 18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18658 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18659 | { (case "(($ac_try" in |
| 18660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18661 | *) ac_try_echo=$ac_try;; |
| 18662 | esac |
| 18663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18664 | (eval "$ac_try") 2>&5 |
| 18665 | ac_status=$? |
| 18666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18667 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18668 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18669 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18670 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18671 | echo "$as_me: failed program was:" >&5 |
| 18672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18673 | |
| 18674 | ( exit $ac_status ) |
| 18675 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18676 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18677 | 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] | 18678 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18679 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18680 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18681 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18682 | ac_cpp='$CPP $CPPFLAGS' |
| 18683 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18684 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18685 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18686 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18687 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18688 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18689 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18690 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18691 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18692 | cat >>confdefs.h <<\_ACEOF |
| 18693 | #define HAVE_PRINTF_A 1 |
| 18694 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18695 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18696 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18697 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18698 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18699 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18700 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18701 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18703 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18704 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18705 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18706 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18707 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18708 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18709 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18710 | cat >conftest.$ac_ext <<_ACEOF |
| 18711 | /* confdefs.h. */ |
| 18712 | _ACEOF |
| 18713 | cat confdefs.h >>conftest.$ac_ext |
| 18714 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18715 | /* end confdefs.h. */ |
| 18716 | #include <stdlib.h> |
| 18717 | int |
| 18718 | main () |
| 18719 | { |
| 18720 | srand48(0);lrand48();drand48(); |
| 18721 | ; |
| 18722 | return 0; |
| 18723 | } |
| 18724 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18725 | rm -f conftest.$ac_objext |
| 18726 | if { (ac_try="$ac_compile" |
| 18727 | case "(($ac_try" in |
| 18728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18729 | *) ac_try_echo=$ac_try;; |
| 18730 | esac |
| 18731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18732 | (eval "$ac_compile") 2>conftest.er1 |
| 18733 | ac_status=$? |
| 18734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18735 | rm -f conftest.er1 |
| 18736 | cat conftest.err >&5 |
| 18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18738 | (exit $ac_status); } && |
| 18739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18740 | { (case "(($ac_try" in |
| 18741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18742 | *) ac_try_echo=$ac_try;; |
| 18743 | esac |
| 18744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18745 | (eval "$ac_try") 2>&5 |
| 18746 | ac_status=$? |
| 18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18748 | (exit $ac_status); }; } && |
| 18749 | { ac_try='test -s conftest.$ac_objext' |
| 18750 | { (case "(($ac_try" in |
| 18751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18752 | *) ac_try_echo=$ac_try;; |
| 18753 | esac |
| 18754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18755 | (eval "$ac_try") 2>&5 |
| 18756 | ac_status=$? |
| 18757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18758 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18759 | ac_cv_func_rand48=yes |
| 18760 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18761 | echo "$as_me: failed program was:" >&5 |
| 18762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18763 | |
| 18764 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18765 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18768 | ac_ext=c |
| 18769 | ac_cpp='$CPP $CPPFLAGS' |
| 18770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18773 | |
| 18774 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18775 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18776 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18777 | |
| 18778 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18780 | cat >>confdefs.h <<\_ACEOF |
| 18781 | #define HAVE_RAND48 1 |
| 18782 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18783 | |
| 18784 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18785 | |
| 18786 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18787 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18788 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18789 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18790 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18792 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18793 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18794 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18795 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18796 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18797 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18799 | cat >conftest.$ac_ext <<_ACEOF |
| 18800 | /* confdefs.h. */ |
| 18801 | _ACEOF |
| 18802 | cat confdefs.h >>conftest.$ac_ext |
| 18803 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18804 | /* end confdefs.h. */ |
| 18805 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18806 | int |
| 18807 | main () |
| 18808 | { |
| 18809 | float f; isnan(f); |
| 18810 | ; |
| 18811 | return 0; |
| 18812 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18813 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18814 | rm -f conftest.$ac_objext |
| 18815 | if { (ac_try="$ac_compile" |
| 18816 | case "(($ac_try" in |
| 18817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18818 | *) ac_try_echo=$ac_try;; |
| 18819 | esac |
| 18820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18821 | (eval "$ac_compile") 2>conftest.er1 |
| 18822 | ac_status=$? |
| 18823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18824 | rm -f conftest.er1 |
| 18825 | cat conftest.err >&5 |
| 18826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18827 | (exit $ac_status); } && |
| 18828 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18829 | { (case "(($ac_try" in |
| 18830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18831 | *) ac_try_echo=$ac_try;; |
| 18832 | esac |
| 18833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18834 | (eval "$ac_try") 2>&5 |
| 18835 | ac_status=$? |
| 18836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18837 | (exit $ac_status); }; } && |
| 18838 | { ac_try='test -s conftest.$ac_objext' |
| 18839 | { (case "(($ac_try" in |
| 18840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18841 | *) ac_try_echo=$ac_try;; |
| 18842 | esac |
| 18843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18844 | (eval "$ac_try") 2>&5 |
| 18845 | ac_status=$? |
| 18846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18847 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18848 | ac_cv_func_isnan_in_math_h=yes |
| 18849 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18850 | echo "$as_me: failed program was:" >&5 |
| 18851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18852 | |
| 18853 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18854 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18857 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18858 | ac_cpp='$CPP $CPPFLAGS' |
| 18859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18862 | |
| 18863 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18864 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18865 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18866 | |
| 18867 | |
| 18868 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18869 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18870 | cat >>confdefs.h <<\_ACEOF |
| 18871 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18872 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18873 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18874 | fi |
| 18875 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18876 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18877 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18878 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18880 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18881 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18882 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18883 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18884 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18885 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18886 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18887 | cat >conftest.$ac_ext <<_ACEOF |
| 18888 | /* confdefs.h. */ |
| 18889 | _ACEOF |
| 18890 | cat confdefs.h >>conftest.$ac_ext |
| 18891 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18892 | /* end confdefs.h. */ |
| 18893 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18894 | int |
| 18895 | main () |
| 18896 | { |
| 18897 | float f; isnan(f); |
| 18898 | ; |
| 18899 | return 0; |
| 18900 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18901 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18902 | rm -f conftest.$ac_objext |
| 18903 | if { (ac_try="$ac_compile" |
| 18904 | case "(($ac_try" in |
| 18905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18906 | *) ac_try_echo=$ac_try;; |
| 18907 | esac |
| 18908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18909 | (eval "$ac_compile") 2>conftest.er1 |
| 18910 | ac_status=$? |
| 18911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18912 | rm -f conftest.er1 |
| 18913 | cat conftest.err >&5 |
| 18914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18915 | (exit $ac_status); } && |
| 18916 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18917 | { (case "(($ac_try" in |
| 18918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18919 | *) ac_try_echo=$ac_try;; |
| 18920 | esac |
| 18921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18922 | (eval "$ac_try") 2>&5 |
| 18923 | ac_status=$? |
| 18924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18925 | (exit $ac_status); }; } && |
| 18926 | { ac_try='test -s conftest.$ac_objext' |
| 18927 | { (case "(($ac_try" in |
| 18928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18929 | *) ac_try_echo=$ac_try;; |
| 18930 | esac |
| 18931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18932 | (eval "$ac_try") 2>&5 |
| 18933 | ac_status=$? |
| 18934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18935 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18936 | ac_cv_func_isnan_in_cmath=yes |
| 18937 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18938 | echo "$as_me: failed program was:" >&5 |
| 18939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18940 | |
| 18941 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18942 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18945 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18946 | ac_cpp='$CPP $CPPFLAGS' |
| 18947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18950 | |
| 18951 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18952 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18953 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18954 | |
| 18955 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18956 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18957 | cat >>confdefs.h <<\_ACEOF |
| 18958 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18959 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18960 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18961 | fi |
| 18962 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18963 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18964 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18965 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18967 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18968 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18969 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18973 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18974 | cat >conftest.$ac_ext <<_ACEOF |
| 18975 | /* confdefs.h. */ |
| 18976 | _ACEOF |
| 18977 | cat confdefs.h >>conftest.$ac_ext |
| 18978 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18979 | /* end confdefs.h. */ |
| 18980 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18981 | int |
| 18982 | main () |
| 18983 | { |
| 18984 | float f; std::isnan(f); |
| 18985 | ; |
| 18986 | return 0; |
| 18987 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18988 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18989 | rm -f conftest.$ac_objext |
| 18990 | if { (ac_try="$ac_compile" |
| 18991 | case "(($ac_try" in |
| 18992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18993 | *) ac_try_echo=$ac_try;; |
| 18994 | esac |
| 18995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18996 | (eval "$ac_compile") 2>conftest.er1 |
| 18997 | ac_status=$? |
| 18998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18999 | rm -f conftest.er1 |
| 19000 | cat conftest.err >&5 |
| 19001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19002 | (exit $ac_status); } && |
| 19003 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19004 | { (case "(($ac_try" in |
| 19005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19006 | *) ac_try_echo=$ac_try;; |
| 19007 | esac |
| 19008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19009 | (eval "$ac_try") 2>&5 |
| 19010 | ac_status=$? |
| 19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19012 | (exit $ac_status); }; } && |
| 19013 | { ac_try='test -s conftest.$ac_objext' |
| 19014 | { (case "(($ac_try" in |
| 19015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19016 | *) ac_try_echo=$ac_try;; |
| 19017 | esac |
| 19018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19019 | (eval "$ac_try") 2>&5 |
| 19020 | ac_status=$? |
| 19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19022 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19023 | ac_cv_func_std_isnan_in_cmath=yes |
| 19024 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19025 | echo "$as_me: failed program was:" >&5 |
| 19026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19027 | |
| 19028 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19029 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19032 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19033 | ac_cpp='$CPP $CPPFLAGS' |
| 19034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19037 | |
| 19038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19039 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19040 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19041 | |
| 19042 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19043 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19044 | cat >>confdefs.h <<\_ACEOF |
| 19045 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19046 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19047 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19048 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19049 | |
| 19050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19051 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19052 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19053 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19055 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19056 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19057 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19058 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19059 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19060 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19061 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19062 | cat >conftest.$ac_ext <<_ACEOF |
| 19063 | /* confdefs.h. */ |
| 19064 | _ACEOF |
| 19065 | cat confdefs.h >>conftest.$ac_ext |
| 19066 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19067 | /* end confdefs.h. */ |
| 19068 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19069 | int |
| 19070 | main () |
| 19071 | { |
| 19072 | float f; isinf(f); |
| 19073 | ; |
| 19074 | return 0; |
| 19075 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19076 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19077 | rm -f conftest.$ac_objext |
| 19078 | if { (ac_try="$ac_compile" |
| 19079 | case "(($ac_try" in |
| 19080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19081 | *) ac_try_echo=$ac_try;; |
| 19082 | esac |
| 19083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19084 | (eval "$ac_compile") 2>conftest.er1 |
| 19085 | ac_status=$? |
| 19086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19087 | rm -f conftest.er1 |
| 19088 | cat conftest.err >&5 |
| 19089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19090 | (exit $ac_status); } && |
| 19091 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19092 | { (case "(($ac_try" in |
| 19093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19094 | *) ac_try_echo=$ac_try;; |
| 19095 | esac |
| 19096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19097 | (eval "$ac_try") 2>&5 |
| 19098 | ac_status=$? |
| 19099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19100 | (exit $ac_status); }; } && |
| 19101 | { ac_try='test -s conftest.$ac_objext' |
| 19102 | { (case "(($ac_try" in |
| 19103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19104 | *) ac_try_echo=$ac_try;; |
| 19105 | esac |
| 19106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19107 | (eval "$ac_try") 2>&5 |
| 19108 | ac_status=$? |
| 19109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19110 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19111 | ac_cv_func_isinf_in_math_h=yes |
| 19112 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19113 | echo "$as_me: failed program was:" >&5 |
| 19114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19115 | |
| 19116 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19117 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19120 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19121 | ac_cpp='$CPP $CPPFLAGS' |
| 19122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19125 | |
| 19126 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19127 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19128 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19129 | |
| 19130 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19131 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19132 | cat >>confdefs.h <<\_ACEOF |
| 19133 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19134 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19135 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19136 | fi |
| 19137 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19138 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19139 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19140 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19142 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19143 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19144 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19145 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19146 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19147 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19148 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19149 | cat >conftest.$ac_ext <<_ACEOF |
| 19150 | /* confdefs.h. */ |
| 19151 | _ACEOF |
| 19152 | cat confdefs.h >>conftest.$ac_ext |
| 19153 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19154 | /* end confdefs.h. */ |
| 19155 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19156 | int |
| 19157 | main () |
| 19158 | { |
| 19159 | float f; isinf(f); |
| 19160 | ; |
| 19161 | return 0; |
| 19162 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19163 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19164 | rm -f conftest.$ac_objext |
| 19165 | if { (ac_try="$ac_compile" |
| 19166 | case "(($ac_try" in |
| 19167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19168 | *) ac_try_echo=$ac_try;; |
| 19169 | esac |
| 19170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19171 | (eval "$ac_compile") 2>conftest.er1 |
| 19172 | ac_status=$? |
| 19173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19174 | rm -f conftest.er1 |
| 19175 | cat conftest.err >&5 |
| 19176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19177 | (exit $ac_status); } && |
| 19178 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19179 | { (case "(($ac_try" in |
| 19180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19181 | *) ac_try_echo=$ac_try;; |
| 19182 | esac |
| 19183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19184 | (eval "$ac_try") 2>&5 |
| 19185 | ac_status=$? |
| 19186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19187 | (exit $ac_status); }; } && |
| 19188 | { ac_try='test -s conftest.$ac_objext' |
| 19189 | { (case "(($ac_try" in |
| 19190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19191 | *) ac_try_echo=$ac_try;; |
| 19192 | esac |
| 19193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19194 | (eval "$ac_try") 2>&5 |
| 19195 | ac_status=$? |
| 19196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19197 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19198 | ac_cv_func_isinf_in_cmath=yes |
| 19199 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19200 | echo "$as_me: failed program was:" >&5 |
| 19201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19202 | |
| 19203 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19204 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19207 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19208 | ac_cpp='$CPP $CPPFLAGS' |
| 19209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19212 | |
| 19213 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19214 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19215 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19216 | |
| 19217 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19219 | cat >>confdefs.h <<\_ACEOF |
| 19220 | #define HAVE_ISINF_IN_CMATH 1 |
| 19221 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19222 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19223 | fi |
| 19224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19225 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19226 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19227 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19229 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19230 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19231 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19232 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19233 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19234 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19235 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19236 | cat >conftest.$ac_ext <<_ACEOF |
| 19237 | /* confdefs.h. */ |
| 19238 | _ACEOF |
| 19239 | cat confdefs.h >>conftest.$ac_ext |
| 19240 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19241 | /* end confdefs.h. */ |
| 19242 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19243 | int |
| 19244 | main () |
| 19245 | { |
| 19246 | float f; std::isinf(f)} |
| 19247 | ; |
| 19248 | return 0; |
| 19249 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19250 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19251 | rm -f conftest.$ac_objext |
| 19252 | if { (ac_try="$ac_compile" |
| 19253 | case "(($ac_try" in |
| 19254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19255 | *) ac_try_echo=$ac_try;; |
| 19256 | esac |
| 19257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19258 | (eval "$ac_compile") 2>conftest.er1 |
| 19259 | ac_status=$? |
| 19260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19261 | rm -f conftest.er1 |
| 19262 | cat conftest.err >&5 |
| 19263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19264 | (exit $ac_status); } && |
| 19265 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19266 | { (case "(($ac_try" in |
| 19267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19268 | *) ac_try_echo=$ac_try;; |
| 19269 | esac |
| 19270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19271 | (eval "$ac_try") 2>&5 |
| 19272 | ac_status=$? |
| 19273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19274 | (exit $ac_status); }; } && |
| 19275 | { ac_try='test -s conftest.$ac_objext' |
| 19276 | { (case "(($ac_try" in |
| 19277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19278 | *) ac_try_echo=$ac_try;; |
| 19279 | esac |
| 19280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19281 | (eval "$ac_try") 2>&5 |
| 19282 | ac_status=$? |
| 19283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19284 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19285 | ac_cv_func_std_isinf_in_cmath=yes |
| 19286 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19287 | echo "$as_me: failed program was:" >&5 |
| 19288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19289 | |
| 19290 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19291 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19294 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19295 | ac_cpp='$CPP $CPPFLAGS' |
| 19296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19299 | |
| 19300 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19301 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19302 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19303 | |
| 19304 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19305 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19306 | cat >>confdefs.h <<\_ACEOF |
| 19307 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19308 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19309 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19310 | fi |
| 19311 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19312 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19313 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19314 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19316 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19317 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19318 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19319 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19320 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19321 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19322 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19323 | cat >conftest.$ac_ext <<_ACEOF |
| 19324 | /* confdefs.h. */ |
| 19325 | _ACEOF |
| 19326 | cat confdefs.h >>conftest.$ac_ext |
| 19327 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19328 | /* end confdefs.h. */ |
| 19329 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19330 | int |
| 19331 | main () |
| 19332 | { |
| 19333 | float f; finite(f); |
| 19334 | ; |
| 19335 | return 0; |
| 19336 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19337 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19338 | rm -f conftest.$ac_objext |
| 19339 | if { (ac_try="$ac_compile" |
| 19340 | case "(($ac_try" in |
| 19341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19342 | *) ac_try_echo=$ac_try;; |
| 19343 | esac |
| 19344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19345 | (eval "$ac_compile") 2>conftest.er1 |
| 19346 | ac_status=$? |
| 19347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19348 | rm -f conftest.er1 |
| 19349 | cat conftest.err >&5 |
| 19350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19351 | (exit $ac_status); } && |
| 19352 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19353 | { (case "(($ac_try" in |
| 19354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19355 | *) ac_try_echo=$ac_try;; |
| 19356 | esac |
| 19357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19358 | (eval "$ac_try") 2>&5 |
| 19359 | ac_status=$? |
| 19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19361 | (exit $ac_status); }; } && |
| 19362 | { ac_try='test -s conftest.$ac_objext' |
| 19363 | { (case "(($ac_try" in |
| 19364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19365 | *) ac_try_echo=$ac_try;; |
| 19366 | esac |
| 19367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19368 | (eval "$ac_try") 2>&5 |
| 19369 | ac_status=$? |
| 19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19371 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19372 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19373 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19374 | echo "$as_me: failed program was:" >&5 |
| 19375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19376 | |
| 19377 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19378 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19381 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19382 | ac_cpp='$CPP $CPPFLAGS' |
| 19383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19386 | |
| 19387 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19388 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19389 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19390 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19391 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19392 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19393 | cat >>confdefs.h <<\_ACEOF |
| 19394 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19395 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19396 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19397 | fi |
| 19398 | |
| 19399 | |
| 19400 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19401 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19402 | |
| 19403 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19404 | for ac_header in stdlib.h unistd.h |
| 19405 | do |
| 19406 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19407 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19408 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19410 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19412 | fi |
| 19413 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19414 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19415 | echo "${ECHO_T}$ac_res" >&6; } |
| 19416 | else |
| 19417 | # Is the header compilable? |
| 19418 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19419 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19420 | cat >conftest.$ac_ext <<_ACEOF |
| 19421 | /* confdefs.h. */ |
| 19422 | _ACEOF |
| 19423 | cat confdefs.h >>conftest.$ac_ext |
| 19424 | cat >>conftest.$ac_ext <<_ACEOF |
| 19425 | /* end confdefs.h. */ |
| 19426 | $ac_includes_default |
| 19427 | #include <$ac_header> |
| 19428 | _ACEOF |
| 19429 | rm -f conftest.$ac_objext |
| 19430 | if { (ac_try="$ac_compile" |
| 19431 | case "(($ac_try" in |
| 19432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19433 | *) ac_try_echo=$ac_try;; |
| 19434 | esac |
| 19435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19436 | (eval "$ac_compile") 2>conftest.er1 |
| 19437 | ac_status=$? |
| 19438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19439 | rm -f conftest.er1 |
| 19440 | cat conftest.err >&5 |
| 19441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19442 | (exit $ac_status); } && |
| 19443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19444 | { (case "(($ac_try" in |
| 19445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19446 | *) ac_try_echo=$ac_try;; |
| 19447 | esac |
| 19448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19449 | (eval "$ac_try") 2>&5 |
| 19450 | ac_status=$? |
| 19451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19452 | (exit $ac_status); }; } && |
| 19453 | { ac_try='test -s conftest.$ac_objext' |
| 19454 | { (case "(($ac_try" in |
| 19455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19456 | *) ac_try_echo=$ac_try;; |
| 19457 | esac |
| 19458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19459 | (eval "$ac_try") 2>&5 |
| 19460 | ac_status=$? |
| 19461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19462 | (exit $ac_status); }; }; then |
| 19463 | ac_header_compiler=yes |
| 19464 | else |
| 19465 | echo "$as_me: failed program was:" >&5 |
| 19466 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19467 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19468 | ac_header_compiler=no |
| 19469 | fi |
| 19470 | |
| 19471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19472 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19473 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19474 | |
| 19475 | # Is the header present? |
| 19476 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19477 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19478 | cat >conftest.$ac_ext <<_ACEOF |
| 19479 | /* confdefs.h. */ |
| 19480 | _ACEOF |
| 19481 | cat confdefs.h >>conftest.$ac_ext |
| 19482 | cat >>conftest.$ac_ext <<_ACEOF |
| 19483 | /* end confdefs.h. */ |
| 19484 | #include <$ac_header> |
| 19485 | _ACEOF |
| 19486 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19487 | case "(($ac_try" in |
| 19488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19489 | *) ac_try_echo=$ac_try;; |
| 19490 | esac |
| 19491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19492 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19493 | ac_status=$? |
| 19494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19495 | rm -f conftest.er1 |
| 19496 | cat conftest.err >&5 |
| 19497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19498 | (exit $ac_status); } >/dev/null; then |
| 19499 | if test -s conftest.err; then |
| 19500 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19501 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19502 | else |
| 19503 | ac_cpp_err= |
| 19504 | fi |
| 19505 | else |
| 19506 | ac_cpp_err=yes |
| 19507 | fi |
| 19508 | if test -z "$ac_cpp_err"; then |
| 19509 | ac_header_preproc=yes |
| 19510 | else |
| 19511 | echo "$as_me: failed program was:" >&5 |
| 19512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19513 | |
| 19514 | ac_header_preproc=no |
| 19515 | fi |
| 19516 | |
| 19517 | rm -f conftest.err conftest.$ac_ext |
| 19518 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19519 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19520 | |
| 19521 | # So? What about this header? |
| 19522 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19523 | yes:no: ) |
| 19524 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19525 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19527 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19528 | ac_header_preproc=yes |
| 19529 | ;; |
| 19530 | no:yes:* ) |
| 19531 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19532 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19533 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19534 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19535 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19536 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19537 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19538 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19540 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19541 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19542 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19543 | ( cat <<\_ASBOX |
| 19544 | ## ----------------------------------- ## |
| 19545 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19546 | ## ----------------------------------- ## |
| 19547 | _ASBOX |
| 19548 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19549 | ;; |
| 19550 | esac |
| 19551 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19553 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19555 | else |
| 19556 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19557 | fi |
| 19558 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19559 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19560 | echo "${ECHO_T}$ac_res" >&6; } |
| 19561 | |
| 19562 | fi |
| 19563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19564 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19565 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19566 | _ACEOF |
| 19567 | |
| 19568 | fi |
| 19569 | |
| 19570 | done |
| 19571 | |
| 19572 | |
| 19573 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19574 | do |
| 19575 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19576 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19577 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19578 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19580 | else |
| 19581 | cat >conftest.$ac_ext <<_ACEOF |
| 19582 | /* confdefs.h. */ |
| 19583 | _ACEOF |
| 19584 | cat confdefs.h >>conftest.$ac_ext |
| 19585 | cat >>conftest.$ac_ext <<_ACEOF |
| 19586 | /* end confdefs.h. */ |
| 19587 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19588 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19589 | #define $ac_func innocuous_$ac_func |
| 19590 | |
| 19591 | /* System header to define __stub macros and hopefully few prototypes, |
| 19592 | which can conflict with char $ac_func (); below. |
| 19593 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19594 | <limits.h> exists even on freestanding compilers. */ |
| 19595 | |
| 19596 | #ifdef __STDC__ |
| 19597 | # include <limits.h> |
| 19598 | #else |
| 19599 | # include <assert.h> |
| 19600 | #endif |
| 19601 | |
| 19602 | #undef $ac_func |
| 19603 | |
| 19604 | /* Override any GCC internal prototype to avoid an error. |
| 19605 | Use char because int might match the return type of a GCC |
| 19606 | builtin and then its argument prototype would still apply. */ |
| 19607 | #ifdef __cplusplus |
| 19608 | extern "C" |
| 19609 | #endif |
| 19610 | char $ac_func (); |
| 19611 | /* The GNU C library defines this for functions which it implements |
| 19612 | to always fail with ENOSYS. Some functions are actually named |
| 19613 | something starting with __ and the normal name is an alias. */ |
| 19614 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19615 | choke me |
| 19616 | #endif |
| 19617 | |
| 19618 | int |
| 19619 | main () |
| 19620 | { |
| 19621 | return $ac_func (); |
| 19622 | ; |
| 19623 | return 0; |
| 19624 | } |
| 19625 | _ACEOF |
| 19626 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19627 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 19634 | ac_status=$? |
| 19635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19636 | rm -f conftest.er1 |
| 19637 | cat conftest.err >&5 |
| 19638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19639 | (exit $ac_status); } && |
| 19640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19641 | { (case "(($ac_try" in |
| 19642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19643 | *) ac_try_echo=$ac_try;; |
| 19644 | esac |
| 19645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19646 | (eval "$ac_try") 2>&5 |
| 19647 | ac_status=$? |
| 19648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19649 | (exit $ac_status); }; } && |
| 19650 | { ac_try='test -s conftest$ac_exeext' |
| 19651 | { (case "(($ac_try" in |
| 19652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19653 | *) ac_try_echo=$ac_try;; |
| 19654 | esac |
| 19655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19656 | (eval "$ac_try") 2>&5 |
| 19657 | ac_status=$? |
| 19658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19659 | (exit $ac_status); }; }; then |
| 19660 | eval "$as_ac_var=yes" |
| 19661 | else |
| 19662 | echo "$as_me: failed program was:" >&5 |
| 19663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19664 | |
| 19665 | eval "$as_ac_var=no" |
| 19666 | fi |
| 19667 | |
| 19668 | rm -f core conftest.err conftest.$ac_objext \ |
| 19669 | conftest$ac_exeext conftest.$ac_ext |
| 19670 | fi |
| 19671 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19672 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19673 | echo "${ECHO_T}$ac_res" >&6; } |
| 19674 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19675 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19676 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19677 | _ACEOF |
| 19678 | |
| 19679 | fi |
| 19680 | done |
| 19681 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19682 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19683 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19684 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19686 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19687 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19688 | ac_cv_func_mmap_fixed_mapped=no |
| 19689 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19690 | cat >conftest.$ac_ext <<_ACEOF |
| 19691 | /* confdefs.h. */ |
| 19692 | _ACEOF |
| 19693 | cat confdefs.h >>conftest.$ac_ext |
| 19694 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19695 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19696 | $ac_includes_default |
| 19697 | /* malloc might have been renamed as rpl_malloc. */ |
| 19698 | #undef malloc |
| 19699 | |
| 19700 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19701 | Here is a matrix of mmap possibilities: |
| 19702 | mmap private not fixed |
| 19703 | mmap private fixed at somewhere currently unmapped |
| 19704 | mmap private fixed at somewhere already mapped |
| 19705 | mmap shared not fixed |
| 19706 | mmap shared fixed at somewhere currently unmapped |
| 19707 | mmap shared fixed at somewhere already mapped |
| 19708 | For private mappings, we should verify that changes cannot be read() |
| 19709 | back from the file, nor mmap's back from the file at a different |
| 19710 | address. (There have been systems where private was not correctly |
| 19711 | implemented like the infamous i386 svr4.0, and systems where the |
| 19712 | VM page cache was not coherent with the file system buffer cache |
| 19713 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19714 | For shared mappings, we should conversely verify that changes get |
| 19715 | propagated back to all the places they're supposed to be. |
| 19716 | |
| 19717 | Grep wants private fixed already mapped. |
| 19718 | The main things grep needs to know about mmap are: |
| 19719 | * does it exist and is it safe to write into the mmap'd area |
| 19720 | * how to use it (BSD variants) */ |
| 19721 | |
| 19722 | #include <fcntl.h> |
| 19723 | #include <sys/mman.h> |
| 19724 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19725 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19726 | char *malloc (); |
| 19727 | #endif |
| 19728 | |
| 19729 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19730 | #if !HAVE_GETPAGESIZE |
| 19731 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19732 | # if !HAVE_SYS_PARAM_H |
| 19733 | # define HAVE_SYS_PARAM_H 1 |
| 19734 | # endif |
| 19735 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19736 | # ifdef _SC_PAGESIZE |
| 19737 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19738 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19739 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19740 | # include <sys/param.h> |
| 19741 | # ifdef EXEC_PAGESIZE |
| 19742 | # define getpagesize() EXEC_PAGESIZE |
| 19743 | # else /* no EXEC_PAGESIZE */ |
| 19744 | # ifdef NBPG |
| 19745 | # define getpagesize() NBPG * CLSIZE |
| 19746 | # ifndef CLSIZE |
| 19747 | # define CLSIZE 1 |
| 19748 | # endif /* no CLSIZE */ |
| 19749 | # else /* no NBPG */ |
| 19750 | # ifdef NBPC |
| 19751 | # define getpagesize() NBPC |
| 19752 | # else /* no NBPC */ |
| 19753 | # ifdef PAGESIZE |
| 19754 | # define getpagesize() PAGESIZE |
| 19755 | # endif /* PAGESIZE */ |
| 19756 | # endif /* no NBPC */ |
| 19757 | # endif /* no NBPG */ |
| 19758 | # endif /* no EXEC_PAGESIZE */ |
| 19759 | # else /* no HAVE_SYS_PARAM_H */ |
| 19760 | # define getpagesize() 8192 /* punt totally */ |
| 19761 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19762 | # endif /* no _SC_PAGESIZE */ |
| 19763 | |
| 19764 | #endif /* no HAVE_GETPAGESIZE */ |
| 19765 | |
| 19766 | int |
| 19767 | main () |
| 19768 | { |
| 19769 | char *data, *data2, *data3; |
| 19770 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19771 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19772 | |
| 19773 | pagesize = getpagesize (); |
| 19774 | |
| 19775 | /* First, make a file with some known garbage in it. */ |
| 19776 | data = (char *) malloc (pagesize); |
| 19777 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19778 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19779 | for (i = 0; i < pagesize; ++i) |
| 19780 | *(data + i) = rand (); |
| 19781 | umask (0); |
| 19782 | fd = creat ("conftest.mmap", 0600); |
| 19783 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19784 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19785 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19786 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19787 | close (fd); |
| 19788 | |
| 19789 | /* Next, try to mmap the file at a fixed address which already has |
| 19790 | something else allocated at it. If we can, also make sure that |
| 19791 | we see the same garbage. */ |
| 19792 | fd = open ("conftest.mmap", O_RDWR); |
| 19793 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19794 | return 1; |
| 19795 | data2 = (char *) malloc (2 * pagesize); |
| 19796 | if (!data2) |
| 19797 | return 1; |
| 19798 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19799 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19800 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19801 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19802 | for (i = 0; i < pagesize; ++i) |
| 19803 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19804 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19805 | |
| 19806 | /* Finally, make sure that changes to the mapped area do not |
| 19807 | percolate back to the file as seen by read(). (This is a bug on |
| 19808 | some variants of i386 svr4.0.) */ |
| 19809 | for (i = 0; i < pagesize; ++i) |
| 19810 | *(data2 + i) = *(data2 + i) + 1; |
| 19811 | data3 = (char *) malloc (pagesize); |
| 19812 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19813 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19814 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19815 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19816 | for (i = 0; i < pagesize; ++i) |
| 19817 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19818 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19819 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19820 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19821 | } |
| 19822 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19823 | rm -f conftest$ac_exeext |
| 19824 | if { (ac_try="$ac_link" |
| 19825 | case "(($ac_try" in |
| 19826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19827 | *) ac_try_echo=$ac_try;; |
| 19828 | esac |
| 19829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19830 | (eval "$ac_link") 2>&5 |
| 19831 | ac_status=$? |
| 19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19833 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19834 | { (case "(($ac_try" in |
| 19835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19836 | *) ac_try_echo=$ac_try;; |
| 19837 | esac |
| 19838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19839 | (eval "$ac_try") 2>&5 |
| 19840 | ac_status=$? |
| 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19842 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19843 | ac_cv_func_mmap_fixed_mapped=yes |
| 19844 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19845 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19846 | echo "$as_me: failed program was:" >&5 |
| 19847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19848 | |
| 19849 | ( exit $ac_status ) |
| 19850 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19851 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19852 | 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] | 19853 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19854 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19855 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19856 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19857 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19858 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19859 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19860 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19861 | cat >>confdefs.h <<\_ACEOF |
| 19862 | #define HAVE_MMAP 1 |
| 19863 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19864 | |
| 19865 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19866 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19867 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19868 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19869 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19870 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19872 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19873 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19874 | ac_cpp='$CPP $CPPFLAGS' |
| 19875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19878 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19879 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19880 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19881 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19882 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19883 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19884 | /* confdefs.h. */ |
| 19885 | _ACEOF |
| 19886 | cat confdefs.h >>conftest.$ac_ext |
| 19887 | cat >>conftest.$ac_ext <<_ACEOF |
| 19888 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19889 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19890 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19891 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19892 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19893 | |
| 19894 | int |
| 19895 | main () |
| 19896 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19897 | |
| 19898 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19899 | fd = creat ("foo",0777); |
| 19900 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19901 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19902 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19903 | ; |
| 19904 | return 0; |
| 19905 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19906 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19907 | rm -f conftest$ac_exeext |
| 19908 | if { (ac_try="$ac_link" |
| 19909 | case "(($ac_try" in |
| 19910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19911 | *) ac_try_echo=$ac_try;; |
| 19912 | esac |
| 19913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19914 | (eval "$ac_link") 2>&5 |
| 19915 | ac_status=$? |
| 19916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19917 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19918 | { (case "(($ac_try" in |
| 19919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19920 | *) ac_try_echo=$ac_try;; |
| 19921 | esac |
| 19922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19923 | (eval "$ac_try") 2>&5 |
| 19924 | ac_status=$? |
| 19925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19926 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19927 | ac_cv_func_mmap_file=yes |
| 19928 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19929 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19930 | echo "$as_me: failed program was:" >&5 |
| 19931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19932 | |
| 19933 | ( exit $ac_status ) |
| 19934 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19935 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19936 | 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] | 19937 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19938 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19939 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19940 | ac_ext=c |
| 19941 | ac_cpp='$CPP $CPPFLAGS' |
| 19942 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19943 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19944 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19945 | |
| 19946 | |
| 19947 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19948 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19949 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19950 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19951 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19952 | cat >>confdefs.h <<\_ACEOF |
| 19953 | #define HAVE_MMAP_FILE |
| 19954 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19955 | |
| 19956 | MMAP_FILE=yes |
| 19957 | |
| 19958 | fi |
| 19959 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19960 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19961 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19962 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19964 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19965 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19966 | ac_cv_need_dev_zero_for_mmap=yes |
| 19967 | else |
| 19968 | ac_cv_need_dev_zero_for_mmap=no |
| 19969 | fi |
| 19970 | |
| 19971 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19972 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19973 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19974 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19975 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19976 | cat >>confdefs.h <<\_ACEOF |
| 19977 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19978 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19979 | |
| 19980 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19981 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19982 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19983 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19984 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19985 | 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] | 19986 | fi |
| 19987 | if test "$ac_cv_func_mmap_file" = "no" |
| 19988 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19989 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19990 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19991 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19992 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19993 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19994 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19995 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 19996 | ac_ext=cpp |
| 19997 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19998 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19999 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20000 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20001 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20002 | cat >conftest.$ac_ext <<_ACEOF |
| 20003 | /* confdefs.h. */ |
| 20004 | _ACEOF |
| 20005 | cat confdefs.h >>conftest.$ac_ext |
| 20006 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20007 | /* end confdefs.h. */ |
| 20008 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20009 | volatile unsigned long val = 1; |
| 20010 | __sync_synchronize(); |
| 20011 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20012 | __sync_add_and_fetch(&val, 1); |
| 20013 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20014 | return 0; |
| 20015 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20016 | |
| 20017 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20018 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20019 | if { (ac_try="$ac_link" |
| 20020 | case "(($ac_try" in |
| 20021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20022 | *) ac_try_echo=$ac_try;; |
| 20023 | esac |
| 20024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20025 | (eval "$ac_link") 2>conftest.er1 |
| 20026 | ac_status=$? |
| 20027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20028 | rm -f conftest.er1 |
| 20029 | cat conftest.err >&5 |
| 20030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20031 | (exit $ac_status); } && |
| 20032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20033 | { (case "(($ac_try" in |
| 20034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20035 | *) ac_try_echo=$ac_try;; |
| 20036 | esac |
| 20037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20038 | (eval "$ac_try") 2>&5 |
| 20039 | ac_status=$? |
| 20040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20041 | (exit $ac_status); }; } && |
| 20042 | { ac_try='test -s conftest$ac_exeext' |
| 20043 | { (case "(($ac_try" in |
| 20044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20045 | *) ac_try_echo=$ac_try;; |
| 20046 | esac |
| 20047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20048 | (eval "$ac_try") 2>&5 |
| 20049 | ac_status=$? |
| 20050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20051 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20052 | ac_ext=c |
| 20053 | ac_cpp='$CPP $CPPFLAGS' |
| 20054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20057 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20058 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20059 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20061 | cat >>confdefs.h <<\_ACEOF |
| 20062 | #define LLVM_MULTITHREADED 1 |
| 20063 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20064 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20065 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20066 | echo "$as_me: failed program was:" >&5 |
| 20067 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20068 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20069 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20070 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20071 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20072 | cat >>confdefs.h <<\_ACEOF |
| 20073 | #define LLVM_MULTITHREADED 0 |
| 20074 | _ACEOF |
| 20075 | |
| 20076 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20077 | 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] | 20078 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20079 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20080 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20081 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20082 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20083 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20084 | 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] | 20085 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20086 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20087 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20089 | else |
| 20090 | ac_ext=c |
| 20091 | ac_cpp='$CPP $CPPFLAGS' |
| 20092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20095 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20096 | cat >conftest.$ac_ext <<_ACEOF |
| 20097 | /* confdefs.h. */ |
| 20098 | _ACEOF |
| 20099 | cat confdefs.h >>conftest.$ac_ext |
| 20100 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20101 | /* end confdefs.h. */ |
| 20102 | #ifndef __x86_64__ |
| 20103 | error: Not x86-64 even if uname says so! |
| 20104 | #endif |
| 20105 | |
| 20106 | int |
| 20107 | main () |
| 20108 | { |
| 20109 | |
| 20110 | ; |
| 20111 | return 0; |
| 20112 | } |
| 20113 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20114 | rm -f conftest.$ac_objext |
| 20115 | if { (ac_try="$ac_compile" |
| 20116 | case "(($ac_try" in |
| 20117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20118 | *) ac_try_echo=$ac_try;; |
| 20119 | esac |
| 20120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20121 | (eval "$ac_compile") 2>conftest.er1 |
| 20122 | ac_status=$? |
| 20123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20124 | rm -f conftest.er1 |
| 20125 | cat conftest.err >&5 |
| 20126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20127 | (exit $ac_status); } && |
| 20128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20129 | { (case "(($ac_try" in |
| 20130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20131 | *) ac_try_echo=$ac_try;; |
| 20132 | esac |
| 20133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20134 | (eval "$ac_try") 2>&5 |
| 20135 | ac_status=$? |
| 20136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20137 | (exit $ac_status); }; } && |
| 20138 | { ac_try='test -s conftest.$ac_objext' |
| 20139 | { (case "(($ac_try" in |
| 20140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20141 | *) ac_try_echo=$ac_try;; |
| 20142 | esac |
| 20143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20144 | (eval "$ac_try") 2>&5 |
| 20145 | ac_status=$? |
| 20146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20147 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20148 | llvm_cv_linux_mixed=no |
| 20149 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20150 | echo "$as_me: failed program was:" >&5 |
| 20151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20152 | |
| 20153 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20154 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20155 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20157 | ac_ext=c |
| 20158 | ac_cpp='$CPP $CPPFLAGS' |
| 20159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20162 | |
| 20163 | |
| 20164 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20165 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20166 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20167 | |
| 20168 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20169 | llvm_cv_target_arch="x86" |
| 20170 | ARCH="x86" |
| 20171 | fi |
| 20172 | fi |
| 20173 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20174 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20175 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20176 | do |
| 20177 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20178 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20179 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20180 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20182 | else |
| 20183 | cat >conftest.$ac_ext <<_ACEOF |
| 20184 | /* confdefs.h. */ |
| 20185 | _ACEOF |
| 20186 | cat confdefs.h >>conftest.$ac_ext |
| 20187 | cat >>conftest.$ac_ext <<_ACEOF |
| 20188 | /* end confdefs.h. */ |
| 20189 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20191 | #define $ac_func innocuous_$ac_func |
| 20192 | |
| 20193 | /* System header to define __stub macros and hopefully few prototypes, |
| 20194 | which can conflict with char $ac_func (); below. |
| 20195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20196 | <limits.h> exists even on freestanding compilers. */ |
| 20197 | |
| 20198 | #ifdef __STDC__ |
| 20199 | # include <limits.h> |
| 20200 | #else |
| 20201 | # include <assert.h> |
| 20202 | #endif |
| 20203 | |
| 20204 | #undef $ac_func |
| 20205 | |
| 20206 | /* Override any GCC internal prototype to avoid an error. |
| 20207 | Use char because int might match the return type of a GCC |
| 20208 | builtin and then its argument prototype would still apply. */ |
| 20209 | #ifdef __cplusplus |
| 20210 | extern "C" |
| 20211 | #endif |
| 20212 | char $ac_func (); |
| 20213 | /* The GNU C library defines this for functions which it implements |
| 20214 | to always fail with ENOSYS. Some functions are actually named |
| 20215 | something starting with __ and the normal name is an alias. */ |
| 20216 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20217 | choke me |
| 20218 | #endif |
| 20219 | |
| 20220 | int |
| 20221 | main () |
| 20222 | { |
| 20223 | return $ac_func (); |
| 20224 | ; |
| 20225 | return 0; |
| 20226 | } |
| 20227 | _ACEOF |
| 20228 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20229 | if { (ac_try="$ac_link" |
| 20230 | case "(($ac_try" in |
| 20231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20232 | *) ac_try_echo=$ac_try;; |
| 20233 | esac |
| 20234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20235 | (eval "$ac_link") 2>conftest.er1 |
| 20236 | ac_status=$? |
| 20237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20238 | rm -f conftest.er1 |
| 20239 | cat conftest.err >&5 |
| 20240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20241 | (exit $ac_status); } && |
| 20242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20243 | { (case "(($ac_try" in |
| 20244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20245 | *) ac_try_echo=$ac_try;; |
| 20246 | esac |
| 20247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20248 | (eval "$ac_try") 2>&5 |
| 20249 | ac_status=$? |
| 20250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20251 | (exit $ac_status); }; } && |
| 20252 | { ac_try='test -s conftest$ac_exeext' |
| 20253 | { (case "(($ac_try" in |
| 20254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20255 | *) ac_try_echo=$ac_try;; |
| 20256 | esac |
| 20257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20258 | (eval "$ac_try") 2>&5 |
| 20259 | ac_status=$? |
| 20260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20261 | (exit $ac_status); }; }; then |
| 20262 | eval "$as_ac_var=yes" |
| 20263 | else |
| 20264 | echo "$as_me: failed program was:" >&5 |
| 20265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20266 | |
| 20267 | eval "$as_ac_var=no" |
| 20268 | fi |
| 20269 | |
| 20270 | rm -f core conftest.err conftest.$ac_objext \ |
| 20271 | conftest$ac_exeext conftest.$ac_ext |
| 20272 | fi |
| 20273 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20274 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20275 | echo "${ECHO_T}$ac_res" >&6; } |
| 20276 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20277 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20278 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20279 | _ACEOF |
| 20280 | |
| 20281 | fi |
| 20282 | done |
| 20283 | |
| 20284 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20285 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 20286 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 20287 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 20288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20289 | else |
| 20290 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20291 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20292 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 20293 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 20294 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20295 | if test $? -eq 0 ; then |
| 20296 | llvm_cv_llvmgcc_sanity="yes" |
| 20297 | fi |
| 20298 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20299 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20300 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20301 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 20302 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20303 | |
| 20304 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20305 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 20306 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20307 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20308 | LLVMCC1=$llvmcc1path |
| 20309 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20310 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20311 | LLVMCC1PLUS=$llvmcc1pluspath |
| 20312 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20313 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 20314 | LLVMGCCDIR=$llvmgccdir |
| 20315 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 20316 | 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] | 20317 | LLVMGCC_LANGS=$llvmgcclangs |
| 20318 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20319 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 20320 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20321 | fi |
| 20322 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20323 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20324 | |
| 20325 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20326 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20327 | |
| 20328 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20329 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20330 | # information into substitutions that will end up in Makefile.config.in |
| 20331 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20332 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20333 | prefix="/usr/local" |
| 20334 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20335 | eval LLVM_PREFIX="${prefix}"; |
| 20336 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20337 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20338 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20339 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20340 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20341 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20342 | eval LLVM_INFODIR="${prefix}/info"; |
| 20343 | eval LLVM_MANDIR="${prefix}/man"; |
| 20344 | LLVM_CONFIGTIME=`date` |
| 20345 | |
| 20346 | |
| 20347 | |
| 20348 | |
| 20349 | |
| 20350 | |
| 20351 | |
| 20352 | |
| 20353 | |
| 20354 | |
| 20355 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20356 | # Place the various directores into the config.h file as #defines so that we |
| 20357 | # can know about the installation paths within LLVM. |
| 20358 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20359 | cat >>confdefs.h <<_ACEOF |
| 20360 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20361 | _ACEOF |
| 20362 | |
| 20363 | |
| 20364 | cat >>confdefs.h <<_ACEOF |
| 20365 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20366 | _ACEOF |
| 20367 | |
| 20368 | |
| 20369 | cat >>confdefs.h <<_ACEOF |
| 20370 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20371 | _ACEOF |
| 20372 | |
| 20373 | |
| 20374 | cat >>confdefs.h <<_ACEOF |
| 20375 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20376 | _ACEOF |
| 20377 | |
| 20378 | |
| 20379 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20380 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20381 | _ACEOF |
| 20382 | |
| 20383 | |
| 20384 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20385 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20386 | _ACEOF |
| 20387 | |
| 20388 | |
| 20389 | cat >>confdefs.h <<_ACEOF |
| 20390 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20391 | _ACEOF |
| 20392 | |
| 20393 | |
| 20394 | cat >>confdefs.h <<_ACEOF |
| 20395 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20396 | _ACEOF |
| 20397 | |
| 20398 | |
| 20399 | cat >>confdefs.h <<_ACEOF |
| 20400 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20401 | _ACEOF |
| 20402 | |
| 20403 | |
| 20404 | cat >>confdefs.h <<_ACEOF |
| 20405 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20406 | _ACEOF |
| 20407 | |
| 20408 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20409 | cat >>confdefs.h <<_ACEOF |
| 20410 | #define LLVM_HOSTTRIPLE "$host" |
| 20411 | _ACEOF |
| 20412 | |
| 20413 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20414 | # Determine which bindings to build. |
| 20415 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20416 | BINDINGS_TO_BUILD="" |
| 20417 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20418 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20419 | fi |
| 20420 | fi |
| 20421 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20422 | |
| 20423 | |
| 20424 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20425 | # other files. |
| 20426 | ALL_BINDINGS=ocaml |
| 20427 | |
| 20428 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20429 | # Do any work necessary to ensure that bindings have what they need. |
| 20430 | binding_prereqs_failed=0 |
| 20431 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20432 | case "$a_binding" in |
| 20433 | ocaml) |
| 20434 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20435 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20436 | 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] | 20437 | binding_prereqs_failed=1 |
| 20438 | fi |
| 20439 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20440 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20441 | 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] | 20442 | binding_prereqs_failed=1 |
| 20443 | fi |
| 20444 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20445 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20446 | 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] | 20447 | fi |
| 20448 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20449 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20450 | |
| 20451 | else |
| 20452 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20453 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20454 | then |
| 20455 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20456 | OCAML_LIBDIR=$ocaml_stdlib |
| 20457 | |
| 20458 | else |
| 20459 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20460 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20461 | |
| 20462 | fi |
| 20463 | fi |
| 20464 | ;; |
| 20465 | esac |
| 20466 | done |
| 20467 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20468 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20469 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20470 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20471 | fi |
| 20472 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20473 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20474 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20475 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20477 | else |
| 20478 | ac_ext=cpp |
| 20479 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20480 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20481 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20482 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20483 | |
| 20484 | oldcxxflags="$CXXFLAGS" |
| 20485 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20486 | cat >conftest.$ac_ext <<_ACEOF |
| 20487 | /* confdefs.h. */ |
| 20488 | _ACEOF |
| 20489 | cat confdefs.h >>conftest.$ac_ext |
| 20490 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20491 | /* end confdefs.h. */ |
| 20492 | |
| 20493 | int |
| 20494 | main () |
| 20495 | { |
| 20496 | |
| 20497 | ; |
| 20498 | return 0; |
| 20499 | } |
| 20500 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20501 | rm -f conftest.$ac_objext |
| 20502 | if { (ac_try="$ac_compile" |
| 20503 | case "(($ac_try" in |
| 20504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20505 | *) ac_try_echo=$ac_try;; |
| 20506 | esac |
| 20507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20508 | (eval "$ac_compile") 2>conftest.er1 |
| 20509 | ac_status=$? |
| 20510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20511 | rm -f conftest.er1 |
| 20512 | cat conftest.err >&5 |
| 20513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20514 | (exit $ac_status); } && |
| 20515 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20516 | { (case "(($ac_try" in |
| 20517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20518 | *) ac_try_echo=$ac_try;; |
| 20519 | esac |
| 20520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20521 | (eval "$ac_try") 2>&5 |
| 20522 | ac_status=$? |
| 20523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20524 | (exit $ac_status); }; } && |
| 20525 | { ac_try='test -s conftest.$ac_objext' |
| 20526 | { (case "(($ac_try" in |
| 20527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20528 | *) ac_try_echo=$ac_try;; |
| 20529 | esac |
| 20530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20531 | (eval "$ac_try") 2>&5 |
| 20532 | ac_status=$? |
| 20533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20534 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20535 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20536 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20537 | echo "$as_me: failed program was:" >&5 |
| 20538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20539 | |
| 20540 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20541 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20542 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20544 | CXXFLAGS="$oldcxxflags" |
| 20545 | ac_ext=c |
| 20546 | ac_cpp='$CPP $CPPFLAGS' |
| 20547 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20548 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20549 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20550 | |
| 20551 | |
| 20552 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20553 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20554 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20555 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20556 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20557 | |
| 20558 | else |
| 20559 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20560 | |
| 20561 | fi |
| 20562 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20563 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 20564 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20565 | RPATH="-Wl,-R" |
| 20566 | else |
| 20567 | RPATH="-Wl,-rpath" |
| 20568 | fi |
| 20569 | |
| 20570 | |
| 20571 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20572 | RDYNAMIC="-Wl,-export-dynamic" |
| 20573 | else |
| 20574 | RDYNAMIC="" |
| 20575 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 20576 | |
| 20577 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20578 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 20579 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20580 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 20581 | |
| 20582 | |
| 20583 | |
| 20584 | |
| 20585 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20586 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 20587 | |
| 20588 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 20589 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20590 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 20591 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20592 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 20593 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20594 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20595 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20597 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20598 | |
| 20599 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20600 | ac_config_files="$ac_config_files llvm.spec" |
| 20601 | |
| 20602 | |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 20603 | ac_config_files="$ac_config_files tools/llvmc/src/Base.td" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20604 | |
| 20605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20606 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 20607 | |
| 20608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20609 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20610 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20611 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20612 | |
| 20613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20614 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20615 | |
| 20616 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20617 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20618 | |
| 20619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20620 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20621 | |
| 20622 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20623 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 20624 | |
| 20625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20626 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20627 | |
| 20628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20629 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20630 | |
| 20631 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20632 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 20633 | |
| 20634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20635 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20636 | |
| 20637 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20638 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20639 | |
| 20640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20641 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20642 | |
| 20643 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20644 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20645 | |
| 20646 | |
| 20647 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20648 | |
| 20649 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20650 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20651 | cat >confcache <<\_ACEOF |
| 20652 | # This file is a shell script that caches the results of configure |
| 20653 | # tests run on this system so they can be shared between configure |
| 20654 | # scripts and configure runs, see configure's option --config-cache. |
| 20655 | # It is not useful on other systems. If it contains results you don't |
| 20656 | # want to keep, you may remove or edit it. |
| 20657 | # |
| 20658 | # config.status only pays attention to the cache file if you give it |
| 20659 | # the --recheck option to rerun configure. |
| 20660 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20661 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20662 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20663 | # following values. |
| 20664 | |
| 20665 | _ACEOF |
| 20666 | |
| 20667 | # The following way of writing the cache mishandles newlines in values, |
| 20668 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20669 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20670 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20671 | # 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] | 20672 | ( |
| 20673 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20674 | eval ac_val=\$$ac_var |
| 20675 | case $ac_val in #( |
| 20676 | *${as_nl}*) |
| 20677 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20678 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20679 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20680 | esac |
| 20681 | case $ac_var in #( |
| 20682 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20683 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20684 | esac ;; |
| 20685 | esac |
| 20686 | done |
| 20687 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20688 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20689 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20690 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20691 | # `set' does not quote correctly, so add quotes (double-quote |
| 20692 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20693 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20694 | "s/'/'\\\\''/g; |
| 20695 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20696 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20697 | *) |
| 20698 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20699 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20700 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20701 | esac | |
| 20702 | sort |
| 20703 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20704 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20705 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20706 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20707 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20708 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20709 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20710 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20711 | :end' >>confcache |
| 20712 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20713 | if test -w "$cache_file"; then |
| 20714 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20715 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20716 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20717 | cat confcache >$cache_file |
| 20718 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20719 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20720 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20721 | fi |
| 20722 | fi |
| 20723 | rm -f confcache |
| 20724 | |
| 20725 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20726 | # Let make expand exec_prefix. |
| 20727 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20728 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20729 | DEFS=-DHAVE_CONFIG_H |
| 20730 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20731 | ac_libobjs= |
| 20732 | ac_ltlibobjs= |
| 20733 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20734 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20735 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20736 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20737 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20738 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20739 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20740 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20741 | done |
| 20742 | LIBOBJS=$ac_libobjs |
| 20743 | |
| 20744 | LTLIBOBJS=$ac_ltlibobjs |
| 20745 | |
| 20746 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20747 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20748 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20749 | Usually this means the macro was only invoked conditionally." >&5 |
| 20750 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20751 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20752 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20753 | fi |
| 20754 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20755 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20756 | Usually this means the macro was only invoked conditionally." >&5 |
| 20757 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20758 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20759 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20760 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20761 | |
| 20762 | : ${CONFIG_STATUS=./config.status} |
| 20763 | ac_clean_files_save=$ac_clean_files |
| 20764 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20765 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20766 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20767 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20768 | #! $SHELL |
| 20769 | # Generated by $as_me. |
| 20770 | # Run this file to recreate the current configuration. |
| 20771 | # Compiler output produced by configure, useful for debugging |
| 20772 | # configure, is in config.log if it exists. |
| 20773 | |
| 20774 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20775 | ac_cs_recheck=false |
| 20776 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20777 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20778 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20780 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20781 | ## --------------------- ## |
| 20782 | ## M4sh Initialization. ## |
| 20783 | ## --------------------- ## |
| 20784 | |
| 20785 | # Be Bourne compatible |
| 20786 | 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] | 20787 | emulate sh |
| 20788 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20789 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20790 | # is contrary to our usage. Disable this feature. |
| 20791 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20792 | setopt NO_GLOB_SUBST |
| 20793 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20794 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20795 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20796 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20797 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20798 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20799 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20800 | # PATH needs CR |
| 20801 | # Avoid depending upon Character Ranges. |
| 20802 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20803 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20804 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20805 | as_cr_digits='0123456789' |
| 20806 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20807 | |
| 20808 | # The user is always right. |
| 20809 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20810 | echo "#! /bin/sh" >conf$$.sh |
| 20811 | echo "exit 0" >>conf$$.sh |
| 20812 | chmod +x conf$$.sh |
| 20813 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20814 | PATH_SEPARATOR=';' |
| 20815 | else |
| 20816 | PATH_SEPARATOR=: |
| 20817 | fi |
| 20818 | rm -f conf$$.sh |
| 20819 | fi |
| 20820 | |
| 20821 | # Support unset when possible. |
| 20822 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20823 | as_unset=unset |
| 20824 | else |
| 20825 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20826 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20827 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20828 | |
| 20829 | # IFS |
| 20830 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20831 | # there to prevent editors from complaining about space-tab. |
| 20832 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20833 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20834 | as_nl=' |
| 20835 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20836 | IFS=" "" $as_nl" |
| 20837 | |
| 20838 | # 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] | 20839 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20840 | *[\\/]* ) as_myself=$0 ;; |
| 20841 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20842 | for as_dir in $PATH |
| 20843 | do |
| 20844 | IFS=$as_save_IFS |
| 20845 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20846 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20847 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20848 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20849 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20850 | ;; |
| 20851 | esac |
| 20852 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20853 | # in which case we are not to be found in the path. |
| 20854 | if test "x$as_myself" = x; then |
| 20855 | as_myself=$0 |
| 20856 | fi |
| 20857 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20858 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20859 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20860 | fi |
| 20861 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20862 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20863 | for as_var in ENV MAIL MAILPATH |
| 20864 | 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] | 20865 | done |
| 20866 | PS1='$ ' |
| 20867 | PS2='> ' |
| 20868 | PS4='+ ' |
| 20869 | |
| 20870 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20871 | for as_var in \ |
| 20872 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20873 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20874 | LC_TELEPHONE LC_TIME |
| 20875 | do |
| 20876 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20877 | eval $as_var=C; export $as_var |
| 20878 | else |
| 20879 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20880 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20881 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20882 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20883 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20884 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20885 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20886 | as_expr=expr |
| 20887 | else |
| 20888 | as_expr=false |
| 20889 | fi |
| 20890 | |
| 20891 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20892 | as_basename=basename |
| 20893 | else |
| 20894 | as_basename=false |
| 20895 | fi |
| 20896 | |
| 20897 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20898 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20899 | as_me=`$as_basename -- "$0" || |
| 20900 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20901 | X"$0" : 'X\(//\)$' \| \ |
| 20902 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20903 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20904 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20905 | s//\1/ |
| 20906 | q |
| 20907 | } |
| 20908 | /^X\/\(\/\/\)$/{ |
| 20909 | s//\1/ |
| 20910 | q |
| 20911 | } |
| 20912 | /^X\/\(\/\).*/{ |
| 20913 | s//\1/ |
| 20914 | q |
| 20915 | } |
| 20916 | s/.*/./; q'` |
| 20917 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20918 | # CDPATH. |
| 20919 | $as_unset CDPATH |
| 20920 | |
| 20921 | |
| 20922 | |
| 20923 | as_lineno_1=$LINENO |
| 20924 | as_lineno_2=$LINENO |
| 20925 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20926 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20927 | |
| 20928 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20929 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20930 | # line-number line after each line using $LINENO; the second 'sed' |
| 20931 | # does the real work. The second script uses 'N' to pair each |
| 20932 | # line-number line with the line containing $LINENO, and appends |
| 20933 | # trailing '-' during substitution so that $LINENO is not a special |
| 20934 | # case at line end. |
| 20935 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20936 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20937 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20938 | sed -n ' |
| 20939 | p |
| 20940 | /[$]LINENO/= |
| 20941 | ' <$as_myself | |
| 20942 | sed ' |
| 20943 | s/[$]LINENO.*/&-/ |
| 20944 | t lineno |
| 20945 | b |
| 20946 | :lineno |
| 20947 | N |
| 20948 | :loop |
| 20949 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20950 | t loop |
| 20951 | s/-\n.*// |
| 20952 | ' >$as_me.lineno && |
| 20953 | chmod +x "$as_me.lineno" || |
| 20954 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20955 | { (exit 1); exit 1; }; } |
| 20956 | |
| 20957 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20958 | # (the dirname of $[0] is not the place where we might find the |
| 20959 | # original and so on. Autoconf is especially sensitive to this). |
| 20960 | . "./$as_me.lineno" |
| 20961 | # Exit status is that of the last command. |
| 20962 | exit |
| 20963 | } |
| 20964 | |
| 20965 | |
| 20966 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20967 | as_dirname=dirname |
| 20968 | else |
| 20969 | as_dirname=false |
| 20970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20971 | |
| 20972 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20973 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20974 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20975 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20976 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20977 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20978 | esac;; |
| 20979 | *) |
| 20980 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20981 | esac |
| 20982 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20983 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20984 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20985 | as_expr=expr |
| 20986 | else |
| 20987 | as_expr=false |
| 20988 | fi |
| 20989 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20990 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20991 | if test -d conf$$.dir; then |
| 20992 | rm -f conf$$.dir/conf$$.file |
| 20993 | else |
| 20994 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20995 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20996 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20997 | echo >conf$$.file |
| 20998 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20999 | as_ln_s='ln -s' |
| 21000 | # ... but there are two gotchas: |
| 21001 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21002 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21003 | # In both cases, we have to default to `cp -p'. |
| 21004 | 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] | 21005 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21006 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21007 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21008 | else |
| 21009 | as_ln_s='cp -p' |
| 21010 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21011 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21012 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21013 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21014 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21015 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21016 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21017 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21018 | as_mkdir_p=false |
| 21019 | fi |
| 21020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21021 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21022 | # systems may use methods other than mode bits to determine executability. |
| 21023 | cat >conf$$.file <<_ASEOF |
| 21024 | #! /bin/sh |
| 21025 | exit 0 |
| 21026 | _ASEOF |
| 21027 | chmod +x conf$$.file |
| 21028 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21029 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21030 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21031 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21033 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21034 | |
| 21035 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21036 | 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] | 21037 | |
| 21038 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21039 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21040 | |
| 21041 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21042 | exec 6>&1 |
| 21043 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21044 | # 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] | 21045 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21046 | # values after options handling. |
| 21047 | ac_log=" |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 21048 | This file was extended by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21049 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21050 | |
| 21051 | CONFIG_FILES = $CONFIG_FILES |
| 21052 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21053 | CONFIG_LINKS = $CONFIG_LINKS |
| 21054 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21055 | $ $0 $@ |
| 21056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21057 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21058 | " |
| 21059 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21060 | _ACEOF |
| 21061 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21062 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21063 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21064 | config_files="$ac_config_files" |
| 21065 | config_headers="$ac_config_headers" |
| 21066 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21068 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21069 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21070 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21071 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21072 | \`$as_me' instantiates files from templates according to the |
| 21073 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21074 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21075 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21076 | |
| 21077 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21078 | -V, --version print version number, then exit |
| 21079 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21080 | -d, --debug don't remove temporary files |
| 21081 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21082 | --file=FILE[:TEMPLATE] |
| 21083 | instantiate the configuration file FILE |
| 21084 | --header=FILE[:TEMPLATE] |
| 21085 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21086 | |
| 21087 | Configuration files: |
| 21088 | $config_files |
| 21089 | |
| 21090 | Configuration headers: |
| 21091 | $config_headers |
| 21092 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21093 | Configuration commands: |
| 21094 | $config_commands |
| 21095 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21096 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21098 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21099 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21100 | ac_cs_version="\\ |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 21101 | llvm config.status 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21102 | configured by $0, generated by GNU Autoconf 2.60, |
| 21103 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21104 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21105 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21106 | This config.status script is free software; the Free Software Foundation |
| 21107 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21108 | |
| 21109 | ac_pwd='$ac_pwd' |
| 21110 | srcdir='$srcdir' |
| 21111 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21112 | _ACEOF |
| 21113 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21114 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21115 | # If no file are specified by the user, then we need to provide default |
| 21116 | # 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] | 21117 | ac_need_defaults=: |
| 21118 | while test $# != 0 |
| 21119 | do |
| 21120 | case $1 in |
| 21121 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21122 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21123 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21124 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21125 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21126 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21127 | ac_option=$1 |
| 21128 | ac_optarg=$2 |
| 21129 | ac_shift=shift |
| 21130 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21131 | esac |
| 21132 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21133 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21134 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21135 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21136 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21137 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21138 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21139 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21140 | debug=: ;; |
| 21141 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21142 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21143 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21144 | ac_need_defaults=false;; |
| 21145 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21146 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21147 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21148 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21149 | --he | --h) |
| 21150 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21151 | { echo "$as_me: error: ambiguous option: $1 |
| 21152 | Try \`$0 --help' for more information." >&2 |
| 21153 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21154 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21155 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21156 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21157 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21158 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21159 | |
| 21160 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21161 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21162 | Try \`$0 --help' for more information." >&2 |
| 21163 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21164 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21165 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21166 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21167 | |
| 21168 | esac |
| 21169 | shift |
| 21170 | done |
| 21171 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21172 | ac_configure_extra_args= |
| 21173 | |
| 21174 | if $ac_cs_silent; then |
| 21175 | exec 6>/dev/null |
| 21176 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21177 | fi |
| 21178 | |
| 21179 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21180 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21181 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21182 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21183 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21184 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21185 | 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] | 21186 | fi |
| 21187 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21188 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21189 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21190 | exec 5>>config.log |
| 21191 | { |
| 21192 | echo |
| 21193 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21194 | ## Running $as_me. ## |
| 21195 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21196 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21197 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21198 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21199 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21200 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21201 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21202 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21203 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21204 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21205 | |
| 21206 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21207 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21208 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21209 | |
| 21210 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21211 | for ac_config_target in $ac_config_targets |
| 21212 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21213 | case $ac_config_target in |
| 21214 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21215 | "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21216 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21217 | "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] | 21218 | "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] | 21219 | "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] | 21220 | "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] | 21221 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21222 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 21223 | "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21224 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 21225 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21226 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21227 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21228 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21229 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21230 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21231 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21232 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21233 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21234 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21235 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21236 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21237 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21238 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21239 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21240 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21241 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21242 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21243 | esac |
| 21244 | done |
| 21245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21246 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21247 | # If the user did not use the arguments to specify the items to instantiate, |
| 21248 | # then the envvar interface is used. Set only those that are not. |
| 21249 | # We use the long form for the default assignment because of an extremely |
| 21250 | # bizarre bug on SunOS 4.1.3. |
| 21251 | if $ac_need_defaults; then |
| 21252 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21253 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21254 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21255 | fi |
| 21256 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21257 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21258 | # 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] | 21259 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21260 | # Hook for its removal unless debugging. |
| 21261 | # Note that there is a small window in which the directory will not be cleaned: |
| 21262 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21263 | $debug || |
| 21264 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21265 | tmp= |
| 21266 | trap 'exit_status=$? |
| 21267 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21268 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21269 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21270 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21271 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21272 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21273 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21274 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21275 | test -n "$tmp" && test -d "$tmp" |
| 21276 | } || |
| 21277 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21278 | tmp=./conf$$-$RANDOM |
| 21279 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21280 | } || |
| 21281 | { |
| 21282 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21283 | { (exit 1); exit 1; } |
| 21284 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21285 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21286 | # |
| 21287 | # Set up the sed scripts for CONFIG_FILES section. |
| 21288 | # |
| 21289 | |
| 21290 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21291 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21292 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21293 | |
| 21294 | _ACEOF |
| 21295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21296 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21298 | ac_delim='%!_!# ' |
| 21299 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21300 | cat >conf$$subs.sed <<_ACEOF |
| 21301 | SHELL!$SHELL$ac_delim |
| 21302 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21303 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21304 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21305 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21306 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21307 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21308 | exec_prefix!$exec_prefix$ac_delim |
| 21309 | prefix!$prefix$ac_delim |
| 21310 | program_transform_name!$program_transform_name$ac_delim |
| 21311 | bindir!$bindir$ac_delim |
| 21312 | sbindir!$sbindir$ac_delim |
| 21313 | libexecdir!$libexecdir$ac_delim |
| 21314 | datarootdir!$datarootdir$ac_delim |
| 21315 | datadir!$datadir$ac_delim |
| 21316 | sysconfdir!$sysconfdir$ac_delim |
| 21317 | sharedstatedir!$sharedstatedir$ac_delim |
| 21318 | localstatedir!$localstatedir$ac_delim |
| 21319 | includedir!$includedir$ac_delim |
| 21320 | oldincludedir!$oldincludedir$ac_delim |
| 21321 | docdir!$docdir$ac_delim |
| 21322 | infodir!$infodir$ac_delim |
| 21323 | htmldir!$htmldir$ac_delim |
| 21324 | dvidir!$dvidir$ac_delim |
| 21325 | pdfdir!$pdfdir$ac_delim |
| 21326 | psdir!$psdir$ac_delim |
| 21327 | libdir!$libdir$ac_delim |
| 21328 | localedir!$localedir$ac_delim |
| 21329 | mandir!$mandir$ac_delim |
| 21330 | DEFS!$DEFS$ac_delim |
| 21331 | ECHO_C!$ECHO_C$ac_delim |
| 21332 | ECHO_N!$ECHO_N$ac_delim |
| 21333 | ECHO_T!$ECHO_T$ac_delim |
| 21334 | LIBS!$LIBS$ac_delim |
| 21335 | build_alias!$build_alias$ac_delim |
| 21336 | host_alias!$host_alias$ac_delim |
| 21337 | target_alias!$target_alias$ac_delim |
| 21338 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 21339 | subdirs!$subdirs$ac_delim |
| 21340 | build!$build$ac_delim |
| 21341 | build_cpu!$build_cpu$ac_delim |
| 21342 | build_vendor!$build_vendor$ac_delim |
| 21343 | build_os!$build_os$ac_delim |
| 21344 | host!$host$ac_delim |
| 21345 | host_cpu!$host_cpu$ac_delim |
| 21346 | host_vendor!$host_vendor$ac_delim |
| 21347 | host_os!$host_os$ac_delim |
| 21348 | target!$target$ac_delim |
| 21349 | target_cpu!$target_cpu$ac_delim |
| 21350 | target_vendor!$target_vendor$ac_delim |
| 21351 | target_os!$target_os$ac_delim |
| 21352 | OS!$OS$ac_delim |
| 21353 | HOST_OS!$HOST_OS$ac_delim |
| 21354 | TARGET_OS!$TARGET_OS$ac_delim |
| 21355 | LINKALL!$LINKALL$ac_delim |
| 21356 | NOLINKALL!$NOLINKALL$ac_delim |
| 21357 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21358 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21359 | ARCH!$ARCH$ac_delim |
| 21360 | ENDIAN!$ENDIAN$ac_delim |
| 21361 | CC!$CC$ac_delim |
| 21362 | CFLAGS!$CFLAGS$ac_delim |
| 21363 | LDFLAGS!$LDFLAGS$ac_delim |
| 21364 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21365 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21366 | EXEEXT!$EXEEXT$ac_delim |
| 21367 | OBJEXT!$OBJEXT$ac_delim |
| 21368 | CPP!$CPP$ac_delim |
| 21369 | GREP!$GREP$ac_delim |
| 21370 | EGREP!$EGREP$ac_delim |
| 21371 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21372 | BUILD_CC!$BUILD_CC$ac_delim |
| 21373 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21374 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21375 | CVSBUILD!$CVSBUILD$ac_delim |
| 21376 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21377 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21378 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21379 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21380 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21381 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21382 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21383 | JIT!$JIT$ac_delim |
| 21384 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 21385 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 21386 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 21387 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21388 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21389 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21390 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21391 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21392 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 21393 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 21394 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 21395 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21396 | CLANGPATH!$CLANGPATH$ac_delim |
| 21397 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21398 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21399 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21400 | 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] | 21401 | break |
| 21402 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21403 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21404 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21405 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21406 | else |
| 21407 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21408 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21409 | done |
| 21410 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21411 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21412 | if test -n "$ac_eof"; then |
| 21413 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21414 | ac_eof=`expr $ac_eof + 1` |
| 21415 | fi |
| 21416 | |
| 21417 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21418 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21419 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21420 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21421 | sed ' |
| 21422 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21423 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21424 | :n |
| 21425 | t n |
| 21426 | s/'"$ac_delim"'$/,g/; t |
| 21427 | s/$/\\/; p |
| 21428 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21429 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21430 | rm -f conf$$subs.sed |
| 21431 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21432 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21433 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21434 | |
| 21435 | |
| 21436 | ac_delim='%!_!# ' |
| 21437 | for ac_last_try in false false false false false :; do |
| 21438 | cat >conf$$subs.sed <<_ACEOF |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21439 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21440 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21441 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21442 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21443 | CXX!$CXX$ac_delim |
| 21444 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21445 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21446 | NM!$NM$ac_delim |
| 21447 | ifGNUmake!$ifGNUmake$ac_delim |
| 21448 | LN_S!$LN_S$ac_delim |
| 21449 | CMP!$CMP$ac_delim |
| 21450 | CP!$CP$ac_delim |
| 21451 | DATE!$DATE$ac_delim |
| 21452 | FIND!$FIND$ac_delim |
| 21453 | MKDIR!$MKDIR$ac_delim |
| 21454 | MV!$MV$ac_delim |
| 21455 | RANLIB!$RANLIB$ac_delim |
| 21456 | AR!$AR$ac_delim |
| 21457 | RM!$RM$ac_delim |
| 21458 | SED!$SED$ac_delim |
| 21459 | TAR!$TAR$ac_delim |
| 21460 | BINPWD!$BINPWD$ac_delim |
| 21461 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21462 | DOT!$DOT$ac_delim |
| 21463 | FDP!$FDP$ac_delim |
| 21464 | NEATO!$NEATO$ac_delim |
| 21465 | TWOPI!$TWOPI$ac_delim |
| 21466 | CIRCO!$CIRCO$ac_delim |
| 21467 | GV!$GV$ac_delim |
| 21468 | DOTTY!$DOTTY$ac_delim |
| 21469 | PERL!$PERL$ac_delim |
| 21470 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21471 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21472 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21473 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21474 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21475 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21476 | DOXYGEN!$DOXYGEN$ac_delim |
| 21477 | GROFF!$GROFF$ac_delim |
| 21478 | GZIP!$GZIP$ac_delim |
| 21479 | POD2HTML!$POD2HTML$ac_delim |
| 21480 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21481 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21482 | RUNTEST!$RUNTEST$ac_delim |
| 21483 | TCLSH!$TCLSH$ac_delim |
| 21484 | ZIP!$ZIP$ac_delim |
| 21485 | OCAMLC!$OCAMLC$ac_delim |
| 21486 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21487 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21488 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21489 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21490 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21491 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21492 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21493 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21494 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21495 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21496 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 21497 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 21498 | LLVMGCC!$LLVMGCC$ac_delim |
| 21499 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21500 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21501 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21502 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21503 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21504 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21505 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21506 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21507 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 21508 | LLVMCC1!$LLVMCC1$ac_delim |
| 21509 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 21510 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21511 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 21512 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21513 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21514 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21515 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21516 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21517 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21518 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21519 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21520 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21521 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21522 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21523 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21524 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21525 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21526 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21527 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21528 | RPATH!$RPATH$ac_delim |
| 21529 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21530 | LIBOBJS!$LIBOBJS$ac_delim |
| 21531 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21532 | _ACEOF |
| 21533 | |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 21534 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21535 | break |
| 21536 | elif $ac_last_try; then |
| 21537 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21538 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21539 | { (exit 1); exit 1; }; } |
| 21540 | else |
| 21541 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21542 | fi |
| 21543 | done |
| 21544 | |
| 21545 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21546 | if test -n "$ac_eof"; then |
| 21547 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21548 | ac_eof=`expr $ac_eof + 1` |
| 21549 | fi |
| 21550 | |
| 21551 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21552 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 21553 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21554 | _ACEOF |
| 21555 | sed ' |
| 21556 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21557 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21558 | :n |
| 21559 | t n |
| 21560 | s/'"$ac_delim"'$/,g/; t |
| 21561 | s/$/\\/; p |
| 21562 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21563 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21564 | rm -f conf$$subs.sed |
| 21565 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21566 | :end |
| 21567 | s/|#_!!_#|//g |
| 21568 | CEOF$ac_eof |
| 21569 | _ACEOF |
| 21570 | |
| 21571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21572 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21573 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21574 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21575 | # (actually we leave an empty line to preserve line numbers). |
| 21576 | if test "x$srcdir" = x.; then |
| 21577 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21578 | s/:*\$(srcdir):*/:/ |
| 21579 | s/:*\${srcdir}:*/:/ |
| 21580 | s/:*@srcdir@:*/:/ |
| 21581 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21582 | s/:*$// |
| 21583 | s/^[^=]*=[ ]*$// |
| 21584 | }' |
| 21585 | fi |
| 21586 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21587 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21588 | fi # test -n "$CONFIG_FILES" |
| 21589 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21590 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21591 | 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] | 21592 | do |
| 21593 | case $ac_tag in |
| 21594 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21595 | esac |
| 21596 | case $ac_mode$ac_tag in |
| 21597 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21598 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21599 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21600 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21601 | :[FH]-) ac_tag=-:-;; |
| 21602 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21603 | esac |
| 21604 | ac_save_IFS=$IFS |
| 21605 | IFS=: |
| 21606 | set x $ac_tag |
| 21607 | IFS=$ac_save_IFS |
| 21608 | shift |
| 21609 | ac_file=$1 |
| 21610 | shift |
| 21611 | |
| 21612 | case $ac_mode in |
| 21613 | :L) ac_source=$1;; |
| 21614 | :[FH]) |
| 21615 | ac_file_inputs= |
| 21616 | for ac_f |
| 21617 | do |
| 21618 | case $ac_f in |
| 21619 | -) ac_f="$tmp/stdin";; |
| 21620 | *) # Look for the file first in the build tree, then in the source tree |
| 21621 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21622 | # because $ac_f cannot contain `:'. |
| 21623 | test -f "$ac_f" || |
| 21624 | case $ac_f in |
| 21625 | [\\/$]*) false;; |
| 21626 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21627 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21628 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21629 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21630 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21631 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21632 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21633 | done |
| 21634 | |
| 21635 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21636 | # use $as_me), people would be surprised to read: |
| 21637 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21638 | configure_input="Generated from "`IFS=: |
| 21639 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21640 | if test x"$ac_file" != x-; then |
| 21641 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21642 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21643 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21644 | fi |
| 21645 | |
| 21646 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21647 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21648 | esac |
| 21649 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21650 | esac |
| 21651 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21652 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21653 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21654 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21655 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21656 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21657 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21659 | s//\1/ |
| 21660 | q |
| 21661 | } |
| 21662 | /^X\(\/\/\)[^/].*/{ |
| 21663 | s//\1/ |
| 21664 | q |
| 21665 | } |
| 21666 | /^X\(\/\/\)$/{ |
| 21667 | s//\1/ |
| 21668 | q |
| 21669 | } |
| 21670 | /^X\(\/\).*/{ |
| 21671 | s//\1/ |
| 21672 | q |
| 21673 | } |
| 21674 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21675 | { as_dir="$ac_dir" |
| 21676 | case $as_dir in #( |
| 21677 | -*) as_dir=./$as_dir;; |
| 21678 | esac |
| 21679 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21680 | as_dirs= |
| 21681 | while :; do |
| 21682 | case $as_dir in #( |
| 21683 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21684 | *) as_qdir=$as_dir;; |
| 21685 | esac |
| 21686 | as_dirs="'$as_qdir' $as_dirs" |
| 21687 | as_dir=`$as_dirname -- "$as_dir" || |
| 21688 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21689 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21690 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21691 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21692 | echo X"$as_dir" | |
| 21693 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21694 | s//\1/ |
| 21695 | q |
| 21696 | } |
| 21697 | /^X\(\/\/\)[^/].*/{ |
| 21698 | s//\1/ |
| 21699 | q |
| 21700 | } |
| 21701 | /^X\(\/\/\)$/{ |
| 21702 | s//\1/ |
| 21703 | q |
| 21704 | } |
| 21705 | /^X\(\/\).*/{ |
| 21706 | s//\1/ |
| 21707 | q |
| 21708 | } |
| 21709 | s/.*/./; q'` |
| 21710 | test -d "$as_dir" && break |
| 21711 | done |
| 21712 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21713 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21714 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21715 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21716 | ac_builddir=. |
| 21717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21718 | case "$ac_dir" in |
| 21719 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21720 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21721 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21722 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21723 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21724 | case $ac_top_builddir_sub in |
| 21725 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21726 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21727 | esac ;; |
| 21728 | esac |
| 21729 | ac_abs_top_builddir=$ac_pwd |
| 21730 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21731 | # for backward compatibility: |
| 21732 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21733 | |
| 21734 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21735 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21736 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21737 | ac_top_srcdir=$ac_top_builddir_sub |
| 21738 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21739 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21740 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21741 | ac_top_srcdir=$srcdir |
| 21742 | ac_abs_top_srcdir=$srcdir ;; |
| 21743 | *) # Relative name. |
| 21744 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21745 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21746 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21747 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21748 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21749 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21751 | case $ac_mode in |
| 21752 | :F) |
| 21753 | # |
| 21754 | # CONFIG_FILE |
| 21755 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21756 | |
| 21757 | case $INSTALL in |
| 21758 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21759 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21760 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21761 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21763 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21764 | # If the template does not know about datarootdir, expand it. |
| 21765 | # FIXME: This hack should be removed a few years after 2.60. |
| 21766 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21767 | |
| 21768 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21769 | p |
| 21770 | q |
| 21771 | } |
| 21772 | /@datadir@/p |
| 21773 | /@docdir@/p |
| 21774 | /@infodir@/p |
| 21775 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21776 | /@mandir@/p |
| 21777 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21778 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21779 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21780 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21781 | 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] | 21782 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21783 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21784 | ac_datarootdir_hack=' |
| 21785 | s&@datadir@&$datadir&g |
| 21786 | s&@docdir@&$docdir&g |
| 21787 | s&@infodir@&$infodir&g |
| 21788 | s&@localedir@&$localedir&g |
| 21789 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21790 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21791 | esac |
| 21792 | _ACEOF |
| 21793 | |
| 21794 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21795 | # Shell code in configure.ac might set extrasub. |
| 21796 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21797 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21798 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21799 | $extrasub |
| 21800 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21801 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21802 | :t |
| 21803 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21804 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21805 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21806 | s&@srcdir@&$ac_srcdir&;t t |
| 21807 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21808 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21809 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21810 | s&@builddir@&$ac_builddir&;t t |
| 21811 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21812 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21813 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21814 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21815 | " $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] | 21816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21817 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21818 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21819 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21820 | { 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] | 21821 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21822 | 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] | 21823 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21824 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21825 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21826 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21827 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21828 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21829 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21830 | ;; |
| 21831 | :H) |
| 21832 | # |
| 21833 | # CONFIG_HEADER |
| 21834 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21835 | _ACEOF |
| 21836 | |
| 21837 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21838 | # substitutes the proper values into config.h.in to produce config.h. |
| 21839 | rm -f conftest.defines conftest.tail |
| 21840 | # First, append a space to every undef/define line, to ease matching. |
| 21841 | echo 's/$/ /' >conftest.defines |
| 21842 | # Then, protect against being on the right side of a sed subst, or in |
| 21843 | # an unquoted here document, in config.status. If some macros were |
| 21844 | # called several times there might be several #defines for the same |
| 21845 | # symbol, which is useless. But do not sort them, since the last |
| 21846 | # AC_DEFINE must be honored. |
| 21847 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21848 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21849 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21850 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21851 | # just an empty string. |
| 21852 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21853 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21854 | ac_dC=' ' |
| 21855 | ac_dD=' ,' |
| 21856 | |
| 21857 | uniq confdefs.h | |
| 21858 | sed -n ' |
| 21859 | t rset |
| 21860 | :rset |
| 21861 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21862 | t ok |
| 21863 | d |
| 21864 | :ok |
| 21865 | s/[\\&,]/\\&/g |
| 21866 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21867 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21868 | ' >>conftest.defines |
| 21869 | |
| 21870 | # Remove the space that was appended to ease matching. |
| 21871 | # Then replace #undef with comments. This is necessary, for |
| 21872 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21873 | # on some systems where configure will not decide to define it. |
| 21874 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21875 | echo 's/ $// |
| 21876 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21877 | |
| 21878 | # Break up conftest.defines: |
| 21879 | ac_max_sed_lines=50 |
| 21880 | |
| 21881 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21882 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21883 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21884 | # et cetera. |
| 21885 | ac_in='$ac_file_inputs' |
| 21886 | ac_out='"$tmp/out1"' |
| 21887 | ac_nxt='"$tmp/out2"' |
| 21888 | |
| 21889 | while : |
| 21890 | do |
| 21891 | # Write a here document: |
| 21892 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21893 | # First, check the format of the line: |
| 21894 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21895 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21896 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21897 | b |
| 21898 | :def |
| 21899 | _ACEOF |
| 21900 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21901 | echo 'CEOF |
| 21902 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21903 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21904 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21905 | grep . conftest.tail >/dev/null || break |
| 21906 | rm -f conftest.defines |
| 21907 | mv conftest.tail conftest.defines |
| 21908 | done |
| 21909 | rm -f conftest.defines conftest.tail |
| 21910 | |
| 21911 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21912 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21913 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21914 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21915 | cat "$ac_result" >>"$tmp/config.h" |
| 21916 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21917 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21918 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21919 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21920 | rm -f $ac_file |
| 21921 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21922 | fi |
| 21923 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21924 | echo "/* $configure_input */" |
| 21925 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21926 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21927 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21928 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21929 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21930 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21931 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21932 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21933 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21935 | |
| 21936 | case $ac_file$ac_mode in |
| 21937 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21938 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21939 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21940 | ${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] | 21941 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21942 | ${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] | 21943 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21944 | ${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] | 21945 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21946 | ${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] | 21947 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21948 | ${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] | 21949 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21950 | ${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] | 21951 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21952 | ${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] | 21953 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21954 | ${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] | 21955 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21956 | ${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] | 21957 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21958 | ${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] | 21959 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21960 | ${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] | 21961 | "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] | 21962 | ${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] | 21963 | |
| 21964 | esac |
| 21965 | done # for ac_tag |
| 21966 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21967 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21968 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21969 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21970 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21971 | ac_clean_files=$ac_clean_files_save |
| 21972 | |
| 21973 | |
| 21974 | # configure is writing to config.log, and then calls config.status. |
| 21975 | # config.status does its own redirection, appending to config.log. |
| 21976 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21977 | # by configure, so config.status won't be able to write to it; its |
| 21978 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21979 | # effectively closing config.log, so it can be properly (re)opened and |
| 21980 | # appended to by config.status. When coming back to configure, we |
| 21981 | # need to make the FD available again. |
| 21982 | if test "$no_create" != yes; then |
| 21983 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21984 | ac_config_status_args= |
| 21985 | test "$silent" = yes && |
| 21986 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21987 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21988 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21989 | exec 5>>config.log |
| 21990 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21991 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21992 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21993 | fi |
| 21994 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21995 | # |
| 21996 | # CONFIG_SUBDIRS section. |
| 21997 | # |
| 21998 | if test "$no_recursion" != yes; then |
| 21999 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22000 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22001 | ac_sub_configure_args= |
| 22002 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22003 | eval "set x $ac_configure_args" |
| 22004 | shift |
| 22005 | for ac_arg |
| 22006 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22007 | if test -n "$ac_prev"; then |
| 22008 | ac_prev= |
| 22009 | continue |
| 22010 | fi |
| 22011 | case $ac_arg in |
| 22012 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22013 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22014 | ac_prev=cache_file ;; |
| 22015 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22016 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22017 | | --c=*) |
| 22018 | ;; |
| 22019 | --config-cache | -C) |
| 22020 | ;; |
| 22021 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22022 | ac_prev=srcdir ;; |
| 22023 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22024 | ;; |
| 22025 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22026 | ac_prev=prefix ;; |
| 22027 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22028 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22029 | *) |
| 22030 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22031 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22032 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22033 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22034 | esac |
| 22035 | done |
| 22036 | |
| 22037 | # Always prepend --prefix to ensure using the same prefix |
| 22038 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22039 | ac_arg="--prefix=$prefix" |
| 22040 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22041 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22042 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22043 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22044 | |
| 22045 | ac_popdir=`pwd` |
| 22046 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22047 | |
| 22048 | # Do not complain, so a configure script can configure whichever |
| 22049 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22050 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22052 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22053 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22054 | echo "$ac_msg" >&6 |
| 22055 | { as_dir="$ac_dir" |
| 22056 | case $as_dir in #( |
| 22057 | -*) as_dir=./$as_dir;; |
| 22058 | esac |
| 22059 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22060 | as_dirs= |
| 22061 | while :; do |
| 22062 | case $as_dir in #( |
| 22063 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22064 | *) as_qdir=$as_dir;; |
| 22065 | esac |
| 22066 | as_dirs="'$as_qdir' $as_dirs" |
| 22067 | as_dir=`$as_dirname -- "$as_dir" || |
| 22068 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22069 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22070 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22071 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22072 | echo X"$as_dir" | |
| 22073 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22074 | s//\1/ |
| 22075 | q |
| 22076 | } |
| 22077 | /^X\(\/\/\)[^/].*/{ |
| 22078 | s//\1/ |
| 22079 | q |
| 22080 | } |
| 22081 | /^X\(\/\/\)$/{ |
| 22082 | s//\1/ |
| 22083 | q |
| 22084 | } |
| 22085 | /^X\(\/\).*/{ |
| 22086 | s//\1/ |
| 22087 | q |
| 22088 | } |
| 22089 | s/.*/./; q'` |
| 22090 | test -d "$as_dir" && break |
| 22091 | done |
| 22092 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22093 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22094 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22095 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22096 | ac_builddir=. |
| 22097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22098 | case "$ac_dir" in |
| 22099 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22100 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22101 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22102 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22103 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22104 | case $ac_top_builddir_sub in |
| 22105 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22106 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22107 | esac ;; |
| 22108 | esac |
| 22109 | ac_abs_top_builddir=$ac_pwd |
| 22110 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22111 | # for backward compatibility: |
| 22112 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22113 | |
| 22114 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22115 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22116 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22117 | ac_top_srcdir=$ac_top_builddir_sub |
| 22118 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22119 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22120 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22121 | ac_top_srcdir=$srcdir |
| 22122 | ac_abs_top_srcdir=$srcdir ;; |
| 22123 | *) # Relative name. |
| 22124 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22125 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22126 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22127 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22128 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22129 | |
| 22130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22131 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22132 | |
| 22133 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22134 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22135 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22136 | elif test -f "$ac_srcdir/configure"; then |
| 22137 | ac_sub_configure=$ac_srcdir/configure |
| 22138 | elif test -f "$ac_srcdir/configure.in"; then |
| 22139 | # This should be Cygnus configure. |
| 22140 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22141 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22142 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22143 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22144 | ac_sub_configure= |
| 22145 | fi |
| 22146 | |
| 22147 | # The recursion is here. |
| 22148 | if test -n "$ac_sub_configure"; then |
| 22149 | # Make the cache file name correct relative to the subdirectory. |
| 22150 | case $cache_file in |
| 22151 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22152 | *) # Relative name. |
| 22153 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22154 | esac |
| 22155 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22156 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22157 | 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] | 22158 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22159 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22160 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22161 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22162 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22163 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22164 | fi |
| 22165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22166 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22167 | done |
| 22168 | fi |
| 22169 | |