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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 693 | TARGETS_TO_BUILD |
| 694 | LLVM_ENUM_TARGETS |
| 695 | LLVM_ENUM_ASM_PRINTERS |
| 696 | LLVM_ENUM_ASM_PARSERS |
| 697 | LLVM_ENUM_DISASSEMBLERS |
| 698 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 699 | CLANGPATH |
| 700 | CLANGXXPATH |
| 701 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 702 | OPTIMIZE_OPTION |
| 703 | EXTRA_OPTIONS |
| 704 | BINUTILS_INCDIR |
| 705 | ENABLE_LLVMC_DYNAMIC |
| 706 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
| 707 | CXX |
| 708 | CXXFLAGS |
| 709 | ac_ct_CXX |
| 710 | NM |
| 711 | ifGNUmake |
| 712 | LN_S |
| 713 | CMP |
| 714 | CP |
| 715 | DATE |
| 716 | FIND |
| 717 | MKDIR |
| 718 | MV |
| 719 | RANLIB |
| 720 | AR |
| 721 | RM |
| 722 | SED |
| 723 | TAR |
| 724 | BINPWD |
| 725 | GRAPHVIZ |
| 726 | DOT |
| 727 | FDP |
| 728 | NEATO |
| 729 | TWOPI |
| 730 | CIRCO |
| 731 | GV |
| 732 | DOTTY |
| 733 | PERL |
| 734 | HAVE_PERL |
| 735 | INSTALL_PROGRAM |
| 736 | INSTALL_SCRIPT |
| 737 | INSTALL_DATA |
| 738 | BZIP2 |
| 739 | DOXYGEN |
| 740 | GROFF |
| 741 | GZIP |
| 742 | POD2HTML |
| 743 | POD2MAN |
| 744 | RUNTEST |
| 745 | TCLSH |
| 746 | ZIP |
| 747 | OCAMLC |
| 748 | OCAMLOPT |
| 749 | OCAMLDEP |
| 750 | OCAMLDOC |
| 751 | GAS |
| 752 | INSTALL_LTDL_TRUE |
| 753 | INSTALL_LTDL_FALSE |
| 754 | CONVENIENCE_LTDL_TRUE |
| 755 | CONVENIENCE_LTDL_FALSE |
| 756 | LIBADD_DL |
| 757 | LLVMGCCCOMMAND |
| 758 | LLVMGXXCOMMAND |
| 759 | LLVMGCC |
| 760 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 761 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 762 | NO_VARIADIC_MACROS |
| 763 | NO_MISSING_FIELD_INITIALIZERS |
| 764 | USE_UDIS86 |
| 765 | USE_OPROFILE |
| 766 | HAVE_PTHREAD |
| 767 | HUGE_VAL_SANITY |
| 768 | MMAP_FILE |
| 769 | LLVMCC1 |
| 770 | LLVMCC1PLUS |
| 771 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 772 | LLVMGCC_LANGS |
| 773 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 774 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 775 | LLVM_PREFIX |
| 776 | LLVM_BINDIR |
| 777 | LLVM_LIBDIR |
| 778 | LLVM_DATADIR |
| 779 | LLVM_DOCSDIR |
| 780 | LLVM_ETCDIR |
| 781 | LLVM_INCLUDEDIR |
| 782 | LLVM_INFODIR |
| 783 | LLVM_MANDIR |
| 784 | LLVM_CONFIGTIME |
| 785 | BINDINGS_TO_BUILD |
| 786 | ALL_BINDINGS |
| 787 | OCAML_LIBDIR |
| 788 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 789 | RPATH |
| 790 | RDYNAMIC |
| 791 | LIBOBJS |
| 792 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 793 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 794 | ac_precious_vars='build_alias |
| 795 | host_alias |
| 796 | target_alias |
| 797 | CC |
| 798 | CFLAGS |
| 799 | LDFLAGS |
| 800 | CPPFLAGS |
| 801 | CPP |
| 802 | CXX |
| 803 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 804 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 805 | ac_subdirs_all='projects/llvm-gcc |
| 806 | projects/test-suite |
| 807 | projects/llvm-test |
| 808 | projects/poolalloc |
| 809 | projects/llvm-poolalloc |
| 810 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 811 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 812 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 814 | projects/llvm-java |
| 815 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 816 | projects/safecode |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 817 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 818 | |
| 819 | # Initialize some variables set by options. |
| 820 | ac_init_help= |
| 821 | ac_init_version=false |
| 822 | # The variables have the same names as the options, with |
| 823 | # dashes changed to underlines. |
| 824 | cache_file=/dev/null |
| 825 | exec_prefix=NONE |
| 826 | no_create= |
| 827 | no_recursion= |
| 828 | prefix=NONE |
| 829 | program_prefix=NONE |
| 830 | program_suffix=NONE |
| 831 | program_transform_name=s,x,x, |
| 832 | silent= |
| 833 | site= |
| 834 | srcdir= |
| 835 | verbose= |
| 836 | x_includes=NONE |
| 837 | x_libraries=NONE |
| 838 | |
| 839 | # Installation directory options. |
| 840 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 841 | # and all the variables that are supposed to be based on exec_prefix |
| 842 | # by default will actually change. |
| 843 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 844 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 845 | bindir='${exec_prefix}/bin' |
| 846 | sbindir='${exec_prefix}/sbin' |
| 847 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 848 | datarootdir='${prefix}/share' |
| 849 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 850 | sysconfdir='${prefix}/etc' |
| 851 | sharedstatedir='${prefix}/com' |
| 852 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 853 | includedir='${prefix}/include' |
| 854 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 855 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 856 | infodir='${datarootdir}/info' |
| 857 | htmldir='${docdir}' |
| 858 | dvidir='${docdir}' |
| 859 | pdfdir='${docdir}' |
| 860 | psdir='${docdir}' |
| 861 | libdir='${exec_prefix}/lib' |
| 862 | localedir='${datarootdir}/locale' |
| 863 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 864 | |
| 865 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 866 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 867 | for ac_option |
| 868 | do |
| 869 | # If the previous option needs an argument, assign it. |
| 870 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 871 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 872 | ac_prev= |
| 873 | continue |
| 874 | fi |
| 875 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 876 | case $ac_option in |
| 877 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 878 | *) ac_optarg=yes ;; |
| 879 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 880 | |
| 881 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 883 | case $ac_dashdash$ac_option in |
| 884 | --) |
| 885 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 886 | |
| 887 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 888 | ac_prev=bindir ;; |
| 889 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 890 | bindir=$ac_optarg ;; |
| 891 | |
| 892 | -build | --build | --buil | --bui | --bu) |
| 893 | ac_prev=build_alias ;; |
| 894 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 895 | build_alias=$ac_optarg ;; |
| 896 | |
| 897 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 898 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 899 | ac_prev=cache_file ;; |
| 900 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 901 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 902 | cache_file=$ac_optarg ;; |
| 903 | |
| 904 | --config-cache | -C) |
| 905 | cache_file=config.cache ;; |
| 906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 907 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 908 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 909 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 910 | datadir=$ac_optarg ;; |
| 911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 912 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 913 | | --dataroo | --dataro | --datar) |
| 914 | ac_prev=datarootdir ;; |
| 915 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 916 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 917 | datarootdir=$ac_optarg ;; |
| 918 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 919 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 920 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 921 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 922 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 923 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 924 | { (exit 1); exit 1; }; } |
| 925 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 926 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 927 | |
| 928 | -docdir | --docdir | --docdi | --doc | --do) |
| 929 | ac_prev=docdir ;; |
| 930 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 931 | docdir=$ac_optarg ;; |
| 932 | |
| 933 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 934 | ac_prev=dvidir ;; |
| 935 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 936 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 937 | |
| 938 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 939 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 940 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 941 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 942 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 943 | { (exit 1); exit 1; }; } |
| 944 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 945 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 946 | |
| 947 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 948 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 949 | | --exec | --exe | --ex) |
| 950 | ac_prev=exec_prefix ;; |
| 951 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 952 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 953 | | --exec=* | --exe=* | --ex=*) |
| 954 | exec_prefix=$ac_optarg ;; |
| 955 | |
| 956 | -gas | --gas | --ga | --g) |
| 957 | # Obsolete; use --with-gas. |
| 958 | with_gas=yes ;; |
| 959 | |
| 960 | -help | --help | --hel | --he | -h) |
| 961 | ac_init_help=long ;; |
| 962 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 963 | ac_init_help=recursive ;; |
| 964 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 965 | ac_init_help=short ;; |
| 966 | |
| 967 | -host | --host | --hos | --ho) |
| 968 | ac_prev=host_alias ;; |
| 969 | -host=* | --host=* | --hos=* | --ho=*) |
| 970 | host_alias=$ac_optarg ;; |
| 971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 972 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 973 | ac_prev=htmldir ;; |
| 974 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 975 | | --ht=*) |
| 976 | htmldir=$ac_optarg ;; |
| 977 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 978 | -includedir | --includedir | --includedi | --included | --include \ |
| 979 | | --includ | --inclu | --incl | --inc) |
| 980 | ac_prev=includedir ;; |
| 981 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 982 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 983 | includedir=$ac_optarg ;; |
| 984 | |
| 985 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 986 | ac_prev=infodir ;; |
| 987 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 988 | infodir=$ac_optarg ;; |
| 989 | |
| 990 | -libdir | --libdir | --libdi | --libd) |
| 991 | ac_prev=libdir ;; |
| 992 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 993 | libdir=$ac_optarg ;; |
| 994 | |
| 995 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 996 | | --libexe | --libex | --libe) |
| 997 | ac_prev=libexecdir ;; |
| 998 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 999 | | --libexe=* | --libex=* | --libe=*) |
| 1000 | libexecdir=$ac_optarg ;; |
| 1001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1002 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1003 | ac_prev=localedir ;; |
| 1004 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1005 | localedir=$ac_optarg ;; |
| 1006 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1008 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | ac_prev=localstatedir ;; |
| 1010 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1011 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1012 | localstatedir=$ac_optarg ;; |
| 1013 | |
| 1014 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1015 | ac_prev=mandir ;; |
| 1016 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1017 | mandir=$ac_optarg ;; |
| 1018 | |
| 1019 | -nfp | --nfp | --nf) |
| 1020 | # Obsolete; use --without-fp. |
| 1021 | with_fp=no ;; |
| 1022 | |
| 1023 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1024 | | --no-cr | --no-c | -n) |
| 1025 | no_create=yes ;; |
| 1026 | |
| 1027 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1028 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1029 | no_recursion=yes ;; |
| 1030 | |
| 1031 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1032 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1033 | | --oldin | --oldi | --old | --ol | --o) |
| 1034 | ac_prev=oldincludedir ;; |
| 1035 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1036 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1037 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1038 | oldincludedir=$ac_optarg ;; |
| 1039 | |
| 1040 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1041 | ac_prev=prefix ;; |
| 1042 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1043 | prefix=$ac_optarg ;; |
| 1044 | |
| 1045 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1046 | | --program-pre | --program-pr | --program-p) |
| 1047 | ac_prev=program_prefix ;; |
| 1048 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1049 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1050 | program_prefix=$ac_optarg ;; |
| 1051 | |
| 1052 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1053 | | --program-suf | --program-su | --program-s) |
| 1054 | ac_prev=program_suffix ;; |
| 1055 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1056 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1057 | program_suffix=$ac_optarg ;; |
| 1058 | |
| 1059 | -program-transform-name | --program-transform-name \ |
| 1060 | | --program-transform-nam | --program-transform-na \ |
| 1061 | | --program-transform-n | --program-transform- \ |
| 1062 | | --program-transform | --program-transfor \ |
| 1063 | | --program-transfo | --program-transf \ |
| 1064 | | --program-trans | --program-tran \ |
| 1065 | | --progr-tra | --program-tr | --program-t) |
| 1066 | ac_prev=program_transform_name ;; |
| 1067 | -program-transform-name=* | --program-transform-name=* \ |
| 1068 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1069 | | --program-transform-n=* | --program-transform-=* \ |
| 1070 | | --program-transform=* | --program-transfor=* \ |
| 1071 | | --program-transfo=* | --program-transf=* \ |
| 1072 | | --program-trans=* | --program-tran=* \ |
| 1073 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1074 | program_transform_name=$ac_optarg ;; |
| 1075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1076 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1077 | ac_prev=pdfdir ;; |
| 1078 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1079 | pdfdir=$ac_optarg ;; |
| 1080 | |
| 1081 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1082 | ac_prev=psdir ;; |
| 1083 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1084 | psdir=$ac_optarg ;; |
| 1085 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1086 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1087 | | -silent | --silent | --silen | --sile | --sil) |
| 1088 | silent=yes ;; |
| 1089 | |
| 1090 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1091 | ac_prev=sbindir ;; |
| 1092 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1093 | | --sbi=* | --sb=*) |
| 1094 | sbindir=$ac_optarg ;; |
| 1095 | |
| 1096 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1097 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1098 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1099 | | --sha | --sh) |
| 1100 | ac_prev=sharedstatedir ;; |
| 1101 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1102 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1103 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1104 | | --sha=* | --sh=*) |
| 1105 | sharedstatedir=$ac_optarg ;; |
| 1106 | |
| 1107 | -site | --site | --sit) |
| 1108 | ac_prev=site ;; |
| 1109 | -site=* | --site=* | --sit=*) |
| 1110 | site=$ac_optarg ;; |
| 1111 | |
| 1112 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1113 | ac_prev=srcdir ;; |
| 1114 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1115 | srcdir=$ac_optarg ;; |
| 1116 | |
| 1117 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1118 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1119 | ac_prev=sysconfdir ;; |
| 1120 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1121 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1122 | sysconfdir=$ac_optarg ;; |
| 1123 | |
| 1124 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1125 | ac_prev=target_alias ;; |
| 1126 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1127 | target_alias=$ac_optarg ;; |
| 1128 | |
| 1129 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1130 | verbose=yes ;; |
| 1131 | |
| 1132 | -version | --version | --versio | --versi | --vers | -V) |
| 1133 | ac_init_version=: ;; |
| 1134 | |
| 1135 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1136 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1137 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1138 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1139 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1140 | { (exit 1); exit 1; }; } |
| 1141 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1142 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1143 | |
| 1144 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1145 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1146 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1147 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1148 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1149 | { (exit 1); exit 1; }; } |
| 1150 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1151 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1152 | |
| 1153 | --x) |
| 1154 | # Obsolete; use --with-x. |
| 1155 | with_x=yes ;; |
| 1156 | |
| 1157 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1158 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1159 | ac_prev=x_includes ;; |
| 1160 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1161 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1162 | x_includes=$ac_optarg ;; |
| 1163 | |
| 1164 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1165 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1166 | ac_prev=x_libraries ;; |
| 1167 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1168 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1169 | x_libraries=$ac_optarg ;; |
| 1170 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1171 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1172 | Try \`$0 --help' for more information." >&2 |
| 1173 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1174 | ;; |
| 1175 | |
| 1176 | *=*) |
| 1177 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1178 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1179 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1180 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1181 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1182 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 | export $ac_envvar ;; |
| 1184 | |
| 1185 | *) |
| 1186 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1187 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1188 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1189 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1190 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1191 | ;; |
| 1192 | |
| 1193 | esac |
| 1194 | done |
| 1195 | |
| 1196 | if test -n "$ac_prev"; then |
| 1197 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1198 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1199 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1200 | fi |
| 1201 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1202 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1203 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1204 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1205 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1206 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1207 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1208 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1209 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1210 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1211 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1212 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1213 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1214 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1215 | done |
| 1216 | |
| 1217 | # There might be people who depend on the old broken behavior: `$host' |
| 1218 | # used to hold the argument of --host etc. |
| 1219 | # FIXME: To remove some day. |
| 1220 | build=$build_alias |
| 1221 | host=$host_alias |
| 1222 | target=$target_alias |
| 1223 | |
| 1224 | # FIXME: To remove some day. |
| 1225 | if test "x$host_alias" != x; then |
| 1226 | if test "x$build_alias" = x; then |
| 1227 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1228 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1229 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1230 | elif test "x$build_alias" != "x$host_alias"; then |
| 1231 | cross_compiling=yes |
| 1232 | fi |
| 1233 | fi |
| 1234 | |
| 1235 | ac_tool_prefix= |
| 1236 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1237 | |
| 1238 | test "$silent" = yes && exec 6>/dev/null |
| 1239 | |
| 1240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1241 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1242 | ac_ls_di=`ls -di .` && |
| 1243 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1244 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1245 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1246 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1247 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1248 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1249 | |
| 1250 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1251 | # Find the source files, if location was not specified. |
| 1252 | if test -z "$srcdir"; then |
| 1253 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1254 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1255 | ac_confdir=`$as_dirname -- "$0" || |
| 1256 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1257 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1258 | X"$0" : 'X\(//\)$' \| \ |
| 1259 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1260 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1261 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1262 | s//\1/ |
| 1263 | q |
| 1264 | } |
| 1265 | /^X\(\/\/\)[^/].*/{ |
| 1266 | s//\1/ |
| 1267 | q |
| 1268 | } |
| 1269 | /^X\(\/\/\)$/{ |
| 1270 | s//\1/ |
| 1271 | q |
| 1272 | } |
| 1273 | /^X\(\/\).*/{ |
| 1274 | s//\1/ |
| 1275 | q |
| 1276 | } |
| 1277 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1278 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1279 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | srcdir=.. |
| 1281 | fi |
| 1282 | else |
| 1283 | ac_srcdir_defaulted=no |
| 1284 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1285 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1286 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1287 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1288 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1289 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1290 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1291 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1292 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1293 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1294 | pwd)` |
| 1295 | # When building in place, set srcdir=. |
| 1296 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1297 | srcdir=. |
| 1298 | fi |
| 1299 | # Remove unnecessary trailing slashes from srcdir. |
| 1300 | # Double slashes in file names in object file debugging info |
| 1301 | # mess up M-x gdb in Emacs. |
| 1302 | case $srcdir in |
| 1303 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1304 | esac |
| 1305 | for ac_var in $ac_precious_vars; do |
| 1306 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1307 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1308 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1309 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1310 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1311 | |
| 1312 | # |
| 1313 | # Report the --help message. |
| 1314 | # |
| 1315 | if test "$ac_init_help" = "long"; then |
| 1316 | # Omit some internal or obsolete options to make the list less imposing. |
| 1317 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1318 | cat <<_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1319 | \`configure' configures llvm 2.8svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1320 | |
| 1321 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1322 | |
| 1323 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1324 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1325 | |
| 1326 | Defaults for the options are specified in brackets. |
| 1327 | |
| 1328 | Configuration: |
| 1329 | -h, --help display this help and exit |
| 1330 | --help=short display options specific to this package |
| 1331 | --help=recursive display the short help of all the included packages |
| 1332 | -V, --version display version information and exit |
| 1333 | -q, --quiet, --silent do not print \`checking...' messages |
| 1334 | --cache-file=FILE cache test results in FILE [disabled] |
| 1335 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1336 | -n, --no-create do not create output files |
| 1337 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1338 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1339 | Installation directories: |
| 1340 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1341 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1342 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1343 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1344 | |
| 1345 | By default, \`make install' will install all the files in |
| 1346 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1347 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1348 | for instance \`--prefix=\$HOME'. |
| 1349 | |
| 1350 | For better control, use the options below. |
| 1351 | |
| 1352 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1353 | --bindir=DIR user executables [EPREFIX/bin] |
| 1354 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1355 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1356 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1357 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1358 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1359 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1360 | --includedir=DIR C header files [PREFIX/include] |
| 1361 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1362 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1363 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1364 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1365 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1366 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1367 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1368 | --htmldir=DIR html documentation [DOCDIR] |
| 1369 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1370 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1371 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1372 | _ACEOF |
| 1373 | |
| 1374 | cat <<\_ACEOF |
| 1375 | |
| 1376 | System types: |
| 1377 | --build=BUILD configure for building on BUILD [guessed] |
| 1378 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1379 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1380 | _ACEOF |
| 1381 | fi |
| 1382 | |
| 1383 | if test -n "$ac_init_help"; then |
| 1384 | case $ac_init_help in |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1385 | short | recursive ) echo "Configuration of llvm 2.8svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1386 | esac |
| 1387 | cat <<\_ACEOF |
| 1388 | |
| 1389 | Optional Features: |
| 1390 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1391 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1392 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1393 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1394 | --enable-assertions Compile with assertion checks enabled (default is |
| 1395 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1396 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1397 | Compile with expensive debug checks enabled (default |
| 1398 | is NO) |
| 1399 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1400 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1401 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1402 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1403 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1404 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1405 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1406 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1407 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1408 | --enable-shared Build a shared library and link tools against it |
| 1409 | (default is NO) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1410 | --enable-targets Build specific host targets: all or |
| 1411 | target1,target2,... Valid targets are: host, x86, |
| 1412 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1413 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1414 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1415 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1416 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1417 | --enable-bindings Build specific language bindings: |
| 1418 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1419 | --enable-libffi Check for the presence of libffi (default is NO) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1420 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1421 | Win32) |
| 1422 | --enable-llvmc-dynamic-plugins |
| 1423 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1424 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1425 | |
| 1426 | Optional Packages: |
| 1427 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1428 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1429 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1430 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1431 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1432 | searches PATH) |
| 1433 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1434 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1435 | --with-clang Specify location of clang compiler (default is |
| 1436 | --with-built-clang) |
| 1437 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1438 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1439 | --with-optimize-option Select the compiler options to use for optimized |
| 1440 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1441 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1442 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1443 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1444 | --with-c-include-dirs Colon separated list of directories clang will |
| 1445 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1446 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1447 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1448 | --with-cxx-include-32bit-dir |
| 1449 | 32 bit multilib dir. |
| 1450 | --with-cxx-include-64bit-dir |
| 1451 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1452 | --with-binutils-include Specify path to binutils/include/ containing |
| 1453 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1454 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1455 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1456 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1457 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1458 | --with-oprofile=<prefix> |
| 1459 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1460 | |
| 1461 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1462 | CC C compiler command |
| 1463 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1464 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1465 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1466 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1467 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1468 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1469 | CXX C++ compiler command |
| 1470 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | |
| 1472 | Use these variables to override the choices made by `configure' or to help |
| 1473 | it to find libraries and programs with nonstandard names/locations. |
| 1474 | |
| 1475 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1476 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1477 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1478 | fi |
| 1479 | |
| 1480 | if test "$ac_init_help" = "recursive"; then |
| 1481 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1482 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1483 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | ac_builddir=. |
| 1485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1486 | case "$ac_dir" in |
| 1487 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1488 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1489 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1491 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1492 | case $ac_top_builddir_sub in |
| 1493 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1494 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1495 | esac ;; |
| 1496 | esac |
| 1497 | ac_abs_top_builddir=$ac_pwd |
| 1498 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1499 | # for backward compatibility: |
| 1500 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1501 | |
| 1502 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | ac_top_srcdir=$ac_top_builddir_sub |
| 1506 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1507 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1508 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1509 | ac_top_srcdir=$srcdir |
| 1510 | ac_abs_top_srcdir=$srcdir ;; |
| 1511 | *) # Relative name. |
| 1512 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1513 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1514 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1515 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1516 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1518 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1519 | # Check for guested configure. |
| 1520 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1521 | echo && |
| 1522 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1523 | elif test -f "$ac_srcdir/configure"; then |
| 1524 | echo && |
| 1525 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1527 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | fi || ac_status=$? |
| 1529 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | done |
| 1531 | fi |
| 1532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1534 | if $ac_init_version; then |
| 1535 | cat <<\_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1536 | llvm configure 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1537 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1539 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1540 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1541 | This configure script is free software; the Free Software Foundation |
| 1542 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1543 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1544 | Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1546 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | This file contains any messages produced by compilers while |
| 1550 | running configure, to aid debugging if configure makes a mistake. |
| 1551 | |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1552 | It was created by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | |
| 1555 | $ $0 $@ |
| 1556 | |
| 1557 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1558 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | { |
| 1560 | cat <<_ASUNAME |
| 1561 | ## --------- ## |
| 1562 | ## Platform. ## |
| 1563 | ## --------- ## |
| 1564 | |
| 1565 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1566 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1567 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1568 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1569 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1570 | |
| 1571 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1572 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1573 | |
| 1574 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1575 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1576 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1577 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1578 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1579 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1580 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1581 | |
| 1582 | _ASUNAME |
| 1583 | |
| 1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1585 | for as_dir in $PATH |
| 1586 | do |
| 1587 | IFS=$as_save_IFS |
| 1588 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1589 | echo "PATH: $as_dir" |
| 1590 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1591 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1592 | |
| 1593 | } >&5 |
| 1594 | |
| 1595 | cat >&5 <<_ACEOF |
| 1596 | |
| 1597 | |
| 1598 | ## ----------- ## |
| 1599 | ## Core tests. ## |
| 1600 | ## ----------- ## |
| 1601 | |
| 1602 | _ACEOF |
| 1603 | |
| 1604 | |
| 1605 | # Keep a trace of the command line. |
| 1606 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1607 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1608 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1609 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | ac_configure_args0= |
| 1612 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1613 | ac_must_keep_next=false |
| 1614 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1616 | for ac_arg |
| 1617 | do |
| 1618 | case $ac_arg in |
| 1619 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1620 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1621 | | -silent | --silent | --silen | --sile | --sil) |
| 1622 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1623 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1624 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | esac |
| 1626 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1627 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1629 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1630 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1631 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1632 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1633 | case $ac_arg in |
| 1634 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1635 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1636 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1637 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1638 | case "$ac_configure_args0 " in |
| 1639 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1640 | esac |
| 1641 | ;; |
| 1642 | -* ) ac_must_keep_next=true ;; |
| 1643 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1644 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1646 | ;; |
| 1647 | esac |
| 1648 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1649 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1650 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1651 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1652 | |
| 1653 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1654 | # config.log. We remove comments because anyway the quotes in there |
| 1655 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1656 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1657 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1658 | trap 'exit_status=$? |
| 1659 | # Save into config.log some information that might help in debugging. |
| 1660 | { |
| 1661 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1663 | cat <<\_ASBOX |
| 1664 | ## ---------------- ## |
| 1665 | ## Cache variables. ## |
| 1666 | ## ---------------- ## |
| 1667 | _ASBOX |
| 1668 | echo |
| 1669 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1670 | ( |
| 1671 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1672 | eval ac_val=\$$ac_var |
| 1673 | case $ac_val in #( |
| 1674 | *${as_nl}*) |
| 1675 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1676 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1677 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1678 | esac |
| 1679 | case $ac_var in #( |
| 1680 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1681 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1682 | esac ;; |
| 1683 | esac |
| 1684 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1686 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1687 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1689 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1690 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1691 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1692 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1693 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1694 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | esac | |
| 1696 | sort |
| 1697 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1699 | |
| 1700 | cat <<\_ASBOX |
| 1701 | ## ----------------- ## |
| 1702 | ## Output variables. ## |
| 1703 | ## ----------------- ## |
| 1704 | _ASBOX |
| 1705 | echo |
| 1706 | for ac_var in $ac_subst_vars |
| 1707 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1708 | eval ac_val=\$$ac_var |
| 1709 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1710 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1711 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1712 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1713 | done | sort |
| 1714 | echo |
| 1715 | |
| 1716 | if test -n "$ac_subst_files"; then |
| 1717 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1718 | ## ------------------- ## |
| 1719 | ## File substitutions. ## |
| 1720 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | _ASBOX |
| 1722 | echo |
| 1723 | for ac_var in $ac_subst_files |
| 1724 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1725 | eval ac_val=\$$ac_var |
| 1726 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1727 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1729 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1730 | done | sort |
| 1731 | echo |
| 1732 | fi |
| 1733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1734 | if test -s confdefs.h; then |
| 1735 | cat <<\_ASBOX |
| 1736 | ## ----------- ## |
| 1737 | ## confdefs.h. ## |
| 1738 | ## ----------- ## |
| 1739 | _ASBOX |
| 1740 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1741 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | echo |
| 1743 | fi |
| 1744 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1745 | echo "$as_me: caught signal $ac_signal" |
| 1746 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1748 | rm -f core *.core core.conftest.* && |
| 1749 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1751 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1752 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1753 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | done |
| 1755 | ac_signal=0 |
| 1756 | |
| 1757 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1758 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | |
| 1760 | # Predefined preprocessor variables. |
| 1761 | |
| 1762 | cat >>confdefs.h <<_ACEOF |
| 1763 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1764 | _ACEOF |
| 1765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | cat >>confdefs.h <<_ACEOF |
| 1768 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1769 | _ACEOF |
| 1770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | cat >>confdefs.h <<_ACEOF |
| 1773 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1774 | _ACEOF |
| 1775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1779 | _ACEOF |
| 1780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1782 | cat >>confdefs.h <<_ACEOF |
| 1783 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1784 | _ACEOF |
| 1785 | |
| 1786 | |
| 1787 | # Let the site file select an alternate cache file if it wants to. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1788 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1789 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1790 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1793 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1794 | set x "$ac_default_prefix/share/config.site" \ |
| 1795 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1796 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1797 | shift |
| 1798 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1799 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1800 | if test -r "$ac_site_file"; then |
| 1801 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1802 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1803 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1804 | . "$ac_site_file" |
| 1805 | fi |
| 1806 | done |
| 1807 | |
| 1808 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1809 | # Some versions of bash will fail to source /dev/null (special |
| 1810 | # files actually), so we avoid doing that. |
| 1811 | if test -f "$cache_file"; then |
| 1812 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1813 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1814 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1816 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | esac |
| 1818 | fi |
| 1819 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1820 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1821 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1822 | >$cache_file |
| 1823 | fi |
| 1824 | |
| 1825 | # Check that the precious variables saved in the cache have kept the same |
| 1826 | # value. |
| 1827 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1828 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1829 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1830 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1831 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1832 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1833 | case $ac_old_set,$ac_new_set in |
| 1834 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1835 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1836 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1837 | ac_cache_corrupted=: ;; |
| 1838 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1839 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1840 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1841 | ac_cache_corrupted=: ;; |
| 1842 | ,);; |
| 1843 | *) |
| 1844 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1845 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1846 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1847 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1848 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1849 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1850 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1851 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1852 | fi;; |
| 1853 | esac |
| 1854 | # Pass precious variables to config.status. |
| 1855 | if test "$ac_new_set" = set; then |
| 1856 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1859 | esac |
| 1860 | case " $ac_configure_args " in |
| 1861 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1863 | esac |
| 1864 | fi |
| 1865 | done |
| 1866 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1867 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1868 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1869 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1870 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1871 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1872 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1898 | ac_ext=c |
| 1899 | ac_cpp='$CPP $CPPFLAGS' |
| 1900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1903 | |
| 1904 | |
| 1905 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1906 | LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1914 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1915 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1916 | if test -f "$ac_dir/install-sh"; then |
| 1917 | ac_aux_dir=$ac_dir |
| 1918 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1919 | break |
| 1920 | elif test -f "$ac_dir/install.sh"; then |
| 1921 | ac_aux_dir=$ac_dir |
| 1922 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1923 | break |
| 1924 | elif test -f "$ac_dir/shtool"; then |
| 1925 | ac_aux_dir=$ac_dir |
| 1926 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1927 | break |
| 1928 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1929 | done |
| 1930 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1931 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1932 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1933 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1935 | |
| 1936 | # These three variables are undocumented and unsupported, |
| 1937 | # and are intended to be withdrawn in a future Autoconf release. |
| 1938 | # They can cause serious problems if a builder's source tree is in a directory |
| 1939 | # whose full name contains unusual characters. |
| 1940 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1941 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1942 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1943 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1944 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1945 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1946 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1947 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1948 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1949 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1950 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1951 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 1954 | |
| 1955 | |
| 1956 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 1957 | subdirs="$subdirs projects/llvm-gcc" |
| 1958 | |
| 1959 | fi |
| 1960 | |
| 1961 | if test -d ${srcdir}/projects/test-suite ; then |
| 1962 | subdirs="$subdirs projects/test-suite" |
| 1963 | |
| 1964 | fi |
| 1965 | |
| 1966 | if test -d ${srcdir}/projects/llvm-test ; then |
| 1967 | subdirs="$subdirs projects/llvm-test" |
| 1968 | |
| 1969 | fi |
| 1970 | |
| 1971 | if test -d ${srcdir}/projects/poolalloc ; then |
| 1972 | subdirs="$subdirs projects/poolalloc" |
| 1973 | |
| 1974 | fi |
| 1975 | |
| 1976 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 1977 | subdirs="$subdirs projects/llvm-poolalloc" |
| 1978 | |
| 1979 | fi |
| 1980 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1981 | for i in `ls ${srcdir}/projects` |
| 1982 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1983 | if test -d ${srcdir}/projects/${i} ; then |
| 1984 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1985 | CVS) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1986 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1987 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1988 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1989 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1990 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1991 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1992 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1993 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1994 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1995 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1996 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1997 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 1998 | safecode) subdirs="$subdirs projects/safecode" |
| 1999 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2000 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2001 | ;; |
John Criswell | 52c0286 | 2010-03-25 13:59:09 +0000 | [diff] [blame] | 2002 | llvm-gcc) ;; |
| 2003 | test-suite) ;; |
| 2004 | llvm-test) ;; |
| 2005 | poolalloc) ;; |
| 2006 | llvm-poolalloc) ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2007 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2008 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2009 | 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] | 2010 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2011 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2012 | fi |
| 2013 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2014 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2015 | |
| 2016 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2017 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2018 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2019 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2020 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2022 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2023 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2024 | if test "${ac_cv_build+set}" = set; then |
| 2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2026 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2027 | ac_build_alias=$build_alias |
| 2028 | test "x$ac_build_alias" = x && |
| 2029 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2030 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2031 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2032 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2033 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2034 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2035 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2036 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2037 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2038 | |
| 2039 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2040 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2041 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2042 | case $ac_cv_build in |
| 2043 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2044 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2045 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2046 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2047 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2048 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2049 | ac_save_IFS=$IFS; IFS='-' |
| 2050 | set x $ac_cv_build |
| 2051 | shift |
| 2052 | build_cpu=$1 |
| 2053 | build_vendor=$2 |
| 2054 | shift; shift |
| 2055 | # Remember, the first character of IFS is used to create $*, |
| 2056 | # except with old shells: |
| 2057 | build_os=$* |
| 2058 | IFS=$ac_save_IFS |
| 2059 | 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] | 2060 | |
| 2061 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2062 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2063 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2064 | if test "${ac_cv_host+set}" = set; then |
| 2065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2066 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2067 | if test "x$host_alias" = x; then |
| 2068 | ac_cv_host=$ac_cv_build |
| 2069 | else |
| 2070 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2071 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2072 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2073 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2074 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2075 | |
| 2076 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2077 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2078 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2079 | case $ac_cv_host in |
| 2080 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2081 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2082 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2083 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2084 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2085 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2086 | ac_save_IFS=$IFS; IFS='-' |
| 2087 | set x $ac_cv_host |
| 2088 | shift |
| 2089 | host_cpu=$1 |
| 2090 | host_vendor=$2 |
| 2091 | shift; shift |
| 2092 | # Remember, the first character of IFS is used to create $*, |
| 2093 | # except with old shells: |
| 2094 | host_os=$* |
| 2095 | IFS=$ac_save_IFS |
| 2096 | 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] | 2097 | |
| 2098 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2099 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2100 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2101 | if test "${ac_cv_target+set}" = set; then |
| 2102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2103 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2104 | if test "x$target_alias" = x; then |
| 2105 | ac_cv_target=$ac_cv_host |
| 2106 | else |
| 2107 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2108 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2109 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2110 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2111 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 | |
| 2113 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2114 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2115 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2116 | case $ac_cv_target in |
| 2117 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2118 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2119 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2120 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2121 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2122 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2123 | ac_save_IFS=$IFS; IFS='-' |
| 2124 | set x $ac_cv_target |
| 2125 | shift |
| 2126 | target_cpu=$1 |
| 2127 | target_vendor=$2 |
| 2128 | shift; shift |
| 2129 | # Remember, the first character of IFS is used to create $*, |
| 2130 | # except with old shells: |
| 2131 | target_os=$* |
| 2132 | IFS=$ac_save_IFS |
| 2133 | 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] | 2134 | |
| 2135 | |
| 2136 | # The aliases save the names the user supplied, while $host etc. |
| 2137 | # will get canonicalized. |
| 2138 | test -n "$target_alias" && |
| 2139 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2140 | NONENONEs,x,x, && |
| 2141 | program_prefix=${target_alias}- |
| 2142 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2143 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2144 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2145 | if test "${llvm_cv_os_type+set}" = set; then |
| 2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2147 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2148 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2149 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2150 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2151 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2152 | llvm_cv_os_type="AIX" |
| 2153 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2154 | *-*-irix*) |
| 2155 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2156 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2157 | llvm_cv_os_type="IRIX" |
| 2158 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2159 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2160 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2161 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2162 | llvm_cv_os_type="Cygwin" |
| 2163 | llvm_cv_platform_type="Unix" ;; |
| 2164 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2165 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2166 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2167 | llvm_cv_os_type="Darwin" |
| 2168 | llvm_cv_platform_type="Unix" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2169 | *-*-minix*) |
| 2170 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2171 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 2172 | llvm_cv_os_type="Minix" |
| 2173 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2174 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2175 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2176 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2177 | llvm_cv_os_type="FreeBSD" |
| 2178 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2179 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2180 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2181 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2182 | llvm_cv_os_type="OpenBSD" |
| 2183 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2184 | *-*-netbsd*) |
| 2185 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2186 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2187 | llvm_cv_os_type="NetBSD" |
| 2188 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2189 | *-*-dragonfly*) |
| 2190 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2191 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2192 | llvm_cv_os_type="DragonFly" |
| 2193 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2194 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2195 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2196 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2197 | llvm_cv_os_type="HP-UX" |
| 2198 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2199 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2200 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2201 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2202 | llvm_cv_os_type="Interix" |
| 2203 | llvm_cv_platform_type="Unix" ;; |
| 2204 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2205 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2206 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2207 | llvm_cv_os_type="Linux" |
| 2208 | llvm_cv_platform_type="Unix" ;; |
| 2209 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2210 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2211 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2212 | llvm_cv_os_type="SunOS" |
| 2213 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2214 | *-*-auroraux*) |
| 2215 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2216 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2217 | llvm_cv_os_type="AuroraUX" |
| 2218 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2219 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2220 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2221 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2222 | llvm_cv_os_type="Win32" |
| 2223 | llvm_cv_platform_type="Win32" ;; |
| 2224 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2225 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2226 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2227 | llvm_cv_os_type="MingW" |
| 2228 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2229 | *-*-haiku*) |
| 2230 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2231 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2232 | llvm_cv_os_type="Haiku" |
| 2233 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2234 | *-unknown-eabi*) |
| 2235 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2236 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2237 | llvm_cv_os_type="Freestanding" |
| 2238 | llvm_cv_platform_type="Unix" ;; |
| 2239 | *-unknown-elf*) |
| 2240 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2241 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2242 | llvm_cv_os_type="Freestanding" |
| 2243 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2244 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2245 | llvm_cv_link_all_option="" |
| 2246 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2247 | llvm_cv_os_type="Unknown" |
| 2248 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2249 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2250 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2251 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2252 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2253 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2255 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2256 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2258 | else |
| 2259 | case $target in |
| 2260 | *-*-aix*) |
| 2261 | llvm_cv_target_os_type="AIX" ;; |
| 2262 | *-*-irix*) |
| 2263 | llvm_cv_target_os_type="IRIX" ;; |
| 2264 | *-*-cygwin*) |
| 2265 | llvm_cv_target_os_type="Cygwin" ;; |
| 2266 | *-*-darwin*) |
| 2267 | llvm_cv_target_os_type="Darwin" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2268 | *-*-minix*) |
| 2269 | llvm_cv_target_os_type="Minix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2270 | *-*-freebsd*) |
| 2271 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2272 | *-*-openbsd*) |
| 2273 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2274 | *-*-netbsd*) |
| 2275 | llvm_cv_target_os_type="NetBSD" ;; |
| 2276 | *-*-dragonfly*) |
| 2277 | llvm_cv_target_os_type="DragonFly" ;; |
| 2278 | *-*-hpux*) |
| 2279 | llvm_cv_target_os_type="HP-UX" ;; |
| 2280 | *-*-interix*) |
| 2281 | llvm_cv_target_os_type="Interix" ;; |
| 2282 | *-*-linux*) |
| 2283 | llvm_cv_target_os_type="Linux" ;; |
| 2284 | *-*-solaris*) |
| 2285 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2286 | *-*-auroraux*) |
| 2287 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2288 | *-*-win32*) |
| 2289 | llvm_cv_target_os_type="Win32" ;; |
| 2290 | *-*-mingw*) |
| 2291 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2292 | *-*-haiku*) |
| 2293 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2294 | *-unknown-eabi*) |
| 2295 | llvm_cv_target_os_type="Freestanding" ;; |
| 2296 | *) |
| 2297 | llvm_cv_target_os_type="Unknown" ;; |
| 2298 | esac |
| 2299 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2300 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2301 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2302 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2303 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2304 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2305 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2306 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2307 | fi |
| 2308 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2309 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2310 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2311 | HOST_OS=$llvm_cv_os_type |
| 2312 | |
| 2313 | TARGET_OS=$llvm_cv_target_os_type |
| 2314 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2316 | LINKALL=$llvm_cv_link_all_option |
| 2317 | |
| 2318 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2319 | |
| 2320 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2321 | case $llvm_cv_platform_type in |
| 2322 | Unix) |
| 2323 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2324 | cat >>confdefs.h <<\_ACEOF |
| 2325 | #define LLVM_ON_UNIX 1 |
| 2326 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2327 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2328 | LLVM_ON_UNIX=1 |
| 2329 | |
| 2330 | LLVM_ON_WIN32=0 |
| 2331 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2332 | ;; |
| 2333 | Win32) |
| 2334 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2335 | cat >>confdefs.h <<\_ACEOF |
| 2336 | #define LLVM_ON_WIN32 1 |
| 2337 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2338 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2339 | LLVM_ON_UNIX=0 |
| 2340 | |
| 2341 | LLVM_ON_WIN32=1 |
| 2342 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2343 | ;; |
| 2344 | esac |
| 2345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2346 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2347 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2348 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2350 | else |
| 2351 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2352 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2353 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2354 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2355 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2356 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2357 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2358 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2359 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2360 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2361 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2362 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2363 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2364 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2365 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2366 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2367 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2368 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2369 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2370 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2371 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2372 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2373 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2374 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2375 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2376 | # Determine the LLVM native architecture for the target |
| 2377 | case "$llvm_cv_target_arch" in |
| 2378 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2379 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2380 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2381 | esac |
| 2382 | |
| 2383 | ARCH=$llvm_cv_target_arch |
| 2384 | |
| 2385 | |
| 2386 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2387 | ac_cpp='$CPP $CPPFLAGS' |
| 2388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2391 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2392 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2393 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2394 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2396 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2398 | else |
| 2399 | if test -n "$CC"; then |
| 2400 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2401 | else |
| 2402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2403 | for as_dir in $PATH |
| 2404 | do |
| 2405 | IFS=$as_save_IFS |
| 2406 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2407 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2408 | 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] | 2409 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2410 | 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] | 2411 | break 2 |
| 2412 | fi |
| 2413 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2414 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2415 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2416 | |
| 2417 | fi |
| 2418 | fi |
| 2419 | CC=$ac_cv_prog_CC |
| 2420 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2421 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2422 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2423 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2424 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2425 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2426 | fi |
| 2427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2428 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2429 | fi |
| 2430 | if test -z "$ac_cv_prog_CC"; then |
| 2431 | ac_ct_CC=$CC |
| 2432 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2433 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2434 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2436 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2438 | else |
| 2439 | if test -n "$ac_ct_CC"; then |
| 2440 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2441 | else |
| 2442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2443 | for as_dir in $PATH |
| 2444 | do |
| 2445 | IFS=$as_save_IFS |
| 2446 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2448 | 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] | 2449 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2450 | 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] | 2451 | break 2 |
| 2452 | fi |
| 2453 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2454 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2455 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2456 | |
| 2457 | fi |
| 2458 | fi |
| 2459 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2460 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2461 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2462 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2463 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2464 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2465 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2466 | fi |
| 2467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2468 | if test "x$ac_ct_CC" = x; then |
| 2469 | CC="" |
| 2470 | else |
| 2471 | case $cross_compiling:$ac_tool_warned in |
| 2472 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2473 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2474 | whose name does not start with the host triplet. If you think this |
| 2475 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2476 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2477 | whose name does not start with the host triplet. If you think this |
| 2478 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2479 | ac_tool_warned=yes ;; |
| 2480 | esac |
| 2481 | CC=$ac_ct_CC |
| 2482 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2483 | else |
| 2484 | CC="$ac_cv_prog_CC" |
| 2485 | fi |
| 2486 | |
| 2487 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2488 | if test -n "$ac_tool_prefix"; then |
| 2489 | # 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] | 2490 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2491 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2493 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2495 | else |
| 2496 | if test -n "$CC"; then |
| 2497 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2498 | else |
| 2499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2500 | for as_dir in $PATH |
| 2501 | do |
| 2502 | IFS=$as_save_IFS |
| 2503 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2504 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2505 | 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] | 2506 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2507 | 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] | 2508 | break 2 |
| 2509 | fi |
| 2510 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2511 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2512 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2513 | |
| 2514 | fi |
| 2515 | fi |
| 2516 | CC=$ac_cv_prog_CC |
| 2517 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2518 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2519 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2520 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2521 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2522 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2523 | fi |
| 2524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2525 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2526 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2527 | fi |
| 2528 | if test -z "$CC"; then |
| 2529 | # Extract the first word of "cc", so it can be a program name with args. |
| 2530 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2531 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2533 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2535 | else |
| 2536 | if test -n "$CC"; then |
| 2537 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2538 | else |
| 2539 | ac_prog_rejected=no |
| 2540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2541 | for as_dir in $PATH |
| 2542 | do |
| 2543 | IFS=$as_save_IFS |
| 2544 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2546 | 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] | 2547 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2548 | ac_prog_rejected=yes |
| 2549 | continue |
| 2550 | fi |
| 2551 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2552 | 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] | 2553 | break 2 |
| 2554 | fi |
| 2555 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2556 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2557 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2558 | |
| 2559 | if test $ac_prog_rejected = yes; then |
| 2560 | # We found a bogon in the path, so make sure we never use it. |
| 2561 | set dummy $ac_cv_prog_CC |
| 2562 | shift |
| 2563 | if test $# != 0; then |
| 2564 | # We chose a different compiler from the bogus one. |
| 2565 | # However, it has the same basename, so the bogon will be chosen |
| 2566 | # first if we set CC to just the basename; use the full file name. |
| 2567 | shift |
| 2568 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2569 | fi |
| 2570 | fi |
| 2571 | fi |
| 2572 | fi |
| 2573 | CC=$ac_cv_prog_CC |
| 2574 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2575 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2576 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2577 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2578 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2579 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2580 | fi |
| 2581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2582 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2583 | fi |
| 2584 | if test -z "$CC"; then |
| 2585 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2586 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2587 | do |
| 2588 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2589 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2590 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2592 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2594 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2595 | if test -n "$CC"; then |
| 2596 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2597 | else |
| 2598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2599 | for as_dir in $PATH |
| 2600 | do |
| 2601 | IFS=$as_save_IFS |
| 2602 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2603 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2604 | 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] | 2605 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2606 | 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] | 2607 | break 2 |
| 2608 | fi |
| 2609 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2610 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2611 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2612 | |
| 2613 | fi |
| 2614 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2615 | CC=$ac_cv_prog_CC |
| 2616 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2617 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2618 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2619 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2620 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2621 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2622 | fi |
| 2623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2624 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2625 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2626 | done |
| 2627 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2628 | if test -z "$CC"; then |
| 2629 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2631 | do |
| 2632 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2633 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2634 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2636 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2638 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2639 | if test -n "$ac_ct_CC"; then |
| 2640 | 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] | 2641 | else |
| 2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2643 | for as_dir in $PATH |
| 2644 | do |
| 2645 | IFS=$as_save_IFS |
| 2646 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2648 | 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] | 2649 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2650 | 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] | 2651 | break 2 |
| 2652 | fi |
| 2653 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2654 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2655 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2656 | |
| 2657 | fi |
| 2658 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2659 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2660 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2661 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2662 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2664 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2665 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2666 | fi |
| 2667 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2669 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2671 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2672 | if test "x$ac_ct_CC" = x; then |
| 2673 | CC="" |
| 2674 | else |
| 2675 | case $cross_compiling:$ac_tool_warned in |
| 2676 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2677 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2678 | whose name does not start with the host triplet. If you think this |
| 2679 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2680 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2681 | whose name does not start with the host triplet. If you think this |
| 2682 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2683 | ac_tool_warned=yes ;; |
| 2684 | esac |
| 2685 | CC=$ac_ct_CC |
| 2686 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2687 | fi |
| 2688 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2689 | fi |
| 2690 | |
| 2691 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2692 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2693 | See \`config.log' for more details." >&5 |
| 2694 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2695 | See \`config.log' for more details." >&2;} |
| 2696 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2697 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2698 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2699 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2700 | ac_compiler=`set X $ac_compile; echo $2` |
| 2701 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2702 | case "(($ac_try" in |
| 2703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2704 | *) ac_try_echo=$ac_try;; |
| 2705 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2707 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2708 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2710 | (exit $ac_status); } |
| 2711 | { (ac_try="$ac_compiler -v >&5" |
| 2712 | case "(($ac_try" in |
| 2713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2714 | *) ac_try_echo=$ac_try;; |
| 2715 | esac |
| 2716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2717 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2718 | ac_status=$? |
| 2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2720 | (exit $ac_status); } |
| 2721 | { (ac_try="$ac_compiler -V >&5" |
| 2722 | case "(($ac_try" in |
| 2723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2724 | *) ac_try_echo=$ac_try;; |
| 2725 | esac |
| 2726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2727 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2728 | ac_status=$? |
| 2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2730 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2731 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2732 | cat >conftest.$ac_ext <<_ACEOF |
| 2733 | /* confdefs.h. */ |
| 2734 | _ACEOF |
| 2735 | cat confdefs.h >>conftest.$ac_ext |
| 2736 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2737 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2738 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2739 | int |
| 2740 | main () |
| 2741 | { |
| 2742 | |
| 2743 | ; |
| 2744 | return 0; |
| 2745 | } |
| 2746 | _ACEOF |
| 2747 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2748 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2749 | # Try to create an executable without -o first, disregard a.out. |
| 2750 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2751 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2752 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2753 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2754 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2755 | # |
| 2756 | # List of possible output files, starting from the most likely. |
| 2757 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2758 | # only as a last resort. b.out is created by i960 compilers. |
| 2759 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2760 | # |
| 2761 | # The IRIX 6 linker writes into existing files which may not be |
| 2762 | # executable, retaining their permissions. Remove them first so a |
| 2763 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2764 | ac_rmfiles= |
| 2765 | for ac_file in $ac_files |
| 2766 | do |
| 2767 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2768 | *.$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] | 2769 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2770 | esac |
| 2771 | done |
| 2772 | rm -f $ac_rmfiles |
| 2773 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2774 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2775 | case "(($ac_try" in |
| 2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2777 | *) ac_try_echo=$ac_try;; |
| 2778 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2780 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2781 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2783 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2784 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2785 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2786 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2787 | # so that the user can short-circuit this test for compilers unknown to |
| 2788 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2789 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2790 | do |
| 2791 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2792 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2793 | *.$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] | 2794 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2795 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2796 | # We found the default executable, but exeext='' is most |
| 2797 | # certainly right. |
| 2798 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2799 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2800 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2801 | then :; else |
| 2802 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2803 | fi |
| 2804 | # We set ac_cv_exeext here because the later test for it is not |
| 2805 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2806 | # argument, so we may need to know it at that point already. |
| 2807 | # Even if this section looks crufty: it has the advantage of |
| 2808 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2809 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2810 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2811 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2812 | esac |
| 2813 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2814 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2815 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2816 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2817 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2819 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2820 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2821 | See \`config.log' for more details." >&5 |
| 2822 | echo "$as_me: error: C compiler cannot create executables |
| 2823 | See \`config.log' for more details." >&2;} |
| 2824 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2825 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2827 | ac_exeext=$ac_cv_exeext |
| 2828 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2829 | echo "${ECHO_T}$ac_file" >&6; } |
| 2830 | |
| 2831 | # Check that the compiler produces executables we can run. If not, either |
| 2832 | # the compiler is broken, or we cross compile. |
| 2833 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2834 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2835 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2836 | # If not cross compiling, check that we can run a simple program. |
| 2837 | if test "$cross_compiling" != yes; then |
| 2838 | if { ac_try='./$ac_file' |
| 2839 | { (case "(($ac_try" in |
| 2840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2841 | *) ac_try_echo=$ac_try;; |
| 2842 | esac |
| 2843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2844 | (eval "$ac_try") 2>&5 |
| 2845 | ac_status=$? |
| 2846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2847 | (exit $ac_status); }; }; then |
| 2848 | cross_compiling=no |
| 2849 | else |
| 2850 | if test "$cross_compiling" = maybe; then |
| 2851 | cross_compiling=yes |
| 2852 | else |
| 2853 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2854 | If you meant to cross compile, use \`--host'. |
| 2855 | See \`config.log' for more details." >&5 |
| 2856 | echo "$as_me: error: cannot run C compiled programs. |
| 2857 | If you meant to cross compile, use \`--host'. |
| 2858 | See \`config.log' for more details." >&2;} |
| 2859 | { (exit 1); exit 1; }; } |
| 2860 | fi |
| 2861 | fi |
| 2862 | fi |
| 2863 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2864 | echo "${ECHO_T}yes" >&6; } |
| 2865 | |
| 2866 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2867 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2868 | # Check that the compiler produces executables we can run. If not, either |
| 2869 | # the compiler is broken, or we cross compile. |
| 2870 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2871 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2872 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2873 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2874 | |
| 2875 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2876 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2877 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2878 | case "(($ac_try" in |
| 2879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2880 | *) ac_try_echo=$ac_try;; |
| 2881 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2883 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2884 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2887 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2888 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2889 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2890 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2891 | for ac_file in conftest.exe conftest conftest.*; do |
| 2892 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2893 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2894 | *.$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] | 2895 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2896 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2897 | * ) break;; |
| 2898 | esac |
| 2899 | done |
| 2900 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2901 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2902 | See \`config.log' for more details." >&5 |
| 2903 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2904 | See \`config.log' for more details." >&2;} |
| 2905 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2906 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2907 | |
| 2908 | rm -f conftest$ac_cv_exeext |
| 2909 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2910 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2911 | |
| 2912 | rm -f conftest.$ac_ext |
| 2913 | EXEEXT=$ac_cv_exeext |
| 2914 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2915 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2916 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2917 | if test "${ac_cv_objext+set}" = set; then |
| 2918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2919 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2920 | cat >conftest.$ac_ext <<_ACEOF |
| 2921 | /* confdefs.h. */ |
| 2922 | _ACEOF |
| 2923 | cat confdefs.h >>conftest.$ac_ext |
| 2924 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2925 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2927 | int |
| 2928 | main () |
| 2929 | { |
| 2930 | |
| 2931 | ; |
| 2932 | return 0; |
| 2933 | } |
| 2934 | _ACEOF |
| 2935 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2936 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2937 | case "(($ac_try" in |
| 2938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2939 | *) ac_try_echo=$ac_try;; |
| 2940 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2942 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2943 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2945 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2946 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2947 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2948 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2949 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2951 | break;; |
| 2952 | esac |
| 2953 | done |
| 2954 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2955 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2957 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2958 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2959 | See \`config.log' for more details." >&5 |
| 2960 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2961 | See \`config.log' for more details." >&2;} |
| 2962 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2963 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2964 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2965 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2966 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2967 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2968 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | OBJEXT=$ac_cv_objext |
| 2970 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2971 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2972 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2973 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2975 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2976 | cat >conftest.$ac_ext <<_ACEOF |
| 2977 | /* confdefs.h. */ |
| 2978 | _ACEOF |
| 2979 | cat confdefs.h >>conftest.$ac_ext |
| 2980 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2981 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2982 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2983 | int |
| 2984 | main () |
| 2985 | { |
| 2986 | #ifndef __GNUC__ |
| 2987 | choke me |
| 2988 | #endif |
| 2989 | |
| 2990 | ; |
| 2991 | return 0; |
| 2992 | } |
| 2993 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2994 | rm -f conftest.$ac_objext |
| 2995 | if { (ac_try="$ac_compile" |
| 2996 | case "(($ac_try" in |
| 2997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2998 | *) ac_try_echo=$ac_try;; |
| 2999 | esac |
| 3000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3001 | (eval "$ac_compile") 2>conftest.er1 |
| 3002 | ac_status=$? |
| 3003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3004 | rm -f conftest.er1 |
| 3005 | cat conftest.err >&5 |
| 3006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3007 | (exit $ac_status); } && |
| 3008 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3009 | { (case "(($ac_try" in |
| 3010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3011 | *) ac_try_echo=$ac_try;; |
| 3012 | esac |
| 3013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3014 | (eval "$ac_try") 2>&5 |
| 3015 | ac_status=$? |
| 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3017 | (exit $ac_status); }; } && |
| 3018 | { ac_try='test -s conftest.$ac_objext' |
| 3019 | { (case "(($ac_try" in |
| 3020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3021 | *) ac_try_echo=$ac_try;; |
| 3022 | esac |
| 3023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3024 | (eval "$ac_try") 2>&5 |
| 3025 | ac_status=$? |
| 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3027 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3028 | ac_compiler_gnu=yes |
| 3029 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3030 | echo "$as_me: failed program was:" >&5 |
| 3031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3032 | |
| 3033 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3034 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3037 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3038 | |
| 3039 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3040 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3041 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3042 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3043 | ac_test_CFLAGS=${CFLAGS+set} |
| 3044 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3045 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3046 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3047 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3049 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3050 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3051 | ac_c_werror_flag=yes |
| 3052 | ac_cv_prog_cc_g=no |
| 3053 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3054 | cat >conftest.$ac_ext <<_ACEOF |
| 3055 | /* confdefs.h. */ |
| 3056 | _ACEOF |
| 3057 | cat confdefs.h >>conftest.$ac_ext |
| 3058 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3059 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3060 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3061 | int |
| 3062 | main () |
| 3063 | { |
| 3064 | |
| 3065 | ; |
| 3066 | return 0; |
| 3067 | } |
| 3068 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3069 | rm -f conftest.$ac_objext |
| 3070 | if { (ac_try="$ac_compile" |
| 3071 | case "(($ac_try" in |
| 3072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3073 | *) ac_try_echo=$ac_try;; |
| 3074 | esac |
| 3075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3076 | (eval "$ac_compile") 2>conftest.er1 |
| 3077 | ac_status=$? |
| 3078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3079 | rm -f conftest.er1 |
| 3080 | cat conftest.err >&5 |
| 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3082 | (exit $ac_status); } && |
| 3083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3084 | { (case "(($ac_try" in |
| 3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3086 | *) ac_try_echo=$ac_try;; |
| 3087 | esac |
| 3088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3089 | (eval "$ac_try") 2>&5 |
| 3090 | ac_status=$? |
| 3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3092 | (exit $ac_status); }; } && |
| 3093 | { ac_try='test -s conftest.$ac_objext' |
| 3094 | { (case "(($ac_try" in |
| 3095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3096 | *) ac_try_echo=$ac_try;; |
| 3097 | esac |
| 3098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3099 | (eval "$ac_try") 2>&5 |
| 3100 | ac_status=$? |
| 3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3102 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3103 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3104 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3105 | echo "$as_me: failed program was:" >&5 |
| 3106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3107 | |
| 3108 | CFLAGS="" |
| 3109 | cat >conftest.$ac_ext <<_ACEOF |
| 3110 | /* confdefs.h. */ |
| 3111 | _ACEOF |
| 3112 | cat confdefs.h >>conftest.$ac_ext |
| 3113 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3114 | /* end confdefs.h. */ |
| 3115 | |
| 3116 | int |
| 3117 | main () |
| 3118 | { |
| 3119 | |
| 3120 | ; |
| 3121 | return 0; |
| 3122 | } |
| 3123 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3124 | rm -f conftest.$ac_objext |
| 3125 | if { (ac_try="$ac_compile" |
| 3126 | case "(($ac_try" in |
| 3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3128 | *) ac_try_echo=$ac_try;; |
| 3129 | esac |
| 3130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3131 | (eval "$ac_compile") 2>conftest.er1 |
| 3132 | ac_status=$? |
| 3133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3134 | rm -f conftest.er1 |
| 3135 | cat conftest.err >&5 |
| 3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3137 | (exit $ac_status); } && |
| 3138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3139 | { (case "(($ac_try" in |
| 3140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3141 | *) ac_try_echo=$ac_try;; |
| 3142 | esac |
| 3143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3144 | (eval "$ac_try") 2>&5 |
| 3145 | ac_status=$? |
| 3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3147 | (exit $ac_status); }; } && |
| 3148 | { ac_try='test -s conftest.$ac_objext' |
| 3149 | { (case "(($ac_try" in |
| 3150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3151 | *) ac_try_echo=$ac_try;; |
| 3152 | esac |
| 3153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3154 | (eval "$ac_try") 2>&5 |
| 3155 | ac_status=$? |
| 3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3157 | (exit $ac_status); }; }; then |
| 3158 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3159 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3160 | echo "$as_me: failed program was:" >&5 |
| 3161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3162 | |
| 3163 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3164 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3165 | cat >conftest.$ac_ext <<_ACEOF |
| 3166 | /* confdefs.h. */ |
| 3167 | _ACEOF |
| 3168 | cat confdefs.h >>conftest.$ac_ext |
| 3169 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3170 | /* end confdefs.h. */ |
| 3171 | |
| 3172 | int |
| 3173 | main () |
| 3174 | { |
| 3175 | |
| 3176 | ; |
| 3177 | return 0; |
| 3178 | } |
| 3179 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3180 | rm -f conftest.$ac_objext |
| 3181 | if { (ac_try="$ac_compile" |
| 3182 | case "(($ac_try" in |
| 3183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3184 | *) ac_try_echo=$ac_try;; |
| 3185 | esac |
| 3186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3187 | (eval "$ac_compile") 2>conftest.er1 |
| 3188 | ac_status=$? |
| 3189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3190 | rm -f conftest.er1 |
| 3191 | cat conftest.err >&5 |
| 3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3193 | (exit $ac_status); } && |
| 3194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3195 | { (case "(($ac_try" in |
| 3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3197 | *) ac_try_echo=$ac_try;; |
| 3198 | esac |
| 3199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3200 | (eval "$ac_try") 2>&5 |
| 3201 | ac_status=$? |
| 3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3203 | (exit $ac_status); }; } && |
| 3204 | { ac_try='test -s conftest.$ac_objext' |
| 3205 | { (case "(($ac_try" in |
| 3206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3207 | *) ac_try_echo=$ac_try;; |
| 3208 | esac |
| 3209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3210 | (eval "$ac_try") 2>&5 |
| 3211 | ac_status=$? |
| 3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3213 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3214 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3215 | else |
| 3216 | echo "$as_me: failed program was:" >&5 |
| 3217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3218 | |
| 3219 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3220 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3223 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3226 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3229 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3230 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3231 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3232 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3233 | if test "$ac_test_CFLAGS" = set; then |
| 3234 | CFLAGS=$ac_save_CFLAGS |
| 3235 | elif test $ac_cv_prog_cc_g = yes; then |
| 3236 | if test "$GCC" = yes; then |
| 3237 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3238 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3239 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3240 | fi |
| 3241 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3242 | if test "$GCC" = yes; then |
| 3243 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3244 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3245 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3246 | fi |
| 3247 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3248 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3249 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3250 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3252 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3253 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3254 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3255 | cat >conftest.$ac_ext <<_ACEOF |
| 3256 | /* confdefs.h. */ |
| 3257 | _ACEOF |
| 3258 | cat confdefs.h >>conftest.$ac_ext |
| 3259 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3260 | /* end confdefs.h. */ |
| 3261 | #include <stdarg.h> |
| 3262 | #include <stdio.h> |
| 3263 | #include <sys/types.h> |
| 3264 | #include <sys/stat.h> |
| 3265 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3266 | struct buf { int x; }; |
| 3267 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3268 | static char *e (p, i) |
| 3269 | char **p; |
| 3270 | int i; |
| 3271 | { |
| 3272 | return p[i]; |
| 3273 | } |
| 3274 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3275 | { |
| 3276 | char *s; |
| 3277 | va_list v; |
| 3278 | va_start (v,p); |
| 3279 | s = g (p, va_arg (v,int)); |
| 3280 | va_end (v); |
| 3281 | return s; |
| 3282 | } |
| 3283 | |
| 3284 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3285 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3286 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3287 | 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] | 3288 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3289 | 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] | 3290 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3291 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3293 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3294 | inside strings and character constants. */ |
| 3295 | #define FOO(x) 'x' |
| 3296 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3297 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3298 | int test (int i, double x); |
| 3299 | struct s1 {int (*f) (int a);}; |
| 3300 | struct s2 {int (*f) (double a);}; |
| 3301 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3302 | int argc; |
| 3303 | char **argv; |
| 3304 | int |
| 3305 | main () |
| 3306 | { |
| 3307 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3308 | ; |
| 3309 | return 0; |
| 3310 | } |
| 3311 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3312 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3313 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3314 | do |
| 3315 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3316 | rm -f conftest.$ac_objext |
| 3317 | if { (ac_try="$ac_compile" |
| 3318 | case "(($ac_try" in |
| 3319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3320 | *) ac_try_echo=$ac_try;; |
| 3321 | esac |
| 3322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3323 | (eval "$ac_compile") 2>conftest.er1 |
| 3324 | ac_status=$? |
| 3325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3326 | rm -f conftest.er1 |
| 3327 | cat conftest.err >&5 |
| 3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3329 | (exit $ac_status); } && |
| 3330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3331 | { (case "(($ac_try" in |
| 3332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3333 | *) ac_try_echo=$ac_try;; |
| 3334 | esac |
| 3335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3336 | (eval "$ac_try") 2>&5 |
| 3337 | ac_status=$? |
| 3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3339 | (exit $ac_status); }; } && |
| 3340 | { ac_try='test -s conftest.$ac_objext' |
| 3341 | { (case "(($ac_try" in |
| 3342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3343 | *) ac_try_echo=$ac_try;; |
| 3344 | esac |
| 3345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3346 | (eval "$ac_try") 2>&5 |
| 3347 | ac_status=$? |
| 3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3349 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3350 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3351 | else |
| 3352 | echo "$as_me: failed program was:" >&5 |
| 3353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3354 | |
| 3355 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3356 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3357 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3358 | rm -f core conftest.err conftest.$ac_objext |
| 3359 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3360 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3361 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3362 | CC=$ac_save_CC |
| 3363 | |
| 3364 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3365 | # AC_CACHE_VAL |
| 3366 | case "x$ac_cv_prog_cc_c89" in |
| 3367 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3368 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3369 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3370 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3371 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3372 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3373 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3374 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3375 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3376 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3377 | esac |
| 3378 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3379 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3380 | ac_ext=c |
| 3381 | ac_cpp='$CPP $CPPFLAGS' |
| 3382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3385 | |
| 3386 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3387 | ac_ext=c |
| 3388 | ac_cpp='$CPP $CPPFLAGS' |
| 3389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3392 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3393 | 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] | 3394 | # On Suns, sometimes $CPP names a directory. |
| 3395 | if test -n "$CPP" && test -d "$CPP"; then |
| 3396 | CPP= |
| 3397 | fi |
| 3398 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3399 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3401 | else |
| 3402 | # Double quotes because CPP needs to be expanded |
| 3403 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3404 | do |
| 3405 | ac_preproc_ok=false |
| 3406 | for ac_c_preproc_warn_flag in '' yes |
| 3407 | do |
| 3408 | # Use a header file that comes with gcc, so configuring glibc |
| 3409 | # with a fresh cross-compiler works. |
| 3410 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3411 | # <limits.h> exists even on freestanding compilers. |
| 3412 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3413 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3414 | cat >conftest.$ac_ext <<_ACEOF |
| 3415 | /* confdefs.h. */ |
| 3416 | _ACEOF |
| 3417 | cat confdefs.h >>conftest.$ac_ext |
| 3418 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3419 | /* end confdefs.h. */ |
| 3420 | #ifdef __STDC__ |
| 3421 | # include <limits.h> |
| 3422 | #else |
| 3423 | # include <assert.h> |
| 3424 | #endif |
| 3425 | Syntax error |
| 3426 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3427 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3428 | case "(($ac_try" in |
| 3429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3430 | *) ac_try_echo=$ac_try;; |
| 3431 | esac |
| 3432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3433 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3434 | ac_status=$? |
| 3435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3436 | rm -f conftest.er1 |
| 3437 | cat conftest.err >&5 |
| 3438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3439 | (exit $ac_status); } >/dev/null; then |
| 3440 | if test -s conftest.err; then |
| 3441 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3443 | else |
| 3444 | ac_cpp_err= |
| 3445 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3446 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3447 | ac_cpp_err=yes |
| 3448 | fi |
| 3449 | if test -z "$ac_cpp_err"; then |
| 3450 | : |
| 3451 | else |
| 3452 | echo "$as_me: failed program was:" >&5 |
| 3453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3454 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3455 | # Broken: fails on valid input. |
| 3456 | continue |
| 3457 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3458 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3459 | rm -f conftest.err conftest.$ac_ext |
| 3460 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3461 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3462 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3463 | cat >conftest.$ac_ext <<_ACEOF |
| 3464 | /* confdefs.h. */ |
| 3465 | _ACEOF |
| 3466 | cat confdefs.h >>conftest.$ac_ext |
| 3467 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3468 | /* end confdefs.h. */ |
| 3469 | #include <ac_nonexistent.h> |
| 3470 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3472 | case "(($ac_try" in |
| 3473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3474 | *) ac_try_echo=$ac_try;; |
| 3475 | esac |
| 3476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3478 | ac_status=$? |
| 3479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3480 | rm -f conftest.er1 |
| 3481 | cat conftest.err >&5 |
| 3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3483 | (exit $ac_status); } >/dev/null; then |
| 3484 | if test -s conftest.err; then |
| 3485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3487 | else |
| 3488 | ac_cpp_err= |
| 3489 | fi |
| 3490 | else |
| 3491 | ac_cpp_err=yes |
| 3492 | fi |
| 3493 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3494 | # Broken: success on invalid input. |
| 3495 | continue |
| 3496 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3497 | echo "$as_me: failed program was:" >&5 |
| 3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3499 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3500 | # Passes both tests. |
| 3501 | ac_preproc_ok=: |
| 3502 | break |
| 3503 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3504 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3505 | rm -f conftest.err conftest.$ac_ext |
| 3506 | |
| 3507 | done |
| 3508 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3509 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3510 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3511 | break |
| 3512 | fi |
| 3513 | |
| 3514 | done |
| 3515 | ac_cv_prog_CPP=$CPP |
| 3516 | |
| 3517 | fi |
| 3518 | CPP=$ac_cv_prog_CPP |
| 3519 | else |
| 3520 | ac_cv_prog_CPP=$CPP |
| 3521 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3522 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3523 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3524 | ac_preproc_ok=false |
| 3525 | for ac_c_preproc_warn_flag in '' yes |
| 3526 | do |
| 3527 | # Use a header file that comes with gcc, so configuring glibc |
| 3528 | # with a fresh cross-compiler works. |
| 3529 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3530 | # <limits.h> exists even on freestanding compilers. |
| 3531 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3532 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3533 | cat >conftest.$ac_ext <<_ACEOF |
| 3534 | /* confdefs.h. */ |
| 3535 | _ACEOF |
| 3536 | cat confdefs.h >>conftest.$ac_ext |
| 3537 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3538 | /* end confdefs.h. */ |
| 3539 | #ifdef __STDC__ |
| 3540 | # include <limits.h> |
| 3541 | #else |
| 3542 | # include <assert.h> |
| 3543 | #endif |
| 3544 | Syntax error |
| 3545 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3546 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3547 | case "(($ac_try" in |
| 3548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3549 | *) ac_try_echo=$ac_try;; |
| 3550 | esac |
| 3551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3552 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3553 | ac_status=$? |
| 3554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3555 | rm -f conftest.er1 |
| 3556 | cat conftest.err >&5 |
| 3557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3558 | (exit $ac_status); } >/dev/null; then |
| 3559 | if test -s conftest.err; then |
| 3560 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3561 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3562 | else |
| 3563 | ac_cpp_err= |
| 3564 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3565 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3566 | ac_cpp_err=yes |
| 3567 | fi |
| 3568 | if test -z "$ac_cpp_err"; then |
| 3569 | : |
| 3570 | else |
| 3571 | echo "$as_me: failed program was:" >&5 |
| 3572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3573 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3574 | # Broken: fails on valid input. |
| 3575 | continue |
| 3576 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3577 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3578 | rm -f conftest.err conftest.$ac_ext |
| 3579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3580 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3581 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3582 | cat >conftest.$ac_ext <<_ACEOF |
| 3583 | /* confdefs.h. */ |
| 3584 | _ACEOF |
| 3585 | cat confdefs.h >>conftest.$ac_ext |
| 3586 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3587 | /* end confdefs.h. */ |
| 3588 | #include <ac_nonexistent.h> |
| 3589 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3590 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3591 | case "(($ac_try" in |
| 3592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3593 | *) ac_try_echo=$ac_try;; |
| 3594 | esac |
| 3595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3597 | ac_status=$? |
| 3598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3599 | rm -f conftest.er1 |
| 3600 | cat conftest.err >&5 |
| 3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3602 | (exit $ac_status); } >/dev/null; then |
| 3603 | if test -s conftest.err; then |
| 3604 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3606 | else |
| 3607 | ac_cpp_err= |
| 3608 | fi |
| 3609 | else |
| 3610 | ac_cpp_err=yes |
| 3611 | fi |
| 3612 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3613 | # Broken: success on invalid input. |
| 3614 | continue |
| 3615 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3616 | echo "$as_me: failed program was:" >&5 |
| 3617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3618 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3619 | # Passes both tests. |
| 3620 | ac_preproc_ok=: |
| 3621 | break |
| 3622 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3623 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3624 | rm -f conftest.err conftest.$ac_ext |
| 3625 | |
| 3626 | done |
| 3627 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3628 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3629 | if $ac_preproc_ok; then |
| 3630 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3631 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3632 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3633 | See \`config.log' for more details." >&5 |
| 3634 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3635 | See \`config.log' for more details." >&2;} |
| 3636 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3637 | fi |
| 3638 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3639 | ac_ext=c |
| 3640 | ac_cpp='$CPP $CPPFLAGS' |
| 3641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3645 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3646 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3647 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3648 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3650 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3651 | # Extract the first word of "grep ggrep" to use in msg output |
| 3652 | if test -z "$GREP"; then |
| 3653 | set dummy grep ggrep; ac_prog_name=$2 |
| 3654 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3656 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3657 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3658 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3660 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3661 | do |
| 3662 | IFS=$as_save_IFS |
| 3663 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3664 | for ac_prog in grep ggrep; do |
| 3665 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3666 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3667 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3668 | # 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] | 3669 | # Check for GNU $ac_path_GREP |
| 3670 | case `"$ac_path_GREP" --version 2>&1` in |
| 3671 | *GNU*) |
| 3672 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3673 | *) |
| 3674 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3675 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3676 | while : |
| 3677 | do |
| 3678 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3679 | mv "conftest.tmp" "conftest.in" |
| 3680 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3681 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3682 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3683 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3684 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3685 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3686 | # Best one so far, save it but keep looking for a better one |
| 3687 | ac_cv_path_GREP="$ac_path_GREP" |
| 3688 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3689 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3690 | # 10*(2^10) chars as input seems more than enough |
| 3691 | test $ac_count -gt 10 && break |
| 3692 | done |
| 3693 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3694 | esac |
| 3695 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3696 | |
| 3697 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3698 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3699 | done |
| 3700 | |
| 3701 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3702 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3703 | |
| 3704 | |
| 3705 | fi |
| 3706 | |
| 3707 | GREP="$ac_cv_path_GREP" |
| 3708 | if test -z "$GREP"; then |
| 3709 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3710 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3711 | { (exit 1); exit 1; }; } |
| 3712 | fi |
| 3713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3714 | else |
| 3715 | ac_cv_path_GREP=$GREP |
| 3716 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3717 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3718 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3719 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3720 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3721 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3722 | GREP="$ac_cv_path_GREP" |
| 3723 | |
| 3724 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3725 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3726 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3727 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3729 | else |
| 3730 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3731 | then ac_cv_path_EGREP="$GREP -E" |
| 3732 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3733 | # Extract the first word of "egrep" to use in msg output |
| 3734 | if test -z "$EGREP"; then |
| 3735 | set dummy egrep; ac_prog_name=$2 |
| 3736 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3738 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3739 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3740 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3742 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3743 | do |
| 3744 | IFS=$as_save_IFS |
| 3745 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3746 | for ac_prog in egrep; do |
| 3747 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3748 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3749 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3750 | # 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] | 3751 | # Check for GNU $ac_path_EGREP |
| 3752 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3753 | *GNU*) |
| 3754 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3755 | *) |
| 3756 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3757 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3758 | while : |
| 3759 | do |
| 3760 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3761 | mv "conftest.tmp" "conftest.in" |
| 3762 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3763 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3764 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3765 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3766 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3767 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3768 | # Best one so far, save it but keep looking for a better one |
| 3769 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3770 | ac_path_EGREP_max=$ac_count |
| 3771 | fi |
| 3772 | # 10*(2^10) chars as input seems more than enough |
| 3773 | test $ac_count -gt 10 && break |
| 3774 | done |
| 3775 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3776 | esac |
| 3777 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3778 | |
| 3779 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3780 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3781 | done |
| 3782 | |
| 3783 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3784 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3785 | |
| 3786 | |
| 3787 | fi |
| 3788 | |
| 3789 | EGREP="$ac_cv_path_EGREP" |
| 3790 | if test -z "$EGREP"; then |
| 3791 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3792 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3793 | { (exit 1); exit 1; }; } |
| 3794 | fi |
| 3795 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3796 | else |
| 3797 | ac_cv_path_EGREP=$EGREP |
| 3798 | fi |
| 3799 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3800 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3801 | fi |
| 3802 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3803 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3804 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3805 | EGREP="$ac_cv_path_EGREP" |
| 3806 | |
| 3807 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3808 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3809 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3810 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3812 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3813 | cat >conftest.$ac_ext <<_ACEOF |
| 3814 | /* confdefs.h. */ |
| 3815 | _ACEOF |
| 3816 | cat confdefs.h >>conftest.$ac_ext |
| 3817 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3818 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3819 | #include <stdlib.h> |
| 3820 | #include <stdarg.h> |
| 3821 | #include <string.h> |
| 3822 | #include <float.h> |
| 3823 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3824 | int |
| 3825 | main () |
| 3826 | { |
| 3827 | |
| 3828 | ; |
| 3829 | return 0; |
| 3830 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3831 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3832 | rm -f conftest.$ac_objext |
| 3833 | if { (ac_try="$ac_compile" |
| 3834 | case "(($ac_try" in |
| 3835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3836 | *) ac_try_echo=$ac_try;; |
| 3837 | esac |
| 3838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3839 | (eval "$ac_compile") 2>conftest.er1 |
| 3840 | ac_status=$? |
| 3841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3842 | rm -f conftest.er1 |
| 3843 | cat conftest.err >&5 |
| 3844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3845 | (exit $ac_status); } && |
| 3846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3847 | { (case "(($ac_try" in |
| 3848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3849 | *) ac_try_echo=$ac_try;; |
| 3850 | esac |
| 3851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3852 | (eval "$ac_try") 2>&5 |
| 3853 | ac_status=$? |
| 3854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3855 | (exit $ac_status); }; } && |
| 3856 | { ac_try='test -s conftest.$ac_objext' |
| 3857 | { (case "(($ac_try" in |
| 3858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3859 | *) ac_try_echo=$ac_try;; |
| 3860 | esac |
| 3861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3862 | (eval "$ac_try") 2>&5 |
| 3863 | ac_status=$? |
| 3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3865 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3866 | ac_cv_header_stdc=yes |
| 3867 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3868 | echo "$as_me: failed program was:" >&5 |
| 3869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3870 | |
| 3871 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3872 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3875 | |
| 3876 | if test $ac_cv_header_stdc = yes; then |
| 3877 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3878 | cat >conftest.$ac_ext <<_ACEOF |
| 3879 | /* confdefs.h. */ |
| 3880 | _ACEOF |
| 3881 | cat confdefs.h >>conftest.$ac_ext |
| 3882 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3883 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3884 | #include <string.h> |
| 3885 | |
| 3886 | _ACEOF |
| 3887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3888 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3889 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3890 | else |
| 3891 | ac_cv_header_stdc=no |
| 3892 | fi |
| 3893 | rm -f conftest* |
| 3894 | |
| 3895 | fi |
| 3896 | |
| 3897 | if test $ac_cv_header_stdc = yes; then |
| 3898 | # 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] | 3899 | cat >conftest.$ac_ext <<_ACEOF |
| 3900 | /* confdefs.h. */ |
| 3901 | _ACEOF |
| 3902 | cat confdefs.h >>conftest.$ac_ext |
| 3903 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3904 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3905 | #include <stdlib.h> |
| 3906 | |
| 3907 | _ACEOF |
| 3908 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3909 | $EGREP "free" >/dev/null 2>&1; then |
| 3910 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3911 | else |
| 3912 | ac_cv_header_stdc=no |
| 3913 | fi |
| 3914 | rm -f conftest* |
| 3915 | |
| 3916 | fi |
| 3917 | |
| 3918 | if test $ac_cv_header_stdc = yes; then |
| 3919 | # /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] | 3920 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3921 | : |
| 3922 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3923 | cat >conftest.$ac_ext <<_ACEOF |
| 3924 | /* confdefs.h. */ |
| 3925 | _ACEOF |
| 3926 | cat confdefs.h >>conftest.$ac_ext |
| 3927 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3928 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3929 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3930 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3931 | #if ((' ' & 0x0FF) == 0x020) |
| 3932 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3933 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3934 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3935 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3936 | (('a' <= (c) && (c) <= 'i') \ |
| 3937 | || ('j' <= (c) && (c) <= 'r') \ |
| 3938 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3939 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3940 | #endif |
| 3941 | |
| 3942 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3943 | int |
| 3944 | main () |
| 3945 | { |
| 3946 | int i; |
| 3947 | for (i = 0; i < 256; i++) |
| 3948 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3949 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3950 | return 2; |
| 3951 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3952 | } |
| 3953 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3954 | rm -f conftest$ac_exeext |
| 3955 | if { (ac_try="$ac_link" |
| 3956 | case "(($ac_try" in |
| 3957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3958 | *) ac_try_echo=$ac_try;; |
| 3959 | esac |
| 3960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3961 | (eval "$ac_link") 2>&5 |
| 3962 | ac_status=$? |
| 3963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3964 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3965 | { (case "(($ac_try" in |
| 3966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3967 | *) ac_try_echo=$ac_try;; |
| 3968 | esac |
| 3969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3970 | (eval "$ac_try") 2>&5 |
| 3971 | ac_status=$? |
| 3972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3973 | (exit $ac_status); }; }; then |
| 3974 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3975 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3976 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3977 | echo "$as_me: failed program was:" >&5 |
| 3978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3979 | |
| 3980 | ( exit $ac_status ) |
| 3981 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3982 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3983 | 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] | 3984 | fi |
| 3985 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3986 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3987 | fi |
| 3988 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3989 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3990 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3991 | if test $ac_cv_header_stdc = yes; then |
| 3992 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3993 | cat >>confdefs.h <<\_ACEOF |
| 3994 | #define STDC_HEADERS 1 |
| 3995 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3996 | |
| 3997 | fi |
| 3998 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3999 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4000 | |
| 4001 | |
| 4002 | |
| 4003 | |
| 4004 | |
| 4005 | |
| 4006 | |
| 4007 | |
| 4008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4009 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4010 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4011 | do |
| 4012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4013 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4017 | else |
| 4018 | cat >conftest.$ac_ext <<_ACEOF |
| 4019 | /* confdefs.h. */ |
| 4020 | _ACEOF |
| 4021 | cat confdefs.h >>conftest.$ac_ext |
| 4022 | cat >>conftest.$ac_ext <<_ACEOF |
| 4023 | /* end confdefs.h. */ |
| 4024 | $ac_includes_default |
| 4025 | |
| 4026 | #include <$ac_header> |
| 4027 | _ACEOF |
| 4028 | rm -f conftest.$ac_objext |
| 4029 | if { (ac_try="$ac_compile" |
| 4030 | case "(($ac_try" in |
| 4031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4032 | *) ac_try_echo=$ac_try;; |
| 4033 | esac |
| 4034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4035 | (eval "$ac_compile") 2>conftest.er1 |
| 4036 | ac_status=$? |
| 4037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4038 | rm -f conftest.er1 |
| 4039 | cat conftest.err >&5 |
| 4040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4041 | (exit $ac_status); } && |
| 4042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4043 | { (case "(($ac_try" in |
| 4044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4045 | *) ac_try_echo=$ac_try;; |
| 4046 | esac |
| 4047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4048 | (eval "$ac_try") 2>&5 |
| 4049 | ac_status=$? |
| 4050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4051 | (exit $ac_status); }; } && |
| 4052 | { ac_try='test -s conftest.$ac_objext' |
| 4053 | { (case "(($ac_try" in |
| 4054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4055 | *) ac_try_echo=$ac_try;; |
| 4056 | esac |
| 4057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4058 | (eval "$ac_try") 2>&5 |
| 4059 | ac_status=$? |
| 4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4061 | (exit $ac_status); }; }; then |
| 4062 | eval "$as_ac_Header=yes" |
| 4063 | else |
| 4064 | echo "$as_me: failed program was:" >&5 |
| 4065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4066 | |
| 4067 | eval "$as_ac_Header=no" |
| 4068 | fi |
| 4069 | |
| 4070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4071 | fi |
| 4072 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4073 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4074 | echo "${ECHO_T}$ac_res" >&6; } |
| 4075 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4076 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4077 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4078 | _ACEOF |
| 4079 | |
| 4080 | fi |
| 4081 | |
| 4082 | done |
| 4083 | |
| 4084 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4085 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4086 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4087 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4089 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4090 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4091 | cat >conftest.$ac_ext <<_ACEOF |
| 4092 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4093 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4094 | cat confdefs.h >>conftest.$ac_ext |
| 4095 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4096 | /* end confdefs.h. */ |
| 4097 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4098 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4099 | |
| 4100 | int |
| 4101 | main () |
| 4102 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4103 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4104 | bogus endian macros |
| 4105 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4106 | |
| 4107 | ; |
| 4108 | return 0; |
| 4109 | } |
| 4110 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4111 | rm -f conftest.$ac_objext |
| 4112 | if { (ac_try="$ac_compile" |
| 4113 | case "(($ac_try" in |
| 4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4115 | *) ac_try_echo=$ac_try;; |
| 4116 | esac |
| 4117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4118 | (eval "$ac_compile") 2>conftest.er1 |
| 4119 | ac_status=$? |
| 4120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4121 | rm -f conftest.er1 |
| 4122 | cat conftest.err >&5 |
| 4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4124 | (exit $ac_status); } && |
| 4125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4126 | { (case "(($ac_try" in |
| 4127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4128 | *) ac_try_echo=$ac_try;; |
| 4129 | esac |
| 4130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4131 | (eval "$ac_try") 2>&5 |
| 4132 | ac_status=$? |
| 4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4134 | (exit $ac_status); }; } && |
| 4135 | { ac_try='test -s conftest.$ac_objext' |
| 4136 | { (case "(($ac_try" in |
| 4137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4138 | *) ac_try_echo=$ac_try;; |
| 4139 | esac |
| 4140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4141 | (eval "$ac_try") 2>&5 |
| 4142 | ac_status=$? |
| 4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4144 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4145 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4146 | cat >conftest.$ac_ext <<_ACEOF |
| 4147 | /* confdefs.h. */ |
| 4148 | _ACEOF |
| 4149 | cat confdefs.h >>conftest.$ac_ext |
| 4150 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4151 | /* end confdefs.h. */ |
| 4152 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4153 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4154 | |
| 4155 | int |
| 4156 | main () |
| 4157 | { |
| 4158 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4159 | not big endian |
| 4160 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4161 | |
| 4162 | ; |
| 4163 | return 0; |
| 4164 | } |
| 4165 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4166 | rm -f conftest.$ac_objext |
| 4167 | if { (ac_try="$ac_compile" |
| 4168 | case "(($ac_try" in |
| 4169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4170 | *) ac_try_echo=$ac_try;; |
| 4171 | esac |
| 4172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4173 | (eval "$ac_compile") 2>conftest.er1 |
| 4174 | ac_status=$? |
| 4175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4176 | rm -f conftest.er1 |
| 4177 | cat conftest.err >&5 |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4179 | (exit $ac_status); } && |
| 4180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4181 | { (case "(($ac_try" in |
| 4182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4183 | *) ac_try_echo=$ac_try;; |
| 4184 | esac |
| 4185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4186 | (eval "$ac_try") 2>&5 |
| 4187 | ac_status=$? |
| 4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4189 | (exit $ac_status); }; } && |
| 4190 | { ac_try='test -s conftest.$ac_objext' |
| 4191 | { (case "(($ac_try" in |
| 4192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4193 | *) ac_try_echo=$ac_try;; |
| 4194 | esac |
| 4195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4196 | (eval "$ac_try") 2>&5 |
| 4197 | ac_status=$? |
| 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4199 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4200 | ac_cv_c_bigendian=yes |
| 4201 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4202 | echo "$as_me: failed program was:" >&5 |
| 4203 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4204 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4205 | ac_cv_c_bigendian=no |
| 4206 | fi |
| 4207 | |
| 4208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4209 | else |
| 4210 | echo "$as_me: failed program was:" >&5 |
| 4211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4212 | |
| 4213 | # It does not; compile a test program. |
| 4214 | if test "$cross_compiling" = yes; then |
| 4215 | # try to guess the endianness by grepping values into an object file |
| 4216 | ac_cv_c_bigendian=unknown |
| 4217 | cat >conftest.$ac_ext <<_ACEOF |
| 4218 | /* confdefs.h. */ |
| 4219 | _ACEOF |
| 4220 | cat confdefs.h >>conftest.$ac_ext |
| 4221 | cat >>conftest.$ac_ext <<_ACEOF |
| 4222 | /* end confdefs.h. */ |
| 4223 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4224 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4225 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4226 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4227 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4228 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4229 | int |
| 4230 | main () |
| 4231 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4232 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4233 | ; |
| 4234 | return 0; |
| 4235 | } |
| 4236 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4237 | rm -f conftest.$ac_objext |
| 4238 | if { (ac_try="$ac_compile" |
| 4239 | case "(($ac_try" in |
| 4240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4241 | *) ac_try_echo=$ac_try;; |
| 4242 | esac |
| 4243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4244 | (eval "$ac_compile") 2>conftest.er1 |
| 4245 | ac_status=$? |
| 4246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4247 | rm -f conftest.er1 |
| 4248 | cat conftest.err >&5 |
| 4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4250 | (exit $ac_status); } && |
| 4251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4252 | { (case "(($ac_try" in |
| 4253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4254 | *) ac_try_echo=$ac_try;; |
| 4255 | esac |
| 4256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4257 | (eval "$ac_try") 2>&5 |
| 4258 | ac_status=$? |
| 4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4260 | (exit $ac_status); }; } && |
| 4261 | { ac_try='test -s conftest.$ac_objext' |
| 4262 | { (case "(($ac_try" in |
| 4263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4264 | *) ac_try_echo=$ac_try;; |
| 4265 | esac |
| 4266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4267 | (eval "$ac_try") 2>&5 |
| 4268 | ac_status=$? |
| 4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4270 | (exit $ac_status); }; }; then |
| 4271 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4272 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4273 | fi |
| 4274 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4275 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4276 | ac_cv_c_bigendian=no |
| 4277 | else |
| 4278 | # finding both strings is unlikely to happen, but who knows? |
| 4279 | ac_cv_c_bigendian=unknown |
| 4280 | fi |
| 4281 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4282 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4283 | echo "$as_me: failed program was:" >&5 |
| 4284 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4285 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4286 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4287 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4290 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4291 | cat >conftest.$ac_ext <<_ACEOF |
| 4292 | /* confdefs.h. */ |
| 4293 | _ACEOF |
| 4294 | cat confdefs.h >>conftest.$ac_ext |
| 4295 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4296 | /* end confdefs.h. */ |
| 4297 | $ac_includes_default |
| 4298 | int |
| 4299 | main () |
| 4300 | { |
| 4301 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4302 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4303 | union |
| 4304 | { |
| 4305 | long int l; |
| 4306 | char c[sizeof (long int)]; |
| 4307 | } u; |
| 4308 | u.l = 1; |
| 4309 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4310 | |
| 4311 | ; |
| 4312 | return 0; |
| 4313 | } |
| 4314 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4315 | rm -f conftest$ac_exeext |
| 4316 | if { (ac_try="$ac_link" |
| 4317 | case "(($ac_try" in |
| 4318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4319 | *) ac_try_echo=$ac_try;; |
| 4320 | esac |
| 4321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4322 | (eval "$ac_link") 2>&5 |
| 4323 | ac_status=$? |
| 4324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4325 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4326 | { (case "(($ac_try" in |
| 4327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4328 | *) ac_try_echo=$ac_try;; |
| 4329 | esac |
| 4330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4331 | (eval "$ac_try") 2>&5 |
| 4332 | ac_status=$? |
| 4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4334 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4335 | ac_cv_c_bigendian=no |
| 4336 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4337 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4338 | echo "$as_me: failed program was:" >&5 |
| 4339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4340 | |
| 4341 | ( exit $ac_status ) |
| 4342 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4343 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4344 | 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] | 4345 | fi |
| 4346 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4347 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4348 | fi |
| 4349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4351 | fi |
| 4352 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4353 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4354 | case $ac_cv_c_bigendian in |
| 4355 | yes) |
| 4356 | ENDIAN=big |
| 4357 | ;; |
| 4358 | no) |
| 4359 | ENDIAN=little |
| 4360 | ;; |
| 4361 | *) |
| 4362 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4363 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4364 | echo "$as_me: error: unknown endianness |
| 4365 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4366 | { (exit 1); exit 1; }; } ;; |
| 4367 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4368 | |
| 4369 | |
| 4370 | if test "$cross_compiling" = yes; then |
| 4371 | LLVM_CROSS_COMPILING=1 |
| 4372 | |
| 4373 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4374 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4375 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4376 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4378 | else |
| 4379 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4380 | ac_cv_build_exeext=.exe |
| 4381 | else |
| 4382 | ac_build_prefix=${build_alias}- |
| 4383 | |
| 4384 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4385 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4388 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4390 | else |
| 4391 | if test -n "$BUILD_CC"; then |
| 4392 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4393 | else |
| 4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4395 | for as_dir in $PATH |
| 4396 | do |
| 4397 | IFS=$as_save_IFS |
| 4398 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4400 | 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] | 4401 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4402 | 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] | 4403 | break 2 |
| 4404 | fi |
| 4405 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4406 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4407 | IFS=$as_save_IFS |
| 4408 | |
| 4409 | fi |
| 4410 | fi |
| 4411 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4412 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4413 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4414 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4415 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4416 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4417 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4418 | fi |
| 4419 | |
| 4420 | |
| 4421 | if test -z "$BUILD_CC"; then |
| 4422 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4423 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4424 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4426 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4428 | else |
| 4429 | if test -n "$BUILD_CC"; then |
| 4430 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4431 | else |
| 4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4433 | for as_dir in $PATH |
| 4434 | do |
| 4435 | IFS=$as_save_IFS |
| 4436 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4437 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4438 | 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] | 4439 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4441 | break 2 |
| 4442 | fi |
| 4443 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4444 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4445 | IFS=$as_save_IFS |
| 4446 | |
| 4447 | fi |
| 4448 | fi |
| 4449 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4450 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4451 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4452 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4453 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4454 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4455 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4456 | fi |
| 4457 | |
| 4458 | |
| 4459 | if test -z "$BUILD_CC"; then |
| 4460 | # Extract the first word of "cc", so it can be a program name with args. |
| 4461 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4462 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4464 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4466 | else |
| 4467 | if test -n "$BUILD_CC"; then |
| 4468 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4469 | else |
| 4470 | ac_prog_rejected=no |
| 4471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4472 | for as_dir in $PATH |
| 4473 | do |
| 4474 | IFS=$as_save_IFS |
| 4475 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4477 | 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] | 4478 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4479 | ac_prog_rejected=yes |
| 4480 | continue |
| 4481 | fi |
| 4482 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4483 | 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] | 4484 | break 2 |
| 4485 | fi |
| 4486 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4487 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4488 | IFS=$as_save_IFS |
| 4489 | |
| 4490 | if test $ac_prog_rejected = yes; then |
| 4491 | # We found a bogon in the path, so make sure we never use it. |
| 4492 | set dummy $ac_cv_prog_BUILD_CC |
| 4493 | shift |
| 4494 | if test $# != 0; then |
| 4495 | # We chose a different compiler from the bogus one. |
| 4496 | # However, it has the same basename, so the bogon will be chosen |
| 4497 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4498 | shift |
| 4499 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4500 | fi |
| 4501 | fi |
| 4502 | fi |
| 4503 | fi |
| 4504 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4505 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4506 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4507 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4508 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4509 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4510 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4511 | fi |
| 4512 | |
| 4513 | |
| 4514 | fi |
| 4515 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4516 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4517 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4518 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4519 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4520 | rm -f conftest* |
| 4521 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4522 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4523 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4524 | (eval $ac_build_link) 2>&5 |
| 4525 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4527 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4528 | for file in conftest.*; do |
| 4529 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4530 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4531 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4532 | esac |
| 4533 | done |
| 4534 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4535 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4536 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4537 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4538 | fi |
| 4539 | rm -f conftest* |
| 4540 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4541 | fi |
| 4542 | fi |
| 4543 | |
| 4544 | BUILD_EXEEXT="" |
| 4545 | 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] | 4546 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4547 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4548 | ac_build_exeext=$BUILD_EXEEXT |
| 4549 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4550 | ac_build_prefix=${build_alias}- |
| 4551 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4552 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4555 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4557 | else |
| 4558 | if test -n "$BUILD_CXX"; then |
| 4559 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4560 | else |
| 4561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4562 | for as_dir in $PATH |
| 4563 | do |
| 4564 | IFS=$as_save_IFS |
| 4565 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4566 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4567 | 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] | 4568 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4569 | 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] | 4570 | break 2 |
| 4571 | fi |
| 4572 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4573 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4574 | IFS=$as_save_IFS |
| 4575 | |
| 4576 | fi |
| 4577 | fi |
| 4578 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4579 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4580 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4581 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4582 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4583 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4584 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4585 | fi |
| 4586 | |
| 4587 | |
| 4588 | if test -z "$BUILD_CXX"; then |
| 4589 | # Extract the first word of "g++", so it can be a program name with args. |
| 4590 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4591 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4593 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4595 | else |
| 4596 | if test -n "$BUILD_CXX"; then |
| 4597 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4598 | else |
| 4599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4600 | for as_dir in $PATH |
| 4601 | do |
| 4602 | IFS=$as_save_IFS |
| 4603 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4605 | 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] | 4606 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4608 | break 2 |
| 4609 | fi |
| 4610 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4611 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4612 | IFS=$as_save_IFS |
| 4613 | |
| 4614 | fi |
| 4615 | fi |
| 4616 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4617 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4618 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4619 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4620 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4621 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4622 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4623 | fi |
| 4624 | |
| 4625 | |
| 4626 | if test -z "$BUILD_CXX"; then |
| 4627 | # Extract the first word of "c++", so it can be a program name with args. |
| 4628 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4629 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4631 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4633 | else |
| 4634 | if test -n "$BUILD_CXX"; then |
| 4635 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4636 | else |
| 4637 | ac_prog_rejected=no |
| 4638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4639 | for as_dir in $PATH |
| 4640 | do |
| 4641 | IFS=$as_save_IFS |
| 4642 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4644 | 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] | 4645 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4646 | ac_prog_rejected=yes |
| 4647 | continue |
| 4648 | fi |
| 4649 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4650 | 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] | 4651 | break 2 |
| 4652 | fi |
| 4653 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4654 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4655 | IFS=$as_save_IFS |
| 4656 | |
| 4657 | if test $ac_prog_rejected = yes; then |
| 4658 | # We found a bogon in the path, so make sure we never use it. |
| 4659 | set dummy $ac_cv_prog_BUILD_CXX |
| 4660 | shift |
| 4661 | if test $# != 0; then |
| 4662 | # We chose a different compiler from the bogus one. |
| 4663 | # However, it has the same basename, so the bogon will be chosen |
| 4664 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4665 | shift |
| 4666 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4667 | fi |
| 4668 | fi |
| 4669 | fi |
| 4670 | fi |
| 4671 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4672 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4673 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4674 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4675 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4676 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4677 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4678 | fi |
| 4679 | |
| 4680 | |
| 4681 | fi |
| 4682 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4683 | else |
| 4684 | LLVM_CROSS_COMPILING=0 |
| 4685 | |
| 4686 | fi |
| 4687 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4688 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4689 | cvsbuild="yes" |
| 4690 | optimize="no" |
| 4691 | CVSBUILD=CVSBUILD=1 |
| 4692 | |
| 4693 | else |
| 4694 | cvsbuild="no" |
| 4695 | optimize="yes" |
| 4696 | fi |
| 4697 | |
| 4698 | |
| 4699 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4700 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4701 | enableval=$enable_optimized; |
| 4702 | else |
| 4703 | enableval=$optimize |
| 4704 | fi |
| 4705 | |
| 4706 | if test ${enableval} = "no" ; then |
| 4707 | ENABLE_OPTIMIZED= |
| 4708 | |
| 4709 | else |
| 4710 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4711 | |
| 4712 | fi |
| 4713 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4714 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4715 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4716 | enableval=$enable_profiling; |
| 4717 | else |
| 4718 | enableval="no" |
| 4719 | fi |
| 4720 | |
| 4721 | if test ${enableval} = "no" ; then |
| 4722 | ENABLE_PROFILING= |
| 4723 | |
| 4724 | else |
| 4725 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4726 | |
| 4727 | fi |
| 4728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4729 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4730 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4731 | enableval=$enable_assertions; |
| 4732 | else |
| 4733 | enableval="yes" |
| 4734 | fi |
| 4735 | |
| 4736 | if test ${enableval} = "yes" ; then |
| 4737 | DISABLE_ASSERTIONS= |
| 4738 | |
| 4739 | else |
| 4740 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4741 | |
| 4742 | fi |
| 4743 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4744 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4745 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4746 | enableval=$enable_expensive_checks; |
| 4747 | else |
| 4748 | enableval="no" |
| 4749 | fi |
| 4750 | |
| 4751 | if test ${enableval} = "yes" ; then |
| 4752 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4753 | |
| 4754 | EXPENSIVE_CHECKS=yes |
| 4755 | |
| 4756 | else |
| 4757 | ENABLE_EXPENSIVE_CHECKS= |
| 4758 | |
| 4759 | EXPENSIVE_CHECKS=no |
| 4760 | |
| 4761 | fi |
| 4762 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4763 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4764 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4765 | enableval=$enable_debug_runtime; |
| 4766 | else |
| 4767 | enableval=no |
| 4768 | fi |
| 4769 | |
| 4770 | if test ${enableval} = "no" ; then |
| 4771 | DEBUG_RUNTIME= |
| 4772 | |
| 4773 | else |
| 4774 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4775 | |
| 4776 | fi |
| 4777 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4778 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4779 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4780 | enableval=$enable_debug_symbols; |
| 4781 | else |
| 4782 | enableval=no |
| 4783 | fi |
| 4784 | |
| 4785 | if test ${enableval} = "no" ; then |
| 4786 | DEBUG_SYMBOLS= |
| 4787 | |
| 4788 | else |
| 4789 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4790 | |
| 4791 | fi |
| 4792 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4793 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4794 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4795 | enableval=$enable_jit; |
| 4796 | else |
| 4797 | enableval=default |
| 4798 | fi |
| 4799 | |
| 4800 | if test ${enableval} = "no" |
| 4801 | then |
| 4802 | JIT= |
| 4803 | |
| 4804 | else |
| 4805 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4806 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4807 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4808 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4809 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4810 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4811 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4812 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4813 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4814 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4815 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4816 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4817 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4818 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4819 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4820 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4821 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4822 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4823 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4824 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4825 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4826 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4827 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4828 | Blackfin) TARGET_HAS_JIT=0 |
| 4829 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4830 | MBlaze) TARGET_HAS_JIT=0 |
| 4831 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4832 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4833 | ;; |
| 4834 | esac |
| 4835 | fi |
| 4836 | |
| 4837 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4838 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4839 | enableval=$enable_doxygen; |
| 4840 | else |
| 4841 | enableval=default |
| 4842 | fi |
| 4843 | |
| 4844 | case "$enableval" in |
| 4845 | yes) ENABLE_DOXYGEN=1 |
| 4846 | ;; |
| 4847 | no) ENABLE_DOXYGEN=0 |
| 4848 | ;; |
| 4849 | default) ENABLE_DOXYGEN=0 |
| 4850 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4851 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4852 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4853 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4854 | esac |
| 4855 | |
| 4856 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4857 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4858 | enableval=$enable_threads; |
| 4859 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4860 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4861 | fi |
| 4862 | |
| 4863 | case "$enableval" in |
| 4864 | yes) ENABLE_THREADS=1 |
| 4865 | ;; |
| 4866 | no) ENABLE_THREADS=0 |
| 4867 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4868 | default) ENABLE_THREADS=1 |
| 4869 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4870 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4871 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4872 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4873 | esac |
| 4874 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4875 | cat >>confdefs.h <<_ACEOF |
| 4876 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4877 | _ACEOF |
| 4878 | |
| 4879 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4880 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4881 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4882 | enableval=$enable_pic; |
| 4883 | else |
| 4884 | enableval=default |
| 4885 | fi |
| 4886 | |
| 4887 | case "$enableval" in |
| 4888 | yes) ENABLE_PIC=1 |
| 4889 | ;; |
| 4890 | no) ENABLE_PIC=0 |
| 4891 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4892 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4893 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4894 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4895 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4896 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4897 | esac |
| 4898 | |
| 4899 | cat >>confdefs.h <<_ACEOF |
| 4900 | #define ENABLE_PIC $ENABLE_PIC |
| 4901 | _ACEOF |
| 4902 | |
| 4903 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4904 | # Check whether --enable-shared was given. |
| 4905 | if test "${enable_shared+set}" = set; then |
| 4906 | enableval=$enable_shared; |
| 4907 | else |
| 4908 | enableval=default |
| 4909 | fi |
| 4910 | |
| 4911 | case "$enableval" in |
| 4912 | yes) ENABLE_SHARED=1 |
| 4913 | ;; |
| 4914 | no) ENABLE_SHARED=0 |
| 4915 | ;; |
| 4916 | default) ENABLE_SHARED=0 |
| 4917 | ;; |
| 4918 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 4919 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 4920 | { (exit 1); exit 1; }; } ;; |
| 4921 | esac |
| 4922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4923 | TARGETS_TO_BUILD="" |
| 4924 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4925 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4926 | enableval=$enable_targets; |
| 4927 | else |
| 4928 | enableval=all |
| 4929 | fi |
| 4930 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4931 | if test "$enableval" = host-only ; then |
| 4932 | enableval=host |
| 4933 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4934 | case "$enableval" in |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4935 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4936 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4937 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4938 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4939 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4940 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4941 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4942 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4943 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4944 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4945 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4946 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4947 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4948 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4949 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4950 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4951 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4952 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4953 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4954 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4955 | host) case "$llvm_cv_target_arch" in |
| 4956 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4957 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4958 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4959 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4960 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4961 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4962 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4963 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4964 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4965 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4966 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4967 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4968 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4969 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4970 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4971 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4972 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4973 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4974 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4975 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4976 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4977 | esac |
| 4978 | done |
| 4979 | ;; |
| 4980 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4981 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4982 | |
| 4983 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4984 | # Determine whether we are building LLVM support for the native architecture. |
| 4985 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4986 | for a_target in $TARGETS_TO_BUILD; do |
| 4987 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4988 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4989 | |
| 4990 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4991 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4992 | _ACEOF |
| 4993 | |
| 4994 | fi |
| 4995 | done |
| 4996 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 4997 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 4998 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4999 | LLVM_ENUM_TARGETS="" |
| 5000 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5001 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5002 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5003 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5004 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5005 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5006 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5007 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5008 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5009 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5010 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5011 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5012 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5013 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5014 | done |
| 5015 | |
| 5016 | |
| 5017 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5018 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5019 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5020 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5021 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5022 | enableval=$enable_cbe_printf_a; |
| 5023 | else |
| 5024 | enableval=default |
| 5025 | fi |
| 5026 | |
| 5027 | case "$enableval" in |
| 5028 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5029 | ;; |
| 5030 | no) ENABLE_CBE_PRINTF_A=0 |
| 5031 | ;; |
| 5032 | default) ENABLE_CBE_PRINTF_A=1 |
| 5033 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5034 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5035 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5036 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5037 | esac |
| 5038 | |
| 5039 | cat >>confdefs.h <<_ACEOF |
| 5040 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5041 | _ACEOF |
| 5042 | |
| 5043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5044 | |
| 5045 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5046 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5047 | withval=$with_llvmgccdir; |
| 5048 | else |
| 5049 | withval=default |
| 5050 | fi |
| 5051 | |
| 5052 | case "$withval" in |
| 5053 | default) WITH_LLVMGCCDIR=default ;; |
| 5054 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5055 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5056 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5057 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5058 | esac |
| 5059 | |
| 5060 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5061 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5062 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5063 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5064 | WITH_LLVMGCCDIR="" |
| 5065 | fi |
| 5066 | |
| 5067 | |
| 5068 | |
| 5069 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5070 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5071 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5072 | WITH_LLVMGCCDIR="" |
| 5073 | fi |
| 5074 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5075 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5076 | if test -n "$LLVMGCC"; then |
| 5077 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5078 | fi |
| 5079 | |
| 5080 | if test -n "$LLVMGXX"; then |
| 5081 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5082 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5083 | |
| 5084 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5085 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5086 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5087 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5088 | fi |
| 5089 | |
| 5090 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5091 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5092 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5093 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5094 | fi |
| 5095 | |
| 5096 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5097 | # Check whether --with-clang was given. |
| 5098 | if test "${with_clang+set}" = set; then |
| 5099 | withval=$with_clang; |
| 5100 | else |
| 5101 | with_clang=default |
| 5102 | fi |
| 5103 | |
| 5104 | |
| 5105 | |
| 5106 | # Check whether --with-built-clang was given. |
| 5107 | if test "${with_built_clang+set}" = set; then |
| 5108 | withval=$with_built_clang; |
| 5109 | else |
| 5110 | with_built_clang=check |
| 5111 | fi |
| 5112 | |
| 5113 | |
| 5114 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5115 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5116 | WITH_CLANGPATH="" |
| 5117 | WITH_BUILT_CLANG=0 |
| 5118 | if test "$with_clang" != "default"; then |
| 5119 | WITH_CLANGPATH="$with_clang" |
| 5120 | if ! test -x "$WITH_CLANGPATH"; then |
| 5121 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5122 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5123 | { (exit 1); exit 1; }; } |
| 5124 | fi |
| 5125 | elif test "$with_built_clang" = "yes"; then |
| 5126 | WITH_BUILT_CLANG=1 |
| 5127 | elif test "$with_built_clang" = "no"; then |
| 5128 | WITH_BUILT_CLANG=0 |
| 5129 | else |
| 5130 | if test "$with_built_clang" != "check"; then |
| 5131 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5132 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5133 | { (exit 1); exit 1; }; } |
| 5134 | fi |
| 5135 | |
| 5136 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5137 | WITH_BUILT_CLANG=1 |
| 5138 | fi |
| 5139 | fi |
| 5140 | |
| 5141 | if ! test -z "$WITH_CLANGPATH"; then |
| 5142 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5143 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5144 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5145 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5146 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5147 | echo "${ECHO_T}built" >&6; } |
| 5148 | else |
| 5149 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5150 | echo "${ECHO_T}none" >&6; } |
| 5151 | fi |
| 5152 | CLANGPATH=$WITH_CLANGPATH |
| 5153 | |
| 5154 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5155 | |
| 5156 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5157 | |
| 5158 | |
| 5159 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5160 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5161 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5162 | withval=$with_optimize_option; |
| 5163 | else |
| 5164 | withval=default |
| 5165 | fi |
| 5166 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5167 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5168 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5169 | case "$withval" in |
| 5170 | default) |
| 5171 | case "$llvm_cv_os_type" in |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5172 | MingW) optimize_option=-O2 ;; |
| 5173 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5174 | esac ;; |
| 5175 | *) optimize_option="$withval" ;; |
| 5176 | esac |
| 5177 | OPTIMIZE_OPTION=$optimize_option |
| 5178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5179 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5180 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5181 | |
| 5182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5183 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5184 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5185 | withval=$with_extra_options; |
| 5186 | else |
| 5187 | withval=default |
| 5188 | fi |
| 5189 | |
| 5190 | case "$withval" in |
| 5191 | default) EXTRA_OPTIONS= ;; |
| 5192 | *) EXTRA_OPTIONS=$withval ;; |
| 5193 | esac |
| 5194 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5195 | |
| 5196 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5197 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5198 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5199 | enableval=$enable_bindings; |
| 5200 | else |
| 5201 | enableval=default |
| 5202 | fi |
| 5203 | |
| 5204 | BINDINGS_TO_BUILD="" |
| 5205 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5206 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5207 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5208 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5209 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5210 | case "$a_binding" in |
| 5211 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5212 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5213 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5214 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5215 | esac |
| 5216 | done |
| 5217 | ;; |
| 5218 | esac |
| 5219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5220 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5221 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5222 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5223 | withval=$with_ocaml_libdir; |
| 5224 | else |
| 5225 | withval=auto |
| 5226 | fi |
| 5227 | |
| 5228 | case "$withval" in |
| 5229 | auto) with_ocaml_libdir="$withval" ;; |
| 5230 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5231 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5232 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5233 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5234 | esac |
| 5235 | |
| 5236 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5237 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5238 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5239 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5240 | else |
| 5241 | withval="" |
| 5242 | fi |
| 5243 | |
| 5244 | |
| 5245 | cat >>confdefs.h <<_ACEOF |
| 5246 | #define C_INCLUDE_DIRS "$withval" |
| 5247 | _ACEOF |
| 5248 | |
| 5249 | |
| 5250 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5251 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5252 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5253 | withval=$with_cxx_include_root; |
| 5254 | else |
| 5255 | withval="" |
| 5256 | fi |
| 5257 | |
| 5258 | |
| 5259 | cat >>confdefs.h <<_ACEOF |
| 5260 | #define CXX_INCLUDE_ROOT "$withval" |
| 5261 | _ACEOF |
| 5262 | |
| 5263 | |
| 5264 | |
| 5265 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5266 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5267 | withval=$with_cxx_include_arch; |
| 5268 | else |
| 5269 | withval="" |
| 5270 | fi |
| 5271 | |
| 5272 | |
| 5273 | cat >>confdefs.h <<_ACEOF |
| 5274 | #define CXX_INCLUDE_ARCH "$withval" |
| 5275 | _ACEOF |
| 5276 | |
| 5277 | |
| 5278 | |
| 5279 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5280 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5281 | withval=$with_cxx_include_32bit_dir; |
| 5282 | else |
| 5283 | withval="" |
| 5284 | fi |
| 5285 | |
| 5286 | |
| 5287 | cat >>confdefs.h <<_ACEOF |
| 5288 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5289 | _ACEOF |
| 5290 | |
| 5291 | |
| 5292 | |
| 5293 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5294 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5295 | withval=$with_cxx_include_64bit_dir; |
| 5296 | else |
| 5297 | withval="" |
| 5298 | fi |
| 5299 | |
| 5300 | |
| 5301 | cat >>confdefs.h <<_ACEOF |
| 5302 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5303 | _ACEOF |
| 5304 | |
| 5305 | |
| 5306 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5307 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5308 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5309 | withval=$with_binutils_include; |
| 5310 | else |
| 5311 | withval=default |
| 5312 | fi |
| 5313 | |
| 5314 | case "$withval" in |
| 5315 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5316 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5317 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5318 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5319 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5320 | esac |
| 5321 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5322 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5323 | |
| 5324 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5325 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5326 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5327 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5328 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5329 | fi |
| 5330 | fi |
| 5331 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5332 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5333 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5334 | enableval=$enable_libffi; case "$enableval" in |
| 5335 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5336 | no) llvm_cv_enable_libffi="no" ;; |
| 5337 | *) { { 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] | 5338 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5339 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5340 | esac |
| 5341 | else |
| 5342 | llvm_cv_enable_libffi=no |
| 5343 | fi |
| 5344 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5345 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5346 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5347 | llvmc_dynamic="yes" |
| 5348 | else |
| 5349 | llvmc_dynamic="no" |
| 5350 | fi |
| 5351 | |
| 5352 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5353 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5354 | enableval=$enable_llvmc_dynamic; |
| 5355 | else |
| 5356 | enableval=$llvmc_dynamic |
| 5357 | fi |
| 5358 | |
| 5359 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5360 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5361 | |
| 5362 | else |
| 5363 | ENABLE_LLVMC_DYNAMIC= |
| 5364 | |
| 5365 | fi |
| 5366 | |
| 5367 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5368 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5369 | enableval=$enable_llvmc_dynamic_plugins; |
| 5370 | else |
| 5371 | enableval=yes |
| 5372 | fi |
| 5373 | |
| 5374 | if test ${enableval} = "yes" ; then |
| 5375 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5376 | |
| 5377 | else |
| 5378 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5379 | |
| 5380 | fi |
| 5381 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5383 | ac_ext=c |
| 5384 | ac_cpp='$CPP $CPPFLAGS' |
| 5385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5388 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5389 | 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] | 5390 | # On Suns, sometimes $CPP names a directory. |
| 5391 | if test -n "$CPP" && test -d "$CPP"; then |
| 5392 | CPP= |
| 5393 | fi |
| 5394 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5395 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5397 | else |
| 5398 | # Double quotes because CPP needs to be expanded |
| 5399 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5400 | do |
| 5401 | ac_preproc_ok=false |
| 5402 | for ac_c_preproc_warn_flag in '' yes |
| 5403 | do |
| 5404 | # Use a header file that comes with gcc, so configuring glibc |
| 5405 | # with a fresh cross-compiler works. |
| 5406 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5407 | # <limits.h> exists even on freestanding compilers. |
| 5408 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5409 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5410 | cat >conftest.$ac_ext <<_ACEOF |
| 5411 | /* confdefs.h. */ |
| 5412 | _ACEOF |
| 5413 | cat confdefs.h >>conftest.$ac_ext |
| 5414 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5415 | /* end confdefs.h. */ |
| 5416 | #ifdef __STDC__ |
| 5417 | # include <limits.h> |
| 5418 | #else |
| 5419 | # include <assert.h> |
| 5420 | #endif |
| 5421 | Syntax error |
| 5422 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5423 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5424 | case "(($ac_try" in |
| 5425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5426 | *) ac_try_echo=$ac_try;; |
| 5427 | esac |
| 5428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5429 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5430 | ac_status=$? |
| 5431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5432 | rm -f conftest.er1 |
| 5433 | cat conftest.err >&5 |
| 5434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5435 | (exit $ac_status); } >/dev/null; then |
| 5436 | if test -s conftest.err; then |
| 5437 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5438 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5439 | else |
| 5440 | ac_cpp_err= |
| 5441 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5442 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5443 | ac_cpp_err=yes |
| 5444 | fi |
| 5445 | if test -z "$ac_cpp_err"; then |
| 5446 | : |
| 5447 | else |
| 5448 | echo "$as_me: failed program was:" >&5 |
| 5449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5451 | # Broken: fails on valid input. |
| 5452 | continue |
| 5453 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5455 | rm -f conftest.err conftest.$ac_ext |
| 5456 | |
| 5457 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5458 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5459 | cat >conftest.$ac_ext <<_ACEOF |
| 5460 | /* confdefs.h. */ |
| 5461 | _ACEOF |
| 5462 | cat confdefs.h >>conftest.$ac_ext |
| 5463 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5464 | /* end confdefs.h. */ |
| 5465 | #include <ac_nonexistent.h> |
| 5466 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5467 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5468 | case "(($ac_try" in |
| 5469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5470 | *) ac_try_echo=$ac_try;; |
| 5471 | esac |
| 5472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5473 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5474 | ac_status=$? |
| 5475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5476 | rm -f conftest.er1 |
| 5477 | cat conftest.err >&5 |
| 5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5479 | (exit $ac_status); } >/dev/null; then |
| 5480 | if test -s conftest.err; then |
| 5481 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5483 | else |
| 5484 | ac_cpp_err= |
| 5485 | fi |
| 5486 | else |
| 5487 | ac_cpp_err=yes |
| 5488 | fi |
| 5489 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5490 | # Broken: success on invalid input. |
| 5491 | continue |
| 5492 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5493 | echo "$as_me: failed program was:" >&5 |
| 5494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5496 | # Passes both tests. |
| 5497 | ac_preproc_ok=: |
| 5498 | break |
| 5499 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5500 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5501 | rm -f conftest.err conftest.$ac_ext |
| 5502 | |
| 5503 | done |
| 5504 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5505 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5506 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5507 | break |
| 5508 | fi |
| 5509 | |
| 5510 | done |
| 5511 | ac_cv_prog_CPP=$CPP |
| 5512 | |
| 5513 | fi |
| 5514 | CPP=$ac_cv_prog_CPP |
| 5515 | else |
| 5516 | ac_cv_prog_CPP=$CPP |
| 5517 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5518 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5519 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5520 | ac_preproc_ok=false |
| 5521 | for ac_c_preproc_warn_flag in '' yes |
| 5522 | do |
| 5523 | # Use a header file that comes with gcc, so configuring glibc |
| 5524 | # with a fresh cross-compiler works. |
| 5525 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5526 | # <limits.h> exists even on freestanding compilers. |
| 5527 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5528 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5529 | cat >conftest.$ac_ext <<_ACEOF |
| 5530 | /* confdefs.h. */ |
| 5531 | _ACEOF |
| 5532 | cat confdefs.h >>conftest.$ac_ext |
| 5533 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5534 | /* end confdefs.h. */ |
| 5535 | #ifdef __STDC__ |
| 5536 | # include <limits.h> |
| 5537 | #else |
| 5538 | # include <assert.h> |
| 5539 | #endif |
| 5540 | Syntax error |
| 5541 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5542 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5543 | case "(($ac_try" in |
| 5544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5545 | *) ac_try_echo=$ac_try;; |
| 5546 | esac |
| 5547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5548 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5549 | ac_status=$? |
| 5550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5551 | rm -f conftest.er1 |
| 5552 | cat conftest.err >&5 |
| 5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5554 | (exit $ac_status); } >/dev/null; then |
| 5555 | if test -s conftest.err; then |
| 5556 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5557 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5558 | else |
| 5559 | ac_cpp_err= |
| 5560 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5561 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5562 | ac_cpp_err=yes |
| 5563 | fi |
| 5564 | if test -z "$ac_cpp_err"; then |
| 5565 | : |
| 5566 | else |
| 5567 | echo "$as_me: failed program was:" >&5 |
| 5568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5570 | # Broken: fails on valid input. |
| 5571 | continue |
| 5572 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5574 | rm -f conftest.err conftest.$ac_ext |
| 5575 | |
| 5576 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5577 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5578 | cat >conftest.$ac_ext <<_ACEOF |
| 5579 | /* confdefs.h. */ |
| 5580 | _ACEOF |
| 5581 | cat confdefs.h >>conftest.$ac_ext |
| 5582 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5583 | /* end confdefs.h. */ |
| 5584 | #include <ac_nonexistent.h> |
| 5585 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5586 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5587 | case "(($ac_try" in |
| 5588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5589 | *) ac_try_echo=$ac_try;; |
| 5590 | esac |
| 5591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5592 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5593 | ac_status=$? |
| 5594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5595 | rm -f conftest.er1 |
| 5596 | cat conftest.err >&5 |
| 5597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5598 | (exit $ac_status); } >/dev/null; then |
| 5599 | if test -s conftest.err; then |
| 5600 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5601 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5602 | else |
| 5603 | ac_cpp_err= |
| 5604 | fi |
| 5605 | else |
| 5606 | ac_cpp_err=yes |
| 5607 | fi |
| 5608 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5609 | # Broken: success on invalid input. |
| 5610 | continue |
| 5611 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5612 | echo "$as_me: failed program was:" >&5 |
| 5613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5615 | # Passes both tests. |
| 5616 | ac_preproc_ok=: |
| 5617 | break |
| 5618 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5620 | rm -f conftest.err conftest.$ac_ext |
| 5621 | |
| 5622 | done |
| 5623 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5624 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5625 | if $ac_preproc_ok; then |
| 5626 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5627 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5628 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5629 | See \`config.log' for more details." >&5 |
| 5630 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5631 | See \`config.log' for more details." >&2;} |
| 5632 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5633 | fi |
| 5634 | |
| 5635 | ac_ext=c |
| 5636 | ac_cpp='$CPP $CPPFLAGS' |
| 5637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5640 | |
| 5641 | ac_ext=c |
| 5642 | ac_cpp='$CPP $CPPFLAGS' |
| 5643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5646 | if test -n "$ac_tool_prefix"; then |
| 5647 | for ac_prog in gcc |
| 5648 | do |
| 5649 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5650 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5651 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5653 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5655 | else |
| 5656 | if test -n "$CC"; then |
| 5657 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5658 | else |
| 5659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5660 | for as_dir in $PATH |
| 5661 | do |
| 5662 | IFS=$as_save_IFS |
| 5663 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5665 | 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] | 5666 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5667 | 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] | 5668 | break 2 |
| 5669 | fi |
| 5670 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5671 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5672 | IFS=$as_save_IFS |
| 5673 | |
| 5674 | fi |
| 5675 | fi |
| 5676 | CC=$ac_cv_prog_CC |
| 5677 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5678 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5679 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5680 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5681 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5682 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5683 | fi |
| 5684 | |
| 5685 | |
| 5686 | test -n "$CC" && break |
| 5687 | done |
| 5688 | fi |
| 5689 | if test -z "$CC"; then |
| 5690 | ac_ct_CC=$CC |
| 5691 | for ac_prog in gcc |
| 5692 | do |
| 5693 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5694 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5695 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5697 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5699 | else |
| 5700 | if test -n "$ac_ct_CC"; then |
| 5701 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5702 | else |
| 5703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5704 | for as_dir in $PATH |
| 5705 | do |
| 5706 | IFS=$as_save_IFS |
| 5707 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5708 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5709 | 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] | 5710 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5711 | 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] | 5712 | break 2 |
| 5713 | fi |
| 5714 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5715 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5716 | IFS=$as_save_IFS |
| 5717 | |
| 5718 | fi |
| 5719 | fi |
| 5720 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5721 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5722 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5723 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5724 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5725 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5726 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5727 | fi |
| 5728 | |
| 5729 | |
| 5730 | test -n "$ac_ct_CC" && break |
| 5731 | done |
| 5732 | |
| 5733 | if test "x$ac_ct_CC" = x; then |
| 5734 | CC="" |
| 5735 | else |
| 5736 | case $cross_compiling:$ac_tool_warned in |
| 5737 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5738 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5739 | whose name does not start with the host triplet. If you think this |
| 5740 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5741 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5742 | whose name does not start with the host triplet. If you think this |
| 5743 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5744 | ac_tool_warned=yes ;; |
| 5745 | esac |
| 5746 | CC=$ac_ct_CC |
| 5747 | fi |
| 5748 | fi |
| 5749 | |
| 5750 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5751 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5752 | See \`config.log' for more details." >&5 |
| 5753 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5754 | See \`config.log' for more details." >&2;} |
| 5755 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5756 | |
| 5757 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5758 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5759 | ac_compiler=`set X $ac_compile; echo $2` |
| 5760 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5761 | case "(($ac_try" in |
| 5762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5763 | *) ac_try_echo=$ac_try;; |
| 5764 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5766 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5767 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5769 | (exit $ac_status); } |
| 5770 | { (ac_try="$ac_compiler -v >&5" |
| 5771 | case "(($ac_try" in |
| 5772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5773 | *) ac_try_echo=$ac_try;; |
| 5774 | esac |
| 5775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5776 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5777 | ac_status=$? |
| 5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5779 | (exit $ac_status); } |
| 5780 | { (ac_try="$ac_compiler -V >&5" |
| 5781 | case "(($ac_try" in |
| 5782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5783 | *) ac_try_echo=$ac_try;; |
| 5784 | esac |
| 5785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5786 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5787 | ac_status=$? |
| 5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5789 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5790 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5791 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5792 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5793 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5795 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5796 | cat >conftest.$ac_ext <<_ACEOF |
| 5797 | /* confdefs.h. */ |
| 5798 | _ACEOF |
| 5799 | cat confdefs.h >>conftest.$ac_ext |
| 5800 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5801 | /* end confdefs.h. */ |
| 5802 | |
| 5803 | int |
| 5804 | main () |
| 5805 | { |
| 5806 | #ifndef __GNUC__ |
| 5807 | choke me |
| 5808 | #endif |
| 5809 | |
| 5810 | ; |
| 5811 | return 0; |
| 5812 | } |
| 5813 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5814 | rm -f conftest.$ac_objext |
| 5815 | if { (ac_try="$ac_compile" |
| 5816 | case "(($ac_try" in |
| 5817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5818 | *) ac_try_echo=$ac_try;; |
| 5819 | esac |
| 5820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5821 | (eval "$ac_compile") 2>conftest.er1 |
| 5822 | ac_status=$? |
| 5823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5824 | rm -f conftest.er1 |
| 5825 | cat conftest.err >&5 |
| 5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5827 | (exit $ac_status); } && |
| 5828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5829 | { (case "(($ac_try" in |
| 5830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5831 | *) ac_try_echo=$ac_try;; |
| 5832 | esac |
| 5833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5834 | (eval "$ac_try") 2>&5 |
| 5835 | ac_status=$? |
| 5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5837 | (exit $ac_status); }; } && |
| 5838 | { ac_try='test -s conftest.$ac_objext' |
| 5839 | { (case "(($ac_try" in |
| 5840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5841 | *) ac_try_echo=$ac_try;; |
| 5842 | esac |
| 5843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5844 | (eval "$ac_try") 2>&5 |
| 5845 | ac_status=$? |
| 5846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5847 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5848 | ac_compiler_gnu=yes |
| 5849 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5850 | echo "$as_me: failed program was:" >&5 |
| 5851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5852 | |
| 5853 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5854 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5857 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5858 | |
| 5859 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5860 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5861 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5862 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5863 | ac_test_CFLAGS=${CFLAGS+set} |
| 5864 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5865 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5866 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5867 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5869 | else |
| 5870 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5871 | ac_c_werror_flag=yes |
| 5872 | ac_cv_prog_cc_g=no |
| 5873 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5874 | cat >conftest.$ac_ext <<_ACEOF |
| 5875 | /* confdefs.h. */ |
| 5876 | _ACEOF |
| 5877 | cat confdefs.h >>conftest.$ac_ext |
| 5878 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5879 | /* end confdefs.h. */ |
| 5880 | |
| 5881 | int |
| 5882 | main () |
| 5883 | { |
| 5884 | |
| 5885 | ; |
| 5886 | return 0; |
| 5887 | } |
| 5888 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5889 | rm -f conftest.$ac_objext |
| 5890 | if { (ac_try="$ac_compile" |
| 5891 | case "(($ac_try" in |
| 5892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5893 | *) ac_try_echo=$ac_try;; |
| 5894 | esac |
| 5895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5896 | (eval "$ac_compile") 2>conftest.er1 |
| 5897 | ac_status=$? |
| 5898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5899 | rm -f conftest.er1 |
| 5900 | cat conftest.err >&5 |
| 5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5902 | (exit $ac_status); } && |
| 5903 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5904 | { (case "(($ac_try" in |
| 5905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5906 | *) ac_try_echo=$ac_try;; |
| 5907 | esac |
| 5908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5909 | (eval "$ac_try") 2>&5 |
| 5910 | ac_status=$? |
| 5911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5912 | (exit $ac_status); }; } && |
| 5913 | { ac_try='test -s conftest.$ac_objext' |
| 5914 | { (case "(($ac_try" in |
| 5915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5916 | *) ac_try_echo=$ac_try;; |
| 5917 | esac |
| 5918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5919 | (eval "$ac_try") 2>&5 |
| 5920 | ac_status=$? |
| 5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5922 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5923 | ac_cv_prog_cc_g=yes |
| 5924 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5925 | echo "$as_me: failed program was:" >&5 |
| 5926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5927 | |
| 5928 | CFLAGS="" |
| 5929 | cat >conftest.$ac_ext <<_ACEOF |
| 5930 | /* confdefs.h. */ |
| 5931 | _ACEOF |
| 5932 | cat confdefs.h >>conftest.$ac_ext |
| 5933 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5934 | /* end confdefs.h. */ |
| 5935 | |
| 5936 | int |
| 5937 | main () |
| 5938 | { |
| 5939 | |
| 5940 | ; |
| 5941 | return 0; |
| 5942 | } |
| 5943 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5944 | rm -f conftest.$ac_objext |
| 5945 | if { (ac_try="$ac_compile" |
| 5946 | case "(($ac_try" in |
| 5947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5948 | *) ac_try_echo=$ac_try;; |
| 5949 | esac |
| 5950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5951 | (eval "$ac_compile") 2>conftest.er1 |
| 5952 | ac_status=$? |
| 5953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5954 | rm -f conftest.er1 |
| 5955 | cat conftest.err >&5 |
| 5956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5957 | (exit $ac_status); } && |
| 5958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5959 | { (case "(($ac_try" in |
| 5960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5961 | *) ac_try_echo=$ac_try;; |
| 5962 | esac |
| 5963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5964 | (eval "$ac_try") 2>&5 |
| 5965 | ac_status=$? |
| 5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5967 | (exit $ac_status); }; } && |
| 5968 | { ac_try='test -s conftest.$ac_objext' |
| 5969 | { (case "(($ac_try" in |
| 5970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5971 | *) ac_try_echo=$ac_try;; |
| 5972 | esac |
| 5973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5974 | (eval "$ac_try") 2>&5 |
| 5975 | ac_status=$? |
| 5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5977 | (exit $ac_status); }; }; then |
| 5978 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5979 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5980 | echo "$as_me: failed program was:" >&5 |
| 5981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5982 | |
| 5983 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5984 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5985 | cat >conftest.$ac_ext <<_ACEOF |
| 5986 | /* confdefs.h. */ |
| 5987 | _ACEOF |
| 5988 | cat confdefs.h >>conftest.$ac_ext |
| 5989 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5990 | /* end confdefs.h. */ |
| 5991 | |
| 5992 | int |
| 5993 | main () |
| 5994 | { |
| 5995 | |
| 5996 | ; |
| 5997 | return 0; |
| 5998 | } |
| 5999 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6000 | rm -f conftest.$ac_objext |
| 6001 | if { (ac_try="$ac_compile" |
| 6002 | case "(($ac_try" in |
| 6003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6004 | *) ac_try_echo=$ac_try;; |
| 6005 | esac |
| 6006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6007 | (eval "$ac_compile") 2>conftest.er1 |
| 6008 | ac_status=$? |
| 6009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6010 | rm -f conftest.er1 |
| 6011 | cat conftest.err >&5 |
| 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6013 | (exit $ac_status); } && |
| 6014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6015 | { (case "(($ac_try" in |
| 6016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6017 | *) ac_try_echo=$ac_try;; |
| 6018 | esac |
| 6019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6020 | (eval "$ac_try") 2>&5 |
| 6021 | ac_status=$? |
| 6022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6023 | (exit $ac_status); }; } && |
| 6024 | { ac_try='test -s conftest.$ac_objext' |
| 6025 | { (case "(($ac_try" in |
| 6026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6027 | *) ac_try_echo=$ac_try;; |
| 6028 | esac |
| 6029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6030 | (eval "$ac_try") 2>&5 |
| 6031 | ac_status=$? |
| 6032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6033 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6034 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6035 | else |
| 6036 | echo "$as_me: failed program was:" >&5 |
| 6037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6038 | |
| 6039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6040 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6041 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6043 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6046 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6049 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6050 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6051 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6052 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6053 | if test "$ac_test_CFLAGS" = set; then |
| 6054 | CFLAGS=$ac_save_CFLAGS |
| 6055 | elif test $ac_cv_prog_cc_g = yes; then |
| 6056 | if test "$GCC" = yes; then |
| 6057 | CFLAGS="-g -O2" |
| 6058 | else |
| 6059 | CFLAGS="-g" |
| 6060 | fi |
| 6061 | else |
| 6062 | if test "$GCC" = yes; then |
| 6063 | CFLAGS="-O2" |
| 6064 | else |
| 6065 | CFLAGS= |
| 6066 | fi |
| 6067 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6068 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6069 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6070 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6072 | else |
| 6073 | ac_cv_prog_cc_c89=no |
| 6074 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6075 | cat >conftest.$ac_ext <<_ACEOF |
| 6076 | /* confdefs.h. */ |
| 6077 | _ACEOF |
| 6078 | cat confdefs.h >>conftest.$ac_ext |
| 6079 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6080 | /* end confdefs.h. */ |
| 6081 | #include <stdarg.h> |
| 6082 | #include <stdio.h> |
| 6083 | #include <sys/types.h> |
| 6084 | #include <sys/stat.h> |
| 6085 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6086 | struct buf { int x; }; |
| 6087 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6088 | static char *e (p, i) |
| 6089 | char **p; |
| 6090 | int i; |
| 6091 | { |
| 6092 | return p[i]; |
| 6093 | } |
| 6094 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6095 | { |
| 6096 | char *s; |
| 6097 | va_list v; |
| 6098 | va_start (v,p); |
| 6099 | s = g (p, va_arg (v,int)); |
| 6100 | va_end (v); |
| 6101 | return s; |
| 6102 | } |
| 6103 | |
| 6104 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6105 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6106 | These don't provoke an error unfortunately, instead are silently treated |
| 6107 | as 'x'. The following induces an error, until -std is added to get |
| 6108 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6109 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6110 | that's true only with -std. */ |
| 6111 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6112 | |
| 6113 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6114 | inside strings and character constants. */ |
| 6115 | #define FOO(x) 'x' |
| 6116 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6117 | |
| 6118 | int test (int i, double x); |
| 6119 | struct s1 {int (*f) (int a);}; |
| 6120 | struct s2 {int (*f) (double a);}; |
| 6121 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6122 | int argc; |
| 6123 | char **argv; |
| 6124 | int |
| 6125 | main () |
| 6126 | { |
| 6127 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6128 | ; |
| 6129 | return 0; |
| 6130 | } |
| 6131 | _ACEOF |
| 6132 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6133 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6134 | do |
| 6135 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6136 | rm -f conftest.$ac_objext |
| 6137 | if { (ac_try="$ac_compile" |
| 6138 | case "(($ac_try" in |
| 6139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6140 | *) ac_try_echo=$ac_try;; |
| 6141 | esac |
| 6142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6143 | (eval "$ac_compile") 2>conftest.er1 |
| 6144 | ac_status=$? |
| 6145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6146 | rm -f conftest.er1 |
| 6147 | cat conftest.err >&5 |
| 6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6149 | (exit $ac_status); } && |
| 6150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6151 | { (case "(($ac_try" in |
| 6152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6153 | *) ac_try_echo=$ac_try;; |
| 6154 | esac |
| 6155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6156 | (eval "$ac_try") 2>&5 |
| 6157 | ac_status=$? |
| 6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6159 | (exit $ac_status); }; } && |
| 6160 | { ac_try='test -s conftest.$ac_objext' |
| 6161 | { (case "(($ac_try" in |
| 6162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6163 | *) ac_try_echo=$ac_try;; |
| 6164 | esac |
| 6165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6166 | (eval "$ac_try") 2>&5 |
| 6167 | ac_status=$? |
| 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6169 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6170 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6171 | else |
| 6172 | echo "$as_me: failed program was:" >&5 |
| 6173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6174 | |
| 6175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6176 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6178 | rm -f core conftest.err conftest.$ac_objext |
| 6179 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6180 | done |
| 6181 | rm -f conftest.$ac_ext |
| 6182 | CC=$ac_save_CC |
| 6183 | |
| 6184 | fi |
| 6185 | # AC_CACHE_VAL |
| 6186 | case "x$ac_cv_prog_cc_c89" in |
| 6187 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6188 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6189 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6190 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6191 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6192 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6193 | *) |
| 6194 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6195 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6196 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6197 | esac |
| 6198 | |
| 6199 | |
| 6200 | ac_ext=c |
| 6201 | ac_cpp='$CPP $CPPFLAGS' |
| 6202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6205 | |
| 6206 | ac_ext=cpp |
| 6207 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6211 | if test -z "$CXX"; then |
| 6212 | if test -n "$CCC"; then |
| 6213 | CXX=$CCC |
| 6214 | else |
| 6215 | if test -n "$ac_tool_prefix"; then |
| 6216 | for ac_prog in g++ |
| 6217 | do |
| 6218 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6219 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6222 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6224 | else |
| 6225 | if test -n "$CXX"; then |
| 6226 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6227 | else |
| 6228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6229 | for as_dir in $PATH |
| 6230 | do |
| 6231 | IFS=$as_save_IFS |
| 6232 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6233 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6234 | 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] | 6235 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6236 | 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] | 6237 | break 2 |
| 6238 | fi |
| 6239 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6240 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6241 | IFS=$as_save_IFS |
| 6242 | |
| 6243 | fi |
| 6244 | fi |
| 6245 | CXX=$ac_cv_prog_CXX |
| 6246 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6247 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6248 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6249 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6250 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6251 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6252 | fi |
| 6253 | |
| 6254 | |
| 6255 | test -n "$CXX" && break |
| 6256 | done |
| 6257 | fi |
| 6258 | if test -z "$CXX"; then |
| 6259 | ac_ct_CXX=$CXX |
| 6260 | for ac_prog in g++ |
| 6261 | do |
| 6262 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6263 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6264 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6266 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6268 | else |
| 6269 | if test -n "$ac_ct_CXX"; then |
| 6270 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6271 | else |
| 6272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6273 | for as_dir in $PATH |
| 6274 | do |
| 6275 | IFS=$as_save_IFS |
| 6276 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6278 | 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] | 6279 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6280 | 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] | 6281 | break 2 |
| 6282 | fi |
| 6283 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6284 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6285 | IFS=$as_save_IFS |
| 6286 | |
| 6287 | fi |
| 6288 | fi |
| 6289 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6290 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6291 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6292 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6293 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6294 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6295 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6296 | fi |
| 6297 | |
| 6298 | |
| 6299 | test -n "$ac_ct_CXX" && break |
| 6300 | done |
| 6301 | |
| 6302 | if test "x$ac_ct_CXX" = x; then |
| 6303 | CXX="g++" |
| 6304 | else |
| 6305 | case $cross_compiling:$ac_tool_warned in |
| 6306 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6307 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6308 | whose name does not start with the host triplet. If you think this |
| 6309 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6310 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6311 | whose name does not start with the host triplet. If you think this |
| 6312 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6313 | ac_tool_warned=yes ;; |
| 6314 | esac |
| 6315 | CXX=$ac_ct_CXX |
| 6316 | fi |
| 6317 | fi |
| 6318 | |
| 6319 | fi |
| 6320 | fi |
| 6321 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6322 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6323 | ac_compiler=`set X $ac_compile; echo $2` |
| 6324 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6325 | case "(($ac_try" in |
| 6326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6327 | *) ac_try_echo=$ac_try;; |
| 6328 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6330 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6331 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6333 | (exit $ac_status); } |
| 6334 | { (ac_try="$ac_compiler -v >&5" |
| 6335 | case "(($ac_try" in |
| 6336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6337 | *) ac_try_echo=$ac_try;; |
| 6338 | esac |
| 6339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6340 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6341 | ac_status=$? |
| 6342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6343 | (exit $ac_status); } |
| 6344 | { (ac_try="$ac_compiler -V >&5" |
| 6345 | case "(($ac_try" in |
| 6346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6347 | *) ac_try_echo=$ac_try;; |
| 6348 | esac |
| 6349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6350 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6351 | ac_status=$? |
| 6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6353 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6354 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6355 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6356 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6357 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6359 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6360 | cat >conftest.$ac_ext <<_ACEOF |
| 6361 | /* confdefs.h. */ |
| 6362 | _ACEOF |
| 6363 | cat confdefs.h >>conftest.$ac_ext |
| 6364 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6365 | /* end confdefs.h. */ |
| 6366 | |
| 6367 | int |
| 6368 | main () |
| 6369 | { |
| 6370 | #ifndef __GNUC__ |
| 6371 | choke me |
| 6372 | #endif |
| 6373 | |
| 6374 | ; |
| 6375 | return 0; |
| 6376 | } |
| 6377 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6378 | rm -f conftest.$ac_objext |
| 6379 | if { (ac_try="$ac_compile" |
| 6380 | case "(($ac_try" in |
| 6381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6382 | *) ac_try_echo=$ac_try;; |
| 6383 | esac |
| 6384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6385 | (eval "$ac_compile") 2>conftest.er1 |
| 6386 | ac_status=$? |
| 6387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6388 | rm -f conftest.er1 |
| 6389 | cat conftest.err >&5 |
| 6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6391 | (exit $ac_status); } && |
| 6392 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6393 | { (case "(($ac_try" in |
| 6394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6395 | *) ac_try_echo=$ac_try;; |
| 6396 | esac |
| 6397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6398 | (eval "$ac_try") 2>&5 |
| 6399 | ac_status=$? |
| 6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6401 | (exit $ac_status); }; } && |
| 6402 | { ac_try='test -s conftest.$ac_objext' |
| 6403 | { (case "(($ac_try" in |
| 6404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6405 | *) ac_try_echo=$ac_try;; |
| 6406 | esac |
| 6407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6408 | (eval "$ac_try") 2>&5 |
| 6409 | ac_status=$? |
| 6410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6411 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6412 | ac_compiler_gnu=yes |
| 6413 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6414 | echo "$as_me: failed program was:" >&5 |
| 6415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6416 | |
| 6417 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6418 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6421 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6422 | |
| 6423 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6424 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6425 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6426 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6427 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6428 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6429 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6430 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6431 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6433 | else |
| 6434 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6435 | ac_cxx_werror_flag=yes |
| 6436 | ac_cv_prog_cxx_g=no |
| 6437 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6438 | cat >conftest.$ac_ext <<_ACEOF |
| 6439 | /* confdefs.h. */ |
| 6440 | _ACEOF |
| 6441 | cat confdefs.h >>conftest.$ac_ext |
| 6442 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6443 | /* end confdefs.h. */ |
| 6444 | |
| 6445 | int |
| 6446 | main () |
| 6447 | { |
| 6448 | |
| 6449 | ; |
| 6450 | return 0; |
| 6451 | } |
| 6452 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6453 | rm -f conftest.$ac_objext |
| 6454 | if { (ac_try="$ac_compile" |
| 6455 | case "(($ac_try" in |
| 6456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6457 | *) ac_try_echo=$ac_try;; |
| 6458 | esac |
| 6459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6460 | (eval "$ac_compile") 2>conftest.er1 |
| 6461 | ac_status=$? |
| 6462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6463 | rm -f conftest.er1 |
| 6464 | cat conftest.err >&5 |
| 6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6466 | (exit $ac_status); } && |
| 6467 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6468 | { (case "(($ac_try" in |
| 6469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6470 | *) ac_try_echo=$ac_try;; |
| 6471 | esac |
| 6472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6473 | (eval "$ac_try") 2>&5 |
| 6474 | ac_status=$? |
| 6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6476 | (exit $ac_status); }; } && |
| 6477 | { ac_try='test -s conftest.$ac_objext' |
| 6478 | { (case "(($ac_try" in |
| 6479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6480 | *) ac_try_echo=$ac_try;; |
| 6481 | esac |
| 6482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6483 | (eval "$ac_try") 2>&5 |
| 6484 | ac_status=$? |
| 6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6486 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6487 | ac_cv_prog_cxx_g=yes |
| 6488 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6489 | echo "$as_me: failed program was:" >&5 |
| 6490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6491 | |
| 6492 | CXXFLAGS="" |
| 6493 | cat >conftest.$ac_ext <<_ACEOF |
| 6494 | /* confdefs.h. */ |
| 6495 | _ACEOF |
| 6496 | cat confdefs.h >>conftest.$ac_ext |
| 6497 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6498 | /* end confdefs.h. */ |
| 6499 | |
| 6500 | int |
| 6501 | main () |
| 6502 | { |
| 6503 | |
| 6504 | ; |
| 6505 | return 0; |
| 6506 | } |
| 6507 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6508 | rm -f conftest.$ac_objext |
| 6509 | if { (ac_try="$ac_compile" |
| 6510 | case "(($ac_try" in |
| 6511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6512 | *) ac_try_echo=$ac_try;; |
| 6513 | esac |
| 6514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6515 | (eval "$ac_compile") 2>conftest.er1 |
| 6516 | ac_status=$? |
| 6517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6518 | rm -f conftest.er1 |
| 6519 | cat conftest.err >&5 |
| 6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6521 | (exit $ac_status); } && |
| 6522 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6523 | { (case "(($ac_try" in |
| 6524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6525 | *) ac_try_echo=$ac_try;; |
| 6526 | esac |
| 6527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6528 | (eval "$ac_try") 2>&5 |
| 6529 | ac_status=$? |
| 6530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6531 | (exit $ac_status); }; } && |
| 6532 | { ac_try='test -s conftest.$ac_objext' |
| 6533 | { (case "(($ac_try" in |
| 6534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6535 | *) ac_try_echo=$ac_try;; |
| 6536 | esac |
| 6537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6538 | (eval "$ac_try") 2>&5 |
| 6539 | ac_status=$? |
| 6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6541 | (exit $ac_status); }; }; then |
| 6542 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6543 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6544 | echo "$as_me: failed program was:" >&5 |
| 6545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6546 | |
| 6547 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6548 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6549 | cat >conftest.$ac_ext <<_ACEOF |
| 6550 | /* confdefs.h. */ |
| 6551 | _ACEOF |
| 6552 | cat confdefs.h >>conftest.$ac_ext |
| 6553 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6554 | /* end confdefs.h. */ |
| 6555 | |
| 6556 | int |
| 6557 | main () |
| 6558 | { |
| 6559 | |
| 6560 | ; |
| 6561 | return 0; |
| 6562 | } |
| 6563 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6564 | rm -f conftest.$ac_objext |
| 6565 | if { (ac_try="$ac_compile" |
| 6566 | case "(($ac_try" in |
| 6567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6568 | *) ac_try_echo=$ac_try;; |
| 6569 | esac |
| 6570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6571 | (eval "$ac_compile") 2>conftest.er1 |
| 6572 | ac_status=$? |
| 6573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6574 | rm -f conftest.er1 |
| 6575 | cat conftest.err >&5 |
| 6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6577 | (exit $ac_status); } && |
| 6578 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6579 | { (case "(($ac_try" in |
| 6580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6581 | *) ac_try_echo=$ac_try;; |
| 6582 | esac |
| 6583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6584 | (eval "$ac_try") 2>&5 |
| 6585 | ac_status=$? |
| 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6587 | (exit $ac_status); }; } && |
| 6588 | { ac_try='test -s conftest.$ac_objext' |
| 6589 | { (case "(($ac_try" in |
| 6590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6591 | *) ac_try_echo=$ac_try;; |
| 6592 | esac |
| 6593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6594 | (eval "$ac_try") 2>&5 |
| 6595 | ac_status=$? |
| 6596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6597 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6598 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6599 | else |
| 6600 | echo "$as_me: failed program was:" >&5 |
| 6601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6602 | |
| 6603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6604 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6607 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6610 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6613 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6614 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6615 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6616 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6617 | if test "$ac_test_CXXFLAGS" = set; then |
| 6618 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6619 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6620 | if test "$GXX" = yes; then |
| 6621 | CXXFLAGS="-g -O2" |
| 6622 | else |
| 6623 | CXXFLAGS="-g" |
| 6624 | fi |
| 6625 | else |
| 6626 | if test "$GXX" = yes; then |
| 6627 | CXXFLAGS="-O2" |
| 6628 | else |
| 6629 | CXXFLAGS= |
| 6630 | fi |
| 6631 | fi |
| 6632 | ac_ext=c |
| 6633 | ac_cpp='$CPP $CPPFLAGS' |
| 6634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6637 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6638 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6639 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6640 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6641 | if test "${lt_cv_path_NM+set}" = set; then |
| 6642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6643 | else |
| 6644 | if test -n "$NM"; then |
| 6645 | # Let the user override the test. |
| 6646 | lt_cv_path_NM="$NM" |
| 6647 | else |
| 6648 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6649 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6650 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6651 | fi |
| 6652 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6653 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6654 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6655 | IFS="$lt_save_ifs" |
| 6656 | test -z "$ac_dir" && ac_dir=. |
| 6657 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6658 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6659 | # Check to see if the nm accepts a BSD-compat flag. |
| 6660 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6661 | # nm: unknown option "B" ignored |
| 6662 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6663 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6664 | */dev/null* | *'Invalid file or object type'*) |
| 6665 | lt_cv_path_NM="$tmp_nm -B" |
| 6666 | break |
| 6667 | ;; |
| 6668 | *) |
| 6669 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6670 | */dev/null*) |
| 6671 | lt_cv_path_NM="$tmp_nm -p" |
| 6672 | break |
| 6673 | ;; |
| 6674 | *) |
| 6675 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6676 | continue # so that we can try to find one that supports BSD flags |
| 6677 | ;; |
| 6678 | esac |
| 6679 | ;; |
| 6680 | esac |
| 6681 | fi |
| 6682 | done |
| 6683 | IFS="$lt_save_ifs" |
| 6684 | done |
| 6685 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6686 | fi |
| 6687 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6688 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6689 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6690 | NM="$lt_cv_path_NM" |
| 6691 | |
| 6692 | |
| 6693 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6694 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6695 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6696 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6698 | else |
| 6699 | llvm_cv_gnu_make_command='' |
| 6700 | for a in "$MAKE" make gmake gnumake ; do |
| 6701 | if test -z "$a" ; then continue ; fi ; |
| 6702 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6703 | then |
| 6704 | llvm_cv_gnu_make_command=$a ; |
| 6705 | break; |
| 6706 | fi |
| 6707 | done |
| 6708 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6709 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6710 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6711 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6712 | ifGNUmake='' ; |
| 6713 | else |
| 6714 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6715 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6716 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6717 | fi |
| 6718 | |
| 6719 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6720 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6721 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6722 | LN_S=$as_ln_s |
| 6723 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6724 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6725 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6726 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6727 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6728 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6729 | fi |
| 6730 | |
| 6731 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6732 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6733 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6735 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6737 | else |
| 6738 | case $CMP in |
| 6739 | [\\/]* | ?:[\\/]*) |
| 6740 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6741 | ;; |
| 6742 | *) |
| 6743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6744 | for as_dir in $PATH |
| 6745 | do |
| 6746 | IFS=$as_save_IFS |
| 6747 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6749 | 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] | 6750 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6751 | 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] | 6752 | break 2 |
| 6753 | fi |
| 6754 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6755 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6756 | IFS=$as_save_IFS |
| 6757 | |
| 6758 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6759 | ;; |
| 6760 | esac |
| 6761 | fi |
| 6762 | CMP=$ac_cv_path_CMP |
| 6763 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6764 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6765 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6766 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6767 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6768 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6769 | fi |
| 6770 | |
| 6771 | |
| 6772 | # Extract the first word of "cp", so it can be a program name with args. |
| 6773 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6776 | if test "${ac_cv_path_CP+set}" = set; then |
| 6777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6778 | else |
| 6779 | case $CP in |
| 6780 | [\\/]* | ?:[\\/]*) |
| 6781 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6782 | ;; |
| 6783 | *) |
| 6784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6785 | for as_dir in $PATH |
| 6786 | do |
| 6787 | IFS=$as_save_IFS |
| 6788 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6790 | 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] | 6791 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6792 | 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] | 6793 | break 2 |
| 6794 | fi |
| 6795 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6796 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6797 | IFS=$as_save_IFS |
| 6798 | |
| 6799 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6800 | ;; |
| 6801 | esac |
| 6802 | fi |
| 6803 | CP=$ac_cv_path_CP |
| 6804 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6805 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6806 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6807 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6808 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6809 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6810 | fi |
| 6811 | |
| 6812 | |
| 6813 | # Extract the first word of "date", so it can be a program name with args. |
| 6814 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6815 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6817 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6819 | else |
| 6820 | case $DATE in |
| 6821 | [\\/]* | ?:[\\/]*) |
| 6822 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6823 | ;; |
| 6824 | *) |
| 6825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6826 | for as_dir in $PATH |
| 6827 | do |
| 6828 | IFS=$as_save_IFS |
| 6829 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6831 | 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] | 6832 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6833 | 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] | 6834 | break 2 |
| 6835 | fi |
| 6836 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6837 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6838 | IFS=$as_save_IFS |
| 6839 | |
| 6840 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6841 | ;; |
| 6842 | esac |
| 6843 | fi |
| 6844 | DATE=$ac_cv_path_DATE |
| 6845 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6846 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6847 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6848 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6849 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6850 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6851 | fi |
| 6852 | |
| 6853 | |
| 6854 | # Extract the first word of "find", so it can be a program name with args. |
| 6855 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6856 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6858 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6860 | else |
| 6861 | case $FIND in |
| 6862 | [\\/]* | ?:[\\/]*) |
| 6863 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6864 | ;; |
| 6865 | *) |
| 6866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6867 | for as_dir in $PATH |
| 6868 | do |
| 6869 | IFS=$as_save_IFS |
| 6870 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6871 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6872 | 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] | 6873 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6874 | 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] | 6875 | break 2 |
| 6876 | fi |
| 6877 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6878 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6879 | IFS=$as_save_IFS |
| 6880 | |
| 6881 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6882 | ;; |
| 6883 | esac |
| 6884 | fi |
| 6885 | FIND=$ac_cv_path_FIND |
| 6886 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6887 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6888 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6889 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6890 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6891 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6892 | fi |
| 6893 | |
| 6894 | |
| 6895 | # Extract the first word of "grep", so it can be a program name with args. |
| 6896 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6897 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6899 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6901 | else |
| 6902 | case $GREP in |
| 6903 | [\\/]* | ?:[\\/]*) |
| 6904 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6905 | ;; |
| 6906 | *) |
| 6907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6908 | for as_dir in $PATH |
| 6909 | do |
| 6910 | IFS=$as_save_IFS |
| 6911 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6912 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6913 | 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] | 6914 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6915 | 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] | 6916 | break 2 |
| 6917 | fi |
| 6918 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6919 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6920 | IFS=$as_save_IFS |
| 6921 | |
| 6922 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6923 | ;; |
| 6924 | esac |
| 6925 | fi |
| 6926 | GREP=$ac_cv_path_GREP |
| 6927 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6928 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6929 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6930 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6931 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6932 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6933 | fi |
| 6934 | |
| 6935 | |
| 6936 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6937 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6938 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6940 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6942 | else |
| 6943 | case $MKDIR in |
| 6944 | [\\/]* | ?:[\\/]*) |
| 6945 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6946 | ;; |
| 6947 | *) |
| 6948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6949 | for as_dir in $PATH |
| 6950 | do |
| 6951 | IFS=$as_save_IFS |
| 6952 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6954 | 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] | 6955 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6956 | 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] | 6957 | break 2 |
| 6958 | fi |
| 6959 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6960 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6961 | IFS=$as_save_IFS |
| 6962 | |
| 6963 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6964 | ;; |
| 6965 | esac |
| 6966 | fi |
| 6967 | MKDIR=$ac_cv_path_MKDIR |
| 6968 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6969 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6970 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6971 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6972 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6973 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6974 | fi |
| 6975 | |
| 6976 | |
| 6977 | # Extract the first word of "mv", so it can be a program name with args. |
| 6978 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6979 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6981 | if test "${ac_cv_path_MV+set}" = set; then |
| 6982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6983 | else |
| 6984 | case $MV in |
| 6985 | [\\/]* | ?:[\\/]*) |
| 6986 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6987 | ;; |
| 6988 | *) |
| 6989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6990 | for as_dir in $PATH |
| 6991 | do |
| 6992 | IFS=$as_save_IFS |
| 6993 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6994 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6995 | 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] | 6996 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6997 | 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] | 6998 | break 2 |
| 6999 | fi |
| 7000 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7001 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7002 | IFS=$as_save_IFS |
| 7003 | |
| 7004 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7005 | ;; |
| 7006 | esac |
| 7007 | fi |
| 7008 | MV=$ac_cv_path_MV |
| 7009 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7010 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7011 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7012 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7013 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7014 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7015 | fi |
| 7016 | |
| 7017 | |
| 7018 | if test -n "$ac_tool_prefix"; then |
| 7019 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7020 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7021 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7023 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7025 | else |
| 7026 | if test -n "$RANLIB"; then |
| 7027 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7028 | else |
| 7029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7030 | for as_dir in $PATH |
| 7031 | do |
| 7032 | IFS=$as_save_IFS |
| 7033 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7035 | 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] | 7036 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7037 | 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] | 7038 | break 2 |
| 7039 | fi |
| 7040 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7041 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7042 | IFS=$as_save_IFS |
| 7043 | |
| 7044 | fi |
| 7045 | fi |
| 7046 | RANLIB=$ac_cv_prog_RANLIB |
| 7047 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7048 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7049 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7050 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7051 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7052 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7053 | fi |
| 7054 | |
| 7055 | |
| 7056 | fi |
| 7057 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7058 | ac_ct_RANLIB=$RANLIB |
| 7059 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7060 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7061 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7063 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7065 | else |
| 7066 | if test -n "$ac_ct_RANLIB"; then |
| 7067 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7068 | else |
| 7069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7070 | for as_dir in $PATH |
| 7071 | do |
| 7072 | IFS=$as_save_IFS |
| 7073 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7074 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7075 | 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] | 7076 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7077 | 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] | 7078 | break 2 |
| 7079 | fi |
| 7080 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7081 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7082 | IFS=$as_save_IFS |
| 7083 | |
| 7084 | fi |
| 7085 | fi |
| 7086 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7087 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7088 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7089 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7090 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7091 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7092 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7093 | fi |
| 7094 | |
| 7095 | if test "x$ac_ct_RANLIB" = x; then |
| 7096 | RANLIB=":" |
| 7097 | else |
| 7098 | case $cross_compiling:$ac_tool_warned in |
| 7099 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7100 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7101 | whose name does not start with the host triplet. If you think this |
| 7102 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7103 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7104 | whose name does not start with the host triplet. If you think this |
| 7105 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7106 | ac_tool_warned=yes ;; |
| 7107 | esac |
| 7108 | RANLIB=$ac_ct_RANLIB |
| 7109 | fi |
| 7110 | else |
| 7111 | RANLIB="$ac_cv_prog_RANLIB" |
| 7112 | fi |
| 7113 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7114 | if test -n "$ac_tool_prefix"; then |
| 7115 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7116 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7117 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7119 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7121 | else |
| 7122 | if test -n "$AR"; then |
| 7123 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7124 | else |
| 7125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7126 | for as_dir in $PATH |
| 7127 | do |
| 7128 | IFS=$as_save_IFS |
| 7129 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7130 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7131 | 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] | 7132 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7133 | 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] | 7134 | break 2 |
| 7135 | fi |
| 7136 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7137 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7138 | IFS=$as_save_IFS |
| 7139 | |
| 7140 | fi |
| 7141 | fi |
| 7142 | AR=$ac_cv_prog_AR |
| 7143 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7144 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7145 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7146 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7147 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7148 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7149 | fi |
| 7150 | |
| 7151 | |
| 7152 | fi |
| 7153 | if test -z "$ac_cv_prog_AR"; then |
| 7154 | ac_ct_AR=$AR |
| 7155 | # Extract the first word of "ar", so it can be a program name with args. |
| 7156 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7157 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7159 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7161 | else |
| 7162 | if test -n "$ac_ct_AR"; then |
| 7163 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7164 | else |
| 7165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7166 | for as_dir in $PATH |
| 7167 | do |
| 7168 | IFS=$as_save_IFS |
| 7169 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7171 | 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] | 7172 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7173 | 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] | 7174 | break 2 |
| 7175 | fi |
| 7176 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7177 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7178 | IFS=$as_save_IFS |
| 7179 | |
| 7180 | fi |
| 7181 | fi |
| 7182 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7183 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7184 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7185 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7186 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7187 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7188 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7189 | fi |
| 7190 | |
| 7191 | if test "x$ac_ct_AR" = x; then |
| 7192 | AR="false" |
| 7193 | else |
| 7194 | case $cross_compiling:$ac_tool_warned in |
| 7195 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7196 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7197 | whose name does not start with the host triplet. If you think this |
| 7198 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7199 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7200 | whose name does not start with the host triplet. If you think this |
| 7201 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7202 | ac_tool_warned=yes ;; |
| 7203 | esac |
| 7204 | AR=$ac_ct_AR |
| 7205 | fi |
| 7206 | else |
| 7207 | AR="$ac_cv_prog_AR" |
| 7208 | fi |
| 7209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7210 | # Extract the first word of "rm", so it can be a program name with args. |
| 7211 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7212 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7214 | if test "${ac_cv_path_RM+set}" = set; then |
| 7215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7216 | else |
| 7217 | case $RM in |
| 7218 | [\\/]* | ?:[\\/]*) |
| 7219 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7220 | ;; |
| 7221 | *) |
| 7222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7223 | for as_dir in $PATH |
| 7224 | do |
| 7225 | IFS=$as_save_IFS |
| 7226 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7227 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7228 | 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] | 7229 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7230 | 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] | 7231 | break 2 |
| 7232 | fi |
| 7233 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7234 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7235 | IFS=$as_save_IFS |
| 7236 | |
| 7237 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7238 | ;; |
| 7239 | esac |
| 7240 | fi |
| 7241 | RM=$ac_cv_path_RM |
| 7242 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7243 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7244 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7245 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7246 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7247 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7248 | fi |
| 7249 | |
| 7250 | |
| 7251 | # Extract the first word of "sed", so it can be a program name with args. |
| 7252 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7253 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7255 | if test "${ac_cv_path_SED+set}" = set; then |
| 7256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7257 | else |
| 7258 | case $SED in |
| 7259 | [\\/]* | ?:[\\/]*) |
| 7260 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7261 | ;; |
| 7262 | *) |
| 7263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7264 | for as_dir in $PATH |
| 7265 | do |
| 7266 | IFS=$as_save_IFS |
| 7267 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7268 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7269 | 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] | 7270 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7271 | 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] | 7272 | break 2 |
| 7273 | fi |
| 7274 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7275 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7276 | IFS=$as_save_IFS |
| 7277 | |
| 7278 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7279 | ;; |
| 7280 | esac |
| 7281 | fi |
| 7282 | SED=$ac_cv_path_SED |
| 7283 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7284 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7285 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7286 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7287 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7288 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7289 | fi |
| 7290 | |
| 7291 | |
| 7292 | # Extract the first word of "tar", so it can be a program name with args. |
| 7293 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7294 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7296 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7298 | else |
| 7299 | case $TAR in |
| 7300 | [\\/]* | ?:[\\/]*) |
| 7301 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7302 | ;; |
| 7303 | *) |
| 7304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7305 | for as_dir in $PATH |
| 7306 | do |
| 7307 | IFS=$as_save_IFS |
| 7308 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7310 | 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] | 7311 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7312 | 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] | 7313 | break 2 |
| 7314 | fi |
| 7315 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7316 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7317 | IFS=$as_save_IFS |
| 7318 | |
| 7319 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7320 | ;; |
| 7321 | esac |
| 7322 | fi |
| 7323 | TAR=$ac_cv_path_TAR |
| 7324 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7325 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7326 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7327 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7328 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7329 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7330 | fi |
| 7331 | |
| 7332 | |
| 7333 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7334 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7335 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7337 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7339 | else |
| 7340 | case $BINPWD in |
| 7341 | [\\/]* | ?:[\\/]*) |
| 7342 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7343 | ;; |
| 7344 | *) |
| 7345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7346 | for as_dir in $PATH |
| 7347 | do |
| 7348 | IFS=$as_save_IFS |
| 7349 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7350 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7351 | 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] | 7352 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7353 | 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] | 7354 | break 2 |
| 7355 | fi |
| 7356 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7357 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7358 | IFS=$as_save_IFS |
| 7359 | |
| 7360 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7361 | ;; |
| 7362 | esac |
| 7363 | fi |
| 7364 | BINPWD=$ac_cv_path_BINPWD |
| 7365 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7366 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7367 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7368 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7369 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7370 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7371 | fi |
| 7372 | |
| 7373 | |
| 7374 | |
| 7375 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7376 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7377 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7379 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7381 | else |
| 7382 | case $GRAPHVIZ in |
| 7383 | [\\/]* | ?:[\\/]*) |
| 7384 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7385 | ;; |
| 7386 | *) |
| 7387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7388 | for as_dir in $PATH |
| 7389 | do |
| 7390 | IFS=$as_save_IFS |
| 7391 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7392 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7393 | 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] | 7394 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7395 | 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] | 7396 | break 2 |
| 7397 | fi |
| 7398 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7399 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7400 | IFS=$as_save_IFS |
| 7401 | |
| 7402 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7403 | ;; |
| 7404 | esac |
| 7405 | fi |
| 7406 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7407 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7408 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7409 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7412 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7413 | fi |
| 7414 | |
| 7415 | |
| 7416 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7417 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7418 | cat >>confdefs.h <<\_ACEOF |
| 7419 | #define HAVE_GRAPHVIZ 1 |
| 7420 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7421 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7422 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7423 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7424 | fi |
| 7425 | |
| 7426 | cat >>confdefs.h <<_ACEOF |
| 7427 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7428 | _ACEOF |
| 7429 | |
| 7430 | fi |
| 7431 | # Extract the first word of "dot", so it can be a program name with args. |
| 7432 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7433 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7435 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7437 | else |
| 7438 | case $DOT in |
| 7439 | [\\/]* | ?:[\\/]*) |
| 7440 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7441 | ;; |
| 7442 | *) |
| 7443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7444 | for as_dir in $PATH |
| 7445 | do |
| 7446 | IFS=$as_save_IFS |
| 7447 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7448 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7449 | 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] | 7450 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7451 | 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] | 7452 | break 2 |
| 7453 | fi |
| 7454 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7455 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7456 | IFS=$as_save_IFS |
| 7457 | |
| 7458 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7459 | ;; |
| 7460 | esac |
| 7461 | fi |
| 7462 | DOT=$ac_cv_path_DOT |
| 7463 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7464 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7465 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7466 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7467 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7468 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7469 | fi |
| 7470 | |
| 7471 | |
| 7472 | if test "$DOT" != "echo dot" ; then |
| 7473 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7474 | cat >>confdefs.h <<\_ACEOF |
| 7475 | #define HAVE_DOT 1 |
| 7476 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7477 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7478 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7479 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7480 | fi |
| 7481 | |
| 7482 | cat >>confdefs.h <<_ACEOF |
| 7483 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7484 | _ACEOF |
| 7485 | |
| 7486 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7487 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7488 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7489 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7491 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7493 | else |
| 7494 | case $FDP in |
| 7495 | [\\/]* | ?:[\\/]*) |
| 7496 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7497 | ;; |
| 7498 | *) |
| 7499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7500 | for as_dir in $PATH |
| 7501 | do |
| 7502 | IFS=$as_save_IFS |
| 7503 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7504 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7505 | 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] | 7506 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7507 | 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] | 7508 | break 2 |
| 7509 | fi |
| 7510 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7511 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7512 | IFS=$as_save_IFS |
| 7513 | |
| 7514 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7515 | ;; |
| 7516 | esac |
| 7517 | fi |
| 7518 | FDP=$ac_cv_path_FDP |
| 7519 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7520 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7521 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7522 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7523 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7524 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7525 | fi |
| 7526 | |
| 7527 | |
| 7528 | if test "$FDP" != "echo fdp" ; then |
| 7529 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7530 | cat >>confdefs.h <<\_ACEOF |
| 7531 | #define HAVE_FDP 1 |
| 7532 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7533 | |
| 7534 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7535 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7536 | fi |
| 7537 | |
| 7538 | cat >>confdefs.h <<_ACEOF |
| 7539 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7540 | _ACEOF |
| 7541 | |
| 7542 | fi |
| 7543 | # Extract the first word of "neato", so it can be a program name with args. |
| 7544 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7545 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7547 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7549 | else |
| 7550 | case $NEATO in |
| 7551 | [\\/]* | ?:[\\/]*) |
| 7552 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7553 | ;; |
| 7554 | *) |
| 7555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7556 | for as_dir in $PATH |
| 7557 | do |
| 7558 | IFS=$as_save_IFS |
| 7559 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7560 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7561 | 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] | 7562 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7563 | 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] | 7564 | break 2 |
| 7565 | fi |
| 7566 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7567 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7568 | IFS=$as_save_IFS |
| 7569 | |
| 7570 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7571 | ;; |
| 7572 | esac |
| 7573 | fi |
| 7574 | NEATO=$ac_cv_path_NEATO |
| 7575 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7576 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7577 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7578 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7579 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7580 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7581 | fi |
| 7582 | |
| 7583 | |
| 7584 | if test "$NEATO" != "echo neato" ; then |
| 7585 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7586 | cat >>confdefs.h <<\_ACEOF |
| 7587 | #define HAVE_NEATO 1 |
| 7588 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7589 | |
| 7590 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7591 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7592 | fi |
| 7593 | |
| 7594 | cat >>confdefs.h <<_ACEOF |
| 7595 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7596 | _ACEOF |
| 7597 | |
| 7598 | fi |
| 7599 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7600 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7603 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7605 | else |
| 7606 | case $TWOPI in |
| 7607 | [\\/]* | ?:[\\/]*) |
| 7608 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7609 | ;; |
| 7610 | *) |
| 7611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7612 | for as_dir in $PATH |
| 7613 | do |
| 7614 | IFS=$as_save_IFS |
| 7615 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7616 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7617 | 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] | 7618 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7619 | 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] | 7620 | break 2 |
| 7621 | fi |
| 7622 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7623 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7624 | IFS=$as_save_IFS |
| 7625 | |
| 7626 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7627 | ;; |
| 7628 | esac |
| 7629 | fi |
| 7630 | TWOPI=$ac_cv_path_TWOPI |
| 7631 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7632 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7633 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7634 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7635 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7636 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7637 | fi |
| 7638 | |
| 7639 | |
| 7640 | if test "$TWOPI" != "echo twopi" ; then |
| 7641 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7642 | cat >>confdefs.h <<\_ACEOF |
| 7643 | #define HAVE_TWOPI 1 |
| 7644 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7645 | |
| 7646 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7647 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7648 | fi |
| 7649 | |
| 7650 | cat >>confdefs.h <<_ACEOF |
| 7651 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7652 | _ACEOF |
| 7653 | |
| 7654 | fi |
| 7655 | # Extract the first word of "circo", so it can be a program name with args. |
| 7656 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7657 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7659 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7661 | else |
| 7662 | case $CIRCO in |
| 7663 | [\\/]* | ?:[\\/]*) |
| 7664 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7665 | ;; |
| 7666 | *) |
| 7667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7668 | for as_dir in $PATH |
| 7669 | do |
| 7670 | IFS=$as_save_IFS |
| 7671 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7672 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7673 | 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] | 7674 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7675 | 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] | 7676 | break 2 |
| 7677 | fi |
| 7678 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7679 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7680 | IFS=$as_save_IFS |
| 7681 | |
| 7682 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7683 | ;; |
| 7684 | esac |
| 7685 | fi |
| 7686 | CIRCO=$ac_cv_path_CIRCO |
| 7687 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7688 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7689 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7690 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7691 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7692 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7693 | fi |
| 7694 | |
| 7695 | |
| 7696 | if test "$CIRCO" != "echo circo" ; then |
| 7697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7698 | cat >>confdefs.h <<\_ACEOF |
| 7699 | #define HAVE_CIRCO 1 |
| 7700 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7701 | |
| 7702 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7703 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7704 | fi |
| 7705 | |
| 7706 | cat >>confdefs.h <<_ACEOF |
| 7707 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7708 | _ACEOF |
| 7709 | |
| 7710 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7711 | for ac_prog in gv gsview32 |
| 7712 | do |
| 7713 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7714 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7715 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7716 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7717 | if test "${ac_cv_path_GV+set}" = set; then |
| 7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7719 | else |
| 7720 | case $GV in |
| 7721 | [\\/]* | ?:[\\/]*) |
| 7722 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7723 | ;; |
| 7724 | *) |
| 7725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7726 | for as_dir in $PATH |
| 7727 | do |
| 7728 | IFS=$as_save_IFS |
| 7729 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7730 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7731 | 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] | 7732 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7733 | 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] | 7734 | break 2 |
| 7735 | fi |
| 7736 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7737 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7738 | IFS=$as_save_IFS |
| 7739 | |
| 7740 | ;; |
| 7741 | esac |
| 7742 | fi |
| 7743 | GV=$ac_cv_path_GV |
| 7744 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7745 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7746 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7747 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7748 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7749 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7750 | fi |
| 7751 | |
| 7752 | |
| 7753 | test -n "$GV" && break |
| 7754 | done |
| 7755 | test -n "$GV" || GV="echo gv" |
| 7756 | |
| 7757 | if test "$GV" != "echo gv" ; then |
| 7758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7759 | cat >>confdefs.h <<\_ACEOF |
| 7760 | #define HAVE_GV 1 |
| 7761 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7762 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7763 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7764 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7765 | fi |
| 7766 | |
| 7767 | cat >>confdefs.h <<_ACEOF |
| 7768 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7769 | _ACEOF |
| 7770 | |
| 7771 | fi |
| 7772 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7773 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7776 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7778 | else |
| 7779 | case $DOTTY in |
| 7780 | [\\/]* | ?:[\\/]*) |
| 7781 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7782 | ;; |
| 7783 | *) |
| 7784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7785 | for as_dir in $PATH |
| 7786 | do |
| 7787 | IFS=$as_save_IFS |
| 7788 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7790 | 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] | 7791 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7792 | 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] | 7793 | break 2 |
| 7794 | fi |
| 7795 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7796 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7797 | IFS=$as_save_IFS |
| 7798 | |
| 7799 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7800 | ;; |
| 7801 | esac |
| 7802 | fi |
| 7803 | DOTTY=$ac_cv_path_DOTTY |
| 7804 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7805 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7806 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7807 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7808 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7809 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7810 | fi |
| 7811 | |
| 7812 | |
| 7813 | if test "$DOTTY" != "echo dotty" ; then |
| 7814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7815 | cat >>confdefs.h <<\_ACEOF |
| 7816 | #define HAVE_DOTTY 1 |
| 7817 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7818 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7819 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7820 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7821 | fi |
| 7822 | |
| 7823 | cat >>confdefs.h <<_ACEOF |
| 7824 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7825 | _ACEOF |
| 7826 | |
| 7827 | fi |
| 7828 | |
| 7829 | |
| 7830 | # Extract the first word of "perl", so it can be a program name with args. |
| 7831 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7832 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7834 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7836 | else |
| 7837 | case $PERL in |
| 7838 | [\\/]* | ?:[\\/]*) |
| 7839 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7840 | ;; |
| 7841 | *) |
| 7842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7843 | for as_dir in $PATH |
| 7844 | do |
| 7845 | IFS=$as_save_IFS |
| 7846 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7847 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7849 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7850 | 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] | 7851 | break 2 |
| 7852 | fi |
| 7853 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7854 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7855 | IFS=$as_save_IFS |
| 7856 | |
| 7857 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7858 | ;; |
| 7859 | esac |
| 7860 | fi |
| 7861 | PERL=$ac_cv_path_PERL |
| 7862 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7863 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7864 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7865 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7866 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7867 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7868 | fi |
| 7869 | |
| 7870 | |
| 7871 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7872 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7873 | 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] | 7874 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7875 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7876 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7877 | else |
| 7878 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7879 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7880 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7881 | fi |
| 7882 | fi |
| 7883 | |
| 7884 | |
| 7885 | if test x"$PERL" = xnone; then |
| 7886 | HAVE_PERL=0 |
| 7887 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7888 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7889 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7890 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7891 | else |
| 7892 | HAVE_PERL=1 |
| 7893 | |
| 7894 | fi |
| 7895 | |
| 7896 | # Find a good install program. We prefer a C program (faster), |
| 7897 | # so one script is as good as another. But avoid the broken or |
| 7898 | # incompatible versions: |
| 7899 | # SysV /etc/install, /usr/sbin/install |
| 7900 | # SunOS /usr/etc/install |
| 7901 | # IRIX /sbin/install |
| 7902 | # AIX /bin/install |
| 7903 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7904 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7905 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7906 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7907 | # OS/2's system install, which has a completely different semantic |
| 7908 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7909 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7910 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7911 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7912 | if test "${ac_cv_path_install+set}" = set; then |
| 7913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7914 | else |
| 7915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7916 | for as_dir in $PATH |
| 7917 | do |
| 7918 | IFS=$as_save_IFS |
| 7919 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7920 | # Account for people who put trailing slashes in PATH elements. |
| 7921 | case $as_dir/ in |
| 7922 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7923 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7924 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7925 | /usr/ucb/* ) ;; |
| 7926 | *) |
| 7927 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7928 | # Don't use installbsd from OSF since it installs stuff as root |
| 7929 | # by default. |
| 7930 | for ac_prog in ginstall scoinst install; do |
| 7931 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7932 | 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] | 7933 | if test $ac_prog = install && |
| 7934 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7935 | # AIX install. It has an incompatible calling convention. |
| 7936 | : |
| 7937 | elif test $ac_prog = install && |
| 7938 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7939 | # program-specific install script used by HP pwplus--don't use. |
| 7940 | : |
| 7941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7942 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7943 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7944 | fi |
| 7945 | fi |
| 7946 | done |
| 7947 | done |
| 7948 | ;; |
| 7949 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7950 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7951 | IFS=$as_save_IFS |
| 7952 | |
| 7953 | |
| 7954 | fi |
| 7955 | if test "${ac_cv_path_install+set}" = set; then |
| 7956 | INSTALL=$ac_cv_path_install |
| 7957 | else |
| 7958 | # As a last resort, use the slow shell script. Don't cache a |
| 7959 | # value for INSTALL within a source directory, because that will |
| 7960 | # break other packages using the cache if that directory is |
| 7961 | # removed, or if the value is a relative name. |
| 7962 | INSTALL=$ac_install_sh |
| 7963 | fi |
| 7964 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7965 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7966 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7967 | |
| 7968 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7969 | # It thinks the first close brace ends the variable substitution. |
| 7970 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7971 | |
| 7972 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7973 | |
| 7974 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7975 | |
| 7976 | |
| 7977 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7978 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7979 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7981 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7983 | else |
| 7984 | case $BZIP2 in |
| 7985 | [\\/]* | ?:[\\/]*) |
| 7986 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7987 | ;; |
| 7988 | *) |
| 7989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7990 | for as_dir in $PATH |
| 7991 | do |
| 7992 | IFS=$as_save_IFS |
| 7993 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7994 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7995 | 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] | 7996 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7997 | 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] | 7998 | break 2 |
| 7999 | fi |
| 8000 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8001 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8002 | IFS=$as_save_IFS |
| 8003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8004 | ;; |
| 8005 | esac |
| 8006 | fi |
| 8007 | BZIP2=$ac_cv_path_BZIP2 |
| 8008 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8009 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8010 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8011 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8012 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8013 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8014 | fi |
| 8015 | |
| 8016 | |
| 8017 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8018 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8019 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8021 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8023 | else |
| 8024 | case $DOXYGEN in |
| 8025 | [\\/]* | ?:[\\/]*) |
| 8026 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8027 | ;; |
| 8028 | *) |
| 8029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8030 | for as_dir in $PATH |
| 8031 | do |
| 8032 | IFS=$as_save_IFS |
| 8033 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8035 | 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] | 8036 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8037 | 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] | 8038 | break 2 |
| 8039 | fi |
| 8040 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8041 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8042 | IFS=$as_save_IFS |
| 8043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8044 | ;; |
| 8045 | esac |
| 8046 | fi |
| 8047 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8048 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8049 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8050 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8051 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8052 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8053 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8054 | fi |
| 8055 | |
| 8056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8057 | # Extract the first word of "groff", so it can be a program name with args. |
| 8058 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8059 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8061 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8063 | else |
| 8064 | case $GROFF in |
| 8065 | [\\/]* | ?:[\\/]*) |
| 8066 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8067 | ;; |
| 8068 | *) |
| 8069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8070 | for as_dir in $PATH |
| 8071 | do |
| 8072 | IFS=$as_save_IFS |
| 8073 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8074 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8075 | 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] | 8076 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8077 | 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] | 8078 | break 2 |
| 8079 | fi |
| 8080 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8081 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8082 | IFS=$as_save_IFS |
| 8083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8084 | ;; |
| 8085 | esac |
| 8086 | fi |
| 8087 | GROFF=$ac_cv_path_GROFF |
| 8088 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8089 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8090 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8091 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8092 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8093 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8094 | fi |
| 8095 | |
| 8096 | |
| 8097 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8098 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8099 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8101 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8103 | else |
| 8104 | case $GZIP in |
| 8105 | [\\/]* | ?:[\\/]*) |
| 8106 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8107 | ;; |
| 8108 | *) |
| 8109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8110 | for as_dir in $PATH |
| 8111 | do |
| 8112 | IFS=$as_save_IFS |
| 8113 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8114 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8115 | 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] | 8116 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8117 | 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] | 8118 | break 2 |
| 8119 | fi |
| 8120 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8121 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8122 | IFS=$as_save_IFS |
| 8123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8124 | ;; |
| 8125 | esac |
| 8126 | fi |
| 8127 | GZIP=$ac_cv_path_GZIP |
| 8128 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8129 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8130 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8131 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8132 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8133 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8134 | fi |
| 8135 | |
| 8136 | |
| 8137 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8138 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8139 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8141 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8143 | else |
| 8144 | case $POD2HTML in |
| 8145 | [\\/]* | ?:[\\/]*) |
| 8146 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8147 | ;; |
| 8148 | *) |
| 8149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8150 | for as_dir in $PATH |
| 8151 | do |
| 8152 | IFS=$as_save_IFS |
| 8153 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8154 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8155 | 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] | 8156 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8157 | 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] | 8158 | break 2 |
| 8159 | fi |
| 8160 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8161 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8162 | IFS=$as_save_IFS |
| 8163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8164 | ;; |
| 8165 | esac |
| 8166 | fi |
| 8167 | POD2HTML=$ac_cv_path_POD2HTML |
| 8168 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8169 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8170 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8171 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8173 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8174 | fi |
| 8175 | |
| 8176 | |
| 8177 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8178 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8181 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8183 | else |
| 8184 | case $POD2MAN in |
| 8185 | [\\/]* | ?:[\\/]*) |
| 8186 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8187 | ;; |
| 8188 | *) |
| 8189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8190 | for as_dir in $PATH |
| 8191 | do |
| 8192 | IFS=$as_save_IFS |
| 8193 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8195 | 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] | 8196 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8197 | 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] | 8198 | break 2 |
| 8199 | fi |
| 8200 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8201 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8202 | IFS=$as_save_IFS |
| 8203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8204 | ;; |
| 8205 | esac |
| 8206 | fi |
| 8207 | POD2MAN=$ac_cv_path_POD2MAN |
| 8208 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8209 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8210 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8213 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8214 | fi |
| 8215 | |
| 8216 | |
| 8217 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8218 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8219 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8221 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8223 | else |
| 8224 | case $RUNTEST in |
| 8225 | [\\/]* | ?:[\\/]*) |
| 8226 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8227 | ;; |
| 8228 | *) |
| 8229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8230 | for as_dir in $PATH |
| 8231 | do |
| 8232 | IFS=$as_save_IFS |
| 8233 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8234 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8235 | 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] | 8236 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8237 | 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] | 8238 | break 2 |
| 8239 | fi |
| 8240 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8241 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8242 | IFS=$as_save_IFS |
| 8243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8244 | ;; |
| 8245 | esac |
| 8246 | fi |
| 8247 | RUNTEST=$ac_cv_path_RUNTEST |
| 8248 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8249 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8250 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8251 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8252 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8253 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8254 | fi |
| 8255 | |
| 8256 | |
| 8257 | |
| 8258 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8259 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8260 | 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] | 8261 | |
| 8262 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8263 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8264 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8265 | else |
| 8266 | with_tclinclude='' |
| 8267 | fi |
| 8268 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8269 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8271 | else |
| 8272 | |
| 8273 | if test x"${with_tclinclude}" != x ; then |
| 8274 | if test -f ${with_tclinclude}/tclsh ; then |
| 8275 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8276 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8277 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8278 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8279 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8280 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8281 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8282 | fi |
| 8283 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8284 | fi |
| 8285 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8286 | |
| 8287 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8288 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8289 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8290 | 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 |
| 8291 | do |
| 8292 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8293 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8294 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8296 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8298 | else |
| 8299 | case $TCLSH in |
| 8300 | [\\/]* | ?:[\\/]*) |
| 8301 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8302 | ;; |
| 8303 | *) |
| 8304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8305 | for as_dir in $PATH |
| 8306 | do |
| 8307 | IFS=$as_save_IFS |
| 8308 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8310 | 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] | 8311 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8312 | 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] | 8313 | break 2 |
| 8314 | fi |
| 8315 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8316 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8317 | IFS=$as_save_IFS |
| 8318 | |
| 8319 | ;; |
| 8320 | esac |
| 8321 | fi |
| 8322 | TCLSH=$ac_cv_path_TCLSH |
| 8323 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8324 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8325 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8326 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8327 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8328 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8329 | fi |
| 8330 | |
| 8331 | |
| 8332 | test -n "$TCLSH" && break |
| 8333 | done |
| 8334 | |
| 8335 | if test x"${TCLSH}" = x ; then |
| 8336 | ac_cv_path_tclsh=''; |
| 8337 | else |
| 8338 | ac_cv_path_tclsh="${TCLSH}"; |
| 8339 | fi |
| 8340 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8341 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8342 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8343 | TCLSH="${ac_cv_path_tclsh}" |
| 8344 | |
| 8345 | fi |
| 8346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8347 | # Extract the first word of "zip", so it can be a program name with args. |
| 8348 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8349 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8351 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8353 | else |
| 8354 | case $ZIP in |
| 8355 | [\\/]* | ?:[\\/]*) |
| 8356 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8357 | ;; |
| 8358 | *) |
| 8359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8360 | for as_dir in $PATH |
| 8361 | do |
| 8362 | IFS=$as_save_IFS |
| 8363 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8364 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8365 | 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] | 8366 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8367 | 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] | 8368 | break 2 |
| 8369 | fi |
| 8370 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8371 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8372 | IFS=$as_save_IFS |
| 8373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8374 | ;; |
| 8375 | esac |
| 8376 | fi |
| 8377 | ZIP=$ac_cv_path_ZIP |
| 8378 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8379 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8380 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8381 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8382 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8383 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8384 | fi |
| 8385 | |
| 8386 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8387 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8388 | do |
| 8389 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8390 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8391 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8393 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8395 | else |
| 8396 | case $OCAMLC in |
| 8397 | [\\/]* | ?:[\\/]*) |
| 8398 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8399 | ;; |
| 8400 | *) |
| 8401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8402 | for as_dir in $PATH |
| 8403 | do |
| 8404 | IFS=$as_save_IFS |
| 8405 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8407 | 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] | 8408 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8409 | 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] | 8410 | break 2 |
| 8411 | fi |
| 8412 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8413 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8414 | IFS=$as_save_IFS |
| 8415 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8416 | ;; |
| 8417 | esac |
| 8418 | fi |
| 8419 | OCAMLC=$ac_cv_path_OCAMLC |
| 8420 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8421 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8422 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8423 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8424 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8425 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8426 | fi |
| 8427 | |
| 8428 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8429 | test -n "$OCAMLC" && break |
| 8430 | done |
| 8431 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8432 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8433 | do |
| 8434 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8435 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8438 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8440 | else |
| 8441 | case $OCAMLOPT in |
| 8442 | [\\/]* | ?:[\\/]*) |
| 8443 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8444 | ;; |
| 8445 | *) |
| 8446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8447 | for as_dir in $PATH |
| 8448 | do |
| 8449 | IFS=$as_save_IFS |
| 8450 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8452 | 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] | 8453 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8454 | 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] | 8455 | break 2 |
| 8456 | fi |
| 8457 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8458 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8459 | IFS=$as_save_IFS |
| 8460 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8461 | ;; |
| 8462 | esac |
| 8463 | fi |
| 8464 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8465 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8466 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8467 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8468 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8469 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8470 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8471 | fi |
| 8472 | |
| 8473 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8474 | test -n "$OCAMLOPT" && break |
| 8475 | done |
| 8476 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8477 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8478 | do |
| 8479 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8480 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8481 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8483 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8485 | else |
| 8486 | case $OCAMLDEP in |
| 8487 | [\\/]* | ?:[\\/]*) |
| 8488 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8489 | ;; |
| 8490 | *) |
| 8491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8492 | for as_dir in $PATH |
| 8493 | do |
| 8494 | IFS=$as_save_IFS |
| 8495 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8496 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8497 | 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] | 8498 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8499 | 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] | 8500 | break 2 |
| 8501 | fi |
| 8502 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8503 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8504 | IFS=$as_save_IFS |
| 8505 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8506 | ;; |
| 8507 | esac |
| 8508 | fi |
| 8509 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8510 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8511 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8512 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8513 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8514 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8515 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8516 | fi |
| 8517 | |
| 8518 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8519 | test -n "$OCAMLDEP" && break |
| 8520 | done |
| 8521 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8522 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8523 | do |
| 8524 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8525 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8526 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8528 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8530 | else |
| 8531 | case $OCAMLDOC in |
| 8532 | [\\/]* | ?:[\\/]*) |
| 8533 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8534 | ;; |
| 8535 | *) |
| 8536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8537 | for as_dir in $PATH |
| 8538 | do |
| 8539 | IFS=$as_save_IFS |
| 8540 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8541 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8542 | 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] | 8543 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8544 | 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] | 8545 | break 2 |
| 8546 | fi |
| 8547 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8548 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8549 | IFS=$as_save_IFS |
| 8550 | |
| 8551 | ;; |
| 8552 | esac |
| 8553 | fi |
| 8554 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8555 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8556 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8557 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8558 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8559 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8560 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8561 | fi |
| 8562 | |
| 8563 | |
| 8564 | test -n "$OCAMLDOC" && break |
| 8565 | done |
| 8566 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8567 | for ac_prog in gas as |
| 8568 | do |
| 8569 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8570 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8571 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8573 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8575 | else |
| 8576 | case $GAS in |
| 8577 | [\\/]* | ?:[\\/]*) |
| 8578 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8579 | ;; |
| 8580 | *) |
| 8581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8582 | for as_dir in $PATH |
| 8583 | do |
| 8584 | IFS=$as_save_IFS |
| 8585 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8586 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8587 | 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] | 8588 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8589 | 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] | 8590 | break 2 |
| 8591 | fi |
| 8592 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8593 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8594 | IFS=$as_save_IFS |
| 8595 | |
| 8596 | ;; |
| 8597 | esac |
| 8598 | fi |
| 8599 | GAS=$ac_cv_path_GAS |
| 8600 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8601 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8602 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8603 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8604 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8605 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8606 | fi |
| 8607 | |
| 8608 | |
| 8609 | test -n "$GAS" && break |
| 8610 | done |
| 8611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8612 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8613 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8614 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8615 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8617 | else |
| 8618 | ac_ext=c |
| 8619 | ac_cpp='$CPP $CPPFLAGS' |
| 8620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8623 | |
| 8624 | oldcflags="$CFLAGS" |
| 8625 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8626 | cat >conftest.$ac_ext <<_ACEOF |
| 8627 | /* confdefs.h. */ |
| 8628 | _ACEOF |
| 8629 | cat confdefs.h >>conftest.$ac_ext |
| 8630 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8631 | /* end confdefs.h. */ |
| 8632 | |
| 8633 | int |
| 8634 | main () |
| 8635 | { |
| 8636 | int main() { return 0; } |
| 8637 | ; |
| 8638 | return 0; |
| 8639 | } |
| 8640 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8641 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8642 | if { (ac_try="$ac_link" |
| 8643 | case "(($ac_try" in |
| 8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8645 | *) ac_try_echo=$ac_try;; |
| 8646 | esac |
| 8647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8648 | (eval "$ac_link") 2>conftest.er1 |
| 8649 | ac_status=$? |
| 8650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8651 | rm -f conftest.er1 |
| 8652 | cat conftest.err >&5 |
| 8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8654 | (exit $ac_status); } && |
| 8655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8656 | { (case "(($ac_try" in |
| 8657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8658 | *) ac_try_echo=$ac_try;; |
| 8659 | esac |
| 8660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8661 | (eval "$ac_try") 2>&5 |
| 8662 | ac_status=$? |
| 8663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8664 | (exit $ac_status); }; } && |
| 8665 | { ac_try='test -s conftest$ac_exeext' |
| 8666 | { (case "(($ac_try" in |
| 8667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8668 | *) ac_try_echo=$ac_try;; |
| 8669 | esac |
| 8670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8671 | (eval "$ac_try") 2>&5 |
| 8672 | ac_status=$? |
| 8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8674 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8675 | llvm_cv_link_use_r=yes |
| 8676 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8677 | echo "$as_me: failed program was:" >&5 |
| 8678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8679 | |
| 8680 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8681 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8682 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8683 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8684 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8685 | CFLAGS="$oldcflags" |
| 8686 | ac_ext=c |
| 8687 | ac_cpp='$CPP $CPPFLAGS' |
| 8688 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8689 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8690 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8691 | |
| 8692 | |
| 8693 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8694 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8695 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8696 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8698 | cat >>confdefs.h <<\_ACEOF |
| 8699 | #define HAVE_LINK_R 1 |
| 8700 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8701 | |
| 8702 | fi |
| 8703 | |
| 8704 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8705 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8706 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8707 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8709 | else |
| 8710 | ac_ext=c |
| 8711 | ac_cpp='$CPP $CPPFLAGS' |
| 8712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8715 | |
| 8716 | oldcflags="$CFLAGS" |
| 8717 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8718 | cat >conftest.$ac_ext <<_ACEOF |
| 8719 | /* confdefs.h. */ |
| 8720 | _ACEOF |
| 8721 | cat confdefs.h >>conftest.$ac_ext |
| 8722 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8723 | /* end confdefs.h. */ |
| 8724 | |
| 8725 | int |
| 8726 | main () |
| 8727 | { |
| 8728 | int main() { return 0; } |
| 8729 | ; |
| 8730 | return 0; |
| 8731 | } |
| 8732 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8734 | if { (ac_try="$ac_link" |
| 8735 | case "(($ac_try" in |
| 8736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8737 | *) ac_try_echo=$ac_try;; |
| 8738 | esac |
| 8739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8740 | (eval "$ac_link") 2>conftest.er1 |
| 8741 | ac_status=$? |
| 8742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8743 | rm -f conftest.er1 |
| 8744 | cat conftest.err >&5 |
| 8745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8746 | (exit $ac_status); } && |
| 8747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8748 | { (case "(($ac_try" in |
| 8749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8750 | *) ac_try_echo=$ac_try;; |
| 8751 | esac |
| 8752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8753 | (eval "$ac_try") 2>&5 |
| 8754 | ac_status=$? |
| 8755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8756 | (exit $ac_status); }; } && |
| 8757 | { ac_try='test -s conftest$ac_exeext' |
| 8758 | { (case "(($ac_try" in |
| 8759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8760 | *) ac_try_echo=$ac_try;; |
| 8761 | esac |
| 8762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8763 | (eval "$ac_try") 2>&5 |
| 8764 | ac_status=$? |
| 8765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8766 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8767 | llvm_cv_link_use_export_dynamic=yes |
| 8768 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8769 | echo "$as_me: failed program was:" >&5 |
| 8770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8771 | |
| 8772 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8773 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8774 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8775 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8776 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8777 | CFLAGS="$oldcflags" |
| 8778 | ac_ext=c |
| 8779 | ac_cpp='$CPP $CPPFLAGS' |
| 8780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8783 | |
| 8784 | |
| 8785 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8786 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8787 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8788 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8789 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8790 | cat >>confdefs.h <<\_ACEOF |
| 8791 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8792 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8793 | |
| 8794 | fi |
| 8795 | |
| 8796 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8797 | |
| 8798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8799 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8800 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8801 | if test "${ac_cv_c_const+set}" = set; then |
| 8802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8803 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8804 | cat >conftest.$ac_ext <<_ACEOF |
| 8805 | /* confdefs.h. */ |
| 8806 | _ACEOF |
| 8807 | cat confdefs.h >>conftest.$ac_ext |
| 8808 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8809 | /* end confdefs.h. */ |
| 8810 | |
| 8811 | int |
| 8812 | main () |
| 8813 | { |
| 8814 | /* FIXME: Include the comments suggested by Paul. */ |
| 8815 | #ifndef __cplusplus |
| 8816 | /* Ultrix mips cc rejects this. */ |
| 8817 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8818 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8819 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8820 | char const *const *ccp; |
| 8821 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8822 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8823 | struct point {int x, y;}; |
| 8824 | static struct point const zero = {0,0}; |
| 8825 | /* AIX XL C 1.02.0.0 rejects this. |
| 8826 | It does not let you subtract one const X* pointer from another in |
| 8827 | an arm of an if-expression whose if-part is not a constant |
| 8828 | expression */ |
| 8829 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8830 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8831 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8832 | ++ccp; |
| 8833 | p = (char**) ccp; |
| 8834 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8835 | { /* SCO 3.2v4 cc rejects this. */ |
| 8836 | char *t; |
| 8837 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8838 | |
| 8839 | *t++ = 0; |
| 8840 | if (s) return 0; |
| 8841 | } |
| 8842 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8843 | int x[] = {25, 17}; |
| 8844 | const int *foo = &x[0]; |
| 8845 | ++foo; |
| 8846 | } |
| 8847 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8848 | typedef const int *iptr; |
| 8849 | iptr p = 0; |
| 8850 | ++p; |
| 8851 | } |
| 8852 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8853 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8854 | struct s { int j; const int *ap[3]; }; |
| 8855 | struct s *b; b->j = 5; |
| 8856 | } |
| 8857 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8858 | const int foo = 10; |
| 8859 | if (!foo) return 0; |
| 8860 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8861 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8862 | #endif |
| 8863 | |
| 8864 | ; |
| 8865 | return 0; |
| 8866 | } |
| 8867 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8868 | rm -f conftest.$ac_objext |
| 8869 | if { (ac_try="$ac_compile" |
| 8870 | case "(($ac_try" in |
| 8871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8872 | *) ac_try_echo=$ac_try;; |
| 8873 | esac |
| 8874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8875 | (eval "$ac_compile") 2>conftest.er1 |
| 8876 | ac_status=$? |
| 8877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8878 | rm -f conftest.er1 |
| 8879 | cat conftest.err >&5 |
| 8880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8881 | (exit $ac_status); } && |
| 8882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8883 | { (case "(($ac_try" in |
| 8884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8885 | *) ac_try_echo=$ac_try;; |
| 8886 | esac |
| 8887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8888 | (eval "$ac_try") 2>&5 |
| 8889 | ac_status=$? |
| 8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8891 | (exit $ac_status); }; } && |
| 8892 | { ac_try='test -s conftest.$ac_objext' |
| 8893 | { (case "(($ac_try" in |
| 8894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8895 | *) ac_try_echo=$ac_try;; |
| 8896 | esac |
| 8897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8898 | (eval "$ac_try") 2>&5 |
| 8899 | ac_status=$? |
| 8900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8901 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8902 | ac_cv_c_const=yes |
| 8903 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8904 | echo "$as_me: failed program was:" >&5 |
| 8905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8906 | |
| 8907 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8908 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8911 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8912 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8913 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8914 | if test $ac_cv_c_const = no; then |
| 8915 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8916 | cat >>confdefs.h <<\_ACEOF |
| 8917 | #define const |
| 8918 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8919 | |
| 8920 | fi |
| 8921 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8922 | |
| 8923 | |
| 8924 | |
| 8925 | |
| 8926 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8927 | ac_header_dirent=no |
| 8928 | 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] | 8929 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8930 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8931 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8934 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8935 | cat >conftest.$ac_ext <<_ACEOF |
| 8936 | /* confdefs.h. */ |
| 8937 | _ACEOF |
| 8938 | cat confdefs.h >>conftest.$ac_ext |
| 8939 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8940 | /* end confdefs.h. */ |
| 8941 | #include <sys/types.h> |
| 8942 | #include <$ac_hdr> |
| 8943 | |
| 8944 | int |
| 8945 | main () |
| 8946 | { |
| 8947 | if ((DIR *) 0) |
| 8948 | return 0; |
| 8949 | ; |
| 8950 | return 0; |
| 8951 | } |
| 8952 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8953 | rm -f conftest.$ac_objext |
| 8954 | if { (ac_try="$ac_compile" |
| 8955 | case "(($ac_try" in |
| 8956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8957 | *) ac_try_echo=$ac_try;; |
| 8958 | esac |
| 8959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8960 | (eval "$ac_compile") 2>conftest.er1 |
| 8961 | ac_status=$? |
| 8962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8963 | rm -f conftest.er1 |
| 8964 | cat conftest.err >&5 |
| 8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8966 | (exit $ac_status); } && |
| 8967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8968 | { (case "(($ac_try" in |
| 8969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8970 | *) ac_try_echo=$ac_try;; |
| 8971 | esac |
| 8972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8973 | (eval "$ac_try") 2>&5 |
| 8974 | ac_status=$? |
| 8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8976 | (exit $ac_status); }; } && |
| 8977 | { ac_try='test -s conftest.$ac_objext' |
| 8978 | { (case "(($ac_try" in |
| 8979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8980 | *) ac_try_echo=$ac_try;; |
| 8981 | esac |
| 8982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8983 | (eval "$ac_try") 2>&5 |
| 8984 | ac_status=$? |
| 8985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8986 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8987 | eval "$as_ac_Header=yes" |
| 8988 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8989 | echo "$as_me: failed program was:" >&5 |
| 8990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8991 | |
| 8992 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8993 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8996 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8997 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8998 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8999 | echo "${ECHO_T}$ac_res" >&6; } |
| 9000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9001 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9002 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9003 | _ACEOF |
| 9004 | |
| 9005 | ac_header_dirent=$ac_hdr; break |
| 9006 | fi |
| 9007 | |
| 9008 | done |
| 9009 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9010 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9011 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9012 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9013 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9015 | else |
| 9016 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9017 | cat >conftest.$ac_ext <<_ACEOF |
| 9018 | /* confdefs.h. */ |
| 9019 | _ACEOF |
| 9020 | cat confdefs.h >>conftest.$ac_ext |
| 9021 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9022 | /* end confdefs.h. */ |
| 9023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9024 | /* Override any GCC internal prototype to avoid an error. |
| 9025 | Use char because int might match the return type of a GCC |
| 9026 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9027 | #ifdef __cplusplus |
| 9028 | extern "C" |
| 9029 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9030 | char opendir (); |
| 9031 | int |
| 9032 | main () |
| 9033 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9034 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9035 | ; |
| 9036 | return 0; |
| 9037 | } |
| 9038 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9039 | for ac_lib in '' dir; do |
| 9040 | if test -z "$ac_lib"; then |
| 9041 | ac_res="none required" |
| 9042 | else |
| 9043 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9044 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9045 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9046 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9047 | if { (ac_try="$ac_link" |
| 9048 | case "(($ac_try" in |
| 9049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9050 | *) ac_try_echo=$ac_try;; |
| 9051 | esac |
| 9052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9053 | (eval "$ac_link") 2>conftest.er1 |
| 9054 | ac_status=$? |
| 9055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9056 | rm -f conftest.er1 |
| 9057 | cat conftest.err >&5 |
| 9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9059 | (exit $ac_status); } && |
| 9060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9061 | { (case "(($ac_try" in |
| 9062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9063 | *) ac_try_echo=$ac_try;; |
| 9064 | esac |
| 9065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9066 | (eval "$ac_try") 2>&5 |
| 9067 | ac_status=$? |
| 9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9069 | (exit $ac_status); }; } && |
| 9070 | { ac_try='test -s conftest$ac_exeext' |
| 9071 | { (case "(($ac_try" in |
| 9072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9073 | *) ac_try_echo=$ac_try;; |
| 9074 | esac |
| 9075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9076 | (eval "$ac_try") 2>&5 |
| 9077 | ac_status=$? |
| 9078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9079 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9080 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9081 | else |
| 9082 | echo "$as_me: failed program was:" >&5 |
| 9083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9084 | |
| 9085 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9086 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9087 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9088 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9089 | conftest$ac_exeext |
| 9090 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9091 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9092 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9093 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9094 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9095 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9096 | else |
| 9097 | ac_cv_search_opendir=no |
| 9098 | fi |
| 9099 | rm conftest.$ac_ext |
| 9100 | LIBS=$ac_func_search_save_LIBS |
| 9101 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9102 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9103 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9104 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9105 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9106 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9108 | fi |
| 9109 | |
| 9110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9111 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9112 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9113 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9115 | else |
| 9116 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9117 | cat >conftest.$ac_ext <<_ACEOF |
| 9118 | /* confdefs.h. */ |
| 9119 | _ACEOF |
| 9120 | cat confdefs.h >>conftest.$ac_ext |
| 9121 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9122 | /* end confdefs.h. */ |
| 9123 | |
| 9124 | /* Override any GCC internal prototype to avoid an error. |
| 9125 | Use char because int might match the return type of a GCC |
| 9126 | builtin and then its argument prototype would still apply. */ |
| 9127 | #ifdef __cplusplus |
| 9128 | extern "C" |
| 9129 | #endif |
| 9130 | char opendir (); |
| 9131 | int |
| 9132 | main () |
| 9133 | { |
| 9134 | return opendir (); |
| 9135 | ; |
| 9136 | return 0; |
| 9137 | } |
| 9138 | _ACEOF |
| 9139 | for ac_lib in '' x; do |
| 9140 | if test -z "$ac_lib"; then |
| 9141 | ac_res="none required" |
| 9142 | else |
| 9143 | ac_res=-l$ac_lib |
| 9144 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9145 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9146 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9147 | if { (ac_try="$ac_link" |
| 9148 | case "(($ac_try" in |
| 9149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9150 | *) ac_try_echo=$ac_try;; |
| 9151 | esac |
| 9152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9153 | (eval "$ac_link") 2>conftest.er1 |
| 9154 | ac_status=$? |
| 9155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9156 | rm -f conftest.er1 |
| 9157 | cat conftest.err >&5 |
| 9158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9159 | (exit $ac_status); } && |
| 9160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9161 | { (case "(($ac_try" in |
| 9162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9163 | *) ac_try_echo=$ac_try;; |
| 9164 | esac |
| 9165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9166 | (eval "$ac_try") 2>&5 |
| 9167 | ac_status=$? |
| 9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9169 | (exit $ac_status); }; } && |
| 9170 | { ac_try='test -s conftest$ac_exeext' |
| 9171 | { (case "(($ac_try" in |
| 9172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9173 | *) ac_try_echo=$ac_try;; |
| 9174 | esac |
| 9175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9176 | (eval "$ac_try") 2>&5 |
| 9177 | ac_status=$? |
| 9178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9179 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9180 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9181 | else |
| 9182 | echo "$as_me: failed program was:" >&5 |
| 9183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9184 | |
| 9185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9186 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9187 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9188 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9189 | conftest$ac_exeext |
| 9190 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9191 | break |
| 9192 | fi |
| 9193 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9194 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9195 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9196 | else |
| 9197 | ac_cv_search_opendir=no |
| 9198 | fi |
| 9199 | rm conftest.$ac_ext |
| 9200 | LIBS=$ac_func_search_save_LIBS |
| 9201 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9202 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9203 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9204 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9205 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9206 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9207 | |
| 9208 | fi |
| 9209 | |
| 9210 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9213 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9214 | do |
| 9215 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9216 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9217 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9219 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9221 | fi |
| 9222 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9224 | echo "${ECHO_T}$ac_res" >&6; } |
| 9225 | else |
| 9226 | # Is the header compilable? |
| 9227 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9228 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9229 | cat >conftest.$ac_ext <<_ACEOF |
| 9230 | /* confdefs.h. */ |
| 9231 | _ACEOF |
| 9232 | cat confdefs.h >>conftest.$ac_ext |
| 9233 | cat >>conftest.$ac_ext <<_ACEOF |
| 9234 | /* end confdefs.h. */ |
| 9235 | $ac_includes_default |
| 9236 | #include <$ac_header> |
| 9237 | _ACEOF |
| 9238 | rm -f conftest.$ac_objext |
| 9239 | if { (ac_try="$ac_compile" |
| 9240 | case "(($ac_try" in |
| 9241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9242 | *) ac_try_echo=$ac_try;; |
| 9243 | esac |
| 9244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9245 | (eval "$ac_compile") 2>conftest.er1 |
| 9246 | ac_status=$? |
| 9247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9248 | rm -f conftest.er1 |
| 9249 | cat conftest.err >&5 |
| 9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9251 | (exit $ac_status); } && |
| 9252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9253 | { (case "(($ac_try" in |
| 9254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9255 | *) ac_try_echo=$ac_try;; |
| 9256 | esac |
| 9257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9258 | (eval "$ac_try") 2>&5 |
| 9259 | ac_status=$? |
| 9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9261 | (exit $ac_status); }; } && |
| 9262 | { ac_try='test -s conftest.$ac_objext' |
| 9263 | { (case "(($ac_try" in |
| 9264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9265 | *) ac_try_echo=$ac_try;; |
| 9266 | esac |
| 9267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9268 | (eval "$ac_try") 2>&5 |
| 9269 | ac_status=$? |
| 9270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9271 | (exit $ac_status); }; }; then |
| 9272 | ac_header_compiler=yes |
| 9273 | else |
| 9274 | echo "$as_me: failed program was:" >&5 |
| 9275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9276 | |
| 9277 | ac_header_compiler=no |
| 9278 | fi |
| 9279 | |
| 9280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9281 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9282 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9283 | |
| 9284 | # Is the header present? |
| 9285 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9286 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9287 | cat >conftest.$ac_ext <<_ACEOF |
| 9288 | /* confdefs.h. */ |
| 9289 | _ACEOF |
| 9290 | cat confdefs.h >>conftest.$ac_ext |
| 9291 | cat >>conftest.$ac_ext <<_ACEOF |
| 9292 | /* end confdefs.h. */ |
| 9293 | #include <$ac_header> |
| 9294 | _ACEOF |
| 9295 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9296 | case "(($ac_try" in |
| 9297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9298 | *) ac_try_echo=$ac_try;; |
| 9299 | esac |
| 9300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9301 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9302 | ac_status=$? |
| 9303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9304 | rm -f conftest.er1 |
| 9305 | cat conftest.err >&5 |
| 9306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9307 | (exit $ac_status); } >/dev/null; then |
| 9308 | if test -s conftest.err; then |
| 9309 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9311 | else |
| 9312 | ac_cpp_err= |
| 9313 | fi |
| 9314 | else |
| 9315 | ac_cpp_err=yes |
| 9316 | fi |
| 9317 | if test -z "$ac_cpp_err"; then |
| 9318 | ac_header_preproc=yes |
| 9319 | else |
| 9320 | echo "$as_me: failed program was:" >&5 |
| 9321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9322 | |
| 9323 | ac_header_preproc=no |
| 9324 | fi |
| 9325 | |
| 9326 | rm -f conftest.err conftest.$ac_ext |
| 9327 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9328 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9329 | |
| 9330 | # So? What about this header? |
| 9331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9332 | yes:no: ) |
| 9333 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9334 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9336 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9337 | ac_header_preproc=yes |
| 9338 | ;; |
| 9339 | no:yes:* ) |
| 9340 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9341 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9342 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9343 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9344 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9345 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9346 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9347 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9349 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9350 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9351 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9352 | ( cat <<\_ASBOX |
| 9353 | ## ----------------------------------- ## |
| 9354 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9355 | ## ----------------------------------- ## |
| 9356 | _ASBOX |
| 9357 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9358 | ;; |
| 9359 | esac |
| 9360 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9362 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9364 | else |
| 9365 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9366 | fi |
| 9367 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9368 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9369 | echo "${ECHO_T}$ac_res" >&6; } |
| 9370 | |
| 9371 | fi |
| 9372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9373 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9375 | _ACEOF |
| 9376 | |
| 9377 | fi |
| 9378 | |
| 9379 | done |
| 9380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9381 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9382 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9383 | enableval=$enable_ltdl_install; |
| 9384 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9385 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9386 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9387 | |
| 9388 | |
| 9389 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9390 | INSTALL_LTDL_TRUE= |
| 9391 | INSTALL_LTDL_FALSE='#' |
| 9392 | else |
| 9393 | INSTALL_LTDL_TRUE='#' |
| 9394 | INSTALL_LTDL_FALSE= |
| 9395 | fi |
| 9396 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9397 | |
| 9398 | |
| 9399 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9400 | CONVENIENCE_LTDL_TRUE= |
| 9401 | CONVENIENCE_LTDL_FALSE='#' |
| 9402 | else |
| 9403 | CONVENIENCE_LTDL_TRUE='#' |
| 9404 | CONVENIENCE_LTDL_FALSE= |
| 9405 | fi |
| 9406 | |
| 9407 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9408 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9409 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9410 | library_names_spec= |
| 9411 | libname_spec='lib$name' |
| 9412 | soname_spec= |
| 9413 | shrext_cmds=".so" |
| 9414 | postinstall_cmds= |
| 9415 | postuninstall_cmds= |
| 9416 | finish_cmds= |
| 9417 | finish_eval= |
| 9418 | shlibpath_var= |
| 9419 | shlibpath_overrides_runpath=unknown |
| 9420 | version_type=none |
| 9421 | dynamic_linker="$host_os ld.so" |
| 9422 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9423 | if test "$GCC" = yes; then |
| 9424 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9425 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9426 | # if the path contains ";" then we assume it to be the separator |
| 9427 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9428 | # assumed that no part of a normal pathname contains ";" but that should |
| 9429 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9430 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9431 | else |
| 9432 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9433 | fi |
| 9434 | else |
| 9435 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9436 | fi |
| 9437 | need_lib_prefix=unknown |
| 9438 | hardcode_into_libs=no |
| 9439 | |
| 9440 | # when you set need_version to no, make sure it does not cause -set_version |
| 9441 | # flags to be left without arguments |
| 9442 | need_version=unknown |
| 9443 | |
| 9444 | case $host_os in |
| 9445 | aix3*) |
| 9446 | version_type=linux |
| 9447 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9448 | shlibpath_var=LIBPATH |
| 9449 | |
| 9450 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9451 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9452 | ;; |
| 9453 | |
| 9454 | aix4* | aix5*) |
| 9455 | version_type=linux |
| 9456 | need_lib_prefix=no |
| 9457 | need_version=no |
| 9458 | hardcode_into_libs=yes |
| 9459 | if test "$host_cpu" = ia64; then |
| 9460 | # AIX 5 supports IA64 |
| 9461 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9462 | shlibpath_var=LD_LIBRARY_PATH |
| 9463 | else |
| 9464 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9465 | # for dependence libraries. The import file would start with |
| 9466 | # the line `#! .'. This would cause the generated library to |
| 9467 | # depend on `.', always an invalid library. This was fixed in |
| 9468 | # development snapshots of GCC prior to 3.0. |
| 9469 | case $host_os in |
| 9470 | aix4 | aix4.[01] | aix4.[01].*) |
| 9471 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9472 | echo ' yes ' |
| 9473 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9474 | : |
| 9475 | else |
| 9476 | can_build_shared=no |
| 9477 | fi |
| 9478 | ;; |
| 9479 | esac |
| 9480 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9481 | # soname into executable. Probably we can add versioning support to |
| 9482 | # collect2, so additional links can be useful in future. |
| 9483 | if test "$aix_use_runtimelinking" = yes; then |
| 9484 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9485 | # instead of lib<name>.a to let people know that these are not |
| 9486 | # typical AIX shared libraries. |
| 9487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9488 | else |
| 9489 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9490 | # and later when we are not doing run time linking. |
| 9491 | library_names_spec='${libname}${release}.a $libname.a' |
| 9492 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9493 | fi |
| 9494 | shlibpath_var=LIBPATH |
| 9495 | fi |
| 9496 | ;; |
| 9497 | |
| 9498 | amigaos*) |
| 9499 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9500 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9501 | 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' |
| 9502 | ;; |
| 9503 | |
| 9504 | beos*) |
| 9505 | library_names_spec='${libname}${shared_ext}' |
| 9506 | dynamic_linker="$host_os ld.so" |
| 9507 | shlibpath_var=LIBRARY_PATH |
| 9508 | ;; |
| 9509 | |
| 9510 | bsdi[45]*) |
| 9511 | version_type=linux |
| 9512 | need_version=no |
| 9513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9514 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9515 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9516 | shlibpath_var=LD_LIBRARY_PATH |
| 9517 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9518 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9519 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9520 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9521 | # libtool to hard-code these into programs |
| 9522 | ;; |
| 9523 | |
| 9524 | cygwin* | mingw* | pw32*) |
| 9525 | version_type=windows |
| 9526 | shrext_cmds=".dll" |
| 9527 | need_version=no |
| 9528 | need_lib_prefix=no |
| 9529 | |
| 9530 | case $GCC,$host_os in |
| 9531 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9532 | library_names_spec='$libname.dll.a' |
| 9533 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9534 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9535 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9536 | dldir=$destdir/`dirname \$dlpath`~ |
| 9537 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9538 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9539 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9540 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9541 | dlpath=$dir/\$dldll~ |
| 9542 | $rm \$dlpath' |
| 9543 | shlibpath_overrides_runpath=yes |
| 9544 | |
| 9545 | case $host_os in |
| 9546 | cygwin*) |
| 9547 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9548 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9549 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9550 | ;; |
| 9551 | mingw*) |
| 9552 | # MinGW DLLs use traditional 'lib' prefix |
| 9553 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9554 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9555 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9556 | # It is most probably a Windows format PATH printed by |
| 9557 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9558 | # path with ; separators, and with drive letters. We can handle the |
| 9559 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9560 | # especially as we might pass files found there to a mingw objdump, |
| 9561 | # which wouldn't understand a cygwinified path. Ahh. |
| 9562 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9563 | else |
| 9564 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9565 | fi |
| 9566 | ;; |
| 9567 | pw32*) |
| 9568 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9569 | 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] | 9570 | ;; |
| 9571 | esac |
| 9572 | ;; |
| 9573 | |
| 9574 | *) |
| 9575 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9576 | ;; |
| 9577 | esac |
| 9578 | dynamic_linker='Win32 ld.exe' |
| 9579 | # FIXME: first we should search . and the directory the executable is in |
| 9580 | shlibpath_var=PATH |
| 9581 | ;; |
| 9582 | |
| 9583 | darwin* | rhapsody*) |
| 9584 | dynamic_linker="$host_os dyld" |
| 9585 | version_type=darwin |
| 9586 | need_lib_prefix=no |
| 9587 | need_version=no |
| 9588 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9589 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9590 | shlibpath_overrides_runpath=yes |
| 9591 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9592 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9593 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9594 | if test "$GCC" = yes; then |
| 9595 | 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"` |
| 9596 | else |
| 9597 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9598 | fi |
| 9599 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9600 | ;; |
| 9601 | |
| 9602 | dgux*) |
| 9603 | version_type=linux |
| 9604 | need_lib_prefix=no |
| 9605 | need_version=no |
| 9606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9607 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9608 | shlibpath_var=LD_LIBRARY_PATH |
| 9609 | ;; |
| 9610 | |
| 9611 | freebsd1*) |
| 9612 | dynamic_linker=no |
| 9613 | ;; |
| 9614 | |
| 9615 | kfreebsd*-gnu) |
| 9616 | version_type=linux |
| 9617 | need_lib_prefix=no |
| 9618 | need_version=no |
| 9619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9620 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9621 | shlibpath_var=LD_LIBRARY_PATH |
| 9622 | shlibpath_overrides_runpath=no |
| 9623 | hardcode_into_libs=yes |
| 9624 | dynamic_linker='GNU ld.so' |
| 9625 | ;; |
| 9626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9627 | freebsd* | dragonfly*) |
| 9628 | # DragonFly does not have aout. When/if they implement a new |
| 9629 | # versioning mechanism, adjust this. |
| 9630 | if test -x /usr/bin/objformat; then |
| 9631 | objformat=`/usr/bin/objformat` |
| 9632 | else |
| 9633 | case $host_os in |
| 9634 | freebsd[123]*) objformat=aout ;; |
| 9635 | *) objformat=elf ;; |
| 9636 | esac |
| 9637 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9638 | version_type=freebsd-$objformat |
| 9639 | case $version_type in |
| 9640 | freebsd-elf*) |
| 9641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9642 | need_version=no |
| 9643 | need_lib_prefix=no |
| 9644 | ;; |
| 9645 | freebsd-*) |
| 9646 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9647 | need_version=yes |
| 9648 | ;; |
| 9649 | esac |
| 9650 | shlibpath_var=LD_LIBRARY_PATH |
| 9651 | case $host_os in |
| 9652 | freebsd2*) |
| 9653 | shlibpath_overrides_runpath=yes |
| 9654 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9655 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9656 | shlibpath_overrides_runpath=yes |
| 9657 | hardcode_into_libs=yes |
| 9658 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9659 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9660 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9661 | shlibpath_overrides_runpath=no |
| 9662 | hardcode_into_libs=yes |
| 9663 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9664 | freebsd*) # from 4.6 on |
| 9665 | shlibpath_overrides_runpath=yes |
| 9666 | hardcode_into_libs=yes |
| 9667 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9668 | esac |
| 9669 | ;; |
| 9670 | |
| 9671 | gnu*) |
| 9672 | version_type=linux |
| 9673 | need_lib_prefix=no |
| 9674 | need_version=no |
| 9675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9676 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9677 | shlibpath_var=LD_LIBRARY_PATH |
| 9678 | hardcode_into_libs=yes |
| 9679 | ;; |
| 9680 | |
| 9681 | hpux9* | hpux10* | hpux11*) |
| 9682 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9683 | # link against other versions. |
| 9684 | version_type=sunos |
| 9685 | need_lib_prefix=no |
| 9686 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9687 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9688 | ia64*) |
| 9689 | shrext_cmds='.so' |
| 9690 | hardcode_into_libs=yes |
| 9691 | dynamic_linker="$host_os dld.so" |
| 9692 | shlibpath_var=LD_LIBRARY_PATH |
| 9693 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9695 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9696 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9697 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9698 | else |
| 9699 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9700 | fi |
| 9701 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9702 | ;; |
| 9703 | hppa*64*) |
| 9704 | shrext_cmds='.sl' |
| 9705 | hardcode_into_libs=yes |
| 9706 | dynamic_linker="$host_os dld.sl" |
| 9707 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9708 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9710 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9711 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9712 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9713 | ;; |
| 9714 | *) |
| 9715 | shrext_cmds='.sl' |
| 9716 | dynamic_linker="$host_os dld.sl" |
| 9717 | shlibpath_var=SHLIB_PATH |
| 9718 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9720 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9721 | ;; |
| 9722 | esac |
| 9723 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9724 | postinstall_cmds='chmod 555 $lib' |
| 9725 | ;; |
| 9726 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9727 | interix3*) |
| 9728 | version_type=linux |
| 9729 | need_lib_prefix=no |
| 9730 | need_version=no |
| 9731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9732 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9733 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9734 | shlibpath_var=LD_LIBRARY_PATH |
| 9735 | shlibpath_overrides_runpath=no |
| 9736 | hardcode_into_libs=yes |
| 9737 | ;; |
| 9738 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9739 | irix5* | irix6* | nonstopux*) |
| 9740 | case $host_os in |
| 9741 | nonstopux*) version_type=nonstopux ;; |
| 9742 | *) |
| 9743 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9744 | version_type=linux |
| 9745 | else |
| 9746 | version_type=irix |
| 9747 | fi ;; |
| 9748 | esac |
| 9749 | need_lib_prefix=no |
| 9750 | need_version=no |
| 9751 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9753 | case $host_os in |
| 9754 | irix5* | nonstopux*) |
| 9755 | libsuff= shlibsuff= |
| 9756 | ;; |
| 9757 | *) |
| 9758 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9759 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9760 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9761 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9762 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9763 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9764 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9765 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9766 | esac |
| 9767 | ;; |
| 9768 | esac |
| 9769 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9770 | shlibpath_overrides_runpath=no |
| 9771 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9772 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9773 | hardcode_into_libs=yes |
| 9774 | ;; |
| 9775 | |
| 9776 | # No shared lib support for Linux oldld, aout, or coff. |
| 9777 | linux*oldld* | linux*aout* | linux*coff*) |
| 9778 | dynamic_linker=no |
| 9779 | ;; |
| 9780 | |
| 9781 | # This must be Linux ELF. |
| 9782 | linux*) |
| 9783 | version_type=linux |
| 9784 | need_lib_prefix=no |
| 9785 | need_version=no |
| 9786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9787 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9788 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9789 | shlibpath_var=LD_LIBRARY_PATH |
| 9790 | shlibpath_overrides_runpath=no |
| 9791 | # This implies no fast_install, which is unacceptable. |
| 9792 | # Some rework will be needed to allow for fast_install |
| 9793 | # before this can be enabled. |
| 9794 | hardcode_into_libs=yes |
| 9795 | |
| 9796 | # Append ld.so.conf contents to the search path |
| 9797 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9798 | 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] | 9799 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9800 | fi |
| 9801 | |
| 9802 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9803 | # powerpc, because MkLinux only supported shared libraries with the |
| 9804 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9805 | # most powerpc-linux boxes support dynamic linking these days and |
| 9806 | # people can always --disable-shared, the test was removed, and we |
| 9807 | # assume the GNU/Linux dynamic linker is in use. |
| 9808 | dynamic_linker='GNU/Linux ld.so' |
| 9809 | ;; |
| 9810 | |
| 9811 | knetbsd*-gnu) |
| 9812 | version_type=linux |
| 9813 | need_lib_prefix=no |
| 9814 | need_version=no |
| 9815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9816 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9817 | shlibpath_var=LD_LIBRARY_PATH |
| 9818 | shlibpath_overrides_runpath=no |
| 9819 | hardcode_into_libs=yes |
| 9820 | dynamic_linker='GNU ld.so' |
| 9821 | ;; |
| 9822 | |
| 9823 | netbsd*) |
| 9824 | version_type=sunos |
| 9825 | need_lib_prefix=no |
| 9826 | need_version=no |
| 9827 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9829 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9830 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9831 | else |
| 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 | dynamic_linker='NetBSD ld.elf_so' |
| 9835 | fi |
| 9836 | shlibpath_var=LD_LIBRARY_PATH |
| 9837 | shlibpath_overrides_runpath=yes |
| 9838 | hardcode_into_libs=yes |
| 9839 | ;; |
| 9840 | |
| 9841 | newsos6) |
| 9842 | version_type=linux |
| 9843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9844 | shlibpath_var=LD_LIBRARY_PATH |
| 9845 | shlibpath_overrides_runpath=yes |
| 9846 | ;; |
| 9847 | |
| 9848 | nto-qnx*) |
| 9849 | version_type=linux |
| 9850 | need_lib_prefix=no |
| 9851 | need_version=no |
| 9852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9853 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9854 | shlibpath_var=LD_LIBRARY_PATH |
| 9855 | shlibpath_overrides_runpath=yes |
| 9856 | ;; |
| 9857 | |
| 9858 | openbsd*) |
| 9859 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9860 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9861 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9862 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9863 | case $host_os in |
| 9864 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9865 | *) need_version=no ;; |
| 9866 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9869 | shlibpath_var=LD_LIBRARY_PATH |
| 9870 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9871 | case $host_os in |
| 9872 | openbsd2.[89] | openbsd2.[89].*) |
| 9873 | shlibpath_overrides_runpath=no |
| 9874 | ;; |
| 9875 | *) |
| 9876 | shlibpath_overrides_runpath=yes |
| 9877 | ;; |
| 9878 | esac |
| 9879 | else |
| 9880 | shlibpath_overrides_runpath=yes |
| 9881 | fi |
| 9882 | ;; |
| 9883 | |
| 9884 | os2*) |
| 9885 | libname_spec='$name' |
| 9886 | shrext_cmds=".dll" |
| 9887 | need_lib_prefix=no |
| 9888 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9889 | dynamic_linker='OS/2 ld.exe' |
| 9890 | shlibpath_var=LIBPATH |
| 9891 | ;; |
| 9892 | |
| 9893 | osf3* | osf4* | osf5*) |
| 9894 | version_type=osf |
| 9895 | need_lib_prefix=no |
| 9896 | need_version=no |
| 9897 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9899 | shlibpath_var=LD_LIBRARY_PATH |
| 9900 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9901 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9902 | ;; |
| 9903 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9904 | solaris*) |
| 9905 | version_type=linux |
| 9906 | need_lib_prefix=no |
| 9907 | need_version=no |
| 9908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9910 | shlibpath_var=LD_LIBRARY_PATH |
| 9911 | shlibpath_overrides_runpath=yes |
| 9912 | hardcode_into_libs=yes |
| 9913 | # ldd complains unless libraries are executable |
| 9914 | postinstall_cmds='chmod +x $lib' |
| 9915 | ;; |
| 9916 | |
| 9917 | sunos4*) |
| 9918 | version_type=sunos |
| 9919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9920 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9921 | shlibpath_var=LD_LIBRARY_PATH |
| 9922 | shlibpath_overrides_runpath=yes |
| 9923 | if test "$with_gnu_ld" = yes; then |
| 9924 | need_lib_prefix=no |
| 9925 | fi |
| 9926 | need_version=yes |
| 9927 | ;; |
| 9928 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9929 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9930 | version_type=linux |
| 9931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9932 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9933 | shlibpath_var=LD_LIBRARY_PATH |
| 9934 | case $host_vendor in |
| 9935 | sni) |
| 9936 | shlibpath_overrides_runpath=no |
| 9937 | need_lib_prefix=no |
| 9938 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9939 | runpath_var=LD_RUN_PATH |
| 9940 | ;; |
| 9941 | siemens) |
| 9942 | need_lib_prefix=no |
| 9943 | ;; |
| 9944 | motorola) |
| 9945 | need_lib_prefix=no |
| 9946 | need_version=no |
| 9947 | shlibpath_overrides_runpath=no |
| 9948 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9949 | ;; |
| 9950 | esac |
| 9951 | ;; |
| 9952 | |
| 9953 | sysv4*MP*) |
| 9954 | if test -d /usr/nec ;then |
| 9955 | version_type=linux |
| 9956 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9957 | soname_spec='$libname${shared_ext}.$major' |
| 9958 | shlibpath_var=LD_LIBRARY_PATH |
| 9959 | fi |
| 9960 | ;; |
| 9961 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9962 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9963 | version_type=freebsd-elf |
| 9964 | need_lib_prefix=no |
| 9965 | need_version=no |
| 9966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9967 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9968 | shlibpath_var=LD_LIBRARY_PATH |
| 9969 | hardcode_into_libs=yes |
| 9970 | if test "$with_gnu_ld" = yes; then |
| 9971 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9972 | shlibpath_overrides_runpath=no |
| 9973 | else |
| 9974 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9975 | shlibpath_overrides_runpath=yes |
| 9976 | case $host_os in |
| 9977 | sco3.2v5*) |
| 9978 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9979 | ;; |
| 9980 | esac |
| 9981 | fi |
| 9982 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9983 | ;; |
| 9984 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9985 | uts4*) |
| 9986 | version_type=linux |
| 9987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9988 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9989 | shlibpath_var=LD_LIBRARY_PATH |
| 9990 | ;; |
| 9991 | |
| 9992 | *) |
| 9993 | dynamic_linker=no |
| 9994 | ;; |
| 9995 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9996 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9997 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9998 | test "$dynamic_linker" = no && can_build_shared=no |
| 9999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10000 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10001 | if test "$GCC" = yes; then |
| 10002 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10003 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10005 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10006 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10007 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10008 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 10009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10010 | else |
| 10011 | |
| 10012 | module=yes |
| 10013 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10014 | |
| 10015 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10016 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10017 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10018 | if test -n "$libltdl_cv_shlibext"; then |
| 10019 | |
| 10020 | cat >>confdefs.h <<_ACEOF |
| 10021 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10022 | _ACEOF |
| 10023 | |
| 10024 | fi |
| 10025 | |
| 10026 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10027 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10028 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10029 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10031 | else |
| 10032 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10033 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10034 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10035 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10036 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10037 | |
| 10038 | cat >>confdefs.h <<_ACEOF |
| 10039 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10040 | _ACEOF |
| 10041 | |
| 10042 | fi |
| 10043 | |
| 10044 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10045 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10046 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10047 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10049 | else |
| 10050 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10051 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10052 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10053 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10054 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10055 | sys_search_path= |
| 10056 | for dir in $libltdl_cv_sys_search_path; do |
| 10057 | if test -z "$sys_search_path"; then |
| 10058 | sys_search_path="$dir" |
| 10059 | else |
| 10060 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10061 | fi |
| 10062 | done |
| 10063 | |
| 10064 | cat >>confdefs.h <<_ACEOF |
| 10065 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10066 | _ACEOF |
| 10067 | |
| 10068 | fi |
| 10069 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10070 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10071 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10072 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10074 | else |
| 10075 | libltdl_cv_objdir="$objdir" |
| 10076 | if test -n "$objdir"; then |
| 10077 | : |
| 10078 | else |
| 10079 | rm -f .libs 2>/dev/null |
| 10080 | mkdir .libs 2>/dev/null |
| 10081 | if test -d .libs; then |
| 10082 | libltdl_cv_objdir=.libs |
| 10083 | else |
| 10084 | # MS-DOS does not allow filenames that begin with a dot. |
| 10085 | libltdl_cv_objdir=_libs |
| 10086 | fi |
| 10087 | rmdir .libs 2>/dev/null |
| 10088 | fi |
| 10089 | |
| 10090 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10091 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10092 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10093 | |
| 10094 | cat >>confdefs.h <<_ACEOF |
| 10095 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10096 | _ACEOF |
| 10097 | |
| 10098 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10099 | |
| 10100 | |
| 10101 | |
| 10102 | |
| 10103 | # 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] | 10104 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10105 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10106 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10108 | else |
| 10109 | |
| 10110 | # These are sane defaults that work on at least a few old systems. |
| 10111 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10112 | |
| 10113 | # Character class describing NM global symbol codes. |
| 10114 | symcode='[BCDEGRST]' |
| 10115 | |
| 10116 | # Regexp to match symbols that can be accessed directly from C. |
| 10117 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10118 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10119 | # Transform an extracted symbol line into a proper C declaration |
| 10120 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10121 | |
| 10122 | # Transform an extracted symbol line into symbol name and symbol address |
| 10123 | 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'" |
| 10124 | |
| 10125 | # Define system-specific variables. |
| 10126 | case $host_os in |
| 10127 | aix*) |
| 10128 | symcode='[BCDT]' |
| 10129 | ;; |
| 10130 | cygwin* | mingw* | pw32*) |
| 10131 | symcode='[ABCDGISTW]' |
| 10132 | ;; |
| 10133 | hpux*) # Its linker distinguishes data from code symbols |
| 10134 | if test "$host_cpu" = ia64; then |
| 10135 | symcode='[ABCDEGRST]' |
| 10136 | fi |
| 10137 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10138 | 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'" |
| 10139 | ;; |
| 10140 | linux*) |
| 10141 | if test "$host_cpu" = ia64; then |
| 10142 | symcode='[ABCDGIRSTW]' |
| 10143 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10144 | 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'" |
| 10145 | fi |
| 10146 | ;; |
| 10147 | irix* | nonstopux*) |
| 10148 | symcode='[BCDEGRST]' |
| 10149 | ;; |
| 10150 | osf*) |
| 10151 | symcode='[BCDEGQRST]' |
| 10152 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10153 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10154 | symcode='[BDRT]' |
| 10155 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10156 | sco3.2v5*) |
| 10157 | symcode='[DT]' |
| 10158 | ;; |
| 10159 | sysv4.2uw2*) |
| 10160 | symcode='[DT]' |
| 10161 | ;; |
| 10162 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10163 | symcode='[ABDT]' |
| 10164 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10165 | sysv4) |
| 10166 | symcode='[DFNSTU]' |
| 10167 | ;; |
| 10168 | esac |
| 10169 | |
| 10170 | # Handle CRLF in mingw tool chain |
| 10171 | opt_cr= |
| 10172 | case $build_os in |
| 10173 | mingw*) |
| 10174 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10175 | ;; |
| 10176 | esac |
| 10177 | |
| 10178 | # If we're using GNU nm, then use its standard symbol codes. |
| 10179 | case `$NM -V 2>&1` in |
| 10180 | *GNU* | *'with BFD'*) |
| 10181 | symcode='[ABCDGIRSTW]' ;; |
| 10182 | esac |
| 10183 | |
| 10184 | # Try without a prefix undercore, then with it. |
| 10185 | for ac_symprfx in "" "_"; do |
| 10186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10187 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10188 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10189 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10190 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10191 | 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] | 10192 | |
| 10193 | # Check to see that the pipe works correctly. |
| 10194 | pipe_works=no |
| 10195 | |
| 10196 | rm -f conftest* |
| 10197 | cat > conftest.$ac_ext <<EOF |
| 10198 | #ifdef __cplusplus |
| 10199 | extern "C" { |
| 10200 | #endif |
| 10201 | char nm_test_var; |
| 10202 | void nm_test_func(){} |
| 10203 | #ifdef __cplusplus |
| 10204 | } |
| 10205 | #endif |
| 10206 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10207 | EOF |
| 10208 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10210 | (eval $ac_compile) 2>&5 |
| 10211 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10213 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10214 | # Now try to grab the symbols. |
| 10215 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10216 | 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] | 10217 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10218 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10220 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10221 | # Try sorting and uniquifying the output. |
| 10222 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10223 | mv -f "$nlist"T "$nlist" |
| 10224 | else |
| 10225 | rm -f "$nlist"T |
| 10226 | fi |
| 10227 | |
| 10228 | # Make sure that we snagged all the symbols we need. |
| 10229 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10230 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10231 | cat <<EOF > conftest.$ac_ext |
| 10232 | #ifdef __cplusplus |
| 10233 | extern "C" { |
| 10234 | #endif |
| 10235 | |
| 10236 | EOF |
| 10237 | # Now generate the symbol file. |
| 10238 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10239 | |
| 10240 | cat <<EOF >> conftest.$ac_ext |
| 10241 | #if defined (__STDC__) && __STDC__ |
| 10242 | # define lt_ptr_t void * |
| 10243 | #else |
| 10244 | # define lt_ptr_t char * |
| 10245 | # define const |
| 10246 | #endif |
| 10247 | |
| 10248 | /* The mapping between symbol names and symbols. */ |
| 10249 | const struct { |
| 10250 | const char *name; |
| 10251 | lt_ptr_t address; |
| 10252 | } |
| 10253 | lt_preloaded_symbols[] = |
| 10254 | { |
| 10255 | EOF |
| 10256 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10257 | cat <<\EOF >> conftest.$ac_ext |
| 10258 | {0, (lt_ptr_t) 0} |
| 10259 | }; |
| 10260 | |
| 10261 | #ifdef __cplusplus |
| 10262 | } |
| 10263 | #endif |
| 10264 | EOF |
| 10265 | # Now try linking the two files. |
| 10266 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10267 | lt_save_LIBS="$LIBS" |
| 10268 | lt_save_CFLAGS="$CFLAGS" |
| 10269 | LIBS="conftstm.$ac_objext" |
| 10270 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10272 | (eval $ac_link) 2>&5 |
| 10273 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10275 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10276 | pipe_works=yes |
| 10277 | fi |
| 10278 | LIBS="$lt_save_LIBS" |
| 10279 | CFLAGS="$lt_save_CFLAGS" |
| 10280 | else |
| 10281 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10282 | fi |
| 10283 | else |
| 10284 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10285 | fi |
| 10286 | else |
| 10287 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10288 | fi |
| 10289 | else |
| 10290 | echo "$progname: failed program was:" >&5 |
| 10291 | cat conftest.$ac_ext >&5 |
| 10292 | fi |
| 10293 | rm -f conftest* conftst* |
| 10294 | |
| 10295 | # Do not use the global_symbol_pipe unless it works. |
| 10296 | if test "$pipe_works" = yes; then |
| 10297 | break |
| 10298 | else |
| 10299 | lt_cv_sys_global_symbol_pipe= |
| 10300 | fi |
| 10301 | done |
| 10302 | |
| 10303 | fi |
| 10304 | |
| 10305 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10306 | lt_cv_sys_global_symbol_to_cdecl= |
| 10307 | fi |
| 10308 | 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] | 10309 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10310 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10311 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10312 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10313 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10314 | fi |
| 10315 | |
| 10316 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10317 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10318 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10319 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10321 | else |
| 10322 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10323 | libltdl_cv_preloaded_symbols=yes |
| 10324 | else |
| 10325 | libltdl_cv_preloaded_symbols=no |
| 10326 | fi |
| 10327 | |
| 10328 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10329 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10330 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10331 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10332 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10333 | cat >>confdefs.h <<\_ACEOF |
| 10334 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10335 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10336 | |
| 10337 | fi |
| 10338 | |
| 10339 | LIBADD_DL= |
| 10340 | |
| 10341 | ac_ext=c |
| 10342 | ac_cpp='$CPP $CPPFLAGS' |
| 10343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10346 | |
| 10347 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10348 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10349 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10350 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10352 | else |
| 10353 | cat >conftest.$ac_ext <<_ACEOF |
| 10354 | /* confdefs.h. */ |
| 10355 | _ACEOF |
| 10356 | cat confdefs.h >>conftest.$ac_ext |
| 10357 | cat >>conftest.$ac_ext <<_ACEOF |
| 10358 | /* end confdefs.h. */ |
| 10359 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10360 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10361 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10362 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10363 | /* System header to define __stub macros and hopefully few prototypes, |
| 10364 | which can conflict with char shl_load (); below. |
| 10365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10366 | <limits.h> exists even on freestanding compilers. */ |
| 10367 | |
| 10368 | #ifdef __STDC__ |
| 10369 | # include <limits.h> |
| 10370 | #else |
| 10371 | # include <assert.h> |
| 10372 | #endif |
| 10373 | |
| 10374 | #undef shl_load |
| 10375 | |
| 10376 | /* Override any GCC internal prototype to avoid an error. |
| 10377 | Use char because int might match the return type of a GCC |
| 10378 | builtin and then its argument prototype would still apply. */ |
| 10379 | #ifdef __cplusplus |
| 10380 | extern "C" |
| 10381 | #endif |
| 10382 | char shl_load (); |
| 10383 | /* The GNU C library defines this for functions which it implements |
| 10384 | to always fail with ENOSYS. Some functions are actually named |
| 10385 | something starting with __ and the normal name is an alias. */ |
| 10386 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10387 | choke me |
| 10388 | #endif |
| 10389 | |
| 10390 | int |
| 10391 | main () |
| 10392 | { |
| 10393 | return shl_load (); |
| 10394 | ; |
| 10395 | return 0; |
| 10396 | } |
| 10397 | _ACEOF |
| 10398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10399 | if { (ac_try="$ac_link" |
| 10400 | case "(($ac_try" in |
| 10401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10402 | *) ac_try_echo=$ac_try;; |
| 10403 | esac |
| 10404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10405 | (eval "$ac_link") 2>conftest.er1 |
| 10406 | ac_status=$? |
| 10407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10408 | rm -f conftest.er1 |
| 10409 | cat conftest.err >&5 |
| 10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10411 | (exit $ac_status); } && |
| 10412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10413 | { (case "(($ac_try" in |
| 10414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10415 | *) ac_try_echo=$ac_try;; |
| 10416 | esac |
| 10417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10418 | (eval "$ac_try") 2>&5 |
| 10419 | ac_status=$? |
| 10420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10421 | (exit $ac_status); }; } && |
| 10422 | { ac_try='test -s conftest$ac_exeext' |
| 10423 | { (case "(($ac_try" in |
| 10424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10425 | *) ac_try_echo=$ac_try;; |
| 10426 | esac |
| 10427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10428 | (eval "$ac_try") 2>&5 |
| 10429 | ac_status=$? |
| 10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10431 | (exit $ac_status); }; }; then |
| 10432 | ac_cv_func_shl_load=yes |
| 10433 | else |
| 10434 | echo "$as_me: failed program was:" >&5 |
| 10435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10436 | |
| 10437 | ac_cv_func_shl_load=no |
| 10438 | fi |
| 10439 | |
| 10440 | rm -f core conftest.err conftest.$ac_objext \ |
| 10441 | conftest$ac_exeext conftest.$ac_ext |
| 10442 | fi |
| 10443 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10444 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10445 | if test $ac_cv_func_shl_load = yes; then |
| 10446 | |
| 10447 | cat >>confdefs.h <<\_ACEOF |
| 10448 | #define HAVE_SHL_LOAD 1 |
| 10449 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10450 | |
| 10451 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10452 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10453 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10454 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10456 | else |
| 10457 | ac_check_lib_save_LIBS=$LIBS |
| 10458 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10459 | cat >conftest.$ac_ext <<_ACEOF |
| 10460 | /* confdefs.h. */ |
| 10461 | _ACEOF |
| 10462 | cat confdefs.h >>conftest.$ac_ext |
| 10463 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10464 | /* end confdefs.h. */ |
| 10465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10466 | /* Override any GCC internal prototype to avoid an error. |
| 10467 | Use char because int might match the return type of a GCC |
| 10468 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10469 | #ifdef __cplusplus |
| 10470 | extern "C" |
| 10471 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10472 | char shl_load (); |
| 10473 | int |
| 10474 | main () |
| 10475 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10476 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10477 | ; |
| 10478 | return 0; |
| 10479 | } |
| 10480 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10481 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10482 | if { (ac_try="$ac_link" |
| 10483 | case "(($ac_try" in |
| 10484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10485 | *) ac_try_echo=$ac_try;; |
| 10486 | esac |
| 10487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10488 | (eval "$ac_link") 2>conftest.er1 |
| 10489 | ac_status=$? |
| 10490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10491 | rm -f conftest.er1 |
| 10492 | cat conftest.err >&5 |
| 10493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10494 | (exit $ac_status); } && |
| 10495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10496 | { (case "(($ac_try" in |
| 10497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10498 | *) ac_try_echo=$ac_try;; |
| 10499 | esac |
| 10500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10501 | (eval "$ac_try") 2>&5 |
| 10502 | ac_status=$? |
| 10503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10504 | (exit $ac_status); }; } && |
| 10505 | { ac_try='test -s conftest$ac_exeext' |
| 10506 | { (case "(($ac_try" in |
| 10507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10508 | *) ac_try_echo=$ac_try;; |
| 10509 | esac |
| 10510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10511 | (eval "$ac_try") 2>&5 |
| 10512 | ac_status=$? |
| 10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10514 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10515 | ac_cv_lib_dld_shl_load=yes |
| 10516 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10517 | echo "$as_me: failed program was:" >&5 |
| 10518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10519 | |
| 10520 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10521 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10522 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10523 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10524 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10525 | LIBS=$ac_check_lib_save_LIBS |
| 10526 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10527 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10528 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10529 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10530 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10531 | cat >>confdefs.h <<\_ACEOF |
| 10532 | #define HAVE_SHL_LOAD 1 |
| 10533 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10534 | |
| 10535 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10536 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10537 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10538 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10539 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10541 | else |
| 10542 | ac_check_lib_save_LIBS=$LIBS |
| 10543 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10544 | cat >conftest.$ac_ext <<_ACEOF |
| 10545 | /* confdefs.h. */ |
| 10546 | _ACEOF |
| 10547 | cat confdefs.h >>conftest.$ac_ext |
| 10548 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10549 | /* end confdefs.h. */ |
| 10550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10551 | /* Override any GCC internal prototype to avoid an error. |
| 10552 | Use char because int might match the return type of a GCC |
| 10553 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10554 | #ifdef __cplusplus |
| 10555 | extern "C" |
| 10556 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10557 | char dlopen (); |
| 10558 | int |
| 10559 | main () |
| 10560 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10561 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10562 | ; |
| 10563 | return 0; |
| 10564 | } |
| 10565 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10566 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10567 | if { (ac_try="$ac_link" |
| 10568 | case "(($ac_try" in |
| 10569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10570 | *) ac_try_echo=$ac_try;; |
| 10571 | esac |
| 10572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10573 | (eval "$ac_link") 2>conftest.er1 |
| 10574 | ac_status=$? |
| 10575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10576 | rm -f conftest.er1 |
| 10577 | cat conftest.err >&5 |
| 10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10579 | (exit $ac_status); } && |
| 10580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10581 | { (case "(($ac_try" in |
| 10582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10583 | *) ac_try_echo=$ac_try;; |
| 10584 | esac |
| 10585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10586 | (eval "$ac_try") 2>&5 |
| 10587 | ac_status=$? |
| 10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10589 | (exit $ac_status); }; } && |
| 10590 | { ac_try='test -s conftest$ac_exeext' |
| 10591 | { (case "(($ac_try" in |
| 10592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10593 | *) ac_try_echo=$ac_try;; |
| 10594 | esac |
| 10595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10596 | (eval "$ac_try") 2>&5 |
| 10597 | ac_status=$? |
| 10598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10599 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10600 | ac_cv_lib_dl_dlopen=yes |
| 10601 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10602 | echo "$as_me: failed program was:" >&5 |
| 10603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10604 | |
| 10605 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10606 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10607 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10608 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10609 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10610 | LIBS=$ac_check_lib_save_LIBS |
| 10611 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10612 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10613 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10614 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10615 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10616 | cat >>confdefs.h <<\_ACEOF |
| 10617 | #define HAVE_LIBDL 1 |
| 10618 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10619 | |
| 10620 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10621 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10622 | cat >conftest.$ac_ext <<_ACEOF |
| 10623 | /* confdefs.h. */ |
| 10624 | _ACEOF |
| 10625 | cat confdefs.h >>conftest.$ac_ext |
| 10626 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10627 | /* end confdefs.h. */ |
| 10628 | #if HAVE_DLFCN_H |
| 10629 | # include <dlfcn.h> |
| 10630 | #endif |
| 10631 | |
| 10632 | int |
| 10633 | main () |
| 10634 | { |
| 10635 | dlopen(0, 0); |
| 10636 | ; |
| 10637 | return 0; |
| 10638 | } |
| 10639 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10640 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10641 | if { (ac_try="$ac_link" |
| 10642 | case "(($ac_try" in |
| 10643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10644 | *) ac_try_echo=$ac_try;; |
| 10645 | esac |
| 10646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10647 | (eval "$ac_link") 2>conftest.er1 |
| 10648 | ac_status=$? |
| 10649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10650 | rm -f conftest.er1 |
| 10651 | cat conftest.err >&5 |
| 10652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10653 | (exit $ac_status); } && |
| 10654 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10655 | { (case "(($ac_try" in |
| 10656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10657 | *) ac_try_echo=$ac_try;; |
| 10658 | esac |
| 10659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10660 | (eval "$ac_try") 2>&5 |
| 10661 | ac_status=$? |
| 10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10663 | (exit $ac_status); }; } && |
| 10664 | { ac_try='test -s conftest$ac_exeext' |
| 10665 | { (case "(($ac_try" in |
| 10666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10667 | *) ac_try_echo=$ac_try;; |
| 10668 | esac |
| 10669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10670 | (eval "$ac_try") 2>&5 |
| 10671 | ac_status=$? |
| 10672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10673 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10674 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10675 | cat >>confdefs.h <<\_ACEOF |
| 10676 | #define HAVE_LIBDL 1 |
| 10677 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10678 | libltdl_cv_func_dlopen="yes" |
| 10679 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10680 | echo "$as_me: failed program was:" >&5 |
| 10681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10682 | |
| 10683 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10684 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10685 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10687 | else |
| 10688 | ac_check_lib_save_LIBS=$LIBS |
| 10689 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10690 | cat >conftest.$ac_ext <<_ACEOF |
| 10691 | /* confdefs.h. */ |
| 10692 | _ACEOF |
| 10693 | cat confdefs.h >>conftest.$ac_ext |
| 10694 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10695 | /* end confdefs.h. */ |
| 10696 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10697 | /* Override any GCC internal prototype to avoid an error. |
| 10698 | Use char because int might match the return type of a GCC |
| 10699 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10700 | #ifdef __cplusplus |
| 10701 | extern "C" |
| 10702 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10703 | char dlopen (); |
| 10704 | int |
| 10705 | main () |
| 10706 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10707 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10708 | ; |
| 10709 | return 0; |
| 10710 | } |
| 10711 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10713 | if { (ac_try="$ac_link" |
| 10714 | case "(($ac_try" in |
| 10715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10716 | *) ac_try_echo=$ac_try;; |
| 10717 | esac |
| 10718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10719 | (eval "$ac_link") 2>conftest.er1 |
| 10720 | ac_status=$? |
| 10721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10722 | rm -f conftest.er1 |
| 10723 | cat conftest.err >&5 |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10725 | (exit $ac_status); } && |
| 10726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10727 | { (case "(($ac_try" in |
| 10728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10729 | *) ac_try_echo=$ac_try;; |
| 10730 | esac |
| 10731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10732 | (eval "$ac_try") 2>&5 |
| 10733 | ac_status=$? |
| 10734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10735 | (exit $ac_status); }; } && |
| 10736 | { ac_try='test -s conftest$ac_exeext' |
| 10737 | { (case "(($ac_try" in |
| 10738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10739 | *) ac_try_echo=$ac_try;; |
| 10740 | esac |
| 10741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10742 | (eval "$ac_try") 2>&5 |
| 10743 | ac_status=$? |
| 10744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10745 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10746 | ac_cv_lib_svld_dlopen=yes |
| 10747 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10748 | echo "$as_me: failed program was:" >&5 |
| 10749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10750 | |
| 10751 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10752 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10753 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10754 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10755 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10756 | LIBS=$ac_check_lib_save_LIBS |
| 10757 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10758 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10759 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10760 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10762 | cat >>confdefs.h <<\_ACEOF |
| 10763 | #define HAVE_LIBDL 1 |
| 10764 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10765 | |
| 10766 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10767 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10768 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10769 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10770 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10772 | else |
| 10773 | ac_check_lib_save_LIBS=$LIBS |
| 10774 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10775 | cat >conftest.$ac_ext <<_ACEOF |
| 10776 | /* confdefs.h. */ |
| 10777 | _ACEOF |
| 10778 | cat confdefs.h >>conftest.$ac_ext |
| 10779 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10780 | /* end confdefs.h. */ |
| 10781 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10782 | /* Override any GCC internal prototype to avoid an error. |
| 10783 | Use char because int might match the return type of a GCC |
| 10784 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10785 | #ifdef __cplusplus |
| 10786 | extern "C" |
| 10787 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10788 | char dld_link (); |
| 10789 | int |
| 10790 | main () |
| 10791 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10792 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10793 | ; |
| 10794 | return 0; |
| 10795 | } |
| 10796 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10797 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10798 | if { (ac_try="$ac_link" |
| 10799 | case "(($ac_try" in |
| 10800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10801 | *) ac_try_echo=$ac_try;; |
| 10802 | esac |
| 10803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10804 | (eval "$ac_link") 2>conftest.er1 |
| 10805 | ac_status=$? |
| 10806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10807 | rm -f conftest.er1 |
| 10808 | cat conftest.err >&5 |
| 10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10810 | (exit $ac_status); } && |
| 10811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10812 | { (case "(($ac_try" in |
| 10813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10814 | *) ac_try_echo=$ac_try;; |
| 10815 | esac |
| 10816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10817 | (eval "$ac_try") 2>&5 |
| 10818 | ac_status=$? |
| 10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10820 | (exit $ac_status); }; } && |
| 10821 | { ac_try='test -s conftest$ac_exeext' |
| 10822 | { (case "(($ac_try" in |
| 10823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10824 | *) ac_try_echo=$ac_try;; |
| 10825 | esac |
| 10826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10827 | (eval "$ac_try") 2>&5 |
| 10828 | ac_status=$? |
| 10829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10830 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10831 | ac_cv_lib_dld_dld_link=yes |
| 10832 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10833 | echo "$as_me: failed program was:" >&5 |
| 10834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10835 | |
| 10836 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10837 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10838 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10839 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10840 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10841 | LIBS=$ac_check_lib_save_LIBS |
| 10842 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10843 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10844 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10845 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10846 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10847 | cat >>confdefs.h <<\_ACEOF |
| 10848 | #define HAVE_DLD 1 |
| 10849 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10850 | |
| 10851 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10852 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10853 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10854 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10855 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10857 | else |
| 10858 | cat >conftest.$ac_ext <<_ACEOF |
| 10859 | /* confdefs.h. */ |
| 10860 | _ACEOF |
| 10861 | cat confdefs.h >>conftest.$ac_ext |
| 10862 | cat >>conftest.$ac_ext <<_ACEOF |
| 10863 | /* end confdefs.h. */ |
| 10864 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10866 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10867 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10868 | /* System header to define __stub macros and hopefully few prototypes, |
| 10869 | which can conflict with char _dyld_func_lookup (); below. |
| 10870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10871 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10872 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10873 | #ifdef __STDC__ |
| 10874 | # include <limits.h> |
| 10875 | #else |
| 10876 | # include <assert.h> |
| 10877 | #endif |
| 10878 | |
| 10879 | #undef _dyld_func_lookup |
| 10880 | |
| 10881 | /* Override any GCC internal prototype to avoid an error. |
| 10882 | Use char because int might match the return type of a GCC |
| 10883 | builtin and then its argument prototype would still apply. */ |
| 10884 | #ifdef __cplusplus |
| 10885 | extern "C" |
| 10886 | #endif |
| 10887 | char _dyld_func_lookup (); |
| 10888 | /* The GNU C library defines this for functions which it implements |
| 10889 | to always fail with ENOSYS. Some functions are actually named |
| 10890 | something starting with __ and the normal name is an alias. */ |
| 10891 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10892 | choke me |
| 10893 | #endif |
| 10894 | |
| 10895 | int |
| 10896 | main () |
| 10897 | { |
| 10898 | return _dyld_func_lookup (); |
| 10899 | ; |
| 10900 | return 0; |
| 10901 | } |
| 10902 | _ACEOF |
| 10903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10904 | if { (ac_try="$ac_link" |
| 10905 | case "(($ac_try" in |
| 10906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10907 | *) ac_try_echo=$ac_try;; |
| 10908 | esac |
| 10909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10910 | (eval "$ac_link") 2>conftest.er1 |
| 10911 | ac_status=$? |
| 10912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10913 | rm -f conftest.er1 |
| 10914 | cat conftest.err >&5 |
| 10915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10916 | (exit $ac_status); } && |
| 10917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10918 | { (case "(($ac_try" in |
| 10919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10920 | *) ac_try_echo=$ac_try;; |
| 10921 | esac |
| 10922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10923 | (eval "$ac_try") 2>&5 |
| 10924 | ac_status=$? |
| 10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10926 | (exit $ac_status); }; } && |
| 10927 | { ac_try='test -s conftest$ac_exeext' |
| 10928 | { (case "(($ac_try" in |
| 10929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10930 | *) ac_try_echo=$ac_try;; |
| 10931 | esac |
| 10932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10933 | (eval "$ac_try") 2>&5 |
| 10934 | ac_status=$? |
| 10935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10936 | (exit $ac_status); }; }; then |
| 10937 | ac_cv_func__dyld_func_lookup=yes |
| 10938 | else |
| 10939 | echo "$as_me: failed program was:" >&5 |
| 10940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10941 | |
| 10942 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10943 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10944 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10945 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10946 | conftest$ac_exeext conftest.$ac_ext |
| 10947 | fi |
| 10948 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10949 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10950 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10951 | |
| 10952 | cat >>confdefs.h <<\_ACEOF |
| 10953 | #define HAVE_DYLD 1 |
| 10954 | _ACEOF |
| 10955 | |
| 10956 | fi |
| 10957 | |
| 10958 | |
| 10959 | fi |
| 10960 | |
| 10961 | |
| 10962 | fi |
| 10963 | |
| 10964 | |
| 10965 | fi |
| 10966 | |
| 10967 | rm -f core conftest.err conftest.$ac_objext \ |
| 10968 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10969 | |
| 10970 | fi |
| 10971 | |
| 10972 | |
| 10973 | fi |
| 10974 | |
| 10975 | |
| 10976 | fi |
| 10977 | |
| 10978 | |
| 10979 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10980 | then |
| 10981 | lt_save_LIBS="$LIBS" |
| 10982 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10983 | |
| 10984 | for ac_func in dlerror |
| 10985 | do |
| 10986 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10987 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10988 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10989 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10991 | else |
| 10992 | cat >conftest.$ac_ext <<_ACEOF |
| 10993 | /* confdefs.h. */ |
| 10994 | _ACEOF |
| 10995 | cat confdefs.h >>conftest.$ac_ext |
| 10996 | cat >>conftest.$ac_ext <<_ACEOF |
| 10997 | /* end confdefs.h. */ |
| 10998 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10999 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11000 | #define $ac_func innocuous_$ac_func |
| 11001 | |
| 11002 | /* System header to define __stub macros and hopefully few prototypes, |
| 11003 | which can conflict with char $ac_func (); below. |
| 11004 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11005 | <limits.h> exists even on freestanding compilers. */ |
| 11006 | |
| 11007 | #ifdef __STDC__ |
| 11008 | # include <limits.h> |
| 11009 | #else |
| 11010 | # include <assert.h> |
| 11011 | #endif |
| 11012 | |
| 11013 | #undef $ac_func |
| 11014 | |
| 11015 | /* Override any GCC internal prototype to avoid an error. |
| 11016 | Use char because int might match the return type of a GCC |
| 11017 | builtin and then its argument prototype would still apply. */ |
| 11018 | #ifdef __cplusplus |
| 11019 | extern "C" |
| 11020 | #endif |
| 11021 | char $ac_func (); |
| 11022 | /* The GNU C library defines this for functions which it implements |
| 11023 | to always fail with ENOSYS. Some functions are actually named |
| 11024 | something starting with __ and the normal name is an alias. */ |
| 11025 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11026 | choke me |
| 11027 | #endif |
| 11028 | |
| 11029 | int |
| 11030 | main () |
| 11031 | { |
| 11032 | return $ac_func (); |
| 11033 | ; |
| 11034 | return 0; |
| 11035 | } |
| 11036 | _ACEOF |
| 11037 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11038 | if { (ac_try="$ac_link" |
| 11039 | case "(($ac_try" in |
| 11040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11041 | *) ac_try_echo=$ac_try;; |
| 11042 | esac |
| 11043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11044 | (eval "$ac_link") 2>conftest.er1 |
| 11045 | ac_status=$? |
| 11046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11047 | rm -f conftest.er1 |
| 11048 | cat conftest.err >&5 |
| 11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11050 | (exit $ac_status); } && |
| 11051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11052 | { (case "(($ac_try" in |
| 11053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11054 | *) ac_try_echo=$ac_try;; |
| 11055 | esac |
| 11056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11057 | (eval "$ac_try") 2>&5 |
| 11058 | ac_status=$? |
| 11059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11060 | (exit $ac_status); }; } && |
| 11061 | { ac_try='test -s conftest$ac_exeext' |
| 11062 | { (case "(($ac_try" in |
| 11063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11064 | *) ac_try_echo=$ac_try;; |
| 11065 | esac |
| 11066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11067 | (eval "$ac_try") 2>&5 |
| 11068 | ac_status=$? |
| 11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11070 | (exit $ac_status); }; }; then |
| 11071 | eval "$as_ac_var=yes" |
| 11072 | else |
| 11073 | echo "$as_me: failed program was:" >&5 |
| 11074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11075 | |
| 11076 | eval "$as_ac_var=no" |
| 11077 | fi |
| 11078 | |
| 11079 | rm -f core conftest.err conftest.$ac_objext \ |
| 11080 | conftest$ac_exeext conftest.$ac_ext |
| 11081 | fi |
| 11082 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11083 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11084 | echo "${ECHO_T}$ac_res" >&6; } |
| 11085 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11086 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11087 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11088 | _ACEOF |
| 11089 | |
| 11090 | fi |
| 11091 | done |
| 11092 | |
| 11093 | LIBS="$lt_save_LIBS" |
| 11094 | fi |
| 11095 | ac_ext=c |
| 11096 | ac_cpp='$CPP $CPPFLAGS' |
| 11097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11100 | |
| 11101 | |
| 11102 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11103 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11104 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11105 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11107 | else |
| 11108 | ac_cv_sys_symbol_underscore=no |
| 11109 | cat > conftest.$ac_ext <<EOF |
| 11110 | void nm_test_func(){} |
| 11111 | int main(){nm_test_func;return 0;} |
| 11112 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11114 | (eval $ac_compile) 2>&5 |
| 11115 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11117 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11118 | # Now try to grab the symbols. |
| 11119 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11120 | 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] | 11121 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11122 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11124 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11125 | # See whether the symbols have a leading underscore. |
| 11126 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11127 | ac_cv_sys_symbol_underscore=yes |
| 11128 | else |
| 11129 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11130 | : |
| 11131 | else |
| 11132 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11133 | fi |
| 11134 | fi |
| 11135 | else |
| 11136 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11137 | fi |
| 11138 | else |
| 11139 | echo "configure: failed program was:" >&5 |
| 11140 | cat conftest.c >&5 |
| 11141 | fi |
| 11142 | rm -rf conftest* |
| 11143 | |
| 11144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11145 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11146 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11147 | |
| 11148 | |
| 11149 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11150 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11151 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11152 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11153 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11154 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11156 | else |
| 11157 | libltdl_cv_need_uscore=unknown |
| 11158 | save_LIBS="$LIBS" |
| 11159 | LIBS="$LIBS $LIBADD_DL" |
| 11160 | if test "$cross_compiling" = yes; then : |
| 11161 | libltdl_cv_need_uscore=cross |
| 11162 | else |
| 11163 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11164 | lt_status=$lt_dlunknown |
| 11165 | cat > conftest.$ac_ext <<EOF |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 11166 | #line 11166 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11167 | #include "confdefs.h" |
| 11168 | |
| 11169 | #if HAVE_DLFCN_H |
| 11170 | #include <dlfcn.h> |
| 11171 | #endif |
| 11172 | |
| 11173 | #include <stdio.h> |
| 11174 | |
| 11175 | #ifdef RTLD_GLOBAL |
| 11176 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11177 | #else |
| 11178 | # ifdef DL_GLOBAL |
| 11179 | # define LT_DLGLOBAL DL_GLOBAL |
| 11180 | # else |
| 11181 | # define LT_DLGLOBAL 0 |
| 11182 | # endif |
| 11183 | #endif |
| 11184 | |
| 11185 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11186 | find out it does not work in some platform. */ |
| 11187 | #ifndef LT_DLLAZY_OR_NOW |
| 11188 | # ifdef RTLD_LAZY |
| 11189 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11190 | # else |
| 11191 | # ifdef DL_LAZY |
| 11192 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11193 | # else |
| 11194 | # ifdef RTLD_NOW |
| 11195 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11196 | # else |
| 11197 | # ifdef DL_NOW |
| 11198 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11199 | # else |
| 11200 | # define LT_DLLAZY_OR_NOW 0 |
| 11201 | # endif |
| 11202 | # endif |
| 11203 | # endif |
| 11204 | # endif |
| 11205 | #endif |
| 11206 | |
| 11207 | #ifdef __cplusplus |
| 11208 | extern "C" void exit (int); |
| 11209 | #endif |
| 11210 | |
| 11211 | void fnord() { int i=42;} |
| 11212 | int main () |
| 11213 | { |
| 11214 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11215 | int status = $lt_dlunknown; |
| 11216 | |
| 11217 | if (self) |
| 11218 | { |
| 11219 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11220 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11221 | /* dlclose (self); */ |
| 11222 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11223 | else |
| 11224 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11225 | |
| 11226 | exit (status); |
| 11227 | } |
| 11228 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11230 | (eval $ac_link) 2>&5 |
| 11231 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11233 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11234 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11235 | lt_status=$? |
| 11236 | case x$lt_status in |
| 11237 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11238 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11239 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11240 | esac |
| 11241 | else : |
| 11242 | # compilation failed |
| 11243 | |
| 11244 | fi |
| 11245 | fi |
| 11246 | rm -fr conftest* |
| 11247 | |
| 11248 | LIBS="$save_LIBS" |
| 11249 | |
| 11250 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11251 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11252 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11253 | fi |
| 11254 | fi |
| 11255 | |
| 11256 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11257 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11258 | cat >>confdefs.h <<\_ACEOF |
| 11259 | #define NEED_USCORE 1 |
| 11260 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11261 | |
| 11262 | fi |
| 11263 | |
| 11264 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11265 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11266 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11267 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11269 | else |
| 11270 | # PORTME does your system automatically load deplibs for dlopen? |
| 11271 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11272 | # For now, we just catch OSes we know something about -- in the |
| 11273 | # future, we'll try test this programmatically. |
| 11274 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11275 | case "$host_os" in |
| 11276 | aix3*|aix4.1.*|aix4.2.*) |
| 11277 | # Unknown whether this is true for these versions of AIX, but |
| 11278 | # we want this `case' here to explicitly catch those versions. |
| 11279 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11280 | ;; |
| 11281 | aix[45]*) |
| 11282 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11283 | ;; |
| 11284 | darwin*) |
| 11285 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11286 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11287 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11288 | ;; |
| 11289 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11290 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11291 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11292 | ;; |
| 11293 | hpux10*|hpux11*) |
| 11294 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11295 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11296 | interix*) |
| 11297 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11298 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11299 | irix[12345]*|irix6.[01]*) |
| 11300 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11301 | # know how it worked for any of those versions. |
| 11302 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11303 | ;; |
| 11304 | irix*) |
| 11305 | # The case above catches anything before 6.2, and it's known that |
| 11306 | # at 6.2 and later dlopen does load deplibs. |
| 11307 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11308 | ;; |
| 11309 | netbsd*) |
| 11310 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11311 | ;; |
| 11312 | openbsd*) |
| 11313 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11314 | ;; |
| 11315 | osf[1234]*) |
| 11316 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11317 | # it did *not* use an RPATH in a shared library to find objects the |
| 11318 | # library depends on, so we explictly say `no'. |
| 11319 | libltdl_cv_sys_dlopen_deplibs=no |
| 11320 | ;; |
| 11321 | osf5.0|osf5.0a|osf5.1) |
| 11322 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11323 | # it even uses RPATH in a shared library to search for shared objects |
| 11324 | # that the library depends on, but there's no easy way to know if that |
| 11325 | # patch is installed. Since this is the case, all we can really |
| 11326 | # say is unknown -- it depends on the patch being installed. If |
| 11327 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11328 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11329 | ;; |
| 11330 | osf*) |
| 11331 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11332 | # the comments above for what we know about them. |
| 11333 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11334 | # is used to find them so we can finally say `yes'. |
| 11335 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11336 | ;; |
| 11337 | solaris*) |
| 11338 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11339 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11340 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11341 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11342 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11343 | esac |
| 11344 | |
| 11345 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11346 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11347 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11348 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11350 | cat >>confdefs.h <<\_ACEOF |
| 11351 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11352 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11353 | |
| 11354 | fi |
| 11355 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11356 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11357 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11358 | do |
| 11359 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11360 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11361 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11365 | fi |
| 11366 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11367 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11368 | echo "${ECHO_T}$ac_res" >&6; } |
| 11369 | else |
| 11370 | # Is the header compilable? |
| 11371 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11372 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11373 | cat >conftest.$ac_ext <<_ACEOF |
| 11374 | /* confdefs.h. */ |
| 11375 | _ACEOF |
| 11376 | cat confdefs.h >>conftest.$ac_ext |
| 11377 | cat >>conftest.$ac_ext <<_ACEOF |
| 11378 | /* end confdefs.h. */ |
| 11379 | $ac_includes_default |
| 11380 | #include <$ac_header> |
| 11381 | _ACEOF |
| 11382 | rm -f conftest.$ac_objext |
| 11383 | if { (ac_try="$ac_compile" |
| 11384 | case "(($ac_try" in |
| 11385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11386 | *) ac_try_echo=$ac_try;; |
| 11387 | esac |
| 11388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11389 | (eval "$ac_compile") 2>conftest.er1 |
| 11390 | ac_status=$? |
| 11391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11392 | rm -f conftest.er1 |
| 11393 | cat conftest.err >&5 |
| 11394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11395 | (exit $ac_status); } && |
| 11396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11397 | { (case "(($ac_try" in |
| 11398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11399 | *) ac_try_echo=$ac_try;; |
| 11400 | esac |
| 11401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11402 | (eval "$ac_try") 2>&5 |
| 11403 | ac_status=$? |
| 11404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11405 | (exit $ac_status); }; } && |
| 11406 | { ac_try='test -s conftest.$ac_objext' |
| 11407 | { (case "(($ac_try" in |
| 11408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11409 | *) ac_try_echo=$ac_try;; |
| 11410 | esac |
| 11411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11412 | (eval "$ac_try") 2>&5 |
| 11413 | ac_status=$? |
| 11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11415 | (exit $ac_status); }; }; then |
| 11416 | ac_header_compiler=yes |
| 11417 | else |
| 11418 | echo "$as_me: failed program was:" >&5 |
| 11419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11420 | |
| 11421 | ac_header_compiler=no |
| 11422 | fi |
| 11423 | |
| 11424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11425 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11426 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11427 | |
| 11428 | # Is the header present? |
| 11429 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11430 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11431 | cat >conftest.$ac_ext <<_ACEOF |
| 11432 | /* confdefs.h. */ |
| 11433 | _ACEOF |
| 11434 | cat confdefs.h >>conftest.$ac_ext |
| 11435 | cat >>conftest.$ac_ext <<_ACEOF |
| 11436 | /* end confdefs.h. */ |
| 11437 | #include <$ac_header> |
| 11438 | _ACEOF |
| 11439 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11440 | case "(($ac_try" in |
| 11441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11442 | *) ac_try_echo=$ac_try;; |
| 11443 | esac |
| 11444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11445 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11446 | ac_status=$? |
| 11447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11448 | rm -f conftest.er1 |
| 11449 | cat conftest.err >&5 |
| 11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11451 | (exit $ac_status); } >/dev/null; then |
| 11452 | if test -s conftest.err; then |
| 11453 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11455 | else |
| 11456 | ac_cpp_err= |
| 11457 | fi |
| 11458 | else |
| 11459 | ac_cpp_err=yes |
| 11460 | fi |
| 11461 | if test -z "$ac_cpp_err"; then |
| 11462 | ac_header_preproc=yes |
| 11463 | else |
| 11464 | echo "$as_me: failed program was:" >&5 |
| 11465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11466 | |
| 11467 | ac_header_preproc=no |
| 11468 | fi |
| 11469 | |
| 11470 | rm -f conftest.err conftest.$ac_ext |
| 11471 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11472 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11473 | |
| 11474 | # So? What about this header? |
| 11475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11476 | yes:no: ) |
| 11477 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11478 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11480 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11481 | ac_header_preproc=yes |
| 11482 | ;; |
| 11483 | no:yes:* ) |
| 11484 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11485 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11486 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11487 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11488 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11489 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11490 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11491 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11493 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11494 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11495 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11496 | ( cat <<\_ASBOX |
| 11497 | ## ----------------------------------- ## |
| 11498 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11499 | ## ----------------------------------- ## |
| 11500 | _ASBOX |
| 11501 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11502 | ;; |
| 11503 | esac |
| 11504 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11508 | else |
| 11509 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11510 | fi |
| 11511 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11513 | echo "${ECHO_T}$ac_res" >&6; } |
| 11514 | |
| 11515 | fi |
| 11516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11517 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11519 | _ACEOF |
| 11520 | |
| 11521 | fi |
| 11522 | |
| 11523 | done |
| 11524 | |
| 11525 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11526 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11527 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11528 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11530 | else |
| 11531 | cat >conftest.$ac_ext <<_ACEOF |
| 11532 | /* confdefs.h. */ |
| 11533 | _ACEOF |
| 11534 | cat confdefs.h >>conftest.$ac_ext |
| 11535 | cat >>conftest.$ac_ext <<_ACEOF |
| 11536 | /* end confdefs.h. */ |
| 11537 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11538 | # include <argz.h> |
| 11539 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11540 | |
| 11541 | typedef error_t ac__type_new_; |
| 11542 | int |
| 11543 | main () |
| 11544 | { |
| 11545 | if ((ac__type_new_ *) 0) |
| 11546 | return 0; |
| 11547 | if (sizeof (ac__type_new_)) |
| 11548 | return 0; |
| 11549 | ; |
| 11550 | return 0; |
| 11551 | } |
| 11552 | _ACEOF |
| 11553 | rm -f conftest.$ac_objext |
| 11554 | if { (ac_try="$ac_compile" |
| 11555 | case "(($ac_try" in |
| 11556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11557 | *) ac_try_echo=$ac_try;; |
| 11558 | esac |
| 11559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11560 | (eval "$ac_compile") 2>conftest.er1 |
| 11561 | ac_status=$? |
| 11562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11563 | rm -f conftest.er1 |
| 11564 | cat conftest.err >&5 |
| 11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11566 | (exit $ac_status); } && |
| 11567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11568 | { (case "(($ac_try" in |
| 11569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11570 | *) ac_try_echo=$ac_try;; |
| 11571 | esac |
| 11572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11573 | (eval "$ac_try") 2>&5 |
| 11574 | ac_status=$? |
| 11575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11576 | (exit $ac_status); }; } && |
| 11577 | { ac_try='test -s conftest.$ac_objext' |
| 11578 | { (case "(($ac_try" in |
| 11579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11580 | *) ac_try_echo=$ac_try;; |
| 11581 | esac |
| 11582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11583 | (eval "$ac_try") 2>&5 |
| 11584 | ac_status=$? |
| 11585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11586 | (exit $ac_status); }; }; then |
| 11587 | ac_cv_type_error_t=yes |
| 11588 | else |
| 11589 | echo "$as_me: failed program was:" >&5 |
| 11590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11591 | |
| 11592 | ac_cv_type_error_t=no |
| 11593 | fi |
| 11594 | |
| 11595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11596 | fi |
| 11597 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11598 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11599 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11600 | |
| 11601 | cat >>confdefs.h <<_ACEOF |
| 11602 | #define HAVE_ERROR_T 1 |
| 11603 | _ACEOF |
| 11604 | |
| 11605 | |
| 11606 | else |
| 11607 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11608 | cat >>confdefs.h <<\_ACEOF |
| 11609 | #define error_t int |
| 11610 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11611 | |
| 11612 | fi |
| 11613 | |
| 11614 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11615 | |
| 11616 | |
| 11617 | |
| 11618 | |
| 11619 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11620 | 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] | 11621 | do |
| 11622 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11623 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11624 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11625 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11627 | else |
| 11628 | cat >conftest.$ac_ext <<_ACEOF |
| 11629 | /* confdefs.h. */ |
| 11630 | _ACEOF |
| 11631 | cat confdefs.h >>conftest.$ac_ext |
| 11632 | cat >>conftest.$ac_ext <<_ACEOF |
| 11633 | /* end confdefs.h. */ |
| 11634 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11635 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11636 | #define $ac_func innocuous_$ac_func |
| 11637 | |
| 11638 | /* System header to define __stub macros and hopefully few prototypes, |
| 11639 | which can conflict with char $ac_func (); below. |
| 11640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11641 | <limits.h> exists even on freestanding compilers. */ |
| 11642 | |
| 11643 | #ifdef __STDC__ |
| 11644 | # include <limits.h> |
| 11645 | #else |
| 11646 | # include <assert.h> |
| 11647 | #endif |
| 11648 | |
| 11649 | #undef $ac_func |
| 11650 | |
| 11651 | /* Override any GCC internal prototype to avoid an error. |
| 11652 | Use char because int might match the return type of a GCC |
| 11653 | builtin and then its argument prototype would still apply. */ |
| 11654 | #ifdef __cplusplus |
| 11655 | extern "C" |
| 11656 | #endif |
| 11657 | char $ac_func (); |
| 11658 | /* The GNU C library defines this for functions which it implements |
| 11659 | to always fail with ENOSYS. Some functions are actually named |
| 11660 | something starting with __ and the normal name is an alias. */ |
| 11661 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11662 | choke me |
| 11663 | #endif |
| 11664 | |
| 11665 | int |
| 11666 | main () |
| 11667 | { |
| 11668 | return $ac_func (); |
| 11669 | ; |
| 11670 | return 0; |
| 11671 | } |
| 11672 | _ACEOF |
| 11673 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11674 | if { (ac_try="$ac_link" |
| 11675 | case "(($ac_try" in |
| 11676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11677 | *) ac_try_echo=$ac_try;; |
| 11678 | esac |
| 11679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11680 | (eval "$ac_link") 2>conftest.er1 |
| 11681 | ac_status=$? |
| 11682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11683 | rm -f conftest.er1 |
| 11684 | cat conftest.err >&5 |
| 11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11686 | (exit $ac_status); } && |
| 11687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11688 | { (case "(($ac_try" in |
| 11689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11690 | *) ac_try_echo=$ac_try;; |
| 11691 | esac |
| 11692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11693 | (eval "$ac_try") 2>&5 |
| 11694 | ac_status=$? |
| 11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11696 | (exit $ac_status); }; } && |
| 11697 | { ac_try='test -s conftest$ac_exeext' |
| 11698 | { (case "(($ac_try" in |
| 11699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11700 | *) ac_try_echo=$ac_try;; |
| 11701 | esac |
| 11702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11703 | (eval "$ac_try") 2>&5 |
| 11704 | ac_status=$? |
| 11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11706 | (exit $ac_status); }; }; then |
| 11707 | eval "$as_ac_var=yes" |
| 11708 | else |
| 11709 | echo "$as_me: failed program was:" >&5 |
| 11710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11711 | |
| 11712 | eval "$as_ac_var=no" |
| 11713 | fi |
| 11714 | |
| 11715 | rm -f core conftest.err conftest.$ac_objext \ |
| 11716 | conftest$ac_exeext conftest.$ac_ext |
| 11717 | fi |
| 11718 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11719 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11720 | echo "${ECHO_T}$ac_res" >&6; } |
| 11721 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11722 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11723 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11724 | _ACEOF |
| 11725 | |
| 11726 | fi |
| 11727 | done |
| 11728 | |
| 11729 | |
| 11730 | |
| 11731 | |
| 11732 | |
| 11733 | |
| 11734 | |
| 11735 | |
| 11736 | |
| 11737 | |
| 11738 | |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
| 11744 | |
| 11745 | |
| 11746 | |
| 11747 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11748 | |
| 11749 | |
| 11750 | |
| 11751 | |
| 11752 | |
| 11753 | |
| 11754 | |
| 11755 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11756 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11757 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11758 | do |
| 11759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11761 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11765 | fi |
| 11766 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11768 | echo "${ECHO_T}$ac_res" >&6; } |
| 11769 | else |
| 11770 | # Is the header compilable? |
| 11771 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11772 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11773 | cat >conftest.$ac_ext <<_ACEOF |
| 11774 | /* confdefs.h. */ |
| 11775 | _ACEOF |
| 11776 | cat confdefs.h >>conftest.$ac_ext |
| 11777 | cat >>conftest.$ac_ext <<_ACEOF |
| 11778 | /* end confdefs.h. */ |
| 11779 | $ac_includes_default |
| 11780 | #include <$ac_header> |
| 11781 | _ACEOF |
| 11782 | rm -f conftest.$ac_objext |
| 11783 | if { (ac_try="$ac_compile" |
| 11784 | case "(($ac_try" in |
| 11785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11786 | *) ac_try_echo=$ac_try;; |
| 11787 | esac |
| 11788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11789 | (eval "$ac_compile") 2>conftest.er1 |
| 11790 | ac_status=$? |
| 11791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11792 | rm -f conftest.er1 |
| 11793 | cat conftest.err >&5 |
| 11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11795 | (exit $ac_status); } && |
| 11796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11797 | { (case "(($ac_try" in |
| 11798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11799 | *) ac_try_echo=$ac_try;; |
| 11800 | esac |
| 11801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11802 | (eval "$ac_try") 2>&5 |
| 11803 | ac_status=$? |
| 11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11805 | (exit $ac_status); }; } && |
| 11806 | { ac_try='test -s conftest.$ac_objext' |
| 11807 | { (case "(($ac_try" in |
| 11808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11809 | *) ac_try_echo=$ac_try;; |
| 11810 | esac |
| 11811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11812 | (eval "$ac_try") 2>&5 |
| 11813 | ac_status=$? |
| 11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11815 | (exit $ac_status); }; }; then |
| 11816 | ac_header_compiler=yes |
| 11817 | else |
| 11818 | echo "$as_me: failed program was:" >&5 |
| 11819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11820 | |
| 11821 | ac_header_compiler=no |
| 11822 | fi |
| 11823 | |
| 11824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11825 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11826 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11827 | |
| 11828 | # Is the header present? |
| 11829 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11830 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11831 | cat >conftest.$ac_ext <<_ACEOF |
| 11832 | /* confdefs.h. */ |
| 11833 | _ACEOF |
| 11834 | cat confdefs.h >>conftest.$ac_ext |
| 11835 | cat >>conftest.$ac_ext <<_ACEOF |
| 11836 | /* end confdefs.h. */ |
| 11837 | #include <$ac_header> |
| 11838 | _ACEOF |
| 11839 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11840 | case "(($ac_try" in |
| 11841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11842 | *) ac_try_echo=$ac_try;; |
| 11843 | esac |
| 11844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11845 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11846 | ac_status=$? |
| 11847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11848 | rm -f conftest.er1 |
| 11849 | cat conftest.err >&5 |
| 11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11851 | (exit $ac_status); } >/dev/null; then |
| 11852 | if test -s conftest.err; then |
| 11853 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11854 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11855 | else |
| 11856 | ac_cpp_err= |
| 11857 | fi |
| 11858 | else |
| 11859 | ac_cpp_err=yes |
| 11860 | fi |
| 11861 | if test -z "$ac_cpp_err"; then |
| 11862 | ac_header_preproc=yes |
| 11863 | else |
| 11864 | echo "$as_me: failed program was:" >&5 |
| 11865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11866 | |
| 11867 | ac_header_preproc=no |
| 11868 | fi |
| 11869 | |
| 11870 | rm -f conftest.err conftest.$ac_ext |
| 11871 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11872 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11873 | |
| 11874 | # So? What about this header? |
| 11875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11876 | yes:no: ) |
| 11877 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11878 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11879 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11880 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11881 | ac_header_preproc=yes |
| 11882 | ;; |
| 11883 | no:yes:* ) |
| 11884 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11885 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11886 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11887 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11888 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11889 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11890 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11891 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11893 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11894 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11895 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11896 | ( cat <<\_ASBOX |
| 11897 | ## ----------------------------------- ## |
| 11898 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11899 | ## ----------------------------------- ## |
| 11900 | _ASBOX |
| 11901 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11902 | ;; |
| 11903 | esac |
| 11904 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11906 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11908 | else |
| 11909 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11910 | fi |
| 11911 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11912 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11913 | echo "${ECHO_T}$ac_res" >&6; } |
| 11914 | |
| 11915 | fi |
| 11916 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11917 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11918 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11919 | _ACEOF |
| 11920 | |
| 11921 | fi |
| 11922 | |
| 11923 | done |
| 11924 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11925 | |
| 11926 | |
| 11927 | |
| 11928 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11929 | 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] | 11930 | do |
| 11931 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11933 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11935 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11937 | fi |
| 11938 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11939 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11940 | echo "${ECHO_T}$ac_res" >&6; } |
| 11941 | else |
| 11942 | # Is the header compilable? |
| 11943 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11944 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11945 | cat >conftest.$ac_ext <<_ACEOF |
| 11946 | /* confdefs.h. */ |
| 11947 | _ACEOF |
| 11948 | cat confdefs.h >>conftest.$ac_ext |
| 11949 | cat >>conftest.$ac_ext <<_ACEOF |
| 11950 | /* end confdefs.h. */ |
| 11951 | $ac_includes_default |
| 11952 | #include <$ac_header> |
| 11953 | _ACEOF |
| 11954 | rm -f conftest.$ac_objext |
| 11955 | if { (ac_try="$ac_compile" |
| 11956 | case "(($ac_try" in |
| 11957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11958 | *) ac_try_echo=$ac_try;; |
| 11959 | esac |
| 11960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11961 | (eval "$ac_compile") 2>conftest.er1 |
| 11962 | ac_status=$? |
| 11963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11964 | rm -f conftest.er1 |
| 11965 | cat conftest.err >&5 |
| 11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11967 | (exit $ac_status); } && |
| 11968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11969 | { (case "(($ac_try" in |
| 11970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11971 | *) ac_try_echo=$ac_try;; |
| 11972 | esac |
| 11973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11974 | (eval "$ac_try") 2>&5 |
| 11975 | ac_status=$? |
| 11976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11977 | (exit $ac_status); }; } && |
| 11978 | { ac_try='test -s conftest.$ac_objext' |
| 11979 | { (case "(($ac_try" in |
| 11980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11981 | *) ac_try_echo=$ac_try;; |
| 11982 | esac |
| 11983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11984 | (eval "$ac_try") 2>&5 |
| 11985 | ac_status=$? |
| 11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11987 | (exit $ac_status); }; }; then |
| 11988 | ac_header_compiler=yes |
| 11989 | else |
| 11990 | echo "$as_me: failed program was:" >&5 |
| 11991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11992 | |
| 11993 | ac_header_compiler=no |
| 11994 | fi |
| 11995 | |
| 11996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11997 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11998 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11999 | |
| 12000 | # Is the header present? |
| 12001 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12002 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12003 | cat >conftest.$ac_ext <<_ACEOF |
| 12004 | /* confdefs.h. */ |
| 12005 | _ACEOF |
| 12006 | cat confdefs.h >>conftest.$ac_ext |
| 12007 | cat >>conftest.$ac_ext <<_ACEOF |
| 12008 | /* end confdefs.h. */ |
| 12009 | #include <$ac_header> |
| 12010 | _ACEOF |
| 12011 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12012 | case "(($ac_try" in |
| 12013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12014 | *) ac_try_echo=$ac_try;; |
| 12015 | esac |
| 12016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12017 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12018 | ac_status=$? |
| 12019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12020 | rm -f conftest.er1 |
| 12021 | cat conftest.err >&5 |
| 12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12023 | (exit $ac_status); } >/dev/null; then |
| 12024 | if test -s conftest.err; then |
| 12025 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12026 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12027 | else |
| 12028 | ac_cpp_err= |
| 12029 | fi |
| 12030 | else |
| 12031 | ac_cpp_err=yes |
| 12032 | fi |
| 12033 | if test -z "$ac_cpp_err"; then |
| 12034 | ac_header_preproc=yes |
| 12035 | else |
| 12036 | echo "$as_me: failed program was:" >&5 |
| 12037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12038 | |
| 12039 | ac_header_preproc=no |
| 12040 | fi |
| 12041 | |
| 12042 | rm -f conftest.err conftest.$ac_ext |
| 12043 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12044 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12045 | |
| 12046 | # So? What about this header? |
| 12047 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12048 | yes:no: ) |
| 12049 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12050 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12051 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12052 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12053 | ac_header_preproc=yes |
| 12054 | ;; |
| 12055 | no:yes:* ) |
| 12056 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12057 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12058 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12059 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12060 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12061 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12062 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12063 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12064 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12065 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12066 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12067 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12068 | ( cat <<\_ASBOX |
| 12069 | ## ----------------------------------- ## |
| 12070 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12071 | ## ----------------------------------- ## |
| 12072 | _ASBOX |
| 12073 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12074 | ;; |
| 12075 | esac |
| 12076 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12077 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12078 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12080 | else |
| 12081 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12082 | fi |
| 12083 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12084 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12085 | echo "${ECHO_T}$ac_res" >&6; } |
| 12086 | |
| 12087 | fi |
| 12088 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12089 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12090 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12091 | _ACEOF |
| 12092 | |
| 12093 | fi |
| 12094 | |
| 12095 | done |
| 12096 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12097 | |
| 12098 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12099 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12100 | do |
| 12101 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12102 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12103 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12107 | fi |
| 12108 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12109 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12110 | echo "${ECHO_T}$ac_res" >&6; } |
| 12111 | else |
| 12112 | # Is the header compilable? |
| 12113 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12114 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12115 | cat >conftest.$ac_ext <<_ACEOF |
| 12116 | /* confdefs.h. */ |
| 12117 | _ACEOF |
| 12118 | cat confdefs.h >>conftest.$ac_ext |
| 12119 | cat >>conftest.$ac_ext <<_ACEOF |
| 12120 | /* end confdefs.h. */ |
| 12121 | $ac_includes_default |
| 12122 | #include <$ac_header> |
| 12123 | _ACEOF |
| 12124 | rm -f conftest.$ac_objext |
| 12125 | if { (ac_try="$ac_compile" |
| 12126 | case "(($ac_try" in |
| 12127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12128 | *) ac_try_echo=$ac_try;; |
| 12129 | esac |
| 12130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12131 | (eval "$ac_compile") 2>conftest.er1 |
| 12132 | ac_status=$? |
| 12133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12134 | rm -f conftest.er1 |
| 12135 | cat conftest.err >&5 |
| 12136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12137 | (exit $ac_status); } && |
| 12138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12139 | { (case "(($ac_try" in |
| 12140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12141 | *) ac_try_echo=$ac_try;; |
| 12142 | esac |
| 12143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12144 | (eval "$ac_try") 2>&5 |
| 12145 | ac_status=$? |
| 12146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12147 | (exit $ac_status); }; } && |
| 12148 | { ac_try='test -s conftest.$ac_objext' |
| 12149 | { (case "(($ac_try" in |
| 12150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12151 | *) ac_try_echo=$ac_try;; |
| 12152 | esac |
| 12153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12154 | (eval "$ac_try") 2>&5 |
| 12155 | ac_status=$? |
| 12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12157 | (exit $ac_status); }; }; then |
| 12158 | ac_header_compiler=yes |
| 12159 | else |
| 12160 | echo "$as_me: failed program was:" >&5 |
| 12161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12162 | |
| 12163 | ac_header_compiler=no |
| 12164 | fi |
| 12165 | |
| 12166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12167 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12168 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12169 | |
| 12170 | # Is the header present? |
| 12171 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12172 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12173 | cat >conftest.$ac_ext <<_ACEOF |
| 12174 | /* confdefs.h. */ |
| 12175 | _ACEOF |
| 12176 | cat confdefs.h >>conftest.$ac_ext |
| 12177 | cat >>conftest.$ac_ext <<_ACEOF |
| 12178 | /* end confdefs.h. */ |
| 12179 | #include <$ac_header> |
| 12180 | _ACEOF |
| 12181 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 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); } >/dev/null; then |
| 12194 | if test -s conftest.err; then |
| 12195 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12196 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12197 | else |
| 12198 | ac_cpp_err= |
| 12199 | fi |
| 12200 | else |
| 12201 | ac_cpp_err=yes |
| 12202 | fi |
| 12203 | if test -z "$ac_cpp_err"; then |
| 12204 | ac_header_preproc=yes |
| 12205 | else |
| 12206 | echo "$as_me: failed program was:" >&5 |
| 12207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12208 | |
| 12209 | ac_header_preproc=no |
| 12210 | fi |
| 12211 | |
| 12212 | rm -f conftest.err conftest.$ac_ext |
| 12213 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12214 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12215 | |
| 12216 | # So? What about this header? |
| 12217 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12218 | yes:no: ) |
| 12219 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12220 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12221 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12222 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12223 | ac_header_preproc=yes |
| 12224 | ;; |
| 12225 | no:yes:* ) |
| 12226 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12227 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12228 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12229 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12230 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12231 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12232 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12233 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12235 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12236 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12237 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12238 | ( cat <<\_ASBOX |
| 12239 | ## ----------------------------------- ## |
| 12240 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12241 | ## ----------------------------------- ## |
| 12242 | _ASBOX |
| 12243 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12244 | ;; |
| 12245 | esac |
| 12246 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12247 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12248 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12250 | else |
| 12251 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12252 | fi |
| 12253 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12254 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12255 | echo "${ECHO_T}$ac_res" >&6; } |
| 12256 | |
| 12257 | fi |
| 12258 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12259 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12260 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12261 | _ACEOF |
| 12262 | break |
| 12263 | fi |
| 12264 | |
| 12265 | done |
| 12266 | |
| 12267 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12268 | |
| 12269 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12270 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12271 | do |
| 12272 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12273 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12274 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12275 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12277 | else |
| 12278 | cat >conftest.$ac_ext <<_ACEOF |
| 12279 | /* confdefs.h. */ |
| 12280 | _ACEOF |
| 12281 | cat confdefs.h >>conftest.$ac_ext |
| 12282 | cat >>conftest.$ac_ext <<_ACEOF |
| 12283 | /* end confdefs.h. */ |
| 12284 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12285 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12286 | #define $ac_func innocuous_$ac_func |
| 12287 | |
| 12288 | /* System header to define __stub macros and hopefully few prototypes, |
| 12289 | which can conflict with char $ac_func (); below. |
| 12290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12291 | <limits.h> exists even on freestanding compilers. */ |
| 12292 | |
| 12293 | #ifdef __STDC__ |
| 12294 | # include <limits.h> |
| 12295 | #else |
| 12296 | # include <assert.h> |
| 12297 | #endif |
| 12298 | |
| 12299 | #undef $ac_func |
| 12300 | |
| 12301 | /* Override any GCC internal prototype to avoid an error. |
| 12302 | Use char because int might match the return type of a GCC |
| 12303 | builtin and then its argument prototype would still apply. */ |
| 12304 | #ifdef __cplusplus |
| 12305 | extern "C" |
| 12306 | #endif |
| 12307 | char $ac_func (); |
| 12308 | /* The GNU C library defines this for functions which it implements |
| 12309 | to always fail with ENOSYS. Some functions are actually named |
| 12310 | something starting with __ and the normal name is an alias. */ |
| 12311 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12312 | choke me |
| 12313 | #endif |
| 12314 | |
| 12315 | int |
| 12316 | main () |
| 12317 | { |
| 12318 | return $ac_func (); |
| 12319 | ; |
| 12320 | return 0; |
| 12321 | } |
| 12322 | _ACEOF |
| 12323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12324 | if { (ac_try="$ac_link" |
| 12325 | case "(($ac_try" in |
| 12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12327 | *) ac_try_echo=$ac_try;; |
| 12328 | esac |
| 12329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12330 | (eval "$ac_link") 2>conftest.er1 |
| 12331 | ac_status=$? |
| 12332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12333 | rm -f conftest.er1 |
| 12334 | cat conftest.err >&5 |
| 12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12336 | (exit $ac_status); } && |
| 12337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12338 | { (case "(($ac_try" in |
| 12339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12340 | *) ac_try_echo=$ac_try;; |
| 12341 | esac |
| 12342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12343 | (eval "$ac_try") 2>&5 |
| 12344 | ac_status=$? |
| 12345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12346 | (exit $ac_status); }; } && |
| 12347 | { ac_try='test -s conftest$ac_exeext' |
| 12348 | { (case "(($ac_try" in |
| 12349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12350 | *) ac_try_echo=$ac_try;; |
| 12351 | esac |
| 12352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12353 | (eval "$ac_try") 2>&5 |
| 12354 | ac_status=$? |
| 12355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12356 | (exit $ac_status); }; }; then |
| 12357 | eval "$as_ac_var=yes" |
| 12358 | else |
| 12359 | echo "$as_me: failed program was:" >&5 |
| 12360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12361 | |
| 12362 | eval "$as_ac_var=no" |
| 12363 | fi |
| 12364 | |
| 12365 | rm -f core conftest.err conftest.$ac_objext \ |
| 12366 | conftest$ac_exeext conftest.$ac_ext |
| 12367 | fi |
| 12368 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12369 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12370 | echo "${ECHO_T}$ac_res" >&6; } |
| 12371 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12372 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12373 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12374 | _ACEOF |
| 12375 | break |
| 12376 | fi |
| 12377 | done |
| 12378 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12379 | |
| 12380 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12381 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12382 | do |
| 12383 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12384 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12385 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12386 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12388 | else |
| 12389 | cat >conftest.$ac_ext <<_ACEOF |
| 12390 | /* confdefs.h. */ |
| 12391 | _ACEOF |
| 12392 | cat confdefs.h >>conftest.$ac_ext |
| 12393 | cat >>conftest.$ac_ext <<_ACEOF |
| 12394 | /* end confdefs.h. */ |
| 12395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12397 | #define $ac_func innocuous_$ac_func |
| 12398 | |
| 12399 | /* System header to define __stub macros and hopefully few prototypes, |
| 12400 | which can conflict with char $ac_func (); below. |
| 12401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12402 | <limits.h> exists even on freestanding compilers. */ |
| 12403 | |
| 12404 | #ifdef __STDC__ |
| 12405 | # include <limits.h> |
| 12406 | #else |
| 12407 | # include <assert.h> |
| 12408 | #endif |
| 12409 | |
| 12410 | #undef $ac_func |
| 12411 | |
| 12412 | /* Override any GCC internal prototype to avoid an error. |
| 12413 | Use char because int might match the return type of a GCC |
| 12414 | builtin and then its argument prototype would still apply. */ |
| 12415 | #ifdef __cplusplus |
| 12416 | extern "C" |
| 12417 | #endif |
| 12418 | char $ac_func (); |
| 12419 | /* The GNU C library defines this for functions which it implements |
| 12420 | to always fail with ENOSYS. Some functions are actually named |
| 12421 | something starting with __ and the normal name is an alias. */ |
| 12422 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12423 | choke me |
| 12424 | #endif |
| 12425 | |
| 12426 | int |
| 12427 | main () |
| 12428 | { |
| 12429 | return $ac_func (); |
| 12430 | ; |
| 12431 | return 0; |
| 12432 | } |
| 12433 | _ACEOF |
| 12434 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12435 | if { (ac_try="$ac_link" |
| 12436 | case "(($ac_try" in |
| 12437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12438 | *) ac_try_echo=$ac_try;; |
| 12439 | esac |
| 12440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12441 | (eval "$ac_link") 2>conftest.er1 |
| 12442 | ac_status=$? |
| 12443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12444 | rm -f conftest.er1 |
| 12445 | cat conftest.err >&5 |
| 12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12447 | (exit $ac_status); } && |
| 12448 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12449 | { (case "(($ac_try" in |
| 12450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12451 | *) ac_try_echo=$ac_try;; |
| 12452 | esac |
| 12453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12454 | (eval "$ac_try") 2>&5 |
| 12455 | ac_status=$? |
| 12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12457 | (exit $ac_status); }; } && |
| 12458 | { ac_try='test -s conftest$ac_exeext' |
| 12459 | { (case "(($ac_try" in |
| 12460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12461 | *) ac_try_echo=$ac_try;; |
| 12462 | esac |
| 12463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12464 | (eval "$ac_try") 2>&5 |
| 12465 | ac_status=$? |
| 12466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12467 | (exit $ac_status); }; }; then |
| 12468 | eval "$as_ac_var=yes" |
| 12469 | else |
| 12470 | echo "$as_me: failed program was:" >&5 |
| 12471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12472 | |
| 12473 | eval "$as_ac_var=no" |
| 12474 | fi |
| 12475 | |
| 12476 | rm -f core conftest.err conftest.$ac_objext \ |
| 12477 | conftest$ac_exeext conftest.$ac_ext |
| 12478 | fi |
| 12479 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12480 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12481 | echo "${ECHO_T}$ac_res" >&6; } |
| 12482 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12483 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12484 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12485 | _ACEOF |
| 12486 | break |
| 12487 | fi |
| 12488 | done |
| 12489 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12490 | |
| 12491 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12492 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12493 | do |
| 12494 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12495 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12496 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12497 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12499 | else |
| 12500 | cat >conftest.$ac_ext <<_ACEOF |
| 12501 | /* confdefs.h. */ |
| 12502 | _ACEOF |
| 12503 | cat confdefs.h >>conftest.$ac_ext |
| 12504 | cat >>conftest.$ac_ext <<_ACEOF |
| 12505 | /* end confdefs.h. */ |
| 12506 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12507 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12508 | #define $ac_func innocuous_$ac_func |
| 12509 | |
| 12510 | /* System header to define __stub macros and hopefully few prototypes, |
| 12511 | which can conflict with char $ac_func (); below. |
| 12512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12513 | <limits.h> exists even on freestanding compilers. */ |
| 12514 | |
| 12515 | #ifdef __STDC__ |
| 12516 | # include <limits.h> |
| 12517 | #else |
| 12518 | # include <assert.h> |
| 12519 | #endif |
| 12520 | |
| 12521 | #undef $ac_func |
| 12522 | |
| 12523 | /* Override any GCC internal prototype to avoid an error. |
| 12524 | Use char because int might match the return type of a GCC |
| 12525 | builtin and then its argument prototype would still apply. */ |
| 12526 | #ifdef __cplusplus |
| 12527 | extern "C" |
| 12528 | #endif |
| 12529 | char $ac_func (); |
| 12530 | /* The GNU C library defines this for functions which it implements |
| 12531 | to always fail with ENOSYS. Some functions are actually named |
| 12532 | something starting with __ and the normal name is an alias. */ |
| 12533 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12534 | choke me |
| 12535 | #endif |
| 12536 | |
| 12537 | int |
| 12538 | main () |
| 12539 | { |
| 12540 | return $ac_func (); |
| 12541 | ; |
| 12542 | return 0; |
| 12543 | } |
| 12544 | _ACEOF |
| 12545 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12546 | if { (ac_try="$ac_link" |
| 12547 | case "(($ac_try" in |
| 12548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12549 | *) ac_try_echo=$ac_try;; |
| 12550 | esac |
| 12551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12552 | (eval "$ac_link") 2>conftest.er1 |
| 12553 | ac_status=$? |
| 12554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12555 | rm -f conftest.er1 |
| 12556 | cat conftest.err >&5 |
| 12557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12558 | (exit $ac_status); } && |
| 12559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12560 | { (case "(($ac_try" in |
| 12561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12562 | *) ac_try_echo=$ac_try;; |
| 12563 | esac |
| 12564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12565 | (eval "$ac_try") 2>&5 |
| 12566 | ac_status=$? |
| 12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12568 | (exit $ac_status); }; } && |
| 12569 | { ac_try='test -s conftest$ac_exeext' |
| 12570 | { (case "(($ac_try" in |
| 12571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12572 | *) ac_try_echo=$ac_try;; |
| 12573 | esac |
| 12574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12575 | (eval "$ac_try") 2>&5 |
| 12576 | ac_status=$? |
| 12577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12578 | (exit $ac_status); }; }; then |
| 12579 | eval "$as_ac_var=yes" |
| 12580 | else |
| 12581 | echo "$as_me: failed program was:" >&5 |
| 12582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12583 | |
| 12584 | eval "$as_ac_var=no" |
| 12585 | fi |
| 12586 | |
| 12587 | rm -f core conftest.err conftest.$ac_objext \ |
| 12588 | conftest$ac_exeext conftest.$ac_ext |
| 12589 | fi |
| 12590 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12592 | echo "${ECHO_T}$ac_res" >&6; } |
| 12593 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12594 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12595 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12596 | _ACEOF |
| 12597 | break |
| 12598 | fi |
| 12599 | done |
| 12600 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12601 | |
| 12602 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12603 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12604 | do |
| 12605 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12606 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12607 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12608 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12610 | else |
| 12611 | cat >conftest.$ac_ext <<_ACEOF |
| 12612 | /* confdefs.h. */ |
| 12613 | _ACEOF |
| 12614 | cat confdefs.h >>conftest.$ac_ext |
| 12615 | cat >>conftest.$ac_ext <<_ACEOF |
| 12616 | /* end confdefs.h. */ |
| 12617 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12618 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12619 | #define $ac_func innocuous_$ac_func |
| 12620 | |
| 12621 | /* System header to define __stub macros and hopefully few prototypes, |
| 12622 | which can conflict with char $ac_func (); below. |
| 12623 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12624 | <limits.h> exists even on freestanding compilers. */ |
| 12625 | |
| 12626 | #ifdef __STDC__ |
| 12627 | # include <limits.h> |
| 12628 | #else |
| 12629 | # include <assert.h> |
| 12630 | #endif |
| 12631 | |
| 12632 | #undef $ac_func |
| 12633 | |
| 12634 | /* Override any GCC internal prototype to avoid an error. |
| 12635 | Use char because int might match the return type of a GCC |
| 12636 | builtin and then its argument prototype would still apply. */ |
| 12637 | #ifdef __cplusplus |
| 12638 | extern "C" |
| 12639 | #endif |
| 12640 | char $ac_func (); |
| 12641 | /* The GNU C library defines this for functions which it implements |
| 12642 | to always fail with ENOSYS. Some functions are actually named |
| 12643 | something starting with __ and the normal name is an alias. */ |
| 12644 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12645 | choke me |
| 12646 | #endif |
| 12647 | |
| 12648 | int |
| 12649 | main () |
| 12650 | { |
| 12651 | return $ac_func (); |
| 12652 | ; |
| 12653 | return 0; |
| 12654 | } |
| 12655 | _ACEOF |
| 12656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12657 | if { (ac_try="$ac_link" |
| 12658 | case "(($ac_try" in |
| 12659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12660 | *) ac_try_echo=$ac_try;; |
| 12661 | esac |
| 12662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12663 | (eval "$ac_link") 2>conftest.er1 |
| 12664 | ac_status=$? |
| 12665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12666 | rm -f conftest.er1 |
| 12667 | cat conftest.err >&5 |
| 12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12669 | (exit $ac_status); } && |
| 12670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12671 | { (case "(($ac_try" in |
| 12672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12673 | *) ac_try_echo=$ac_try;; |
| 12674 | esac |
| 12675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12676 | (eval "$ac_try") 2>&5 |
| 12677 | ac_status=$? |
| 12678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12679 | (exit $ac_status); }; } && |
| 12680 | { ac_try='test -s conftest$ac_exeext' |
| 12681 | { (case "(($ac_try" in |
| 12682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12683 | *) ac_try_echo=$ac_try;; |
| 12684 | esac |
| 12685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12686 | (eval "$ac_try") 2>&5 |
| 12687 | ac_status=$? |
| 12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12689 | (exit $ac_status); }; }; then |
| 12690 | eval "$as_ac_var=yes" |
| 12691 | else |
| 12692 | echo "$as_me: failed program was:" >&5 |
| 12693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12694 | |
| 12695 | eval "$as_ac_var=no" |
| 12696 | fi |
| 12697 | |
| 12698 | rm -f core conftest.err conftest.$ac_objext \ |
| 12699 | conftest$ac_exeext conftest.$ac_ext |
| 12700 | fi |
| 12701 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12702 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12703 | echo "${ECHO_T}$ac_res" >&6; } |
| 12704 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12705 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12706 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12707 | _ACEOF |
| 12708 | |
| 12709 | fi |
| 12710 | done |
| 12711 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12712 | |
| 12713 | |
| 12714 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12715 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12716 | do |
| 12717 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12718 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12719 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12720 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12722 | else |
| 12723 | cat >conftest.$ac_ext <<_ACEOF |
| 12724 | /* confdefs.h. */ |
| 12725 | _ACEOF |
| 12726 | cat confdefs.h >>conftest.$ac_ext |
| 12727 | cat >>conftest.$ac_ext <<_ACEOF |
| 12728 | /* end confdefs.h. */ |
| 12729 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12731 | #define $ac_func innocuous_$ac_func |
| 12732 | |
| 12733 | /* System header to define __stub macros and hopefully few prototypes, |
| 12734 | which can conflict with char $ac_func (); below. |
| 12735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12736 | <limits.h> exists even on freestanding compilers. */ |
| 12737 | |
| 12738 | #ifdef __STDC__ |
| 12739 | # include <limits.h> |
| 12740 | #else |
| 12741 | # include <assert.h> |
| 12742 | #endif |
| 12743 | |
| 12744 | #undef $ac_func |
| 12745 | |
| 12746 | /* Override any GCC internal prototype to avoid an error. |
| 12747 | Use char because int might match the return type of a GCC |
| 12748 | builtin and then its argument prototype would still apply. */ |
| 12749 | #ifdef __cplusplus |
| 12750 | extern "C" |
| 12751 | #endif |
| 12752 | char $ac_func (); |
| 12753 | /* The GNU C library defines this for functions which it implements |
| 12754 | to always fail with ENOSYS. Some functions are actually named |
| 12755 | something starting with __ and the normal name is an alias. */ |
| 12756 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12757 | choke me |
| 12758 | #endif |
| 12759 | |
| 12760 | int |
| 12761 | main () |
| 12762 | { |
| 12763 | return $ac_func (); |
| 12764 | ; |
| 12765 | return 0; |
| 12766 | } |
| 12767 | _ACEOF |
| 12768 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12769 | if { (ac_try="$ac_link" |
| 12770 | case "(($ac_try" in |
| 12771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12772 | *) ac_try_echo=$ac_try;; |
| 12773 | esac |
| 12774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12775 | (eval "$ac_link") 2>conftest.er1 |
| 12776 | ac_status=$? |
| 12777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12778 | rm -f conftest.er1 |
| 12779 | cat conftest.err >&5 |
| 12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12781 | (exit $ac_status); } && |
| 12782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12783 | { (case "(($ac_try" in |
| 12784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12785 | *) ac_try_echo=$ac_try;; |
| 12786 | esac |
| 12787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12788 | (eval "$ac_try") 2>&5 |
| 12789 | ac_status=$? |
| 12790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12791 | (exit $ac_status); }; } && |
| 12792 | { ac_try='test -s conftest$ac_exeext' |
| 12793 | { (case "(($ac_try" in |
| 12794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12795 | *) ac_try_echo=$ac_try;; |
| 12796 | esac |
| 12797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12798 | (eval "$ac_try") 2>&5 |
| 12799 | ac_status=$? |
| 12800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12801 | (exit $ac_status); }; }; then |
| 12802 | eval "$as_ac_var=yes" |
| 12803 | else |
| 12804 | echo "$as_me: failed program was:" >&5 |
| 12805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12806 | |
| 12807 | eval "$as_ac_var=no" |
| 12808 | fi |
| 12809 | |
| 12810 | rm -f core conftest.err conftest.$ac_objext \ |
| 12811 | conftest$ac_exeext conftest.$ac_ext |
| 12812 | fi |
| 12813 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12814 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12815 | echo "${ECHO_T}$ac_res" >&6; } |
| 12816 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12817 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12818 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12819 | _ACEOF |
| 12820 | |
| 12821 | fi |
| 12822 | done |
| 12823 | |
| 12824 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12825 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 12826 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12827 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 12828 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12829 | LLVMGCCCOMMAND="$LLVMGCC" |
| 12830 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12831 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12832 | |
| 12833 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12834 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12835 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 12836 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12837 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12839 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 12840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12841 | else |
| 12842 | case $LLVMGCC in |
| 12843 | [\\/]* | ?:[\\/]*) |
| 12844 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 12845 | ;; |
| 12846 | *) |
| 12847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12848 | for as_dir in $PATH |
| 12849 | do |
| 12850 | IFS=$as_save_IFS |
| 12851 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12852 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12853 | 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] | 12854 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12855 | 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] | 12856 | break 2 |
| 12857 | fi |
| 12858 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12859 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12860 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12861 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12862 | ;; |
| 12863 | esac |
| 12864 | fi |
| 12865 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12866 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12867 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 12868 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12869 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12870 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12871 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12872 | fi |
| 12873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12874 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 12875 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 12876 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12877 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 12879 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 12880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12881 | else |
| 12882 | case $LLVMGXX in |
| 12883 | [\\/]* | ?:[\\/]*) |
| 12884 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 12885 | ;; |
| 12886 | *) |
| 12887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12888 | for as_dir in $PATH |
| 12889 | do |
| 12890 | IFS=$as_save_IFS |
| 12891 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12893 | 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] | 12894 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12895 | 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] | 12896 | break 2 |
| 12897 | fi |
| 12898 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12899 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12900 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12901 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12902 | ;; |
| 12903 | esac |
| 12904 | fi |
| 12905 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12906 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12907 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 12908 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12909 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12910 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12911 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12912 | fi |
| 12913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12914 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12915 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12916 | if test -z "$LLVMGCC"; then |
| 12917 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12918 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12919 | fi |
| 12920 | if test -z "$LLVMGXX"; then |
| 12921 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12922 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 12923 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12924 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12925 | LLVMGCC=$LLVMGCC |
| 12926 | |
| 12927 | LLVMGXX=$LLVMGXX |
| 12928 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12929 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 12930 | |
| 12931 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 12932 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 12933 | fi |
| 12934 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 12935 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 12936 | # Check whether --with-llvmcc was given. |
| 12937 | if test "${with_llvmcc+set}" = set; then |
| 12938 | withval=$with_llvmcc; |
| 12939 | else |
| 12940 | with_llvmcc=check |
| 12941 | fi |
| 12942 | |
| 12943 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 12944 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 12945 | if test "$with_llvmcc" != "check"; then |
| 12946 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 12947 | test "$with_llvmcc" != "clang" && |
| 12948 | test "$with_llvmcc" != "none"); then |
| 12949 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 12950 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 12951 | { (exit 1); exit 1; }; } |
| 12952 | fi |
| 12953 | WITH_LLVMCC="$with_llvmcc" |
| 12954 | elif test -n "$LLVMGCC"; then |
| 12955 | WITH_LLVMCC=llvm-gcc |
| 12956 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 12957 | WITH_LLVMCC=clang |
| 12958 | else |
| 12959 | WITH_LLVMCC=none |
| 12960 | fi |
| 12961 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 12962 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 12963 | LLVMCC_OPTION=$WITH_LLVMCC |
| 12964 | |
| 12965 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12966 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12967 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12968 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12969 | ICC=no |
| 12970 | IXX=no |
| 12971 | case $CC in |
| 12972 | icc*|icpc*) |
| 12973 | ICC=yes |
| 12974 | IXX=yes |
| 12975 | ;; |
| 12976 | *) |
| 12977 | ;; |
| 12978 | esac |
| 12979 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12980 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12981 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12982 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12983 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12984 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12985 | fi |
| 12986 | |
| 12987 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12988 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12989 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 12990 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 12991 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12992 | fi |
| 12993 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12994 | if test "$GCC" = "yes" |
| 12995 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12996 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12997 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12998 | #error Unsupported GCC version |
| 12999 | #endif |
| 13000 | |
| 13001 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13002 | rm -f conftest.$ac_objext |
| 13003 | if { (ac_try="$ac_compile" |
| 13004 | case "(($ac_try" in |
| 13005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13006 | *) ac_try_echo=$ac_try;; |
| 13007 | esac |
| 13008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13009 | (eval "$ac_compile") 2>conftest.er1 |
| 13010 | ac_status=$? |
| 13011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13012 | rm -f conftest.er1 |
| 13013 | cat conftest.err >&5 |
| 13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13015 | (exit $ac_status); } && |
| 13016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13017 | { (case "(($ac_try" in |
| 13018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13019 | *) ac_try_echo=$ac_try;; |
| 13020 | esac |
| 13021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13022 | (eval "$ac_try") 2>&5 |
| 13023 | ac_status=$? |
| 13024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13025 | (exit $ac_status); }; } && |
| 13026 | { ac_try='test -s conftest.$ac_objext' |
| 13027 | { (case "(($ac_try" in |
| 13028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13029 | *) ac_try_echo=$ac_try;; |
| 13030 | esac |
| 13031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13032 | (eval "$ac_try") 2>&5 |
| 13033 | ac_status=$? |
| 13034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13035 | (exit $ac_status); }; }; then |
| 13036 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13037 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13038 | echo "$as_me: failed program was:" >&5 |
| 13039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13040 | |
| 13041 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13042 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13043 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13044 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13045 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13047 | fi |
| 13048 | |
| 13049 | if test -z "$llvm_cv_gnu_make_command" |
| 13050 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13051 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13052 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13053 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13054 | fi |
| 13055 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13056 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13057 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13058 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13059 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13060 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13061 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13062 | |
| 13063 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13064 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13065 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13066 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13067 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13068 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13069 | |
| 13070 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13071 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13072 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13074 | else |
| 13075 | ac_check_lib_save_LIBS=$LIBS |
| 13076 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13077 | cat >conftest.$ac_ext <<_ACEOF |
| 13078 | /* confdefs.h. */ |
| 13079 | _ACEOF |
| 13080 | cat confdefs.h >>conftest.$ac_ext |
| 13081 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13082 | /* end confdefs.h. */ |
| 13083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13084 | /* Override any GCC internal prototype to avoid an error. |
| 13085 | Use char because int might match the return type of a GCC |
| 13086 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13087 | #ifdef __cplusplus |
| 13088 | extern "C" |
| 13089 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13090 | char sin (); |
| 13091 | int |
| 13092 | main () |
| 13093 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13094 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13095 | ; |
| 13096 | return 0; |
| 13097 | } |
| 13098 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13100 | if { (ac_try="$ac_link" |
| 13101 | case "(($ac_try" in |
| 13102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13103 | *) ac_try_echo=$ac_try;; |
| 13104 | esac |
| 13105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13106 | (eval "$ac_link") 2>conftest.er1 |
| 13107 | ac_status=$? |
| 13108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13109 | rm -f conftest.er1 |
| 13110 | cat conftest.err >&5 |
| 13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13112 | (exit $ac_status); } && |
| 13113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13114 | { (case "(($ac_try" in |
| 13115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13116 | *) ac_try_echo=$ac_try;; |
| 13117 | esac |
| 13118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13119 | (eval "$ac_try") 2>&5 |
| 13120 | ac_status=$? |
| 13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13122 | (exit $ac_status); }; } && |
| 13123 | { ac_try='test -s conftest$ac_exeext' |
| 13124 | { (case "(($ac_try" in |
| 13125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13126 | *) ac_try_echo=$ac_try;; |
| 13127 | esac |
| 13128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13129 | (eval "$ac_try") 2>&5 |
| 13130 | ac_status=$? |
| 13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13132 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13133 | ac_cv_lib_m_sin=yes |
| 13134 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13135 | echo "$as_me: failed program was:" >&5 |
| 13136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13137 | |
| 13138 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13139 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13140 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13141 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13142 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13143 | LIBS=$ac_check_lib_save_LIBS |
| 13144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13145 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13146 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13147 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13148 | cat >>confdefs.h <<_ACEOF |
| 13149 | #define HAVE_LIBM 1 |
| 13150 | _ACEOF |
| 13151 | |
| 13152 | LIBS="-lm $LIBS" |
| 13153 | |
| 13154 | fi |
| 13155 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13156 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13157 | |
| 13158 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13159 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13160 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13162 | else |
| 13163 | ac_check_lib_save_LIBS=$LIBS |
| 13164 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13165 | cat >conftest.$ac_ext <<_ACEOF |
| 13166 | /* confdefs.h. */ |
| 13167 | _ACEOF |
| 13168 | cat confdefs.h >>conftest.$ac_ext |
| 13169 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13170 | /* end confdefs.h. */ |
| 13171 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13172 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13173 | int |
| 13174 | main () |
| 13175 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13176 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13177 | ; |
| 13178 | return 0; |
| 13179 | } |
| 13180 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13181 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13182 | if { (ac_try="$ac_link" |
| 13183 | case "(($ac_try" in |
| 13184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13185 | *) ac_try_echo=$ac_try;; |
| 13186 | esac |
| 13187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13188 | (eval "$ac_link") 2>conftest.er1 |
| 13189 | ac_status=$? |
| 13190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13191 | rm -f conftest.er1 |
| 13192 | cat conftest.err >&5 |
| 13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13194 | (exit $ac_status); } && |
| 13195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13196 | { (case "(($ac_try" in |
| 13197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13198 | *) ac_try_echo=$ac_try;; |
| 13199 | esac |
| 13200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13201 | (eval "$ac_try") 2>&5 |
| 13202 | ac_status=$? |
| 13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13204 | (exit $ac_status); }; } && |
| 13205 | { ac_try='test -s conftest$ac_exeext' |
| 13206 | { (case "(($ac_try" in |
| 13207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13208 | *) ac_try_echo=$ac_try;; |
| 13209 | esac |
| 13210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13211 | (eval "$ac_try") 2>&5 |
| 13212 | ac_status=$? |
| 13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13214 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13215 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13216 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13217 | echo "$as_me: failed program was:" >&5 |
| 13218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13219 | |
| 13220 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13221 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13222 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13223 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13224 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13225 | LIBS=$ac_check_lib_save_LIBS |
| 13226 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13227 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13228 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13229 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13230 | cat >>confdefs.h <<_ACEOF |
| 13231 | #define HAVE_LIBIMAGEHLP 1 |
| 13232 | _ACEOF |
| 13233 | |
| 13234 | LIBS="-limagehlp $LIBS" |
| 13235 | |
| 13236 | fi |
| 13237 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13238 | |
| 13239 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13240 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13241 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13243 | else |
| 13244 | ac_check_lib_save_LIBS=$LIBS |
| 13245 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13246 | cat >conftest.$ac_ext <<_ACEOF |
| 13247 | /* confdefs.h. */ |
| 13248 | _ACEOF |
| 13249 | cat confdefs.h >>conftest.$ac_ext |
| 13250 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13251 | /* end confdefs.h. */ |
| 13252 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13253 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13254 | int |
| 13255 | main () |
| 13256 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13257 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13258 | ; |
| 13259 | return 0; |
| 13260 | } |
| 13261 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13262 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13263 | if { (ac_try="$ac_link" |
| 13264 | case "(($ac_try" in |
| 13265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13266 | *) ac_try_echo=$ac_try;; |
| 13267 | esac |
| 13268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13269 | (eval "$ac_link") 2>conftest.er1 |
| 13270 | ac_status=$? |
| 13271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13272 | rm -f conftest.er1 |
| 13273 | cat conftest.err >&5 |
| 13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13275 | (exit $ac_status); } && |
| 13276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13277 | { (case "(($ac_try" in |
| 13278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13279 | *) ac_try_echo=$ac_try;; |
| 13280 | esac |
| 13281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13282 | (eval "$ac_try") 2>&5 |
| 13283 | ac_status=$? |
| 13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13285 | (exit $ac_status); }; } && |
| 13286 | { ac_try='test -s conftest$ac_exeext' |
| 13287 | { (case "(($ac_try" in |
| 13288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13289 | *) ac_try_echo=$ac_try;; |
| 13290 | esac |
| 13291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13292 | (eval "$ac_try") 2>&5 |
| 13293 | ac_status=$? |
| 13294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13295 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13296 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13298 | echo "$as_me: failed program was:" >&5 |
| 13299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13300 | |
| 13301 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13302 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13303 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13304 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13305 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13306 | LIBS=$ac_check_lib_save_LIBS |
| 13307 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13308 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13309 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13310 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13311 | cat >>confdefs.h <<_ACEOF |
| 13312 | #define HAVE_LIBPSAPI 1 |
| 13313 | _ACEOF |
| 13314 | |
| 13315 | LIBS="-lpsapi $LIBS" |
| 13316 | |
| 13317 | fi |
| 13318 | |
| 13319 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13320 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13321 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13322 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13323 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13325 | else |
| 13326 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13327 | cat >conftest.$ac_ext <<_ACEOF |
| 13328 | /* confdefs.h. */ |
| 13329 | _ACEOF |
| 13330 | cat confdefs.h >>conftest.$ac_ext |
| 13331 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13332 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13334 | /* Override any GCC internal prototype to avoid an error. |
| 13335 | Use char because int might match the return type of a GCC |
| 13336 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13337 | #ifdef __cplusplus |
| 13338 | extern "C" |
| 13339 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13340 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13341 | int |
| 13342 | main () |
| 13343 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13344 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13345 | ; |
| 13346 | return 0; |
| 13347 | } |
| 13348 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13349 | for ac_lib in '' dl; do |
| 13350 | if test -z "$ac_lib"; then |
| 13351 | ac_res="none required" |
| 13352 | else |
| 13353 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13354 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13355 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13356 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13357 | if { (ac_try="$ac_link" |
| 13358 | case "(($ac_try" in |
| 13359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13360 | *) ac_try_echo=$ac_try;; |
| 13361 | esac |
| 13362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13363 | (eval "$ac_link") 2>conftest.er1 |
| 13364 | ac_status=$? |
| 13365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13366 | rm -f conftest.er1 |
| 13367 | cat conftest.err >&5 |
| 13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13369 | (exit $ac_status); } && |
| 13370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13371 | { (case "(($ac_try" in |
| 13372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13373 | *) ac_try_echo=$ac_try;; |
| 13374 | esac |
| 13375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13376 | (eval "$ac_try") 2>&5 |
| 13377 | ac_status=$? |
| 13378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13379 | (exit $ac_status); }; } && |
| 13380 | { ac_try='test -s conftest$ac_exeext' |
| 13381 | { (case "(($ac_try" in |
| 13382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13383 | *) ac_try_echo=$ac_try;; |
| 13384 | esac |
| 13385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13386 | (eval "$ac_try") 2>&5 |
| 13387 | ac_status=$? |
| 13388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13389 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13390 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13391 | else |
| 13392 | echo "$as_me: failed program was:" >&5 |
| 13393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13394 | |
| 13395 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13396 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13397 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13398 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13399 | conftest$ac_exeext |
| 13400 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13401 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13402 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13403 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13404 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13405 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13406 | else |
| 13407 | ac_cv_search_dlopen=no |
| 13408 | fi |
| 13409 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13410 | LIBS=$ac_func_search_save_LIBS |
| 13411 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13412 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13413 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13414 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13415 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13416 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13417 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13418 | cat >>confdefs.h <<\_ACEOF |
| 13419 | #define HAVE_DLOPEN 1 |
| 13420 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13421 | |
| 13422 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13423 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13424 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13425 | fi |
| 13426 | |
| 13427 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13428 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13429 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13430 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13431 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13433 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13434 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13435 | cat >conftest.$ac_ext <<_ACEOF |
| 13436 | /* confdefs.h. */ |
| 13437 | _ACEOF |
| 13438 | cat confdefs.h >>conftest.$ac_ext |
| 13439 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13440 | /* end confdefs.h. */ |
| 13441 | |
| 13442 | /* Override any GCC internal prototype to avoid an error. |
| 13443 | Use char because int might match the return type of a GCC |
| 13444 | builtin and then its argument prototype would still apply. */ |
| 13445 | #ifdef __cplusplus |
| 13446 | extern "C" |
| 13447 | #endif |
| 13448 | char ffi_call (); |
| 13449 | int |
| 13450 | main () |
| 13451 | { |
| 13452 | return ffi_call (); |
| 13453 | ; |
| 13454 | return 0; |
| 13455 | } |
| 13456 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13457 | for ac_lib in '' ffi; do |
| 13458 | if test -z "$ac_lib"; then |
| 13459 | ac_res="none required" |
| 13460 | else |
| 13461 | ac_res=-l$ac_lib |
| 13462 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13463 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13464 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13465 | if { (ac_try="$ac_link" |
| 13466 | case "(($ac_try" in |
| 13467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13468 | *) ac_try_echo=$ac_try;; |
| 13469 | esac |
| 13470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13471 | (eval "$ac_link") 2>conftest.er1 |
| 13472 | ac_status=$? |
| 13473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13474 | rm -f conftest.er1 |
| 13475 | cat conftest.err >&5 |
| 13476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13477 | (exit $ac_status); } && |
| 13478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13479 | { (case "(($ac_try" in |
| 13480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13481 | *) ac_try_echo=$ac_try;; |
| 13482 | esac |
| 13483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13484 | (eval "$ac_try") 2>&5 |
| 13485 | ac_status=$? |
| 13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13487 | (exit $ac_status); }; } && |
| 13488 | { ac_try='test -s conftest$ac_exeext' |
| 13489 | { (case "(($ac_try" in |
| 13490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13491 | *) ac_try_echo=$ac_try;; |
| 13492 | esac |
| 13493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13494 | (eval "$ac_try") 2>&5 |
| 13495 | ac_status=$? |
| 13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13497 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13498 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13499 | else |
| 13500 | echo "$as_me: failed program was:" >&5 |
| 13501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13502 | |
| 13503 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13504 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13505 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13506 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13507 | conftest$ac_exeext |
| 13508 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13509 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13510 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13511 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13512 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13513 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13514 | else |
| 13515 | ac_cv_search_ffi_call=no |
| 13516 | fi |
| 13517 | rm conftest.$ac_ext |
| 13518 | LIBS=$ac_func_search_save_LIBS |
| 13519 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13520 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13521 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13522 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13523 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13524 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13525 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13526 | cat >>confdefs.h <<\_ACEOF |
| 13527 | #define HAVE_FFI_CALL 1 |
| 13528 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13529 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13530 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13531 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13532 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13533 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13534 | fi |
| 13535 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13536 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13537 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13538 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13539 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13540 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13542 | else |
| 13543 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13544 | cat >conftest.$ac_ext <<_ACEOF |
| 13545 | /* confdefs.h. */ |
| 13546 | _ACEOF |
| 13547 | cat confdefs.h >>conftest.$ac_ext |
| 13548 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13549 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13551 | /* Override any GCC internal prototype to avoid an error. |
| 13552 | Use char because int might match the return type of a GCC |
| 13553 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13554 | #ifdef __cplusplus |
| 13555 | extern "C" |
| 13556 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13557 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13558 | int |
| 13559 | main () |
| 13560 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13561 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13562 | ; |
| 13563 | return 0; |
| 13564 | } |
| 13565 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13566 | for ac_lib in '' malloc; do |
| 13567 | if test -z "$ac_lib"; then |
| 13568 | ac_res="none required" |
| 13569 | else |
| 13570 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13571 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13572 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13574 | if { (ac_try="$ac_link" |
| 13575 | case "(($ac_try" in |
| 13576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13577 | *) ac_try_echo=$ac_try;; |
| 13578 | esac |
| 13579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13580 | (eval "$ac_link") 2>conftest.er1 |
| 13581 | ac_status=$? |
| 13582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13583 | rm -f conftest.er1 |
| 13584 | cat conftest.err >&5 |
| 13585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13586 | (exit $ac_status); } && |
| 13587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13588 | { (case "(($ac_try" in |
| 13589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13590 | *) ac_try_echo=$ac_try;; |
| 13591 | esac |
| 13592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13593 | (eval "$ac_try") 2>&5 |
| 13594 | ac_status=$? |
| 13595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13596 | (exit $ac_status); }; } && |
| 13597 | { ac_try='test -s conftest$ac_exeext' |
| 13598 | { (case "(($ac_try" in |
| 13599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13600 | *) ac_try_echo=$ac_try;; |
| 13601 | esac |
| 13602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13603 | (eval "$ac_try") 2>&5 |
| 13604 | ac_status=$? |
| 13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13606 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13607 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13608 | else |
| 13609 | echo "$as_me: failed program was:" >&5 |
| 13610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13611 | |
| 13612 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13613 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13614 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13615 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13616 | conftest$ac_exeext |
| 13617 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13618 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13619 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13620 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13621 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13622 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13623 | else |
| 13624 | ac_cv_search_mallinfo=no |
| 13625 | fi |
| 13626 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13627 | LIBS=$ac_func_search_save_LIBS |
| 13628 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13629 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13630 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13631 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13632 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13633 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13634 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13635 | cat >>confdefs.h <<\_ACEOF |
| 13636 | #define HAVE_MALLINFO 1 |
| 13637 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13638 | |
| 13639 | fi |
| 13640 | |
| 13641 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13642 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13643 | |
| 13644 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13645 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13646 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13648 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13649 | ac_check_lib_save_LIBS=$LIBS |
| 13650 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13651 | cat >conftest.$ac_ext <<_ACEOF |
| 13652 | /* confdefs.h. */ |
| 13653 | _ACEOF |
| 13654 | cat confdefs.h >>conftest.$ac_ext |
| 13655 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13656 | /* end confdefs.h. */ |
| 13657 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13658 | /* Override any GCC internal prototype to avoid an error. |
| 13659 | Use char because int might match the return type of a GCC |
| 13660 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13661 | #ifdef __cplusplus |
| 13662 | extern "C" |
| 13663 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13664 | char pthread_mutex_init (); |
| 13665 | int |
| 13666 | main () |
| 13667 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13668 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13669 | ; |
| 13670 | return 0; |
| 13671 | } |
| 13672 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13673 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13674 | if { (ac_try="$ac_link" |
| 13675 | case "(($ac_try" in |
| 13676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13677 | *) ac_try_echo=$ac_try;; |
| 13678 | esac |
| 13679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13680 | (eval "$ac_link") 2>conftest.er1 |
| 13681 | ac_status=$? |
| 13682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13683 | rm -f conftest.er1 |
| 13684 | cat conftest.err >&5 |
| 13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13686 | (exit $ac_status); } && |
| 13687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13688 | { (case "(($ac_try" in |
| 13689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13690 | *) ac_try_echo=$ac_try;; |
| 13691 | esac |
| 13692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13693 | (eval "$ac_try") 2>&5 |
| 13694 | ac_status=$? |
| 13695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13696 | (exit $ac_status); }; } && |
| 13697 | { ac_try='test -s conftest$ac_exeext' |
| 13698 | { (case "(($ac_try" in |
| 13699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13700 | *) ac_try_echo=$ac_try;; |
| 13701 | esac |
| 13702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13703 | (eval "$ac_try") 2>&5 |
| 13704 | ac_status=$? |
| 13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13706 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13707 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13708 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13709 | echo "$as_me: failed program was:" >&5 |
| 13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13711 | |
| 13712 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13713 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13714 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13715 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13716 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13717 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13718 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13719 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13720 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13721 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13722 | cat >>confdefs.h <<_ACEOF |
| 13723 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13724 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13725 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13726 | LIBS="-lpthread $LIBS" |
| 13727 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13728 | fi |
| 13729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13730 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13731 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13732 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13734 | else |
| 13735 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13736 | cat >conftest.$ac_ext <<_ACEOF |
| 13737 | /* confdefs.h. */ |
| 13738 | _ACEOF |
| 13739 | cat confdefs.h >>conftest.$ac_ext |
| 13740 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13741 | /* end confdefs.h. */ |
| 13742 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13743 | /* Override any GCC internal prototype to avoid an error. |
| 13744 | Use char because int might match the return type of a GCC |
| 13745 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13746 | #ifdef __cplusplus |
| 13747 | extern "C" |
| 13748 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13749 | char pthread_mutex_lock (); |
| 13750 | int |
| 13751 | main () |
| 13752 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13753 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13754 | ; |
| 13755 | return 0; |
| 13756 | } |
| 13757 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13758 | for ac_lib in '' pthread; do |
| 13759 | if test -z "$ac_lib"; then |
| 13760 | ac_res="none required" |
| 13761 | else |
| 13762 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13763 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13764 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13765 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13766 | if { (ac_try="$ac_link" |
| 13767 | case "(($ac_try" in |
| 13768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13769 | *) ac_try_echo=$ac_try;; |
| 13770 | esac |
| 13771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13772 | (eval "$ac_link") 2>conftest.er1 |
| 13773 | ac_status=$? |
| 13774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13775 | rm -f conftest.er1 |
| 13776 | cat conftest.err >&5 |
| 13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13778 | (exit $ac_status); } && |
| 13779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13780 | { (case "(($ac_try" in |
| 13781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13782 | *) ac_try_echo=$ac_try;; |
| 13783 | esac |
| 13784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13785 | (eval "$ac_try") 2>&5 |
| 13786 | ac_status=$? |
| 13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13788 | (exit $ac_status); }; } && |
| 13789 | { ac_try='test -s conftest$ac_exeext' |
| 13790 | { (case "(($ac_try" in |
| 13791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13792 | *) ac_try_echo=$ac_try;; |
| 13793 | esac |
| 13794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13795 | (eval "$ac_try") 2>&5 |
| 13796 | ac_status=$? |
| 13797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13798 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13799 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13800 | else |
| 13801 | echo "$as_me: failed program was:" >&5 |
| 13802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13803 | |
| 13804 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13805 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13806 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13807 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13808 | conftest$ac_exeext |
| 13809 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13810 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13811 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13812 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13813 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13814 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13815 | else |
| 13816 | ac_cv_search_pthread_mutex_lock=no |
| 13817 | fi |
| 13818 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13819 | LIBS=$ac_func_search_save_LIBS |
| 13820 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13821 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 13822 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13823 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13824 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13825 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13827 | cat >>confdefs.h <<\_ACEOF |
| 13828 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 13829 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13830 | |
| 13831 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13832 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13833 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 13834 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 13835 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13837 | else |
| 13838 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13839 | cat >conftest.$ac_ext <<_ACEOF |
| 13840 | /* confdefs.h. */ |
| 13841 | _ACEOF |
| 13842 | cat confdefs.h >>conftest.$ac_ext |
| 13843 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13844 | /* end confdefs.h. */ |
| 13845 | |
| 13846 | /* Override any GCC internal prototype to avoid an error. |
| 13847 | Use char because int might match the return type of a GCC |
| 13848 | builtin and then its argument prototype would still apply. */ |
| 13849 | #ifdef __cplusplus |
| 13850 | extern "C" |
| 13851 | #endif |
| 13852 | char pthread_rwlock_init (); |
| 13853 | int |
| 13854 | main () |
| 13855 | { |
| 13856 | return pthread_rwlock_init (); |
| 13857 | ; |
| 13858 | return 0; |
| 13859 | } |
| 13860 | _ACEOF |
| 13861 | for ac_lib in '' pthread; do |
| 13862 | if test -z "$ac_lib"; then |
| 13863 | ac_res="none required" |
| 13864 | else |
| 13865 | ac_res=-l$ac_lib |
| 13866 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13867 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13868 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13869 | if { (ac_try="$ac_link" |
| 13870 | case "(($ac_try" in |
| 13871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13872 | *) ac_try_echo=$ac_try;; |
| 13873 | esac |
| 13874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13875 | (eval "$ac_link") 2>conftest.er1 |
| 13876 | ac_status=$? |
| 13877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13878 | rm -f conftest.er1 |
| 13879 | cat conftest.err >&5 |
| 13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13881 | (exit $ac_status); } && |
| 13882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13883 | { (case "(($ac_try" in |
| 13884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13885 | *) ac_try_echo=$ac_try;; |
| 13886 | esac |
| 13887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13888 | (eval "$ac_try") 2>&5 |
| 13889 | ac_status=$? |
| 13890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13891 | (exit $ac_status); }; } && |
| 13892 | { ac_try='test -s conftest$ac_exeext' |
| 13893 | { (case "(($ac_try" in |
| 13894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13895 | *) ac_try_echo=$ac_try;; |
| 13896 | esac |
| 13897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13898 | (eval "$ac_try") 2>&5 |
| 13899 | ac_status=$? |
| 13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13901 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13902 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13903 | else |
| 13904 | echo "$as_me: failed program was:" >&5 |
| 13905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13906 | |
| 13907 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13908 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13909 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13910 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13911 | conftest$ac_exeext |
| 13912 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13913 | break |
| 13914 | fi |
| 13915 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13916 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13917 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13918 | else |
| 13919 | ac_cv_search_pthread_rwlock_init=no |
| 13920 | fi |
| 13921 | rm conftest.$ac_ext |
| 13922 | LIBS=$ac_func_search_save_LIBS |
| 13923 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13924 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13925 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13926 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13927 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13928 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13929 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13930 | cat >>confdefs.h <<\_ACEOF |
| 13931 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13932 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13933 | |
| 13934 | fi |
| 13935 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13936 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13937 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13938 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13940 | else |
| 13941 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13942 | cat >conftest.$ac_ext <<_ACEOF |
| 13943 | /* confdefs.h. */ |
| 13944 | _ACEOF |
| 13945 | cat confdefs.h >>conftest.$ac_ext |
| 13946 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13947 | /* end confdefs.h. */ |
| 13948 | |
| 13949 | /* Override any GCC internal prototype to avoid an error. |
| 13950 | Use char because int might match the return type of a GCC |
| 13951 | builtin and then its argument prototype would still apply. */ |
| 13952 | #ifdef __cplusplus |
| 13953 | extern "C" |
| 13954 | #endif |
| 13955 | char pthread_getspecific (); |
| 13956 | int |
| 13957 | main () |
| 13958 | { |
| 13959 | return pthread_getspecific (); |
| 13960 | ; |
| 13961 | return 0; |
| 13962 | } |
| 13963 | _ACEOF |
| 13964 | for ac_lib in '' pthread; do |
| 13965 | if test -z "$ac_lib"; then |
| 13966 | ac_res="none required" |
| 13967 | else |
| 13968 | ac_res=-l$ac_lib |
| 13969 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13970 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13972 | if { (ac_try="$ac_link" |
| 13973 | case "(($ac_try" in |
| 13974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13975 | *) ac_try_echo=$ac_try;; |
| 13976 | esac |
| 13977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13978 | (eval "$ac_link") 2>conftest.er1 |
| 13979 | ac_status=$? |
| 13980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13981 | rm -f conftest.er1 |
| 13982 | cat conftest.err >&5 |
| 13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13984 | (exit $ac_status); } && |
| 13985 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13986 | { (case "(($ac_try" in |
| 13987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13988 | *) ac_try_echo=$ac_try;; |
| 13989 | esac |
| 13990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13991 | (eval "$ac_try") 2>&5 |
| 13992 | ac_status=$? |
| 13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13994 | (exit $ac_status); }; } && |
| 13995 | { ac_try='test -s conftest$ac_exeext' |
| 13996 | { (case "(($ac_try" in |
| 13997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13998 | *) ac_try_echo=$ac_try;; |
| 13999 | esac |
| 14000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14001 | (eval "$ac_try") 2>&5 |
| 14002 | ac_status=$? |
| 14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14004 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14005 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14006 | else |
| 14007 | echo "$as_me: failed program was:" >&5 |
| 14008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14009 | |
| 14010 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14011 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14012 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14013 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14014 | conftest$ac_exeext |
| 14015 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14016 | break |
| 14017 | fi |
| 14018 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14019 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14020 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14021 | else |
| 14022 | ac_cv_search_pthread_getspecific=no |
| 14023 | fi |
| 14024 | rm conftest.$ac_ext |
| 14025 | LIBS=$ac_func_search_save_LIBS |
| 14026 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14027 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14028 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14029 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14030 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14031 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14032 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14033 | cat >>confdefs.h <<\_ACEOF |
| 14034 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14035 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14036 | |
| 14037 | fi |
| 14038 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14039 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14040 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14041 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14042 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14043 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14044 | withval=$with_udis86; |
| 14045 | USE_UDIS86=1 |
| 14046 | |
| 14047 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14048 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14049 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14050 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14051 | |
| 14052 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14053 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14054 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14056 | else |
| 14057 | ac_check_lib_save_LIBS=$LIBS |
| 14058 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14059 | cat >conftest.$ac_ext <<_ACEOF |
| 14060 | /* confdefs.h. */ |
| 14061 | _ACEOF |
| 14062 | cat confdefs.h >>conftest.$ac_ext |
| 14063 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14064 | /* end confdefs.h. */ |
| 14065 | |
| 14066 | /* Override any GCC internal prototype to avoid an error. |
| 14067 | Use char because int might match the return type of a GCC |
| 14068 | builtin and then its argument prototype would still apply. */ |
| 14069 | #ifdef __cplusplus |
| 14070 | extern "C" |
| 14071 | #endif |
| 14072 | char ud_init (); |
| 14073 | int |
| 14074 | main () |
| 14075 | { |
| 14076 | return ud_init (); |
| 14077 | ; |
| 14078 | return 0; |
| 14079 | } |
| 14080 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14082 | if { (ac_try="$ac_link" |
| 14083 | case "(($ac_try" in |
| 14084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14085 | *) ac_try_echo=$ac_try;; |
| 14086 | esac |
| 14087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14088 | (eval "$ac_link") 2>conftest.er1 |
| 14089 | ac_status=$? |
| 14090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14091 | rm -f conftest.er1 |
| 14092 | cat conftest.err >&5 |
| 14093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14094 | (exit $ac_status); } && |
| 14095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 14102 | ac_status=$? |
| 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14104 | (exit $ac_status); }; } && |
| 14105 | { ac_try='test -s conftest$ac_exeext' |
| 14106 | { (case "(($ac_try" in |
| 14107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14108 | *) ac_try_echo=$ac_try;; |
| 14109 | esac |
| 14110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14111 | (eval "$ac_try") 2>&5 |
| 14112 | ac_status=$? |
| 14113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14114 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14115 | ac_cv_lib_udis86_ud_init=yes |
| 14116 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14117 | echo "$as_me: failed program was:" >&5 |
| 14118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14119 | |
| 14120 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14121 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14122 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14123 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14124 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14125 | LIBS=$ac_check_lib_save_LIBS |
| 14126 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14127 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14128 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14129 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14130 | cat >>confdefs.h <<_ACEOF |
| 14131 | #define HAVE_LIBUDIS86 1 |
| 14132 | _ACEOF |
| 14133 | |
| 14134 | LIBS="-ludis86 $LIBS" |
| 14135 | |
| 14136 | else |
| 14137 | |
| 14138 | echo "Error! You need to have libudis86 around." |
| 14139 | exit -1 |
| 14140 | |
| 14141 | fi |
| 14142 | |
| 14143 | |
| 14144 | else |
| 14145 | USE_UDIS86=0 |
| 14146 | |
| 14147 | fi |
| 14148 | |
| 14149 | |
| 14150 | cat >>confdefs.h <<_ACEOF |
| 14151 | #define USE_UDIS86 $USE_UDIS86 |
| 14152 | _ACEOF |
| 14153 | |
| 14154 | |
| 14155 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14156 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14157 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14158 | withval=$with_oprofile; |
| 14159 | USE_OPROFILE=1 |
| 14160 | |
| 14161 | case "$withval" in |
| 14162 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14163 | no) llvm_cv_oppath= |
| 14164 | USE_OPROFILE=0 |
| 14165 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14166 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14167 | CPPFLAGS="-I${withval}/include";; |
| 14168 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14169 | if test -n "$llvm_cv_oppath" ; then |
| 14170 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14171 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14172 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14173 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14175 | else |
| 14176 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14177 | cat >conftest.$ac_ext <<_ACEOF |
| 14178 | /* confdefs.h. */ |
| 14179 | _ACEOF |
| 14180 | cat confdefs.h >>conftest.$ac_ext |
| 14181 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14182 | /* end confdefs.h. */ |
| 14183 | |
| 14184 | /* Override any GCC internal prototype to avoid an error. |
| 14185 | Use char because int might match the return type of a GCC |
| 14186 | builtin and then its argument prototype would still apply. */ |
| 14187 | #ifdef __cplusplus |
| 14188 | extern "C" |
| 14189 | #endif |
| 14190 | char bfd_init (); |
| 14191 | int |
| 14192 | main () |
| 14193 | { |
| 14194 | return bfd_init (); |
| 14195 | ; |
| 14196 | return 0; |
| 14197 | } |
| 14198 | _ACEOF |
| 14199 | for ac_lib in '' bfd; do |
| 14200 | if test -z "$ac_lib"; then |
| 14201 | ac_res="none required" |
| 14202 | else |
| 14203 | ac_res=-l$ac_lib |
| 14204 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14205 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14206 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14207 | if { (ac_try="$ac_link" |
| 14208 | case "(($ac_try" in |
| 14209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14210 | *) ac_try_echo=$ac_try;; |
| 14211 | esac |
| 14212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14213 | (eval "$ac_link") 2>conftest.er1 |
| 14214 | ac_status=$? |
| 14215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14216 | rm -f conftest.er1 |
| 14217 | cat conftest.err >&5 |
| 14218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14219 | (exit $ac_status); } && |
| 14220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14221 | { (case "(($ac_try" in |
| 14222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14223 | *) ac_try_echo=$ac_try;; |
| 14224 | esac |
| 14225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14226 | (eval "$ac_try") 2>&5 |
| 14227 | ac_status=$? |
| 14228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14229 | (exit $ac_status); }; } && |
| 14230 | { ac_try='test -s conftest$ac_exeext' |
| 14231 | { (case "(($ac_try" in |
| 14232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14233 | *) ac_try_echo=$ac_try;; |
| 14234 | esac |
| 14235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14236 | (eval "$ac_try") 2>&5 |
| 14237 | ac_status=$? |
| 14238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14239 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14240 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14241 | else |
| 14242 | echo "$as_me: failed program was:" >&5 |
| 14243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14244 | |
| 14245 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14246 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14247 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14248 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14249 | conftest$ac_exeext |
| 14250 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14251 | break |
| 14252 | fi |
| 14253 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14254 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14255 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14256 | else |
| 14257 | ac_cv_search_bfd_init=no |
| 14258 | fi |
| 14259 | rm conftest.$ac_ext |
| 14260 | LIBS=$ac_func_search_save_LIBS |
| 14261 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14262 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14263 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14264 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14265 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14266 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14267 | |
| 14268 | fi |
| 14269 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14270 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14271 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14272 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14274 | else |
| 14275 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14276 | cat >conftest.$ac_ext <<_ACEOF |
| 14277 | /* confdefs.h. */ |
| 14278 | _ACEOF |
| 14279 | cat confdefs.h >>conftest.$ac_ext |
| 14280 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14281 | /* end confdefs.h. */ |
| 14282 | |
| 14283 | /* Override any GCC internal prototype to avoid an error. |
| 14284 | Use char because int might match the return type of a GCC |
| 14285 | builtin and then its argument prototype would still apply. */ |
| 14286 | #ifdef __cplusplus |
| 14287 | extern "C" |
| 14288 | #endif |
| 14289 | char op_open_agent (); |
| 14290 | int |
| 14291 | main () |
| 14292 | { |
| 14293 | return op_open_agent (); |
| 14294 | ; |
| 14295 | return 0; |
| 14296 | } |
| 14297 | _ACEOF |
| 14298 | for ac_lib in '' opagent; do |
| 14299 | if test -z "$ac_lib"; then |
| 14300 | ac_res="none required" |
| 14301 | else |
| 14302 | ac_res=-l$ac_lib |
| 14303 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14304 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14306 | if { (ac_try="$ac_link" |
| 14307 | case "(($ac_try" in |
| 14308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14309 | *) ac_try_echo=$ac_try;; |
| 14310 | esac |
| 14311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14312 | (eval "$ac_link") 2>conftest.er1 |
| 14313 | ac_status=$? |
| 14314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14315 | rm -f conftest.er1 |
| 14316 | cat conftest.err >&5 |
| 14317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14318 | (exit $ac_status); } && |
| 14319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14320 | { (case "(($ac_try" in |
| 14321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14322 | *) ac_try_echo=$ac_try;; |
| 14323 | esac |
| 14324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14325 | (eval "$ac_try") 2>&5 |
| 14326 | ac_status=$? |
| 14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14328 | (exit $ac_status); }; } && |
| 14329 | { ac_try='test -s conftest$ac_exeext' |
| 14330 | { (case "(($ac_try" in |
| 14331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14332 | *) ac_try_echo=$ac_try;; |
| 14333 | esac |
| 14334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14335 | (eval "$ac_try") 2>&5 |
| 14336 | ac_status=$? |
| 14337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14338 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14339 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14340 | else |
| 14341 | echo "$as_me: failed program was:" >&5 |
| 14342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14343 | |
| 14344 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14345 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14346 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14347 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14348 | conftest$ac_exeext |
| 14349 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14350 | break |
| 14351 | fi |
| 14352 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14353 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14354 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14355 | else |
| 14356 | ac_cv_search_op_open_agent=no |
| 14357 | fi |
| 14358 | rm conftest.$ac_ext |
| 14359 | LIBS=$ac_func_search_save_LIBS |
| 14360 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14361 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14362 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14363 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14364 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14365 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14366 | |
| 14367 | else |
| 14368 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14369 | echo "Error! You need to have libopagent around." |
| 14370 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14371 | |
| 14372 | fi |
| 14373 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14374 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14375 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14376 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14377 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14379 | fi |
| 14380 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14381 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14382 | else |
| 14383 | # Is the header compilable? |
| 14384 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14385 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14386 | cat >conftest.$ac_ext <<_ACEOF |
| 14387 | /* confdefs.h. */ |
| 14388 | _ACEOF |
| 14389 | cat confdefs.h >>conftest.$ac_ext |
| 14390 | cat >>conftest.$ac_ext <<_ACEOF |
| 14391 | /* end confdefs.h. */ |
| 14392 | $ac_includes_default |
| 14393 | #include <opagent.h> |
| 14394 | _ACEOF |
| 14395 | rm -f conftest.$ac_objext |
| 14396 | if { (ac_try="$ac_compile" |
| 14397 | case "(($ac_try" in |
| 14398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14399 | *) ac_try_echo=$ac_try;; |
| 14400 | esac |
| 14401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14402 | (eval "$ac_compile") 2>conftest.er1 |
| 14403 | ac_status=$? |
| 14404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14405 | rm -f conftest.er1 |
| 14406 | cat conftest.err >&5 |
| 14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14408 | (exit $ac_status); } && |
| 14409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14410 | { (case "(($ac_try" in |
| 14411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14412 | *) ac_try_echo=$ac_try;; |
| 14413 | esac |
| 14414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14415 | (eval "$ac_try") 2>&5 |
| 14416 | ac_status=$? |
| 14417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14418 | (exit $ac_status); }; } && |
| 14419 | { ac_try='test -s conftest.$ac_objext' |
| 14420 | { (case "(($ac_try" in |
| 14421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14422 | *) ac_try_echo=$ac_try;; |
| 14423 | esac |
| 14424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14425 | (eval "$ac_try") 2>&5 |
| 14426 | ac_status=$? |
| 14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14428 | (exit $ac_status); }; }; then |
| 14429 | ac_header_compiler=yes |
| 14430 | else |
| 14431 | echo "$as_me: failed program was:" >&5 |
| 14432 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14433 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14434 | ac_header_compiler=no |
| 14435 | fi |
| 14436 | |
| 14437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14438 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14439 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14440 | |
| 14441 | # Is the header present? |
| 14442 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14443 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14444 | cat >conftest.$ac_ext <<_ACEOF |
| 14445 | /* confdefs.h. */ |
| 14446 | _ACEOF |
| 14447 | cat confdefs.h >>conftest.$ac_ext |
| 14448 | cat >>conftest.$ac_ext <<_ACEOF |
| 14449 | /* end confdefs.h. */ |
| 14450 | #include <opagent.h> |
| 14451 | _ACEOF |
| 14452 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14453 | case "(($ac_try" in |
| 14454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14455 | *) ac_try_echo=$ac_try;; |
| 14456 | esac |
| 14457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14458 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14459 | ac_status=$? |
| 14460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14461 | rm -f conftest.er1 |
| 14462 | cat conftest.err >&5 |
| 14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14464 | (exit $ac_status); } >/dev/null; then |
| 14465 | if test -s conftest.err; then |
| 14466 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14467 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14468 | else |
| 14469 | ac_cpp_err= |
| 14470 | fi |
| 14471 | else |
| 14472 | ac_cpp_err=yes |
| 14473 | fi |
| 14474 | if test -z "$ac_cpp_err"; then |
| 14475 | ac_header_preproc=yes |
| 14476 | else |
| 14477 | echo "$as_me: failed program was:" >&5 |
| 14478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14479 | |
| 14480 | ac_header_preproc=no |
| 14481 | fi |
| 14482 | |
| 14483 | rm -f conftest.err conftest.$ac_ext |
| 14484 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14485 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14486 | |
| 14487 | # So? What about this header? |
| 14488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14489 | yes:no: ) |
| 14490 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14491 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14492 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14493 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14494 | ac_header_preproc=yes |
| 14495 | ;; |
| 14496 | no:yes:* ) |
| 14497 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14498 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14499 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14500 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14501 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14502 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14503 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14504 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14505 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14506 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14507 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14508 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14509 | ( cat <<\_ASBOX |
| 14510 | ## ----------------------------------- ## |
| 14511 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14512 | ## ----------------------------------- ## |
| 14513 | _ASBOX |
| 14514 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14515 | ;; |
| 14516 | esac |
| 14517 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14518 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14519 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14521 | else |
| 14522 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14523 | fi |
| 14524 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14525 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14526 | |
| 14527 | fi |
| 14528 | if test $ac_cv_header_opagent_h = yes; then |
| 14529 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14530 | else |
| 14531 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14532 | echo "Error! You need to have opagent.h around." |
| 14533 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14534 | |
| 14535 | fi |
| 14536 | |
| 14537 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14538 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14539 | |
| 14540 | else |
| 14541 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14542 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14543 | |
| 14544 | |
| 14545 | fi |
| 14546 | |
| 14547 | |
| 14548 | cat >>confdefs.h <<_ACEOF |
| 14549 | #define USE_OPROFILE $USE_OPROFILE |
| 14550 | _ACEOF |
| 14551 | |
| 14552 | |
| 14553 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14554 | |
| 14555 | |
| 14556 | |
| 14557 | |
| 14558 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14559 | ac_header_dirent=no |
| 14560 | 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] | 14561 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14562 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14563 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14566 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14567 | cat >conftest.$ac_ext <<_ACEOF |
| 14568 | /* confdefs.h. */ |
| 14569 | _ACEOF |
| 14570 | cat confdefs.h >>conftest.$ac_ext |
| 14571 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14572 | /* end confdefs.h. */ |
| 14573 | #include <sys/types.h> |
| 14574 | #include <$ac_hdr> |
| 14575 | |
| 14576 | int |
| 14577 | main () |
| 14578 | { |
| 14579 | if ((DIR *) 0) |
| 14580 | return 0; |
| 14581 | ; |
| 14582 | return 0; |
| 14583 | } |
| 14584 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14585 | rm -f conftest.$ac_objext |
| 14586 | if { (ac_try="$ac_compile" |
| 14587 | case "(($ac_try" in |
| 14588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14589 | *) ac_try_echo=$ac_try;; |
| 14590 | esac |
| 14591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14592 | (eval "$ac_compile") 2>conftest.er1 |
| 14593 | ac_status=$? |
| 14594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14595 | rm -f conftest.er1 |
| 14596 | cat conftest.err >&5 |
| 14597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14598 | (exit $ac_status); } && |
| 14599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14600 | { (case "(($ac_try" in |
| 14601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14602 | *) ac_try_echo=$ac_try;; |
| 14603 | esac |
| 14604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14605 | (eval "$ac_try") 2>&5 |
| 14606 | ac_status=$? |
| 14607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14608 | (exit $ac_status); }; } && |
| 14609 | { ac_try='test -s conftest.$ac_objext' |
| 14610 | { (case "(($ac_try" in |
| 14611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14612 | *) ac_try_echo=$ac_try;; |
| 14613 | esac |
| 14614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14615 | (eval "$ac_try") 2>&5 |
| 14616 | ac_status=$? |
| 14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14618 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14619 | eval "$as_ac_Header=yes" |
| 14620 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14621 | echo "$as_me: failed program was:" >&5 |
| 14622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14623 | |
| 14624 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14625 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14628 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14629 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14630 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14631 | echo "${ECHO_T}$ac_res" >&6; } |
| 14632 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14633 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14634 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14635 | _ACEOF |
| 14636 | |
| 14637 | ac_header_dirent=$ac_hdr; break |
| 14638 | fi |
| 14639 | |
| 14640 | done |
| 14641 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14642 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14643 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14644 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14645 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14647 | else |
| 14648 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14649 | cat >conftest.$ac_ext <<_ACEOF |
| 14650 | /* confdefs.h. */ |
| 14651 | _ACEOF |
| 14652 | cat confdefs.h >>conftest.$ac_ext |
| 14653 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14654 | /* end confdefs.h. */ |
| 14655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14656 | /* Override any GCC internal prototype to avoid an error. |
| 14657 | Use char because int might match the return type of a GCC |
| 14658 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14659 | #ifdef __cplusplus |
| 14660 | extern "C" |
| 14661 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14662 | char opendir (); |
| 14663 | int |
| 14664 | main () |
| 14665 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14666 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14667 | ; |
| 14668 | return 0; |
| 14669 | } |
| 14670 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14671 | for ac_lib in '' dir; do |
| 14672 | if test -z "$ac_lib"; then |
| 14673 | ac_res="none required" |
| 14674 | else |
| 14675 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14676 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14677 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14679 | if { (ac_try="$ac_link" |
| 14680 | case "(($ac_try" in |
| 14681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14682 | *) ac_try_echo=$ac_try;; |
| 14683 | esac |
| 14684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14685 | (eval "$ac_link") 2>conftest.er1 |
| 14686 | ac_status=$? |
| 14687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14688 | rm -f conftest.er1 |
| 14689 | cat conftest.err >&5 |
| 14690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14691 | (exit $ac_status); } && |
| 14692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14693 | { (case "(($ac_try" in |
| 14694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14695 | *) ac_try_echo=$ac_try;; |
| 14696 | esac |
| 14697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14698 | (eval "$ac_try") 2>&5 |
| 14699 | ac_status=$? |
| 14700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14701 | (exit $ac_status); }; } && |
| 14702 | { ac_try='test -s conftest$ac_exeext' |
| 14703 | { (case "(($ac_try" in |
| 14704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14705 | *) ac_try_echo=$ac_try;; |
| 14706 | esac |
| 14707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14708 | (eval "$ac_try") 2>&5 |
| 14709 | ac_status=$? |
| 14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14711 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14712 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14713 | else |
| 14714 | echo "$as_me: failed program was:" >&5 |
| 14715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14716 | |
| 14717 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14718 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14719 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14720 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14721 | conftest$ac_exeext |
| 14722 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14723 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14724 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14725 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14726 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14727 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14728 | else |
| 14729 | ac_cv_search_opendir=no |
| 14730 | fi |
| 14731 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14732 | LIBS=$ac_func_search_save_LIBS |
| 14733 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14734 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14735 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14736 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14737 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14738 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14739 | |
| 14740 | fi |
| 14741 | |
| 14742 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14743 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14744 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14745 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14747 | else |
| 14748 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14749 | cat >conftest.$ac_ext <<_ACEOF |
| 14750 | /* confdefs.h. */ |
| 14751 | _ACEOF |
| 14752 | cat confdefs.h >>conftest.$ac_ext |
| 14753 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14754 | /* end confdefs.h. */ |
| 14755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14756 | /* Override any GCC internal prototype to avoid an error. |
| 14757 | Use char because int might match the return type of a GCC |
| 14758 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14759 | #ifdef __cplusplus |
| 14760 | extern "C" |
| 14761 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14762 | char opendir (); |
| 14763 | int |
| 14764 | main () |
| 14765 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14766 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14767 | ; |
| 14768 | return 0; |
| 14769 | } |
| 14770 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14771 | for ac_lib in '' x; do |
| 14772 | if test -z "$ac_lib"; then |
| 14773 | ac_res="none required" |
| 14774 | else |
| 14775 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14776 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14777 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14778 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14779 | if { (ac_try="$ac_link" |
| 14780 | case "(($ac_try" in |
| 14781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14782 | *) ac_try_echo=$ac_try;; |
| 14783 | esac |
| 14784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14785 | (eval "$ac_link") 2>conftest.er1 |
| 14786 | ac_status=$? |
| 14787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14788 | rm -f conftest.er1 |
| 14789 | cat conftest.err >&5 |
| 14790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14791 | (exit $ac_status); } && |
| 14792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14793 | { (case "(($ac_try" in |
| 14794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14795 | *) ac_try_echo=$ac_try;; |
| 14796 | esac |
| 14797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14798 | (eval "$ac_try") 2>&5 |
| 14799 | ac_status=$? |
| 14800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14801 | (exit $ac_status); }; } && |
| 14802 | { ac_try='test -s conftest$ac_exeext' |
| 14803 | { (case "(($ac_try" in |
| 14804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14805 | *) ac_try_echo=$ac_try;; |
| 14806 | esac |
| 14807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14808 | (eval "$ac_try") 2>&5 |
| 14809 | ac_status=$? |
| 14810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14811 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14812 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14813 | else |
| 14814 | echo "$as_me: failed program was:" >&5 |
| 14815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14816 | |
| 14817 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14818 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14819 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14820 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14821 | conftest$ac_exeext |
| 14822 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14823 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14824 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14825 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14826 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14827 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14828 | else |
| 14829 | ac_cv_search_opendir=no |
| 14830 | fi |
| 14831 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14832 | LIBS=$ac_func_search_save_LIBS |
| 14833 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14834 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14835 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14836 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14837 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14838 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14839 | |
| 14840 | fi |
| 14841 | |
| 14842 | fi |
| 14843 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14844 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14845 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14846 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14848 | else |
| 14849 | ac_ext=c |
| 14850 | ac_cpp='$CPP $CPPFLAGS' |
| 14851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14854 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14855 | cat >conftest.$ac_ext <<_ACEOF |
| 14856 | /* confdefs.h. */ |
| 14857 | _ACEOF |
| 14858 | cat confdefs.h >>conftest.$ac_ext |
| 14859 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14860 | /* end confdefs.h. */ |
| 14861 | #include <sys/mman.h> |
| 14862 | #include <unistd.h> |
| 14863 | #include <fcntl.h> |
| 14864 | int |
| 14865 | main () |
| 14866 | { |
| 14867 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14868 | ; |
| 14869 | return 0; |
| 14870 | } |
| 14871 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14872 | rm -f conftest.$ac_objext |
| 14873 | if { (ac_try="$ac_compile" |
| 14874 | case "(($ac_try" in |
| 14875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14876 | *) ac_try_echo=$ac_try;; |
| 14877 | esac |
| 14878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14879 | (eval "$ac_compile") 2>conftest.er1 |
| 14880 | ac_status=$? |
| 14881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14882 | rm -f conftest.er1 |
| 14883 | cat conftest.err >&5 |
| 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14885 | (exit $ac_status); } && |
| 14886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14887 | { (case "(($ac_try" in |
| 14888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14889 | *) ac_try_echo=$ac_try;; |
| 14890 | esac |
| 14891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14892 | (eval "$ac_try") 2>&5 |
| 14893 | ac_status=$? |
| 14894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14895 | (exit $ac_status); }; } && |
| 14896 | { ac_try='test -s conftest.$ac_objext' |
| 14897 | { (case "(($ac_try" in |
| 14898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14899 | *) ac_try_echo=$ac_try;; |
| 14900 | esac |
| 14901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14902 | (eval "$ac_try") 2>&5 |
| 14903 | ac_status=$? |
| 14904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14905 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14906 | ac_cv_header_mmap_anon=yes |
| 14907 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14908 | echo "$as_me: failed program was:" >&5 |
| 14909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14910 | |
| 14911 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14912 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14915 | ac_ext=c |
| 14916 | ac_cpp='$CPP $CPPFLAGS' |
| 14917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14920 | |
| 14921 | |
| 14922 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14923 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14924 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14925 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14926 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14927 | cat >>confdefs.h <<\_ACEOF |
| 14928 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14929 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14930 | |
| 14931 | fi |
| 14932 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14933 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14934 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14935 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14937 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14938 | cat >conftest.$ac_ext <<_ACEOF |
| 14939 | /* confdefs.h. */ |
| 14940 | _ACEOF |
| 14941 | cat confdefs.h >>conftest.$ac_ext |
| 14942 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14943 | /* end confdefs.h. */ |
| 14944 | #include <sys/types.h> |
| 14945 | #include <sys/stat.h> |
| 14946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14947 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14948 | # if S_ISBLK (S_IFDIR) |
| 14949 | You lose. |
| 14950 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14951 | #endif |
| 14952 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14953 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14954 | # if S_ISBLK (S_IFCHR) |
| 14955 | You lose. |
| 14956 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14957 | #endif |
| 14958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14959 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14960 | # if S_ISLNK (S_IFREG) |
| 14961 | You lose. |
| 14962 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14963 | #endif |
| 14964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14965 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14966 | # if S_ISSOCK (S_IFREG) |
| 14967 | You lose. |
| 14968 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14969 | #endif |
| 14970 | |
| 14971 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14972 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14973 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14974 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14975 | else |
| 14976 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14977 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14978 | rm -f conftest* |
| 14979 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14980 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14981 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14982 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14983 | if test $ac_cv_header_stat_broken = yes; then |
| 14984 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14985 | cat >>confdefs.h <<\_ACEOF |
| 14986 | #define STAT_MACROS_BROKEN 1 |
| 14987 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14988 | |
| 14989 | fi |
| 14990 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14991 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 14992 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 14993 | if test "${ac_cv_header_stdc+set}" = set; then |
| 14994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14995 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14996 | cat >conftest.$ac_ext <<_ACEOF |
| 14997 | /* confdefs.h. */ |
| 14998 | _ACEOF |
| 14999 | cat confdefs.h >>conftest.$ac_ext |
| 15000 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15001 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15002 | #include <stdlib.h> |
| 15003 | #include <stdarg.h> |
| 15004 | #include <string.h> |
| 15005 | #include <float.h> |
| 15006 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15007 | int |
| 15008 | main () |
| 15009 | { |
| 15010 | |
| 15011 | ; |
| 15012 | return 0; |
| 15013 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15014 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15015 | rm -f conftest.$ac_objext |
| 15016 | if { (ac_try="$ac_compile" |
| 15017 | case "(($ac_try" in |
| 15018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15019 | *) ac_try_echo=$ac_try;; |
| 15020 | esac |
| 15021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15022 | (eval "$ac_compile") 2>conftest.er1 |
| 15023 | ac_status=$? |
| 15024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15025 | rm -f conftest.er1 |
| 15026 | cat conftest.err >&5 |
| 15027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15028 | (exit $ac_status); } && |
| 15029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15030 | { (case "(($ac_try" in |
| 15031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15032 | *) ac_try_echo=$ac_try;; |
| 15033 | esac |
| 15034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15035 | (eval "$ac_try") 2>&5 |
| 15036 | ac_status=$? |
| 15037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15038 | (exit $ac_status); }; } && |
| 15039 | { ac_try='test -s conftest.$ac_objext' |
| 15040 | { (case "(($ac_try" in |
| 15041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15042 | *) ac_try_echo=$ac_try;; |
| 15043 | esac |
| 15044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15045 | (eval "$ac_try") 2>&5 |
| 15046 | ac_status=$? |
| 15047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15048 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15049 | ac_cv_header_stdc=yes |
| 15050 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15051 | echo "$as_me: failed program was:" >&5 |
| 15052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15053 | |
| 15054 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15055 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15058 | |
| 15059 | if test $ac_cv_header_stdc = yes; then |
| 15060 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15061 | cat >conftest.$ac_ext <<_ACEOF |
| 15062 | /* confdefs.h. */ |
| 15063 | _ACEOF |
| 15064 | cat confdefs.h >>conftest.$ac_ext |
| 15065 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15066 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15067 | #include <string.h> |
| 15068 | |
| 15069 | _ACEOF |
| 15070 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15071 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15072 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15073 | else |
| 15074 | ac_cv_header_stdc=no |
| 15075 | fi |
| 15076 | rm -f conftest* |
| 15077 | |
| 15078 | fi |
| 15079 | |
| 15080 | if test $ac_cv_header_stdc = yes; then |
| 15081 | # 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] | 15082 | cat >conftest.$ac_ext <<_ACEOF |
| 15083 | /* confdefs.h. */ |
| 15084 | _ACEOF |
| 15085 | cat confdefs.h >>conftest.$ac_ext |
| 15086 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15087 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15088 | #include <stdlib.h> |
| 15089 | |
| 15090 | _ACEOF |
| 15091 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15092 | $EGREP "free" >/dev/null 2>&1; then |
| 15093 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15094 | else |
| 15095 | ac_cv_header_stdc=no |
| 15096 | fi |
| 15097 | rm -f conftest* |
| 15098 | |
| 15099 | fi |
| 15100 | |
| 15101 | if test $ac_cv_header_stdc = yes; then |
| 15102 | # /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] | 15103 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15104 | : |
| 15105 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15106 | cat >conftest.$ac_ext <<_ACEOF |
| 15107 | /* confdefs.h. */ |
| 15108 | _ACEOF |
| 15109 | cat confdefs.h >>conftest.$ac_ext |
| 15110 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15111 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15112 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15113 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15114 | #if ((' ' & 0x0FF) == 0x020) |
| 15115 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15116 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15117 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15118 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15119 | (('a' <= (c) && (c) <= 'i') \ |
| 15120 | || ('j' <= (c) && (c) <= 'r') \ |
| 15121 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15122 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15123 | #endif |
| 15124 | |
| 15125 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15126 | int |
| 15127 | main () |
| 15128 | { |
| 15129 | int i; |
| 15130 | for (i = 0; i < 256; i++) |
| 15131 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15132 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15133 | return 2; |
| 15134 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15135 | } |
| 15136 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15137 | rm -f conftest$ac_exeext |
| 15138 | if { (ac_try="$ac_link" |
| 15139 | case "(($ac_try" in |
| 15140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15141 | *) ac_try_echo=$ac_try;; |
| 15142 | esac |
| 15143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15144 | (eval "$ac_link") 2>&5 |
| 15145 | ac_status=$? |
| 15146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15148 | { (case "(($ac_try" in |
| 15149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15150 | *) ac_try_echo=$ac_try;; |
| 15151 | esac |
| 15152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15153 | (eval "$ac_try") 2>&5 |
| 15154 | ac_status=$? |
| 15155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15156 | (exit $ac_status); }; }; then |
| 15157 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15159 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15160 | echo "$as_me: failed program was:" >&5 |
| 15161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15162 | |
| 15163 | ( exit $ac_status ) |
| 15164 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15165 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15166 | 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] | 15167 | fi |
| 15168 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15169 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15170 | fi |
| 15171 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15172 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15173 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15174 | if test $ac_cv_header_stdc = yes; then |
| 15175 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15176 | cat >>confdefs.h <<\_ACEOF |
| 15177 | #define STDC_HEADERS 1 |
| 15178 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15179 | |
| 15180 | fi |
| 15181 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15182 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15183 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15184 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15186 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15187 | cat >conftest.$ac_ext <<_ACEOF |
| 15188 | /* confdefs.h. */ |
| 15189 | _ACEOF |
| 15190 | cat confdefs.h >>conftest.$ac_ext |
| 15191 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15192 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15193 | #include <sys/types.h> |
| 15194 | #include <sys/wait.h> |
| 15195 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15196 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15197 | #endif |
| 15198 | #ifndef WIFEXITED |
| 15199 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15200 | #endif |
| 15201 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15202 | int |
| 15203 | main () |
| 15204 | { |
| 15205 | int s; |
| 15206 | wait (&s); |
| 15207 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15208 | ; |
| 15209 | return 0; |
| 15210 | } |
| 15211 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15212 | rm -f conftest.$ac_objext |
| 15213 | if { (ac_try="$ac_compile" |
| 15214 | case "(($ac_try" in |
| 15215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15216 | *) ac_try_echo=$ac_try;; |
| 15217 | esac |
| 15218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15219 | (eval "$ac_compile") 2>conftest.er1 |
| 15220 | ac_status=$? |
| 15221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15222 | rm -f conftest.er1 |
| 15223 | cat conftest.err >&5 |
| 15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15225 | (exit $ac_status); } && |
| 15226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15227 | { (case "(($ac_try" in |
| 15228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15229 | *) ac_try_echo=$ac_try;; |
| 15230 | esac |
| 15231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15232 | (eval "$ac_try") 2>&5 |
| 15233 | ac_status=$? |
| 15234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15235 | (exit $ac_status); }; } && |
| 15236 | { ac_try='test -s conftest.$ac_objext' |
| 15237 | { (case "(($ac_try" in |
| 15238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15239 | *) ac_try_echo=$ac_try;; |
| 15240 | esac |
| 15241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15242 | (eval "$ac_try") 2>&5 |
| 15243 | ac_status=$? |
| 15244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15245 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15246 | ac_cv_header_sys_wait_h=yes |
| 15247 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15248 | echo "$as_me: failed program was:" >&5 |
| 15249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15250 | |
| 15251 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15252 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15255 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15256 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15257 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15258 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15259 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15260 | cat >>confdefs.h <<\_ACEOF |
| 15261 | #define HAVE_SYS_WAIT_H 1 |
| 15262 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15263 | |
| 15264 | fi |
| 15265 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15266 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15267 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15268 | if test "${ac_cv_header_time+set}" = set; then |
| 15269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15270 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15271 | cat >conftest.$ac_ext <<_ACEOF |
| 15272 | /* confdefs.h. */ |
| 15273 | _ACEOF |
| 15274 | cat confdefs.h >>conftest.$ac_ext |
| 15275 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15276 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15277 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15278 | #include <sys/time.h> |
| 15279 | #include <time.h> |
| 15280 | |
| 15281 | int |
| 15282 | main () |
| 15283 | { |
| 15284 | if ((struct tm *) 0) |
| 15285 | return 0; |
| 15286 | ; |
| 15287 | return 0; |
| 15288 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15289 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15290 | rm -f conftest.$ac_objext |
| 15291 | if { (ac_try="$ac_compile" |
| 15292 | case "(($ac_try" in |
| 15293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15294 | *) ac_try_echo=$ac_try;; |
| 15295 | esac |
| 15296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15297 | (eval "$ac_compile") 2>conftest.er1 |
| 15298 | ac_status=$? |
| 15299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15300 | rm -f conftest.er1 |
| 15301 | cat conftest.err >&5 |
| 15302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15303 | (exit $ac_status); } && |
| 15304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15305 | { (case "(($ac_try" in |
| 15306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15307 | *) ac_try_echo=$ac_try;; |
| 15308 | esac |
| 15309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15310 | (eval "$ac_try") 2>&5 |
| 15311 | ac_status=$? |
| 15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15313 | (exit $ac_status); }; } && |
| 15314 | { ac_try='test -s conftest.$ac_objext' |
| 15315 | { (case "(($ac_try" in |
| 15316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15317 | *) ac_try_echo=$ac_try;; |
| 15318 | esac |
| 15319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15320 | (eval "$ac_try") 2>&5 |
| 15321 | ac_status=$? |
| 15322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15323 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15324 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15325 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15326 | echo "$as_me: failed program was:" >&5 |
| 15327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15328 | |
| 15329 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15330 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15334 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15335 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15336 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15337 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15338 | cat >>confdefs.h <<\_ACEOF |
| 15339 | #define TIME_WITH_SYS_TIME 1 |
| 15340 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15341 | |
| 15342 | fi |
| 15343 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15345 | |
| 15346 | |
| 15347 | |
| 15348 | |
| 15349 | |
| 15350 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15351 | 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] | 15352 | do |
| 15353 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15355 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15359 | fi |
| 15360 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15361 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15362 | echo "${ECHO_T}$ac_res" >&6; } |
| 15363 | else |
| 15364 | # Is the header compilable? |
| 15365 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15366 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15367 | cat >conftest.$ac_ext <<_ACEOF |
| 15368 | /* confdefs.h. */ |
| 15369 | _ACEOF |
| 15370 | cat confdefs.h >>conftest.$ac_ext |
| 15371 | cat >>conftest.$ac_ext <<_ACEOF |
| 15372 | /* end confdefs.h. */ |
| 15373 | $ac_includes_default |
| 15374 | #include <$ac_header> |
| 15375 | _ACEOF |
| 15376 | rm -f conftest.$ac_objext |
| 15377 | if { (ac_try="$ac_compile" |
| 15378 | case "(($ac_try" in |
| 15379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15380 | *) ac_try_echo=$ac_try;; |
| 15381 | esac |
| 15382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15383 | (eval "$ac_compile") 2>conftest.er1 |
| 15384 | ac_status=$? |
| 15385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15386 | rm -f conftest.er1 |
| 15387 | cat conftest.err >&5 |
| 15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15389 | (exit $ac_status); } && |
| 15390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15391 | { (case "(($ac_try" in |
| 15392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15393 | *) ac_try_echo=$ac_try;; |
| 15394 | esac |
| 15395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15396 | (eval "$ac_try") 2>&5 |
| 15397 | ac_status=$? |
| 15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15399 | (exit $ac_status); }; } && |
| 15400 | { ac_try='test -s conftest.$ac_objext' |
| 15401 | { (case "(($ac_try" in |
| 15402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15403 | *) ac_try_echo=$ac_try;; |
| 15404 | esac |
| 15405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15406 | (eval "$ac_try") 2>&5 |
| 15407 | ac_status=$? |
| 15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15409 | (exit $ac_status); }; }; then |
| 15410 | ac_header_compiler=yes |
| 15411 | else |
| 15412 | echo "$as_me: failed program was:" >&5 |
| 15413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15414 | |
| 15415 | ac_header_compiler=no |
| 15416 | fi |
| 15417 | |
| 15418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15419 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15420 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15421 | |
| 15422 | # Is the header present? |
| 15423 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15424 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15425 | cat >conftest.$ac_ext <<_ACEOF |
| 15426 | /* confdefs.h. */ |
| 15427 | _ACEOF |
| 15428 | cat confdefs.h >>conftest.$ac_ext |
| 15429 | cat >>conftest.$ac_ext <<_ACEOF |
| 15430 | /* end confdefs.h. */ |
| 15431 | #include <$ac_header> |
| 15432 | _ACEOF |
| 15433 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15434 | case "(($ac_try" in |
| 15435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15436 | *) ac_try_echo=$ac_try;; |
| 15437 | esac |
| 15438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15439 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15440 | ac_status=$? |
| 15441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15442 | rm -f conftest.er1 |
| 15443 | cat conftest.err >&5 |
| 15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15445 | (exit $ac_status); } >/dev/null; then |
| 15446 | if test -s conftest.err; then |
| 15447 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15449 | else |
| 15450 | ac_cpp_err= |
| 15451 | fi |
| 15452 | else |
| 15453 | ac_cpp_err=yes |
| 15454 | fi |
| 15455 | if test -z "$ac_cpp_err"; then |
| 15456 | ac_header_preproc=yes |
| 15457 | else |
| 15458 | echo "$as_me: failed program was:" >&5 |
| 15459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15460 | |
| 15461 | ac_header_preproc=no |
| 15462 | fi |
| 15463 | |
| 15464 | rm -f conftest.err conftest.$ac_ext |
| 15465 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15466 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15467 | |
| 15468 | # So? What about this header? |
| 15469 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15470 | yes:no: ) |
| 15471 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15472 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15473 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15474 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15475 | ac_header_preproc=yes |
| 15476 | ;; |
| 15477 | no:yes:* ) |
| 15478 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15479 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15480 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15481 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15482 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15483 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15484 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15485 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15486 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15487 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15488 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15489 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15490 | ( cat <<\_ASBOX |
| 15491 | ## ----------------------------------- ## |
| 15492 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15493 | ## ----------------------------------- ## |
| 15494 | _ASBOX |
| 15495 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15496 | ;; |
| 15497 | esac |
| 15498 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15500 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15502 | else |
| 15503 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15504 | fi |
| 15505 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15506 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15507 | echo "${ECHO_T}$ac_res" >&6; } |
| 15508 | |
| 15509 | fi |
| 15510 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15511 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15512 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15513 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15514 | |
| 15515 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15516 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15517 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15518 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15519 | |
| 15520 | |
| 15521 | |
| 15522 | |
| 15523 | |
| 15524 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15525 | 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] | 15526 | do |
| 15527 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15528 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15529 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15531 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15533 | fi |
| 15534 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15535 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15536 | echo "${ECHO_T}$ac_res" >&6; } |
| 15537 | else |
| 15538 | # Is the header compilable? |
| 15539 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15540 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15541 | cat >conftest.$ac_ext <<_ACEOF |
| 15542 | /* confdefs.h. */ |
| 15543 | _ACEOF |
| 15544 | cat confdefs.h >>conftest.$ac_ext |
| 15545 | cat >>conftest.$ac_ext <<_ACEOF |
| 15546 | /* end confdefs.h. */ |
| 15547 | $ac_includes_default |
| 15548 | #include <$ac_header> |
| 15549 | _ACEOF |
| 15550 | rm -f conftest.$ac_objext |
| 15551 | if { (ac_try="$ac_compile" |
| 15552 | case "(($ac_try" in |
| 15553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15554 | *) ac_try_echo=$ac_try;; |
| 15555 | esac |
| 15556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15557 | (eval "$ac_compile") 2>conftest.er1 |
| 15558 | ac_status=$? |
| 15559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15560 | rm -f conftest.er1 |
| 15561 | cat conftest.err >&5 |
| 15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15563 | (exit $ac_status); } && |
| 15564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15565 | { (case "(($ac_try" in |
| 15566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15567 | *) ac_try_echo=$ac_try;; |
| 15568 | esac |
| 15569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15570 | (eval "$ac_try") 2>&5 |
| 15571 | ac_status=$? |
| 15572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15573 | (exit $ac_status); }; } && |
| 15574 | { ac_try='test -s conftest.$ac_objext' |
| 15575 | { (case "(($ac_try" in |
| 15576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15577 | *) ac_try_echo=$ac_try;; |
| 15578 | esac |
| 15579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15580 | (eval "$ac_try") 2>&5 |
| 15581 | ac_status=$? |
| 15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15583 | (exit $ac_status); }; }; then |
| 15584 | ac_header_compiler=yes |
| 15585 | else |
| 15586 | echo "$as_me: failed program was:" >&5 |
| 15587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15588 | |
| 15589 | ac_header_compiler=no |
| 15590 | fi |
| 15591 | |
| 15592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15593 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15594 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15595 | |
| 15596 | # Is the header present? |
| 15597 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15598 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15599 | cat >conftest.$ac_ext <<_ACEOF |
| 15600 | /* confdefs.h. */ |
| 15601 | _ACEOF |
| 15602 | cat confdefs.h >>conftest.$ac_ext |
| 15603 | cat >>conftest.$ac_ext <<_ACEOF |
| 15604 | /* end confdefs.h. */ |
| 15605 | #include <$ac_header> |
| 15606 | _ACEOF |
| 15607 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15608 | case "(($ac_try" in |
| 15609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15610 | *) ac_try_echo=$ac_try;; |
| 15611 | esac |
| 15612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15613 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15614 | ac_status=$? |
| 15615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15616 | rm -f conftest.er1 |
| 15617 | cat conftest.err >&5 |
| 15618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15619 | (exit $ac_status); } >/dev/null; then |
| 15620 | if test -s conftest.err; then |
| 15621 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15622 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15623 | else |
| 15624 | ac_cpp_err= |
| 15625 | fi |
| 15626 | else |
| 15627 | ac_cpp_err=yes |
| 15628 | fi |
| 15629 | if test -z "$ac_cpp_err"; then |
| 15630 | ac_header_preproc=yes |
| 15631 | else |
| 15632 | echo "$as_me: failed program was:" >&5 |
| 15633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15634 | |
| 15635 | ac_header_preproc=no |
| 15636 | fi |
| 15637 | |
| 15638 | rm -f conftest.err conftest.$ac_ext |
| 15639 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15640 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15641 | |
| 15642 | # So? What about this header? |
| 15643 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15644 | yes:no: ) |
| 15645 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15646 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15647 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15648 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15649 | ac_header_preproc=yes |
| 15650 | ;; |
| 15651 | no:yes:* ) |
| 15652 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15653 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15654 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15655 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15656 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15657 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15658 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15659 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15660 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15661 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15662 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15663 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15664 | ( cat <<\_ASBOX |
| 15665 | ## ----------------------------------- ## |
| 15666 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15667 | ## ----------------------------------- ## |
| 15668 | _ASBOX |
| 15669 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15670 | ;; |
| 15671 | esac |
| 15672 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15674 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15676 | else |
| 15677 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15678 | fi |
| 15679 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15680 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15681 | echo "${ECHO_T}$ac_res" >&6; } |
| 15682 | |
| 15683 | fi |
| 15684 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15685 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15686 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15687 | _ACEOF |
| 15688 | |
| 15689 | fi |
| 15690 | |
| 15691 | done |
| 15692 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15693 | |
| 15694 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15695 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15696 | do |
| 15697 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15698 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15699 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15700 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15701 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15703 | fi |
| 15704 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15705 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15706 | echo "${ECHO_T}$ac_res" >&6; } |
| 15707 | else |
| 15708 | # Is the header compilable? |
| 15709 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15710 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15711 | cat >conftest.$ac_ext <<_ACEOF |
| 15712 | /* confdefs.h. */ |
| 15713 | _ACEOF |
| 15714 | cat confdefs.h >>conftest.$ac_ext |
| 15715 | cat >>conftest.$ac_ext <<_ACEOF |
| 15716 | /* end confdefs.h. */ |
| 15717 | $ac_includes_default |
| 15718 | #include <$ac_header> |
| 15719 | _ACEOF |
| 15720 | rm -f conftest.$ac_objext |
| 15721 | if { (ac_try="$ac_compile" |
| 15722 | case "(($ac_try" in |
| 15723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15724 | *) ac_try_echo=$ac_try;; |
| 15725 | esac |
| 15726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15727 | (eval "$ac_compile") 2>conftest.er1 |
| 15728 | ac_status=$? |
| 15729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15730 | rm -f conftest.er1 |
| 15731 | cat conftest.err >&5 |
| 15732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15733 | (exit $ac_status); } && |
| 15734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15735 | { (case "(($ac_try" in |
| 15736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15737 | *) ac_try_echo=$ac_try;; |
| 15738 | esac |
| 15739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15740 | (eval "$ac_try") 2>&5 |
| 15741 | ac_status=$? |
| 15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15743 | (exit $ac_status); }; } && |
| 15744 | { ac_try='test -s conftest.$ac_objext' |
| 15745 | { (case "(($ac_try" in |
| 15746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15747 | *) ac_try_echo=$ac_try;; |
| 15748 | esac |
| 15749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15750 | (eval "$ac_try") 2>&5 |
| 15751 | ac_status=$? |
| 15752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15753 | (exit $ac_status); }; }; then |
| 15754 | ac_header_compiler=yes |
| 15755 | else |
| 15756 | echo "$as_me: failed program was:" >&5 |
| 15757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15758 | |
| 15759 | ac_header_compiler=no |
| 15760 | fi |
| 15761 | |
| 15762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15763 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15764 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15765 | |
| 15766 | # Is the header present? |
| 15767 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15768 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15769 | cat >conftest.$ac_ext <<_ACEOF |
| 15770 | /* confdefs.h. */ |
| 15771 | _ACEOF |
| 15772 | cat confdefs.h >>conftest.$ac_ext |
| 15773 | cat >>conftest.$ac_ext <<_ACEOF |
| 15774 | /* end confdefs.h. */ |
| 15775 | #include <$ac_header> |
| 15776 | _ACEOF |
| 15777 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 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); } >/dev/null; then |
| 15790 | if test -s conftest.err; then |
| 15791 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15792 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15793 | else |
| 15794 | ac_cpp_err= |
| 15795 | fi |
| 15796 | else |
| 15797 | ac_cpp_err=yes |
| 15798 | fi |
| 15799 | if test -z "$ac_cpp_err"; then |
| 15800 | ac_header_preproc=yes |
| 15801 | else |
| 15802 | echo "$as_me: failed program was:" >&5 |
| 15803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15804 | |
| 15805 | ac_header_preproc=no |
| 15806 | fi |
| 15807 | |
| 15808 | rm -f conftest.err conftest.$ac_ext |
| 15809 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15810 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15811 | |
| 15812 | # So? What about this header? |
| 15813 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15814 | yes:no: ) |
| 15815 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15816 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15817 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15818 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15819 | ac_header_preproc=yes |
| 15820 | ;; |
| 15821 | no:yes:* ) |
| 15822 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15823 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15824 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15825 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15826 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15827 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15828 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15829 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15830 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15831 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15832 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15833 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15834 | ( cat <<\_ASBOX |
| 15835 | ## ----------------------------------- ## |
| 15836 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15837 | ## ----------------------------------- ## |
| 15838 | _ASBOX |
| 15839 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15840 | ;; |
| 15841 | esac |
| 15842 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15844 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15846 | else |
| 15847 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15848 | fi |
| 15849 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15850 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15851 | echo "${ECHO_T}$ac_res" >&6; } |
| 15852 | |
| 15853 | fi |
| 15854 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15855 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15856 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15857 | _ACEOF |
| 15858 | |
| 15859 | fi |
| 15860 | |
| 15861 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15862 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15863 | |
| 15864 | |
| 15865 | |
| 15866 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15867 | 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] | 15868 | do |
| 15869 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15870 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15871 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15872 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15873 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15875 | fi |
| 15876 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15877 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15878 | echo "${ECHO_T}$ac_res" >&6; } |
| 15879 | else |
| 15880 | # Is the header compilable? |
| 15881 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15882 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15883 | cat >conftest.$ac_ext <<_ACEOF |
| 15884 | /* confdefs.h. */ |
| 15885 | _ACEOF |
| 15886 | cat confdefs.h >>conftest.$ac_ext |
| 15887 | cat >>conftest.$ac_ext <<_ACEOF |
| 15888 | /* end confdefs.h. */ |
| 15889 | $ac_includes_default |
| 15890 | #include <$ac_header> |
| 15891 | _ACEOF |
| 15892 | rm -f conftest.$ac_objext |
| 15893 | if { (ac_try="$ac_compile" |
| 15894 | case "(($ac_try" in |
| 15895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15896 | *) ac_try_echo=$ac_try;; |
| 15897 | esac |
| 15898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15899 | (eval "$ac_compile") 2>conftest.er1 |
| 15900 | ac_status=$? |
| 15901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15902 | rm -f conftest.er1 |
| 15903 | cat conftest.err >&5 |
| 15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15905 | (exit $ac_status); } && |
| 15906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15907 | { (case "(($ac_try" in |
| 15908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15909 | *) ac_try_echo=$ac_try;; |
| 15910 | esac |
| 15911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15912 | (eval "$ac_try") 2>&5 |
| 15913 | ac_status=$? |
| 15914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15915 | (exit $ac_status); }; } && |
| 15916 | { ac_try='test -s conftest.$ac_objext' |
| 15917 | { (case "(($ac_try" in |
| 15918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15919 | *) ac_try_echo=$ac_try;; |
| 15920 | esac |
| 15921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15922 | (eval "$ac_try") 2>&5 |
| 15923 | ac_status=$? |
| 15924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15925 | (exit $ac_status); }; }; then |
| 15926 | ac_header_compiler=yes |
| 15927 | else |
| 15928 | echo "$as_me: failed program was:" >&5 |
| 15929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15930 | |
| 15931 | ac_header_compiler=no |
| 15932 | fi |
| 15933 | |
| 15934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15935 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15936 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15937 | |
| 15938 | # Is the header present? |
| 15939 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15940 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15941 | cat >conftest.$ac_ext <<_ACEOF |
| 15942 | /* confdefs.h. */ |
| 15943 | _ACEOF |
| 15944 | cat confdefs.h >>conftest.$ac_ext |
| 15945 | cat >>conftest.$ac_ext <<_ACEOF |
| 15946 | /* end confdefs.h. */ |
| 15947 | #include <$ac_header> |
| 15948 | _ACEOF |
| 15949 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15950 | case "(($ac_try" in |
| 15951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15952 | *) ac_try_echo=$ac_try;; |
| 15953 | esac |
| 15954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15955 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15956 | ac_status=$? |
| 15957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15958 | rm -f conftest.er1 |
| 15959 | cat conftest.err >&5 |
| 15960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15961 | (exit $ac_status); } >/dev/null; then |
| 15962 | if test -s conftest.err; then |
| 15963 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15964 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15965 | else |
| 15966 | ac_cpp_err= |
| 15967 | fi |
| 15968 | else |
| 15969 | ac_cpp_err=yes |
| 15970 | fi |
| 15971 | if test -z "$ac_cpp_err"; then |
| 15972 | ac_header_preproc=yes |
| 15973 | else |
| 15974 | echo "$as_me: failed program was:" >&5 |
| 15975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15976 | |
| 15977 | ac_header_preproc=no |
| 15978 | fi |
| 15979 | |
| 15980 | rm -f conftest.err conftest.$ac_ext |
| 15981 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15982 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15983 | |
| 15984 | # So? What about this header? |
| 15985 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15986 | yes:no: ) |
| 15987 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15988 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15989 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15990 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15991 | ac_header_preproc=yes |
| 15992 | ;; |
| 15993 | no:yes:* ) |
| 15994 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15995 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15996 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15997 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15998 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15999 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16000 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16001 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16003 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16004 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16005 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16006 | ( cat <<\_ASBOX |
| 16007 | ## ----------------------------------- ## |
| 16008 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16009 | ## ----------------------------------- ## |
| 16010 | _ASBOX |
| 16011 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16012 | ;; |
| 16013 | esac |
| 16014 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16016 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16018 | else |
| 16019 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16020 | fi |
| 16021 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16022 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16023 | echo "${ECHO_T}$ac_res" >&6; } |
| 16024 | |
| 16025 | fi |
| 16026 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16027 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16028 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16029 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16030 | |
| 16031 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16032 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16033 | done |
| 16034 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16035 | |
| 16036 | |
| 16037 | |
| 16038 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16039 | 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] | 16040 | do |
| 16041 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16042 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16043 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16045 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16047 | fi |
| 16048 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16050 | echo "${ECHO_T}$ac_res" >&6; } |
| 16051 | else |
| 16052 | # Is the header compilable? |
| 16053 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16054 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16055 | cat >conftest.$ac_ext <<_ACEOF |
| 16056 | /* confdefs.h. */ |
| 16057 | _ACEOF |
| 16058 | cat confdefs.h >>conftest.$ac_ext |
| 16059 | cat >>conftest.$ac_ext <<_ACEOF |
| 16060 | /* end confdefs.h. */ |
| 16061 | $ac_includes_default |
| 16062 | #include <$ac_header> |
| 16063 | _ACEOF |
| 16064 | rm -f conftest.$ac_objext |
| 16065 | if { (ac_try="$ac_compile" |
| 16066 | case "(($ac_try" in |
| 16067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16068 | *) ac_try_echo=$ac_try;; |
| 16069 | esac |
| 16070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16071 | (eval "$ac_compile") 2>conftest.er1 |
| 16072 | ac_status=$? |
| 16073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16074 | rm -f conftest.er1 |
| 16075 | cat conftest.err >&5 |
| 16076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16077 | (exit $ac_status); } && |
| 16078 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16079 | { (case "(($ac_try" in |
| 16080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16081 | *) ac_try_echo=$ac_try;; |
| 16082 | esac |
| 16083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16084 | (eval "$ac_try") 2>&5 |
| 16085 | ac_status=$? |
| 16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16087 | (exit $ac_status); }; } && |
| 16088 | { ac_try='test -s conftest.$ac_objext' |
| 16089 | { (case "(($ac_try" in |
| 16090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16091 | *) ac_try_echo=$ac_try;; |
| 16092 | esac |
| 16093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16094 | (eval "$ac_try") 2>&5 |
| 16095 | ac_status=$? |
| 16096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16097 | (exit $ac_status); }; }; then |
| 16098 | ac_header_compiler=yes |
| 16099 | else |
| 16100 | echo "$as_me: failed program was:" >&5 |
| 16101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16102 | |
| 16103 | ac_header_compiler=no |
| 16104 | fi |
| 16105 | |
| 16106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16107 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16108 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16109 | |
| 16110 | # Is the header present? |
| 16111 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16113 | cat >conftest.$ac_ext <<_ACEOF |
| 16114 | /* confdefs.h. */ |
| 16115 | _ACEOF |
| 16116 | cat confdefs.h >>conftest.$ac_ext |
| 16117 | cat >>conftest.$ac_ext <<_ACEOF |
| 16118 | /* end confdefs.h. */ |
| 16119 | #include <$ac_header> |
| 16120 | _ACEOF |
| 16121 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16122 | case "(($ac_try" in |
| 16123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16124 | *) ac_try_echo=$ac_try;; |
| 16125 | esac |
| 16126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16127 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16128 | ac_status=$? |
| 16129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16130 | rm -f conftest.er1 |
| 16131 | cat conftest.err >&5 |
| 16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16133 | (exit $ac_status); } >/dev/null; then |
| 16134 | if test -s conftest.err; then |
| 16135 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16136 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16137 | else |
| 16138 | ac_cpp_err= |
| 16139 | fi |
| 16140 | else |
| 16141 | ac_cpp_err=yes |
| 16142 | fi |
| 16143 | if test -z "$ac_cpp_err"; then |
| 16144 | ac_header_preproc=yes |
| 16145 | else |
| 16146 | echo "$as_me: failed program was:" >&5 |
| 16147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16148 | |
| 16149 | ac_header_preproc=no |
| 16150 | fi |
| 16151 | |
| 16152 | rm -f conftest.err conftest.$ac_ext |
| 16153 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16154 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16155 | |
| 16156 | # So? What about this header? |
| 16157 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16158 | yes:no: ) |
| 16159 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16160 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16162 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16163 | ac_header_preproc=yes |
| 16164 | ;; |
| 16165 | no:yes:* ) |
| 16166 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16167 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16168 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16169 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16170 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16171 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16172 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16173 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16174 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16175 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16176 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16177 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16178 | ( cat <<\_ASBOX |
| 16179 | ## ----------------------------------- ## |
| 16180 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16181 | ## ----------------------------------- ## |
| 16182 | _ASBOX |
| 16183 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16184 | ;; |
| 16185 | esac |
| 16186 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16190 | else |
| 16191 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16192 | fi |
| 16193 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16194 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16195 | echo "${ECHO_T}$ac_res" >&6; } |
| 16196 | |
| 16197 | fi |
| 16198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16199 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16201 | _ACEOF |
| 16202 | |
| 16203 | fi |
| 16204 | |
| 16205 | done |
| 16206 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16207 | |
| 16208 | for ac_header in valgrind/valgrind.h |
| 16209 | do |
| 16210 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16211 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16212 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16214 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16216 | fi |
| 16217 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16218 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16219 | echo "${ECHO_T}$ac_res" >&6; } |
| 16220 | else |
| 16221 | # Is the header compilable? |
| 16222 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16223 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16224 | cat >conftest.$ac_ext <<_ACEOF |
| 16225 | /* confdefs.h. */ |
| 16226 | _ACEOF |
| 16227 | cat confdefs.h >>conftest.$ac_ext |
| 16228 | cat >>conftest.$ac_ext <<_ACEOF |
| 16229 | /* end confdefs.h. */ |
| 16230 | $ac_includes_default |
| 16231 | #include <$ac_header> |
| 16232 | _ACEOF |
| 16233 | rm -f conftest.$ac_objext |
| 16234 | if { (ac_try="$ac_compile" |
| 16235 | case "(($ac_try" in |
| 16236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16237 | *) ac_try_echo=$ac_try;; |
| 16238 | esac |
| 16239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16240 | (eval "$ac_compile") 2>conftest.er1 |
| 16241 | ac_status=$? |
| 16242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16243 | rm -f conftest.er1 |
| 16244 | cat conftest.err >&5 |
| 16245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16246 | (exit $ac_status); } && |
| 16247 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16248 | { (case "(($ac_try" in |
| 16249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16250 | *) ac_try_echo=$ac_try;; |
| 16251 | esac |
| 16252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16253 | (eval "$ac_try") 2>&5 |
| 16254 | ac_status=$? |
| 16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16256 | (exit $ac_status); }; } && |
| 16257 | { ac_try='test -s conftest.$ac_objext' |
| 16258 | { (case "(($ac_try" in |
| 16259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16260 | *) ac_try_echo=$ac_try;; |
| 16261 | esac |
| 16262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16263 | (eval "$ac_try") 2>&5 |
| 16264 | ac_status=$? |
| 16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16266 | (exit $ac_status); }; }; then |
| 16267 | ac_header_compiler=yes |
| 16268 | else |
| 16269 | echo "$as_me: failed program was:" >&5 |
| 16270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16271 | |
| 16272 | ac_header_compiler=no |
| 16273 | fi |
| 16274 | |
| 16275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16276 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16277 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16278 | |
| 16279 | # Is the header present? |
| 16280 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16281 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16282 | cat >conftest.$ac_ext <<_ACEOF |
| 16283 | /* confdefs.h. */ |
| 16284 | _ACEOF |
| 16285 | cat confdefs.h >>conftest.$ac_ext |
| 16286 | cat >>conftest.$ac_ext <<_ACEOF |
| 16287 | /* end confdefs.h. */ |
| 16288 | #include <$ac_header> |
| 16289 | _ACEOF |
| 16290 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16291 | case "(($ac_try" in |
| 16292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16293 | *) ac_try_echo=$ac_try;; |
| 16294 | esac |
| 16295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16296 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16297 | ac_status=$? |
| 16298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16299 | rm -f conftest.er1 |
| 16300 | cat conftest.err >&5 |
| 16301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16302 | (exit $ac_status); } >/dev/null; then |
| 16303 | if test -s conftest.err; then |
| 16304 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16306 | else |
| 16307 | ac_cpp_err= |
| 16308 | fi |
| 16309 | else |
| 16310 | ac_cpp_err=yes |
| 16311 | fi |
| 16312 | if test -z "$ac_cpp_err"; then |
| 16313 | ac_header_preproc=yes |
| 16314 | else |
| 16315 | echo "$as_me: failed program was:" >&5 |
| 16316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16317 | |
| 16318 | ac_header_preproc=no |
| 16319 | fi |
| 16320 | |
| 16321 | rm -f conftest.err conftest.$ac_ext |
| 16322 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16323 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16324 | |
| 16325 | # So? What about this header? |
| 16326 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16327 | yes:no: ) |
| 16328 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16329 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16330 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16331 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16332 | ac_header_preproc=yes |
| 16333 | ;; |
| 16334 | no:yes:* ) |
| 16335 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16336 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16337 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16338 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16339 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16340 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16341 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16342 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16344 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16345 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16346 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16347 | ( cat <<\_ASBOX |
| 16348 | ## ----------------------------------- ## |
| 16349 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16350 | ## ----------------------------------- ## |
| 16351 | _ASBOX |
| 16352 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16353 | ;; |
| 16354 | esac |
| 16355 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16359 | else |
| 16360 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16361 | fi |
| 16362 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16363 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16364 | echo "${ECHO_T}$ac_res" >&6; } |
| 16365 | |
| 16366 | fi |
| 16367 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16368 | cat >>confdefs.h <<_ACEOF |
| 16369 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16370 | _ACEOF |
| 16371 | |
| 16372 | fi |
| 16373 | |
| 16374 | done |
| 16375 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16376 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16377 | |
| 16378 | for ac_header in pthread.h |
| 16379 | do |
| 16380 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16381 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16382 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16383 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16384 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16386 | fi |
| 16387 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16388 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16389 | echo "${ECHO_T}$ac_res" >&6; } |
| 16390 | else |
| 16391 | # Is the header compilable? |
| 16392 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16393 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16394 | cat >conftest.$ac_ext <<_ACEOF |
| 16395 | /* confdefs.h. */ |
| 16396 | _ACEOF |
| 16397 | cat confdefs.h >>conftest.$ac_ext |
| 16398 | cat >>conftest.$ac_ext <<_ACEOF |
| 16399 | /* end confdefs.h. */ |
| 16400 | $ac_includes_default |
| 16401 | #include <$ac_header> |
| 16402 | _ACEOF |
| 16403 | rm -f conftest.$ac_objext |
| 16404 | if { (ac_try="$ac_compile" |
| 16405 | case "(($ac_try" in |
| 16406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16407 | *) ac_try_echo=$ac_try;; |
| 16408 | esac |
| 16409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16410 | (eval "$ac_compile") 2>conftest.er1 |
| 16411 | ac_status=$? |
| 16412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16413 | rm -f conftest.er1 |
| 16414 | cat conftest.err >&5 |
| 16415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16416 | (exit $ac_status); } && |
| 16417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16418 | { (case "(($ac_try" in |
| 16419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16420 | *) ac_try_echo=$ac_try;; |
| 16421 | esac |
| 16422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16423 | (eval "$ac_try") 2>&5 |
| 16424 | ac_status=$? |
| 16425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16426 | (exit $ac_status); }; } && |
| 16427 | { ac_try='test -s conftest.$ac_objext' |
| 16428 | { (case "(($ac_try" in |
| 16429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16430 | *) ac_try_echo=$ac_try;; |
| 16431 | esac |
| 16432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16433 | (eval "$ac_try") 2>&5 |
| 16434 | ac_status=$? |
| 16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16436 | (exit $ac_status); }; }; then |
| 16437 | ac_header_compiler=yes |
| 16438 | else |
| 16439 | echo "$as_me: failed program was:" >&5 |
| 16440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16441 | |
| 16442 | ac_header_compiler=no |
| 16443 | fi |
| 16444 | |
| 16445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16446 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16447 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16448 | |
| 16449 | # Is the header present? |
| 16450 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16451 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16452 | cat >conftest.$ac_ext <<_ACEOF |
| 16453 | /* confdefs.h. */ |
| 16454 | _ACEOF |
| 16455 | cat confdefs.h >>conftest.$ac_ext |
| 16456 | cat >>conftest.$ac_ext <<_ACEOF |
| 16457 | /* end confdefs.h. */ |
| 16458 | #include <$ac_header> |
| 16459 | _ACEOF |
| 16460 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 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); } >/dev/null; then |
| 16473 | if test -s conftest.err; then |
| 16474 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16475 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16476 | else |
| 16477 | ac_cpp_err= |
| 16478 | fi |
| 16479 | else |
| 16480 | ac_cpp_err=yes |
| 16481 | fi |
| 16482 | if test -z "$ac_cpp_err"; then |
| 16483 | ac_header_preproc=yes |
| 16484 | else |
| 16485 | echo "$as_me: failed program was:" >&5 |
| 16486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16487 | |
| 16488 | ac_header_preproc=no |
| 16489 | fi |
| 16490 | |
| 16491 | rm -f conftest.err conftest.$ac_ext |
| 16492 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16493 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16494 | |
| 16495 | # So? What about this header? |
| 16496 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16497 | yes:no: ) |
| 16498 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16499 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16500 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16501 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16502 | ac_header_preproc=yes |
| 16503 | ;; |
| 16504 | no:yes:* ) |
| 16505 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16506 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16507 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16508 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16509 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16510 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16511 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16512 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16513 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16514 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16515 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16516 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16517 | ( cat <<\_ASBOX |
| 16518 | ## ----------------------------------- ## |
| 16519 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16520 | ## ----------------------------------- ## |
| 16521 | _ASBOX |
| 16522 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16523 | ;; |
| 16524 | esac |
| 16525 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16527 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16529 | else |
| 16530 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16531 | fi |
| 16532 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16533 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16534 | echo "${ECHO_T}$ac_res" >&6; } |
| 16535 | |
| 16536 | fi |
| 16537 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16538 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16539 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16540 | _ACEOF |
| 16541 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16542 | |
| 16543 | else |
| 16544 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16545 | |
| 16546 | fi |
| 16547 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16548 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16549 | |
| 16550 | else |
| 16551 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16552 | |
| 16553 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16554 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16555 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16556 | |
| 16557 | |
| 16558 | for ac_header in ffi.h ffi/ffi.h |
| 16559 | do |
| 16560 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16561 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16562 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16566 | fi |
| 16567 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16568 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16569 | echo "${ECHO_T}$ac_res" >&6; } |
| 16570 | else |
| 16571 | # Is the header compilable? |
| 16572 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16573 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16574 | cat >conftest.$ac_ext <<_ACEOF |
| 16575 | /* confdefs.h. */ |
| 16576 | _ACEOF |
| 16577 | cat confdefs.h >>conftest.$ac_ext |
| 16578 | cat >>conftest.$ac_ext <<_ACEOF |
| 16579 | /* end confdefs.h. */ |
| 16580 | $ac_includes_default |
| 16581 | #include <$ac_header> |
| 16582 | _ACEOF |
| 16583 | rm -f conftest.$ac_objext |
| 16584 | if { (ac_try="$ac_compile" |
| 16585 | case "(($ac_try" in |
| 16586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16587 | *) ac_try_echo=$ac_try;; |
| 16588 | esac |
| 16589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16590 | (eval "$ac_compile") 2>conftest.er1 |
| 16591 | ac_status=$? |
| 16592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16593 | rm -f conftest.er1 |
| 16594 | cat conftest.err >&5 |
| 16595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16596 | (exit $ac_status); } && |
| 16597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16598 | { (case "(($ac_try" in |
| 16599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16600 | *) ac_try_echo=$ac_try;; |
| 16601 | esac |
| 16602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16603 | (eval "$ac_try") 2>&5 |
| 16604 | ac_status=$? |
| 16605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16606 | (exit $ac_status); }; } && |
| 16607 | { ac_try='test -s conftest.$ac_objext' |
| 16608 | { (case "(($ac_try" in |
| 16609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16610 | *) ac_try_echo=$ac_try;; |
| 16611 | esac |
| 16612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16613 | (eval "$ac_try") 2>&5 |
| 16614 | ac_status=$? |
| 16615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16616 | (exit $ac_status); }; }; then |
| 16617 | ac_header_compiler=yes |
| 16618 | else |
| 16619 | echo "$as_me: failed program was:" >&5 |
| 16620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16621 | |
| 16622 | ac_header_compiler=no |
| 16623 | fi |
| 16624 | |
| 16625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16626 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16627 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16628 | |
| 16629 | # Is the header present? |
| 16630 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16631 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16632 | cat >conftest.$ac_ext <<_ACEOF |
| 16633 | /* confdefs.h. */ |
| 16634 | _ACEOF |
| 16635 | cat confdefs.h >>conftest.$ac_ext |
| 16636 | cat >>conftest.$ac_ext <<_ACEOF |
| 16637 | /* end confdefs.h. */ |
| 16638 | #include <$ac_header> |
| 16639 | _ACEOF |
| 16640 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16641 | case "(($ac_try" in |
| 16642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16643 | *) ac_try_echo=$ac_try;; |
| 16644 | esac |
| 16645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16646 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16647 | ac_status=$? |
| 16648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16649 | rm -f conftest.er1 |
| 16650 | cat conftest.err >&5 |
| 16651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16652 | (exit $ac_status); } >/dev/null; then |
| 16653 | if test -s conftest.err; then |
| 16654 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16655 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16656 | else |
| 16657 | ac_cpp_err= |
| 16658 | fi |
| 16659 | else |
| 16660 | ac_cpp_err=yes |
| 16661 | fi |
| 16662 | if test -z "$ac_cpp_err"; then |
| 16663 | ac_header_preproc=yes |
| 16664 | else |
| 16665 | echo "$as_me: failed program was:" >&5 |
| 16666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16667 | |
| 16668 | ac_header_preproc=no |
| 16669 | fi |
| 16670 | |
| 16671 | rm -f conftest.err conftest.$ac_ext |
| 16672 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16673 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16674 | |
| 16675 | # So? What about this header? |
| 16676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16677 | yes:no: ) |
| 16678 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16679 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16681 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16682 | ac_header_preproc=yes |
| 16683 | ;; |
| 16684 | no:yes:* ) |
| 16685 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16686 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16687 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16688 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16689 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16690 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16691 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16692 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16694 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16695 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16696 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16697 | ( cat <<\_ASBOX |
| 16698 | ## ----------------------------------- ## |
| 16699 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16700 | ## ----------------------------------- ## |
| 16701 | _ASBOX |
| 16702 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16703 | ;; |
| 16704 | esac |
| 16705 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16709 | else |
| 16710 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16711 | fi |
| 16712 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16714 | echo "${ECHO_T}$ac_res" >&6; } |
| 16715 | |
| 16716 | fi |
| 16717 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16718 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16719 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16720 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16721 | |
| 16722 | fi |
| 16723 | |
| 16724 | done |
| 16725 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16726 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16727 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16728 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16729 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16730 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16731 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16732 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16733 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16735 | else |
| 16736 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16737 | ac_ext=cpp |
| 16738 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16739 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16740 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16741 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16742 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16743 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16744 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16745 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16746 | ac_cv_huge_val_sanity=yes |
| 16747 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16748 | cat >conftest.$ac_ext <<_ACEOF |
| 16749 | /* confdefs.h. */ |
| 16750 | _ACEOF |
| 16751 | cat confdefs.h >>conftest.$ac_ext |
| 16752 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16753 | /* end confdefs.h. */ |
| 16754 | #include <math.h> |
| 16755 | int |
| 16756 | main () |
| 16757 | { |
| 16758 | double x = HUGE_VAL; return x != x; |
| 16759 | ; |
| 16760 | return 0; |
| 16761 | } |
| 16762 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16763 | rm -f conftest$ac_exeext |
| 16764 | if { (ac_try="$ac_link" |
| 16765 | case "(($ac_try" in |
| 16766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16767 | *) ac_try_echo=$ac_try;; |
| 16768 | esac |
| 16769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16770 | (eval "$ac_link") 2>&5 |
| 16771 | ac_status=$? |
| 16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16773 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16774 | { (case "(($ac_try" in |
| 16775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16776 | *) ac_try_echo=$ac_try;; |
| 16777 | esac |
| 16778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16779 | (eval "$ac_try") 2>&5 |
| 16780 | ac_status=$? |
| 16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16782 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16783 | ac_cv_huge_val_sanity=yes |
| 16784 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16785 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16786 | echo "$as_me: failed program was:" >&5 |
| 16787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16788 | |
| 16789 | ( exit $ac_status ) |
| 16790 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16791 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16792 | 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] | 16793 | fi |
| 16794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16795 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16796 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16797 | ac_ext=c |
| 16798 | ac_cpp='$CPP $CPPFLAGS' |
| 16799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16802 | |
| 16803 | |
| 16804 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16805 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16806 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16807 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16808 | |
| 16809 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16810 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16811 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16812 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16814 | else |
| 16815 | cat >conftest.$ac_ext <<_ACEOF |
| 16816 | /* confdefs.h. */ |
| 16817 | _ACEOF |
| 16818 | cat confdefs.h >>conftest.$ac_ext |
| 16819 | cat >>conftest.$ac_ext <<_ACEOF |
| 16820 | /* end confdefs.h. */ |
| 16821 | $ac_includes_default |
| 16822 | typedef pid_t ac__type_new_; |
| 16823 | int |
| 16824 | main () |
| 16825 | { |
| 16826 | if ((ac__type_new_ *) 0) |
| 16827 | return 0; |
| 16828 | if (sizeof (ac__type_new_)) |
| 16829 | return 0; |
| 16830 | ; |
| 16831 | return 0; |
| 16832 | } |
| 16833 | _ACEOF |
| 16834 | rm -f conftest.$ac_objext |
| 16835 | if { (ac_try="$ac_compile" |
| 16836 | case "(($ac_try" in |
| 16837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16838 | *) ac_try_echo=$ac_try;; |
| 16839 | esac |
| 16840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16841 | (eval "$ac_compile") 2>conftest.er1 |
| 16842 | ac_status=$? |
| 16843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16844 | rm -f conftest.er1 |
| 16845 | cat conftest.err >&5 |
| 16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16847 | (exit $ac_status); } && |
| 16848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16849 | { (case "(($ac_try" in |
| 16850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16851 | *) ac_try_echo=$ac_try;; |
| 16852 | esac |
| 16853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16854 | (eval "$ac_try") 2>&5 |
| 16855 | ac_status=$? |
| 16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16857 | (exit $ac_status); }; } && |
| 16858 | { ac_try='test -s conftest.$ac_objext' |
| 16859 | { (case "(($ac_try" in |
| 16860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16861 | *) ac_try_echo=$ac_try;; |
| 16862 | esac |
| 16863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16864 | (eval "$ac_try") 2>&5 |
| 16865 | ac_status=$? |
| 16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16867 | (exit $ac_status); }; }; then |
| 16868 | ac_cv_type_pid_t=yes |
| 16869 | else |
| 16870 | echo "$as_me: failed program was:" >&5 |
| 16871 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16872 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16873 | ac_cv_type_pid_t=no |
| 16874 | fi |
| 16875 | |
| 16876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16877 | fi |
| 16878 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16879 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16880 | if test $ac_cv_type_pid_t = yes; then |
| 16881 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16882 | else |
| 16883 | |
| 16884 | cat >>confdefs.h <<_ACEOF |
| 16885 | #define pid_t int |
| 16886 | _ACEOF |
| 16887 | |
| 16888 | fi |
| 16889 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16890 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16891 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16892 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16894 | else |
| 16895 | cat >conftest.$ac_ext <<_ACEOF |
| 16896 | /* confdefs.h. */ |
| 16897 | _ACEOF |
| 16898 | cat confdefs.h >>conftest.$ac_ext |
| 16899 | cat >>conftest.$ac_ext <<_ACEOF |
| 16900 | /* end confdefs.h. */ |
| 16901 | $ac_includes_default |
| 16902 | typedef size_t ac__type_new_; |
| 16903 | int |
| 16904 | main () |
| 16905 | { |
| 16906 | if ((ac__type_new_ *) 0) |
| 16907 | return 0; |
| 16908 | if (sizeof (ac__type_new_)) |
| 16909 | return 0; |
| 16910 | ; |
| 16911 | return 0; |
| 16912 | } |
| 16913 | _ACEOF |
| 16914 | rm -f conftest.$ac_objext |
| 16915 | if { (ac_try="$ac_compile" |
| 16916 | case "(($ac_try" in |
| 16917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16918 | *) ac_try_echo=$ac_try;; |
| 16919 | esac |
| 16920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16921 | (eval "$ac_compile") 2>conftest.er1 |
| 16922 | ac_status=$? |
| 16923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16924 | rm -f conftest.er1 |
| 16925 | cat conftest.err >&5 |
| 16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16927 | (exit $ac_status); } && |
| 16928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16929 | { (case "(($ac_try" in |
| 16930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16931 | *) ac_try_echo=$ac_try;; |
| 16932 | esac |
| 16933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16934 | (eval "$ac_try") 2>&5 |
| 16935 | ac_status=$? |
| 16936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16937 | (exit $ac_status); }; } && |
| 16938 | { ac_try='test -s conftest.$ac_objext' |
| 16939 | { (case "(($ac_try" in |
| 16940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16941 | *) ac_try_echo=$ac_try;; |
| 16942 | esac |
| 16943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16944 | (eval "$ac_try") 2>&5 |
| 16945 | ac_status=$? |
| 16946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16947 | (exit $ac_status); }; }; then |
| 16948 | ac_cv_type_size_t=yes |
| 16949 | else |
| 16950 | echo "$as_me: failed program was:" >&5 |
| 16951 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16952 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16953 | ac_cv_type_size_t=no |
| 16954 | fi |
| 16955 | |
| 16956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16957 | fi |
| 16958 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16959 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16960 | if test $ac_cv_type_size_t = yes; then |
| 16961 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16962 | else |
| 16963 | |
| 16964 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16965 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16966 | _ACEOF |
| 16967 | |
| 16968 | fi |
| 16969 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16970 | |
| 16971 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16972 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16973 | _ACEOF |
| 16974 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16975 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16976 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16977 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16979 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16980 | cat >conftest.$ac_ext <<_ACEOF |
| 16981 | /* confdefs.h. */ |
| 16982 | _ACEOF |
| 16983 | cat confdefs.h >>conftest.$ac_ext |
| 16984 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16985 | /* end confdefs.h. */ |
| 16986 | #include <sys/types.h> |
| 16987 | #include <time.h> |
| 16988 | |
| 16989 | int |
| 16990 | main () |
| 16991 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16992 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16993 | ; |
| 16994 | return 0; |
| 16995 | } |
| 16996 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16997 | rm -f conftest.$ac_objext |
| 16998 | if { (ac_try="$ac_compile" |
| 16999 | case "(($ac_try" in |
| 17000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17001 | *) ac_try_echo=$ac_try;; |
| 17002 | esac |
| 17003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17004 | (eval "$ac_compile") 2>conftest.er1 |
| 17005 | ac_status=$? |
| 17006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17007 | rm -f conftest.er1 |
| 17008 | cat conftest.err >&5 |
| 17009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17010 | (exit $ac_status); } && |
| 17011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17012 | { (case "(($ac_try" in |
| 17013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17014 | *) ac_try_echo=$ac_try;; |
| 17015 | esac |
| 17016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17017 | (eval "$ac_try") 2>&5 |
| 17018 | ac_status=$? |
| 17019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17020 | (exit $ac_status); }; } && |
| 17021 | { ac_try='test -s conftest.$ac_objext' |
| 17022 | { (case "(($ac_try" in |
| 17023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17024 | *) ac_try_echo=$ac_try;; |
| 17025 | esac |
| 17026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17027 | (eval "$ac_try") 2>&5 |
| 17028 | ac_status=$? |
| 17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17030 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17031 | ac_cv_struct_tm=time.h |
| 17032 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17033 | echo "$as_me: failed program was:" >&5 |
| 17034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17035 | |
| 17036 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17037 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17040 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17041 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17042 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17043 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17044 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17045 | cat >>confdefs.h <<\_ACEOF |
| 17046 | #define TM_IN_SYS_TIME 1 |
| 17047 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17048 | |
| 17049 | fi |
| 17050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17051 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17052 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17053 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17055 | else |
| 17056 | cat >conftest.$ac_ext <<_ACEOF |
| 17057 | /* confdefs.h. */ |
| 17058 | _ACEOF |
| 17059 | cat confdefs.h >>conftest.$ac_ext |
| 17060 | cat >>conftest.$ac_ext <<_ACEOF |
| 17061 | /* end confdefs.h. */ |
| 17062 | $ac_includes_default |
| 17063 | typedef int64_t ac__type_new_; |
| 17064 | int |
| 17065 | main () |
| 17066 | { |
| 17067 | if ((ac__type_new_ *) 0) |
| 17068 | return 0; |
| 17069 | if (sizeof (ac__type_new_)) |
| 17070 | return 0; |
| 17071 | ; |
| 17072 | return 0; |
| 17073 | } |
| 17074 | _ACEOF |
| 17075 | rm -f conftest.$ac_objext |
| 17076 | if { (ac_try="$ac_compile" |
| 17077 | case "(($ac_try" in |
| 17078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17079 | *) ac_try_echo=$ac_try;; |
| 17080 | esac |
| 17081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17082 | (eval "$ac_compile") 2>conftest.er1 |
| 17083 | ac_status=$? |
| 17084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17085 | rm -f conftest.er1 |
| 17086 | cat conftest.err >&5 |
| 17087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17088 | (exit $ac_status); } && |
| 17089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17090 | { (case "(($ac_try" in |
| 17091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17092 | *) ac_try_echo=$ac_try;; |
| 17093 | esac |
| 17094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17095 | (eval "$ac_try") 2>&5 |
| 17096 | ac_status=$? |
| 17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17098 | (exit $ac_status); }; } && |
| 17099 | { ac_try='test -s conftest.$ac_objext' |
| 17100 | { (case "(($ac_try" in |
| 17101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17102 | *) ac_try_echo=$ac_try;; |
| 17103 | esac |
| 17104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17105 | (eval "$ac_try") 2>&5 |
| 17106 | ac_status=$? |
| 17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17108 | (exit $ac_status); }; }; then |
| 17109 | ac_cv_type_int64_t=yes |
| 17110 | else |
| 17111 | echo "$as_me: failed program was:" >&5 |
| 17112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17113 | |
| 17114 | ac_cv_type_int64_t=no |
| 17115 | fi |
| 17116 | |
| 17117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17118 | fi |
| 17119 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17120 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17121 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17122 | |
| 17123 | cat >>confdefs.h <<_ACEOF |
| 17124 | #define HAVE_INT64_T 1 |
| 17125 | _ACEOF |
| 17126 | |
| 17127 | |
| 17128 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17129 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17130 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17131 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17132 | fi |
| 17133 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17134 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17135 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17136 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17138 | else |
| 17139 | cat >conftest.$ac_ext <<_ACEOF |
| 17140 | /* confdefs.h. */ |
| 17141 | _ACEOF |
| 17142 | cat confdefs.h >>conftest.$ac_ext |
| 17143 | cat >>conftest.$ac_ext <<_ACEOF |
| 17144 | /* end confdefs.h. */ |
| 17145 | $ac_includes_default |
| 17146 | typedef uint64_t ac__type_new_; |
| 17147 | int |
| 17148 | main () |
| 17149 | { |
| 17150 | if ((ac__type_new_ *) 0) |
| 17151 | return 0; |
| 17152 | if (sizeof (ac__type_new_)) |
| 17153 | return 0; |
| 17154 | ; |
| 17155 | return 0; |
| 17156 | } |
| 17157 | _ACEOF |
| 17158 | rm -f conftest.$ac_objext |
| 17159 | if { (ac_try="$ac_compile" |
| 17160 | case "(($ac_try" in |
| 17161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17162 | *) ac_try_echo=$ac_try;; |
| 17163 | esac |
| 17164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17165 | (eval "$ac_compile") 2>conftest.er1 |
| 17166 | ac_status=$? |
| 17167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17168 | rm -f conftest.er1 |
| 17169 | cat conftest.err >&5 |
| 17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17171 | (exit $ac_status); } && |
| 17172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17173 | { (case "(($ac_try" in |
| 17174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17175 | *) ac_try_echo=$ac_try;; |
| 17176 | esac |
| 17177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17178 | (eval "$ac_try") 2>&5 |
| 17179 | ac_status=$? |
| 17180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17181 | (exit $ac_status); }; } && |
| 17182 | { ac_try='test -s conftest.$ac_objext' |
| 17183 | { (case "(($ac_try" in |
| 17184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17185 | *) ac_try_echo=$ac_try;; |
| 17186 | esac |
| 17187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17188 | (eval "$ac_try") 2>&5 |
| 17189 | ac_status=$? |
| 17190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17191 | (exit $ac_status); }; }; then |
| 17192 | ac_cv_type_uint64_t=yes |
| 17193 | else |
| 17194 | echo "$as_me: failed program was:" >&5 |
| 17195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17196 | |
| 17197 | ac_cv_type_uint64_t=no |
| 17198 | fi |
| 17199 | |
| 17200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17201 | fi |
| 17202 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 17203 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 17204 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17205 | |
| 17206 | cat >>confdefs.h <<_ACEOF |
| 17207 | #define HAVE_UINT64_T 1 |
| 17208 | _ACEOF |
| 17209 | |
| 17210 | |
| 17211 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17212 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17213 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 17214 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17216 | else |
| 17217 | cat >conftest.$ac_ext <<_ACEOF |
| 17218 | /* confdefs.h. */ |
| 17219 | _ACEOF |
| 17220 | cat confdefs.h >>conftest.$ac_ext |
| 17221 | cat >>conftest.$ac_ext <<_ACEOF |
| 17222 | /* end confdefs.h. */ |
| 17223 | $ac_includes_default |
| 17224 | typedef u_int64_t ac__type_new_; |
| 17225 | int |
| 17226 | main () |
| 17227 | { |
| 17228 | if ((ac__type_new_ *) 0) |
| 17229 | return 0; |
| 17230 | if (sizeof (ac__type_new_)) |
| 17231 | return 0; |
| 17232 | ; |
| 17233 | return 0; |
| 17234 | } |
| 17235 | _ACEOF |
| 17236 | rm -f conftest.$ac_objext |
| 17237 | if { (ac_try="$ac_compile" |
| 17238 | case "(($ac_try" in |
| 17239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17240 | *) ac_try_echo=$ac_try;; |
| 17241 | esac |
| 17242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17243 | (eval "$ac_compile") 2>conftest.er1 |
| 17244 | ac_status=$? |
| 17245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17246 | rm -f conftest.er1 |
| 17247 | cat conftest.err >&5 |
| 17248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17249 | (exit $ac_status); } && |
| 17250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17251 | { (case "(($ac_try" in |
| 17252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17253 | *) ac_try_echo=$ac_try;; |
| 17254 | esac |
| 17255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17256 | (eval "$ac_try") 2>&5 |
| 17257 | ac_status=$? |
| 17258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17259 | (exit $ac_status); }; } && |
| 17260 | { ac_try='test -s conftest.$ac_objext' |
| 17261 | { (case "(($ac_try" in |
| 17262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17263 | *) ac_try_echo=$ac_try;; |
| 17264 | esac |
| 17265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17266 | (eval "$ac_try") 2>&5 |
| 17267 | ac_status=$? |
| 17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17269 | (exit $ac_status); }; }; then |
| 17270 | ac_cv_type_u_int64_t=yes |
| 17271 | else |
| 17272 | echo "$as_me: failed program was:" >&5 |
| 17273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17274 | |
| 17275 | ac_cv_type_u_int64_t=no |
| 17276 | fi |
| 17277 | |
| 17278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17279 | fi |
| 17280 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17281 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17282 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17283 | |
| 17284 | cat >>confdefs.h <<_ACEOF |
| 17285 | #define HAVE_U_INT64_T 1 |
| 17286 | _ACEOF |
| 17287 | |
| 17288 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17289 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17290 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17291 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17292 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17293 | fi |
| 17294 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17295 | fi |
| 17296 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17297 | |
| 17298 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17299 | |
| 17300 | |
| 17301 | |
| 17302 | |
| 17303 | |
| 17304 | |
| 17305 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17306 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17307 | do |
| 17308 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17309 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17310 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17311 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17313 | else |
| 17314 | cat >conftest.$ac_ext <<_ACEOF |
| 17315 | /* confdefs.h. */ |
| 17316 | _ACEOF |
| 17317 | cat confdefs.h >>conftest.$ac_ext |
| 17318 | cat >>conftest.$ac_ext <<_ACEOF |
| 17319 | /* end confdefs.h. */ |
| 17320 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17321 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17322 | #define $ac_func innocuous_$ac_func |
| 17323 | |
| 17324 | /* System header to define __stub macros and hopefully few prototypes, |
| 17325 | which can conflict with char $ac_func (); below. |
| 17326 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17327 | <limits.h> exists even on freestanding compilers. */ |
| 17328 | |
| 17329 | #ifdef __STDC__ |
| 17330 | # include <limits.h> |
| 17331 | #else |
| 17332 | # include <assert.h> |
| 17333 | #endif |
| 17334 | |
| 17335 | #undef $ac_func |
| 17336 | |
| 17337 | /* Override any GCC internal prototype to avoid an error. |
| 17338 | Use char because int might match the return type of a GCC |
| 17339 | builtin and then its argument prototype would still apply. */ |
| 17340 | #ifdef __cplusplus |
| 17341 | extern "C" |
| 17342 | #endif |
| 17343 | char $ac_func (); |
| 17344 | /* The GNU C library defines this for functions which it implements |
| 17345 | to always fail with ENOSYS. Some functions are actually named |
| 17346 | something starting with __ and the normal name is an alias. */ |
| 17347 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17348 | choke me |
| 17349 | #endif |
| 17350 | |
| 17351 | int |
| 17352 | main () |
| 17353 | { |
| 17354 | return $ac_func (); |
| 17355 | ; |
| 17356 | return 0; |
| 17357 | } |
| 17358 | _ACEOF |
| 17359 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17360 | if { (ac_try="$ac_link" |
| 17361 | case "(($ac_try" in |
| 17362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17363 | *) ac_try_echo=$ac_try;; |
| 17364 | esac |
| 17365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17366 | (eval "$ac_link") 2>conftest.er1 |
| 17367 | ac_status=$? |
| 17368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17369 | rm -f conftest.er1 |
| 17370 | cat conftest.err >&5 |
| 17371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17372 | (exit $ac_status); } && |
| 17373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17374 | { (case "(($ac_try" in |
| 17375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17376 | *) ac_try_echo=$ac_try;; |
| 17377 | esac |
| 17378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17379 | (eval "$ac_try") 2>&5 |
| 17380 | ac_status=$? |
| 17381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17382 | (exit $ac_status); }; } && |
| 17383 | { ac_try='test -s conftest$ac_exeext' |
| 17384 | { (case "(($ac_try" in |
| 17385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17386 | *) ac_try_echo=$ac_try;; |
| 17387 | esac |
| 17388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17389 | (eval "$ac_try") 2>&5 |
| 17390 | ac_status=$? |
| 17391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17392 | (exit $ac_status); }; }; then |
| 17393 | eval "$as_ac_var=yes" |
| 17394 | else |
| 17395 | echo "$as_me: failed program was:" >&5 |
| 17396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17397 | |
| 17398 | eval "$as_ac_var=no" |
| 17399 | fi |
| 17400 | |
| 17401 | rm -f core conftest.err conftest.$ac_objext \ |
| 17402 | conftest$ac_exeext conftest.$ac_ext |
| 17403 | fi |
| 17404 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17405 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17406 | echo "${ECHO_T}$ac_res" >&6; } |
| 17407 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17408 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17409 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17410 | _ACEOF |
| 17411 | |
| 17412 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17413 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17414 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17415 | |
| 17416 | |
| 17417 | |
| 17418 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17419 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17420 | do |
| 17421 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17422 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17423 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17424 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17426 | else |
| 17427 | cat >conftest.$ac_ext <<_ACEOF |
| 17428 | /* confdefs.h. */ |
| 17429 | _ACEOF |
| 17430 | cat confdefs.h >>conftest.$ac_ext |
| 17431 | cat >>conftest.$ac_ext <<_ACEOF |
| 17432 | /* end confdefs.h. */ |
| 17433 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17434 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17435 | #define $ac_func innocuous_$ac_func |
| 17436 | |
| 17437 | /* System header to define __stub macros and hopefully few prototypes, |
| 17438 | which can conflict with char $ac_func (); below. |
| 17439 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17440 | <limits.h> exists even on freestanding compilers. */ |
| 17441 | |
| 17442 | #ifdef __STDC__ |
| 17443 | # include <limits.h> |
| 17444 | #else |
| 17445 | # include <assert.h> |
| 17446 | #endif |
| 17447 | |
| 17448 | #undef $ac_func |
| 17449 | |
| 17450 | /* Override any GCC internal prototype to avoid an error. |
| 17451 | Use char because int might match the return type of a GCC |
| 17452 | builtin and then its argument prototype would still apply. */ |
| 17453 | #ifdef __cplusplus |
| 17454 | extern "C" |
| 17455 | #endif |
| 17456 | char $ac_func (); |
| 17457 | /* The GNU C library defines this for functions which it implements |
| 17458 | to always fail with ENOSYS. Some functions are actually named |
| 17459 | something starting with __ and the normal name is an alias. */ |
| 17460 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17461 | choke me |
| 17462 | #endif |
| 17463 | |
| 17464 | int |
| 17465 | main () |
| 17466 | { |
| 17467 | return $ac_func (); |
| 17468 | ; |
| 17469 | return 0; |
| 17470 | } |
| 17471 | _ACEOF |
| 17472 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17473 | if { (ac_try="$ac_link" |
| 17474 | case "(($ac_try" in |
| 17475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17476 | *) ac_try_echo=$ac_try;; |
| 17477 | esac |
| 17478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17479 | (eval "$ac_link") 2>conftest.er1 |
| 17480 | ac_status=$? |
| 17481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17482 | rm -f conftest.er1 |
| 17483 | cat conftest.err >&5 |
| 17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17485 | (exit $ac_status); } && |
| 17486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17487 | { (case "(($ac_try" in |
| 17488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17489 | *) ac_try_echo=$ac_try;; |
| 17490 | esac |
| 17491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17492 | (eval "$ac_try") 2>&5 |
| 17493 | ac_status=$? |
| 17494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17495 | (exit $ac_status); }; } && |
| 17496 | { ac_try='test -s conftest$ac_exeext' |
| 17497 | { (case "(($ac_try" in |
| 17498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17499 | *) ac_try_echo=$ac_try;; |
| 17500 | esac |
| 17501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17502 | (eval "$ac_try") 2>&5 |
| 17503 | ac_status=$? |
| 17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17505 | (exit $ac_status); }; }; then |
| 17506 | eval "$as_ac_var=yes" |
| 17507 | else |
| 17508 | echo "$as_me: failed program was:" >&5 |
| 17509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17510 | |
| 17511 | eval "$as_ac_var=no" |
| 17512 | fi |
| 17513 | |
| 17514 | rm -f core conftest.err conftest.$ac_objext \ |
| 17515 | conftest$ac_exeext conftest.$ac_ext |
| 17516 | fi |
| 17517 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17518 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17519 | echo "${ECHO_T}$ac_res" >&6; } |
| 17520 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17521 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17523 | _ACEOF |
| 17524 | |
| 17525 | fi |
| 17526 | done |
| 17527 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17528 | |
| 17529 | |
| 17530 | |
| 17531 | |
| 17532 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17533 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17534 | do |
| 17535 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17536 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17537 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17538 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17540 | else |
| 17541 | cat >conftest.$ac_ext <<_ACEOF |
| 17542 | /* confdefs.h. */ |
| 17543 | _ACEOF |
| 17544 | cat confdefs.h >>conftest.$ac_ext |
| 17545 | cat >>conftest.$ac_ext <<_ACEOF |
| 17546 | /* end confdefs.h. */ |
| 17547 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17548 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17549 | #define $ac_func innocuous_$ac_func |
| 17550 | |
| 17551 | /* System header to define __stub macros and hopefully few prototypes, |
| 17552 | which can conflict with char $ac_func (); below. |
| 17553 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17554 | <limits.h> exists even on freestanding compilers. */ |
| 17555 | |
| 17556 | #ifdef __STDC__ |
| 17557 | # include <limits.h> |
| 17558 | #else |
| 17559 | # include <assert.h> |
| 17560 | #endif |
| 17561 | |
| 17562 | #undef $ac_func |
| 17563 | |
| 17564 | /* Override any GCC internal prototype to avoid an error. |
| 17565 | Use char because int might match the return type of a GCC |
| 17566 | builtin and then its argument prototype would still apply. */ |
| 17567 | #ifdef __cplusplus |
| 17568 | extern "C" |
| 17569 | #endif |
| 17570 | char $ac_func (); |
| 17571 | /* The GNU C library defines this for functions which it implements |
| 17572 | to always fail with ENOSYS. Some functions are actually named |
| 17573 | something starting with __ and the normal name is an alias. */ |
| 17574 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17575 | choke me |
| 17576 | #endif |
| 17577 | |
| 17578 | int |
| 17579 | main () |
| 17580 | { |
| 17581 | return $ac_func (); |
| 17582 | ; |
| 17583 | return 0; |
| 17584 | } |
| 17585 | _ACEOF |
| 17586 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17587 | if { (ac_try="$ac_link" |
| 17588 | case "(($ac_try" in |
| 17589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17590 | *) ac_try_echo=$ac_try;; |
| 17591 | esac |
| 17592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17593 | (eval "$ac_link") 2>conftest.er1 |
| 17594 | ac_status=$? |
| 17595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17596 | rm -f conftest.er1 |
| 17597 | cat conftest.err >&5 |
| 17598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17599 | (exit $ac_status); } && |
| 17600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17601 | { (case "(($ac_try" in |
| 17602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17603 | *) ac_try_echo=$ac_try;; |
| 17604 | esac |
| 17605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17606 | (eval "$ac_try") 2>&5 |
| 17607 | ac_status=$? |
| 17608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17609 | (exit $ac_status); }; } && |
| 17610 | { ac_try='test -s conftest$ac_exeext' |
| 17611 | { (case "(($ac_try" in |
| 17612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17613 | *) ac_try_echo=$ac_try;; |
| 17614 | esac |
| 17615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17616 | (eval "$ac_try") 2>&5 |
| 17617 | ac_status=$? |
| 17618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17619 | (exit $ac_status); }; }; then |
| 17620 | eval "$as_ac_var=yes" |
| 17621 | else |
| 17622 | echo "$as_me: failed program was:" >&5 |
| 17623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17624 | |
| 17625 | eval "$as_ac_var=no" |
| 17626 | fi |
| 17627 | |
| 17628 | rm -f core conftest.err conftest.$ac_objext \ |
| 17629 | conftest$ac_exeext conftest.$ac_ext |
| 17630 | fi |
| 17631 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17632 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17633 | echo "${ECHO_T}$ac_res" >&6; } |
| 17634 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17635 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17636 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17637 | _ACEOF |
| 17638 | |
| 17639 | fi |
| 17640 | done |
| 17641 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17642 | |
| 17643 | |
| 17644 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17645 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17646 | do |
| 17647 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17648 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17649 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17650 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17652 | else |
| 17653 | cat >conftest.$ac_ext <<_ACEOF |
| 17654 | /* confdefs.h. */ |
| 17655 | _ACEOF |
| 17656 | cat confdefs.h >>conftest.$ac_ext |
| 17657 | cat >>conftest.$ac_ext <<_ACEOF |
| 17658 | /* end confdefs.h. */ |
| 17659 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17660 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17661 | #define $ac_func innocuous_$ac_func |
| 17662 | |
| 17663 | /* System header to define __stub macros and hopefully few prototypes, |
| 17664 | which can conflict with char $ac_func (); below. |
| 17665 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17666 | <limits.h> exists even on freestanding compilers. */ |
| 17667 | |
| 17668 | #ifdef __STDC__ |
| 17669 | # include <limits.h> |
| 17670 | #else |
| 17671 | # include <assert.h> |
| 17672 | #endif |
| 17673 | |
| 17674 | #undef $ac_func |
| 17675 | |
| 17676 | /* Override any GCC internal prototype to avoid an error. |
| 17677 | Use char because int might match the return type of a GCC |
| 17678 | builtin and then its argument prototype would still apply. */ |
| 17679 | #ifdef __cplusplus |
| 17680 | extern "C" |
| 17681 | #endif |
| 17682 | char $ac_func (); |
| 17683 | /* The GNU C library defines this for functions which it implements |
| 17684 | to always fail with ENOSYS. Some functions are actually named |
| 17685 | something starting with __ and the normal name is an alias. */ |
| 17686 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17687 | choke me |
| 17688 | #endif |
| 17689 | |
| 17690 | int |
| 17691 | main () |
| 17692 | { |
| 17693 | return $ac_func (); |
| 17694 | ; |
| 17695 | return 0; |
| 17696 | } |
| 17697 | _ACEOF |
| 17698 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17699 | if { (ac_try="$ac_link" |
| 17700 | case "(($ac_try" in |
| 17701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17702 | *) ac_try_echo=$ac_try;; |
| 17703 | esac |
| 17704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17705 | (eval "$ac_link") 2>conftest.er1 |
| 17706 | ac_status=$? |
| 17707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17708 | rm -f conftest.er1 |
| 17709 | cat conftest.err >&5 |
| 17710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17711 | (exit $ac_status); } && |
| 17712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17713 | { (case "(($ac_try" in |
| 17714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17715 | *) ac_try_echo=$ac_try;; |
| 17716 | esac |
| 17717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17718 | (eval "$ac_try") 2>&5 |
| 17719 | ac_status=$? |
| 17720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17721 | (exit $ac_status); }; } && |
| 17722 | { ac_try='test -s conftest$ac_exeext' |
| 17723 | { (case "(($ac_try" in |
| 17724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17725 | *) ac_try_echo=$ac_try;; |
| 17726 | esac |
| 17727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17728 | (eval "$ac_try") 2>&5 |
| 17729 | ac_status=$? |
| 17730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17731 | (exit $ac_status); }; }; then |
| 17732 | eval "$as_ac_var=yes" |
| 17733 | else |
| 17734 | echo "$as_me: failed program was:" >&5 |
| 17735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17736 | |
| 17737 | eval "$as_ac_var=no" |
| 17738 | fi |
| 17739 | |
| 17740 | rm -f core conftest.err conftest.$ac_objext \ |
| 17741 | conftest$ac_exeext conftest.$ac_ext |
| 17742 | fi |
| 17743 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17744 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17745 | echo "${ECHO_T}$ac_res" >&6; } |
| 17746 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17747 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17748 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17749 | _ACEOF |
| 17750 | |
| 17751 | fi |
| 17752 | done |
| 17753 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17754 | |
| 17755 | |
| 17756 | |
| 17757 | |
| 17758 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame^] | 17759 | |
| 17760 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17761 | do |
| 17762 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17763 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17764 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17765 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17767 | else |
| 17768 | cat >conftest.$ac_ext <<_ACEOF |
| 17769 | /* confdefs.h. */ |
| 17770 | _ACEOF |
| 17771 | cat confdefs.h >>conftest.$ac_ext |
| 17772 | cat >>conftest.$ac_ext <<_ACEOF |
| 17773 | /* end confdefs.h. */ |
| 17774 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17775 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17776 | #define $ac_func innocuous_$ac_func |
| 17777 | |
| 17778 | /* System header to define __stub macros and hopefully few prototypes, |
| 17779 | which can conflict with char $ac_func (); below. |
| 17780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17781 | <limits.h> exists even on freestanding compilers. */ |
| 17782 | |
| 17783 | #ifdef __STDC__ |
| 17784 | # include <limits.h> |
| 17785 | #else |
| 17786 | # include <assert.h> |
| 17787 | #endif |
| 17788 | |
| 17789 | #undef $ac_func |
| 17790 | |
| 17791 | /* Override any GCC internal prototype to avoid an error. |
| 17792 | Use char because int might match the return type of a GCC |
| 17793 | builtin and then its argument prototype would still apply. */ |
| 17794 | #ifdef __cplusplus |
| 17795 | extern "C" |
| 17796 | #endif |
| 17797 | char $ac_func (); |
| 17798 | /* The GNU C library defines this for functions which it implements |
| 17799 | to always fail with ENOSYS. Some functions are actually named |
| 17800 | something starting with __ and the normal name is an alias. */ |
| 17801 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17802 | choke me |
| 17803 | #endif |
| 17804 | |
| 17805 | int |
| 17806 | main () |
| 17807 | { |
| 17808 | return $ac_func (); |
| 17809 | ; |
| 17810 | return 0; |
| 17811 | } |
| 17812 | _ACEOF |
| 17813 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17814 | if { (ac_try="$ac_link" |
| 17815 | case "(($ac_try" in |
| 17816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17817 | *) ac_try_echo=$ac_try;; |
| 17818 | esac |
| 17819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17820 | (eval "$ac_link") 2>conftest.er1 |
| 17821 | ac_status=$? |
| 17822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17823 | rm -f conftest.er1 |
| 17824 | cat conftest.err >&5 |
| 17825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17826 | (exit $ac_status); } && |
| 17827 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17828 | { (case "(($ac_try" in |
| 17829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17830 | *) ac_try_echo=$ac_try;; |
| 17831 | esac |
| 17832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17833 | (eval "$ac_try") 2>&5 |
| 17834 | ac_status=$? |
| 17835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17836 | (exit $ac_status); }; } && |
| 17837 | { ac_try='test -s conftest$ac_exeext' |
| 17838 | { (case "(($ac_try" in |
| 17839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17840 | *) ac_try_echo=$ac_try;; |
| 17841 | esac |
| 17842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17843 | (eval "$ac_try") 2>&5 |
| 17844 | ac_status=$? |
| 17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17846 | (exit $ac_status); }; }; then |
| 17847 | eval "$as_ac_var=yes" |
| 17848 | else |
| 17849 | echo "$as_me: failed program was:" >&5 |
| 17850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17851 | |
| 17852 | eval "$as_ac_var=no" |
| 17853 | fi |
| 17854 | |
| 17855 | rm -f core conftest.err conftest.$ac_objext \ |
| 17856 | conftest$ac_exeext conftest.$ac_ext |
| 17857 | fi |
| 17858 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17860 | echo "${ECHO_T}$ac_res" >&6; } |
| 17861 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17862 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17863 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17864 | _ACEOF |
| 17865 | |
| 17866 | fi |
| 17867 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17868 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17869 | |
| 17870 | |
| 17871 | |
| 17872 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 17873 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17874 | do |
| 17875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17876 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17878 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17880 | else |
| 17881 | cat >conftest.$ac_ext <<_ACEOF |
| 17882 | /* confdefs.h. */ |
| 17883 | _ACEOF |
| 17884 | cat confdefs.h >>conftest.$ac_ext |
| 17885 | cat >>conftest.$ac_ext <<_ACEOF |
| 17886 | /* end confdefs.h. */ |
| 17887 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17889 | #define $ac_func innocuous_$ac_func |
| 17890 | |
| 17891 | /* System header to define __stub macros and hopefully few prototypes, |
| 17892 | which can conflict with char $ac_func (); below. |
| 17893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17894 | <limits.h> exists even on freestanding compilers. */ |
| 17895 | |
| 17896 | #ifdef __STDC__ |
| 17897 | # include <limits.h> |
| 17898 | #else |
| 17899 | # include <assert.h> |
| 17900 | #endif |
| 17901 | |
| 17902 | #undef $ac_func |
| 17903 | |
| 17904 | /* Override any GCC internal prototype to avoid an error. |
| 17905 | Use char because int might match the return type of a GCC |
| 17906 | builtin and then its argument prototype would still apply. */ |
| 17907 | #ifdef __cplusplus |
| 17908 | extern "C" |
| 17909 | #endif |
| 17910 | char $ac_func (); |
| 17911 | /* The GNU C library defines this for functions which it implements |
| 17912 | to always fail with ENOSYS. Some functions are actually named |
| 17913 | something starting with __ and the normal name is an alias. */ |
| 17914 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17915 | choke me |
| 17916 | #endif |
| 17917 | |
| 17918 | int |
| 17919 | main () |
| 17920 | { |
| 17921 | return $ac_func (); |
| 17922 | ; |
| 17923 | return 0; |
| 17924 | } |
| 17925 | _ACEOF |
| 17926 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17927 | if { (ac_try="$ac_link" |
| 17928 | case "(($ac_try" in |
| 17929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17930 | *) ac_try_echo=$ac_try;; |
| 17931 | esac |
| 17932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17933 | (eval "$ac_link") 2>conftest.er1 |
| 17934 | ac_status=$? |
| 17935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17936 | rm -f conftest.er1 |
| 17937 | cat conftest.err >&5 |
| 17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17939 | (exit $ac_status); } && |
| 17940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17941 | { (case "(($ac_try" in |
| 17942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17943 | *) ac_try_echo=$ac_try;; |
| 17944 | esac |
| 17945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17946 | (eval "$ac_try") 2>&5 |
| 17947 | ac_status=$? |
| 17948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17949 | (exit $ac_status); }; } && |
| 17950 | { ac_try='test -s conftest$ac_exeext' |
| 17951 | { (case "(($ac_try" in |
| 17952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17953 | *) ac_try_echo=$ac_try;; |
| 17954 | esac |
| 17955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17956 | (eval "$ac_try") 2>&5 |
| 17957 | ac_status=$? |
| 17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17959 | (exit $ac_status); }; }; then |
| 17960 | eval "$as_ac_var=yes" |
| 17961 | else |
| 17962 | echo "$as_me: failed program was:" >&5 |
| 17963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17964 | |
| 17965 | eval "$as_ac_var=no" |
| 17966 | fi |
| 17967 | |
| 17968 | rm -f core conftest.err conftest.$ac_objext \ |
| 17969 | conftest$ac_exeext conftest.$ac_ext |
| 17970 | fi |
| 17971 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17972 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17973 | echo "${ECHO_T}$ac_res" >&6; } |
| 17974 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17975 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17976 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17977 | _ACEOF |
| 17978 | |
| 17979 | fi |
| 17980 | done |
| 17981 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17982 | |
| 17983 | |
| 17984 | |
| 17985 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17986 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17987 | do |
| 17988 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17989 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17990 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17991 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17993 | else |
| 17994 | cat >conftest.$ac_ext <<_ACEOF |
| 17995 | /* confdefs.h. */ |
| 17996 | _ACEOF |
| 17997 | cat confdefs.h >>conftest.$ac_ext |
| 17998 | cat >>conftest.$ac_ext <<_ACEOF |
| 17999 | /* end confdefs.h. */ |
| 18000 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18001 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18002 | #define $ac_func innocuous_$ac_func |
| 18003 | |
| 18004 | /* System header to define __stub macros and hopefully few prototypes, |
| 18005 | which can conflict with char $ac_func (); below. |
| 18006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18007 | <limits.h> exists even on freestanding compilers. */ |
| 18008 | |
| 18009 | #ifdef __STDC__ |
| 18010 | # include <limits.h> |
| 18011 | #else |
| 18012 | # include <assert.h> |
| 18013 | #endif |
| 18014 | |
| 18015 | #undef $ac_func |
| 18016 | |
| 18017 | /* Override any GCC internal prototype to avoid an error. |
| 18018 | Use char because int might match the return type of a GCC |
| 18019 | builtin and then its argument prototype would still apply. */ |
| 18020 | #ifdef __cplusplus |
| 18021 | extern "C" |
| 18022 | #endif |
| 18023 | char $ac_func (); |
| 18024 | /* The GNU C library defines this for functions which it implements |
| 18025 | to always fail with ENOSYS. Some functions are actually named |
| 18026 | something starting with __ and the normal name is an alias. */ |
| 18027 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18028 | choke me |
| 18029 | #endif |
| 18030 | |
| 18031 | int |
| 18032 | main () |
| 18033 | { |
| 18034 | return $ac_func (); |
| 18035 | ; |
| 18036 | return 0; |
| 18037 | } |
| 18038 | _ACEOF |
| 18039 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18040 | if { (ac_try="$ac_link" |
| 18041 | case "(($ac_try" in |
| 18042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18043 | *) ac_try_echo=$ac_try;; |
| 18044 | esac |
| 18045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18046 | (eval "$ac_link") 2>conftest.er1 |
| 18047 | ac_status=$? |
| 18048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18049 | rm -f conftest.er1 |
| 18050 | cat conftest.err >&5 |
| 18051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18052 | (exit $ac_status); } && |
| 18053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18054 | { (case "(($ac_try" in |
| 18055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18056 | *) ac_try_echo=$ac_try;; |
| 18057 | esac |
| 18058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18059 | (eval "$ac_try") 2>&5 |
| 18060 | ac_status=$? |
| 18061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18062 | (exit $ac_status); }; } && |
| 18063 | { ac_try='test -s conftest$ac_exeext' |
| 18064 | { (case "(($ac_try" in |
| 18065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18066 | *) ac_try_echo=$ac_try;; |
| 18067 | esac |
| 18068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18069 | (eval "$ac_try") 2>&5 |
| 18070 | ac_status=$? |
| 18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18072 | (exit $ac_status); }; }; then |
| 18073 | eval "$as_ac_var=yes" |
| 18074 | else |
| 18075 | echo "$as_me: failed program was:" >&5 |
| 18076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18077 | |
| 18078 | eval "$as_ac_var=no" |
| 18079 | fi |
| 18080 | |
| 18081 | rm -f core conftest.err conftest.$ac_objext \ |
| 18082 | conftest$ac_exeext conftest.$ac_ext |
| 18083 | fi |
| 18084 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18085 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18086 | echo "${ECHO_T}$ac_res" >&6; } |
| 18087 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18088 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18090 | _ACEOF |
| 18091 | |
| 18092 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18093 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18094 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18095 | |
| 18096 | |
| 18097 | |
| 18098 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 18099 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18100 | do |
| 18101 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18102 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18103 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18104 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18106 | else |
| 18107 | cat >conftest.$ac_ext <<_ACEOF |
| 18108 | /* confdefs.h. */ |
| 18109 | _ACEOF |
| 18110 | cat confdefs.h >>conftest.$ac_ext |
| 18111 | cat >>conftest.$ac_ext <<_ACEOF |
| 18112 | /* end confdefs.h. */ |
| 18113 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18115 | #define $ac_func innocuous_$ac_func |
| 18116 | |
| 18117 | /* System header to define __stub macros and hopefully few prototypes, |
| 18118 | which can conflict with char $ac_func (); below. |
| 18119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18120 | <limits.h> exists even on freestanding compilers. */ |
| 18121 | |
| 18122 | #ifdef __STDC__ |
| 18123 | # include <limits.h> |
| 18124 | #else |
| 18125 | # include <assert.h> |
| 18126 | #endif |
| 18127 | |
| 18128 | #undef $ac_func |
| 18129 | |
| 18130 | /* Override any GCC internal prototype to avoid an error. |
| 18131 | Use char because int might match the return type of a GCC |
| 18132 | builtin and then its argument prototype would still apply. */ |
| 18133 | #ifdef __cplusplus |
| 18134 | extern "C" |
| 18135 | #endif |
| 18136 | char $ac_func (); |
| 18137 | /* The GNU C library defines this for functions which it implements |
| 18138 | to always fail with ENOSYS. Some functions are actually named |
| 18139 | something starting with __ and the normal name is an alias. */ |
| 18140 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18141 | choke me |
| 18142 | #endif |
| 18143 | |
| 18144 | int |
| 18145 | main () |
| 18146 | { |
| 18147 | return $ac_func (); |
| 18148 | ; |
| 18149 | return 0; |
| 18150 | } |
| 18151 | _ACEOF |
| 18152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18153 | if { (ac_try="$ac_link" |
| 18154 | case "(($ac_try" in |
| 18155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18156 | *) ac_try_echo=$ac_try;; |
| 18157 | esac |
| 18158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18159 | (eval "$ac_link") 2>conftest.er1 |
| 18160 | ac_status=$? |
| 18161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18162 | rm -f conftest.er1 |
| 18163 | cat conftest.err >&5 |
| 18164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18165 | (exit $ac_status); } && |
| 18166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18167 | { (case "(($ac_try" in |
| 18168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18169 | *) ac_try_echo=$ac_try;; |
| 18170 | esac |
| 18171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18172 | (eval "$ac_try") 2>&5 |
| 18173 | ac_status=$? |
| 18174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18175 | (exit $ac_status); }; } && |
| 18176 | { ac_try='test -s conftest$ac_exeext' |
| 18177 | { (case "(($ac_try" in |
| 18178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18179 | *) ac_try_echo=$ac_try;; |
| 18180 | esac |
| 18181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18182 | (eval "$ac_try") 2>&5 |
| 18183 | ac_status=$? |
| 18184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18185 | (exit $ac_status); }; }; then |
| 18186 | eval "$as_ac_var=yes" |
| 18187 | else |
| 18188 | echo "$as_me: failed program was:" >&5 |
| 18189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18190 | |
| 18191 | eval "$as_ac_var=no" |
| 18192 | fi |
| 18193 | |
| 18194 | rm -f core conftest.err conftest.$ac_objext \ |
| 18195 | conftest$ac_exeext conftest.$ac_ext |
| 18196 | fi |
| 18197 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18198 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18199 | echo "${ECHO_T}$ac_res" >&6; } |
| 18200 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18201 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18202 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18203 | _ACEOF |
| 18204 | |
| 18205 | fi |
| 18206 | done |
| 18207 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18208 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 18209 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 18210 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 18211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18212 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18213 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18214 | ac_cpp='$CPP $CPPFLAGS' |
| 18215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18219 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18220 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18221 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18222 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18223 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18224 | /* confdefs.h. */ |
| 18225 | _ACEOF |
| 18226 | cat confdefs.h >>conftest.$ac_ext |
| 18227 | cat >>conftest.$ac_ext <<_ACEOF |
| 18228 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18229 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18230 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18231 | #include <stdlib.h> |
| 18232 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18233 | int |
| 18234 | main () |
| 18235 | { |
| 18236 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18237 | volatile double A, B; |
| 18238 | char Buffer[100]; |
| 18239 | A = 1; |
| 18240 | A /= 10.0; |
| 18241 | sprintf(Buffer, "%a", A); |
| 18242 | B = atof(Buffer); |
| 18243 | if (A != B) |
| 18244 | return (1); |
| 18245 | if (A != 0x1.999999999999ap-4) |
| 18246 | return (1); |
| 18247 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18248 | ; |
| 18249 | return 0; |
| 18250 | } |
| 18251 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18252 | rm -f conftest$ac_exeext |
| 18253 | if { (ac_try="$ac_link" |
| 18254 | case "(($ac_try" in |
| 18255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18256 | *) ac_try_echo=$ac_try;; |
| 18257 | esac |
| 18258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18259 | (eval "$ac_link") 2>&5 |
| 18260 | ac_status=$? |
| 18261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18262 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18263 | { (case "(($ac_try" in |
| 18264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18265 | *) ac_try_echo=$ac_try;; |
| 18266 | esac |
| 18267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18268 | (eval "$ac_try") 2>&5 |
| 18269 | ac_status=$? |
| 18270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18271 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18272 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18273 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18274 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18275 | echo "$as_me: failed program was:" >&5 |
| 18276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18277 | |
| 18278 | ( exit $ac_status ) |
| 18279 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18280 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18281 | 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] | 18282 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18283 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18284 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18285 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18286 | ac_cpp='$CPP $CPPFLAGS' |
| 18287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18290 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18291 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18292 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18293 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18294 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18295 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18296 | cat >>confdefs.h <<\_ACEOF |
| 18297 | #define HAVE_PRINTF_A 1 |
| 18298 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18299 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18300 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18301 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18302 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18303 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18304 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18305 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18307 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18308 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18309 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18310 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18311 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18312 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18313 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18314 | cat >conftest.$ac_ext <<_ACEOF |
| 18315 | /* confdefs.h. */ |
| 18316 | _ACEOF |
| 18317 | cat confdefs.h >>conftest.$ac_ext |
| 18318 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18319 | /* end confdefs.h. */ |
| 18320 | #include <stdlib.h> |
| 18321 | int |
| 18322 | main () |
| 18323 | { |
| 18324 | srand48(0);lrand48();drand48(); |
| 18325 | ; |
| 18326 | return 0; |
| 18327 | } |
| 18328 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18329 | rm -f conftest.$ac_objext |
| 18330 | if { (ac_try="$ac_compile" |
| 18331 | case "(($ac_try" in |
| 18332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18333 | *) ac_try_echo=$ac_try;; |
| 18334 | esac |
| 18335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18336 | (eval "$ac_compile") 2>conftest.er1 |
| 18337 | ac_status=$? |
| 18338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18339 | rm -f conftest.er1 |
| 18340 | cat conftest.err >&5 |
| 18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18342 | (exit $ac_status); } && |
| 18343 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18344 | { (case "(($ac_try" in |
| 18345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18346 | *) ac_try_echo=$ac_try;; |
| 18347 | esac |
| 18348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18349 | (eval "$ac_try") 2>&5 |
| 18350 | ac_status=$? |
| 18351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18352 | (exit $ac_status); }; } && |
| 18353 | { ac_try='test -s conftest.$ac_objext' |
| 18354 | { (case "(($ac_try" in |
| 18355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18356 | *) ac_try_echo=$ac_try;; |
| 18357 | esac |
| 18358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18359 | (eval "$ac_try") 2>&5 |
| 18360 | ac_status=$? |
| 18361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18362 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18363 | ac_cv_func_rand48=yes |
| 18364 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18365 | echo "$as_me: failed program was:" >&5 |
| 18366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18367 | |
| 18368 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18369 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18372 | ac_ext=c |
| 18373 | ac_cpp='$CPP $CPPFLAGS' |
| 18374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18377 | |
| 18378 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18379 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18380 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18381 | |
| 18382 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18383 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18384 | cat >>confdefs.h <<\_ACEOF |
| 18385 | #define HAVE_RAND48 1 |
| 18386 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18387 | |
| 18388 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18389 | |
| 18390 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18391 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18392 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18393 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18394 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18396 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18397 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18398 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18402 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18403 | cat >conftest.$ac_ext <<_ACEOF |
| 18404 | /* confdefs.h. */ |
| 18405 | _ACEOF |
| 18406 | cat confdefs.h >>conftest.$ac_ext |
| 18407 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18408 | /* end confdefs.h. */ |
| 18409 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18410 | int |
| 18411 | main () |
| 18412 | { |
| 18413 | float f; isnan(f); |
| 18414 | ; |
| 18415 | return 0; |
| 18416 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18417 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18418 | rm -f conftest.$ac_objext |
| 18419 | if { (ac_try="$ac_compile" |
| 18420 | case "(($ac_try" in |
| 18421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18422 | *) ac_try_echo=$ac_try;; |
| 18423 | esac |
| 18424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18425 | (eval "$ac_compile") 2>conftest.er1 |
| 18426 | ac_status=$? |
| 18427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18428 | rm -f conftest.er1 |
| 18429 | cat conftest.err >&5 |
| 18430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18431 | (exit $ac_status); } && |
| 18432 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18433 | { (case "(($ac_try" in |
| 18434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18435 | *) ac_try_echo=$ac_try;; |
| 18436 | esac |
| 18437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18438 | (eval "$ac_try") 2>&5 |
| 18439 | ac_status=$? |
| 18440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18441 | (exit $ac_status); }; } && |
| 18442 | { ac_try='test -s conftest.$ac_objext' |
| 18443 | { (case "(($ac_try" in |
| 18444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18445 | *) ac_try_echo=$ac_try;; |
| 18446 | esac |
| 18447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18448 | (eval "$ac_try") 2>&5 |
| 18449 | ac_status=$? |
| 18450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18451 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18452 | ac_cv_func_isnan_in_math_h=yes |
| 18453 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18454 | echo "$as_me: failed program was:" >&5 |
| 18455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18456 | |
| 18457 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18458 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18461 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18462 | ac_cpp='$CPP $CPPFLAGS' |
| 18463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18466 | |
| 18467 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18468 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18469 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18470 | |
| 18471 | |
| 18472 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18473 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18474 | cat >>confdefs.h <<\_ACEOF |
| 18475 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18476 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18477 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18478 | fi |
| 18479 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18480 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18481 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18482 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18484 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18485 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18486 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18487 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18488 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18489 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18490 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18491 | cat >conftest.$ac_ext <<_ACEOF |
| 18492 | /* confdefs.h. */ |
| 18493 | _ACEOF |
| 18494 | cat confdefs.h >>conftest.$ac_ext |
| 18495 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18496 | /* end confdefs.h. */ |
| 18497 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18498 | int |
| 18499 | main () |
| 18500 | { |
| 18501 | float f; isnan(f); |
| 18502 | ; |
| 18503 | return 0; |
| 18504 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18505 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18506 | rm -f conftest.$ac_objext |
| 18507 | if { (ac_try="$ac_compile" |
| 18508 | case "(($ac_try" in |
| 18509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18510 | *) ac_try_echo=$ac_try;; |
| 18511 | esac |
| 18512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18513 | (eval "$ac_compile") 2>conftest.er1 |
| 18514 | ac_status=$? |
| 18515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18516 | rm -f conftest.er1 |
| 18517 | cat conftest.err >&5 |
| 18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18519 | (exit $ac_status); } && |
| 18520 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18521 | { (case "(($ac_try" in |
| 18522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18523 | *) ac_try_echo=$ac_try;; |
| 18524 | esac |
| 18525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18526 | (eval "$ac_try") 2>&5 |
| 18527 | ac_status=$? |
| 18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18529 | (exit $ac_status); }; } && |
| 18530 | { ac_try='test -s conftest.$ac_objext' |
| 18531 | { (case "(($ac_try" in |
| 18532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18533 | *) ac_try_echo=$ac_try;; |
| 18534 | esac |
| 18535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18536 | (eval "$ac_try") 2>&5 |
| 18537 | ac_status=$? |
| 18538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18539 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18540 | ac_cv_func_isnan_in_cmath=yes |
| 18541 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18542 | echo "$as_me: failed program was:" >&5 |
| 18543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18544 | |
| 18545 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18546 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18549 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18550 | ac_cpp='$CPP $CPPFLAGS' |
| 18551 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18552 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18553 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18554 | |
| 18555 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18556 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18557 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18558 | |
| 18559 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18560 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18561 | cat >>confdefs.h <<\_ACEOF |
| 18562 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18563 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18564 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18565 | fi |
| 18566 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18567 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18568 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18569 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18571 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18572 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18573 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18574 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18575 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18576 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18578 | cat >conftest.$ac_ext <<_ACEOF |
| 18579 | /* confdefs.h. */ |
| 18580 | _ACEOF |
| 18581 | cat confdefs.h >>conftest.$ac_ext |
| 18582 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18583 | /* end confdefs.h. */ |
| 18584 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18585 | int |
| 18586 | main () |
| 18587 | { |
| 18588 | float f; std::isnan(f); |
| 18589 | ; |
| 18590 | return 0; |
| 18591 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18592 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18593 | rm -f conftest.$ac_objext |
| 18594 | if { (ac_try="$ac_compile" |
| 18595 | case "(($ac_try" in |
| 18596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18597 | *) ac_try_echo=$ac_try;; |
| 18598 | esac |
| 18599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18600 | (eval "$ac_compile") 2>conftest.er1 |
| 18601 | ac_status=$? |
| 18602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18603 | rm -f conftest.er1 |
| 18604 | cat conftest.err >&5 |
| 18605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18606 | (exit $ac_status); } && |
| 18607 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18608 | { (case "(($ac_try" in |
| 18609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18610 | *) ac_try_echo=$ac_try;; |
| 18611 | esac |
| 18612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18613 | (eval "$ac_try") 2>&5 |
| 18614 | ac_status=$? |
| 18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18616 | (exit $ac_status); }; } && |
| 18617 | { ac_try='test -s conftest.$ac_objext' |
| 18618 | { (case "(($ac_try" in |
| 18619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18620 | *) ac_try_echo=$ac_try;; |
| 18621 | esac |
| 18622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18623 | (eval "$ac_try") 2>&5 |
| 18624 | ac_status=$? |
| 18625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18626 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18627 | ac_cv_func_std_isnan_in_cmath=yes |
| 18628 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18629 | echo "$as_me: failed program was:" >&5 |
| 18630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18631 | |
| 18632 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18633 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18636 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18637 | ac_cpp='$CPP $CPPFLAGS' |
| 18638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18641 | |
| 18642 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18643 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 18644 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18645 | |
| 18646 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18647 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18648 | cat >>confdefs.h <<\_ACEOF |
| 18649 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 18650 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18651 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18652 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18653 | |
| 18654 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18655 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 18656 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 18657 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 18658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18659 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18660 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18661 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18662 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18663 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18664 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18666 | cat >conftest.$ac_ext <<_ACEOF |
| 18667 | /* confdefs.h. */ |
| 18668 | _ACEOF |
| 18669 | cat confdefs.h >>conftest.$ac_ext |
| 18670 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18671 | /* end confdefs.h. */ |
| 18672 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18673 | int |
| 18674 | main () |
| 18675 | { |
| 18676 | float f; isinf(f); |
| 18677 | ; |
| 18678 | return 0; |
| 18679 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18680 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18681 | rm -f conftest.$ac_objext |
| 18682 | if { (ac_try="$ac_compile" |
| 18683 | case "(($ac_try" in |
| 18684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18685 | *) ac_try_echo=$ac_try;; |
| 18686 | esac |
| 18687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18688 | (eval "$ac_compile") 2>conftest.er1 |
| 18689 | ac_status=$? |
| 18690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18691 | rm -f conftest.er1 |
| 18692 | cat conftest.err >&5 |
| 18693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18694 | (exit $ac_status); } && |
| 18695 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18696 | { (case "(($ac_try" in |
| 18697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18698 | *) ac_try_echo=$ac_try;; |
| 18699 | esac |
| 18700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18701 | (eval "$ac_try") 2>&5 |
| 18702 | ac_status=$? |
| 18703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18704 | (exit $ac_status); }; } && |
| 18705 | { ac_try='test -s conftest.$ac_objext' |
| 18706 | { (case "(($ac_try" in |
| 18707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18708 | *) ac_try_echo=$ac_try;; |
| 18709 | esac |
| 18710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18711 | (eval "$ac_try") 2>&5 |
| 18712 | ac_status=$? |
| 18713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18714 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18715 | ac_cv_func_isinf_in_math_h=yes |
| 18716 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18717 | echo "$as_me: failed program was:" >&5 |
| 18718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18719 | |
| 18720 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18721 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18722 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18724 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18725 | ac_cpp='$CPP $CPPFLAGS' |
| 18726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18729 | |
| 18730 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18731 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 18732 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18733 | |
| 18734 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18735 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18736 | cat >>confdefs.h <<\_ACEOF |
| 18737 | #define HAVE_ISINF_IN_MATH_H 1 |
| 18738 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18739 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18740 | fi |
| 18741 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18742 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 18743 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 18744 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 18745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18746 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18747 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18748 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18749 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18750 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18751 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18752 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18753 | cat >conftest.$ac_ext <<_ACEOF |
| 18754 | /* confdefs.h. */ |
| 18755 | _ACEOF |
| 18756 | cat confdefs.h >>conftest.$ac_ext |
| 18757 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18758 | /* end confdefs.h. */ |
| 18759 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18760 | int |
| 18761 | main () |
| 18762 | { |
| 18763 | float f; isinf(f); |
| 18764 | ; |
| 18765 | return 0; |
| 18766 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18767 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18768 | rm -f conftest.$ac_objext |
| 18769 | if { (ac_try="$ac_compile" |
| 18770 | case "(($ac_try" in |
| 18771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18772 | *) ac_try_echo=$ac_try;; |
| 18773 | esac |
| 18774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18775 | (eval "$ac_compile") 2>conftest.er1 |
| 18776 | ac_status=$? |
| 18777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18778 | rm -f conftest.er1 |
| 18779 | cat conftest.err >&5 |
| 18780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18781 | (exit $ac_status); } && |
| 18782 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18783 | { (case "(($ac_try" in |
| 18784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18785 | *) ac_try_echo=$ac_try;; |
| 18786 | esac |
| 18787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18788 | (eval "$ac_try") 2>&5 |
| 18789 | ac_status=$? |
| 18790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18791 | (exit $ac_status); }; } && |
| 18792 | { ac_try='test -s conftest.$ac_objext' |
| 18793 | { (case "(($ac_try" in |
| 18794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18795 | *) ac_try_echo=$ac_try;; |
| 18796 | esac |
| 18797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18798 | (eval "$ac_try") 2>&5 |
| 18799 | ac_status=$? |
| 18800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18801 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18802 | ac_cv_func_isinf_in_cmath=yes |
| 18803 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18804 | echo "$as_me: failed program was:" >&5 |
| 18805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18806 | |
| 18807 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18808 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18811 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18812 | ac_cpp='$CPP $CPPFLAGS' |
| 18813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18816 | |
| 18817 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18818 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 18819 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18820 | |
| 18821 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18822 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18823 | cat >>confdefs.h <<\_ACEOF |
| 18824 | #define HAVE_ISINF_IN_CMATH 1 |
| 18825 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18826 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18827 | fi |
| 18828 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18829 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 18830 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 18831 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 18832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18833 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18834 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18835 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18836 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18837 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18838 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18839 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18840 | cat >conftest.$ac_ext <<_ACEOF |
| 18841 | /* confdefs.h. */ |
| 18842 | _ACEOF |
| 18843 | cat confdefs.h >>conftest.$ac_ext |
| 18844 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18845 | /* end confdefs.h. */ |
| 18846 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18847 | int |
| 18848 | main () |
| 18849 | { |
| 18850 | float f; std::isinf(f)} |
| 18851 | ; |
| 18852 | return 0; |
| 18853 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18854 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18855 | rm -f conftest.$ac_objext |
| 18856 | if { (ac_try="$ac_compile" |
| 18857 | case "(($ac_try" in |
| 18858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18859 | *) ac_try_echo=$ac_try;; |
| 18860 | esac |
| 18861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18862 | (eval "$ac_compile") 2>conftest.er1 |
| 18863 | ac_status=$? |
| 18864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18865 | rm -f conftest.er1 |
| 18866 | cat conftest.err >&5 |
| 18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18868 | (exit $ac_status); } && |
| 18869 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18870 | { (case "(($ac_try" in |
| 18871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18872 | *) ac_try_echo=$ac_try;; |
| 18873 | esac |
| 18874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18875 | (eval "$ac_try") 2>&5 |
| 18876 | ac_status=$? |
| 18877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18878 | (exit $ac_status); }; } && |
| 18879 | { ac_try='test -s conftest.$ac_objext' |
| 18880 | { (case "(($ac_try" in |
| 18881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18882 | *) ac_try_echo=$ac_try;; |
| 18883 | esac |
| 18884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18885 | (eval "$ac_try") 2>&5 |
| 18886 | ac_status=$? |
| 18887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18888 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18889 | ac_cv_func_std_isinf_in_cmath=yes |
| 18890 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18891 | echo "$as_me: failed program was:" >&5 |
| 18892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18893 | |
| 18894 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18895 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18898 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18899 | ac_cpp='$CPP $CPPFLAGS' |
| 18900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18903 | |
| 18904 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18905 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 18906 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18907 | |
| 18908 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18909 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18910 | cat >>confdefs.h <<\_ACEOF |
| 18911 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 18912 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18913 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18914 | fi |
| 18915 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18916 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 18917 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 18918 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 18919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18920 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18921 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18922 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18923 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18924 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18925 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18926 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18927 | cat >conftest.$ac_ext <<_ACEOF |
| 18928 | /* confdefs.h. */ |
| 18929 | _ACEOF |
| 18930 | cat confdefs.h >>conftest.$ac_ext |
| 18931 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18932 | /* end confdefs.h. */ |
| 18933 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18934 | int |
| 18935 | main () |
| 18936 | { |
| 18937 | float f; finite(f); |
| 18938 | ; |
| 18939 | return 0; |
| 18940 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18941 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18942 | rm -f conftest.$ac_objext |
| 18943 | if { (ac_try="$ac_compile" |
| 18944 | case "(($ac_try" in |
| 18945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18946 | *) ac_try_echo=$ac_try;; |
| 18947 | esac |
| 18948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18949 | (eval "$ac_compile") 2>conftest.er1 |
| 18950 | ac_status=$? |
| 18951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18952 | rm -f conftest.er1 |
| 18953 | cat conftest.err >&5 |
| 18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18955 | (exit $ac_status); } && |
| 18956 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18957 | { (case "(($ac_try" in |
| 18958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18959 | *) ac_try_echo=$ac_try;; |
| 18960 | esac |
| 18961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18962 | (eval "$ac_try") 2>&5 |
| 18963 | ac_status=$? |
| 18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18965 | (exit $ac_status); }; } && |
| 18966 | { ac_try='test -s conftest.$ac_objext' |
| 18967 | { (case "(($ac_try" in |
| 18968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18969 | *) ac_try_echo=$ac_try;; |
| 18970 | esac |
| 18971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18972 | (eval "$ac_try") 2>&5 |
| 18973 | ac_status=$? |
| 18974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18975 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18976 | ac_cv_func_finite_in_ieeefp_h=yes |
| 18977 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18978 | echo "$as_me: failed program was:" >&5 |
| 18979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18980 | |
| 18981 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18982 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18985 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18986 | ac_cpp='$CPP $CPPFLAGS' |
| 18987 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18988 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18989 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18990 | |
| 18991 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18992 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 18993 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18994 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 18995 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 18996 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18997 | cat >>confdefs.h <<\_ACEOF |
| 18998 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 18999 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19000 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19001 | fi |
| 19002 | |
| 19003 | |
| 19004 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19005 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19006 | |
| 19007 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19008 | for ac_header in stdlib.h unistd.h |
| 19009 | do |
| 19010 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19011 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19016 | fi |
| 19017 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19018 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19019 | echo "${ECHO_T}$ac_res" >&6; } |
| 19020 | else |
| 19021 | # Is the header compilable? |
| 19022 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19023 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19024 | cat >conftest.$ac_ext <<_ACEOF |
| 19025 | /* confdefs.h. */ |
| 19026 | _ACEOF |
| 19027 | cat confdefs.h >>conftest.$ac_ext |
| 19028 | cat >>conftest.$ac_ext <<_ACEOF |
| 19029 | /* end confdefs.h. */ |
| 19030 | $ac_includes_default |
| 19031 | #include <$ac_header> |
| 19032 | _ACEOF |
| 19033 | rm -f conftest.$ac_objext |
| 19034 | if { (ac_try="$ac_compile" |
| 19035 | case "(($ac_try" in |
| 19036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19037 | *) ac_try_echo=$ac_try;; |
| 19038 | esac |
| 19039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19040 | (eval "$ac_compile") 2>conftest.er1 |
| 19041 | ac_status=$? |
| 19042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19043 | rm -f conftest.er1 |
| 19044 | cat conftest.err >&5 |
| 19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19046 | (exit $ac_status); } && |
| 19047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19048 | { (case "(($ac_try" in |
| 19049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19050 | *) ac_try_echo=$ac_try;; |
| 19051 | esac |
| 19052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19053 | (eval "$ac_try") 2>&5 |
| 19054 | ac_status=$? |
| 19055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19056 | (exit $ac_status); }; } && |
| 19057 | { ac_try='test -s conftest.$ac_objext' |
| 19058 | { (case "(($ac_try" in |
| 19059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19060 | *) ac_try_echo=$ac_try;; |
| 19061 | esac |
| 19062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19063 | (eval "$ac_try") 2>&5 |
| 19064 | ac_status=$? |
| 19065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19066 | (exit $ac_status); }; }; then |
| 19067 | ac_header_compiler=yes |
| 19068 | else |
| 19069 | echo "$as_me: failed program was:" >&5 |
| 19070 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19071 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19072 | ac_header_compiler=no |
| 19073 | fi |
| 19074 | |
| 19075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19076 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19077 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19078 | |
| 19079 | # Is the header present? |
| 19080 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19081 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19082 | cat >conftest.$ac_ext <<_ACEOF |
| 19083 | /* confdefs.h. */ |
| 19084 | _ACEOF |
| 19085 | cat confdefs.h >>conftest.$ac_ext |
| 19086 | cat >>conftest.$ac_ext <<_ACEOF |
| 19087 | /* end confdefs.h. */ |
| 19088 | #include <$ac_header> |
| 19089 | _ACEOF |
| 19090 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19091 | case "(($ac_try" in |
| 19092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19093 | *) ac_try_echo=$ac_try;; |
| 19094 | esac |
| 19095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19096 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19097 | ac_status=$? |
| 19098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19099 | rm -f conftest.er1 |
| 19100 | cat conftest.err >&5 |
| 19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19102 | (exit $ac_status); } >/dev/null; then |
| 19103 | if test -s conftest.err; then |
| 19104 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19105 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19106 | else |
| 19107 | ac_cpp_err= |
| 19108 | fi |
| 19109 | else |
| 19110 | ac_cpp_err=yes |
| 19111 | fi |
| 19112 | if test -z "$ac_cpp_err"; then |
| 19113 | ac_header_preproc=yes |
| 19114 | else |
| 19115 | echo "$as_me: failed program was:" >&5 |
| 19116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19117 | |
| 19118 | ac_header_preproc=no |
| 19119 | fi |
| 19120 | |
| 19121 | rm -f conftest.err conftest.$ac_ext |
| 19122 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19123 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19124 | |
| 19125 | # So? What about this header? |
| 19126 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19127 | yes:no: ) |
| 19128 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19129 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19131 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19132 | ac_header_preproc=yes |
| 19133 | ;; |
| 19134 | no:yes:* ) |
| 19135 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19136 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19137 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19138 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19139 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19140 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19141 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19142 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19143 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19144 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19145 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19146 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19147 | ( cat <<\_ASBOX |
| 19148 | ## ----------------------------------- ## |
| 19149 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19150 | ## ----------------------------------- ## |
| 19151 | _ASBOX |
| 19152 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19153 | ;; |
| 19154 | esac |
| 19155 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19159 | else |
| 19160 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19161 | fi |
| 19162 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19163 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19164 | echo "${ECHO_T}$ac_res" >&6; } |
| 19165 | |
| 19166 | fi |
| 19167 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19168 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19169 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19170 | _ACEOF |
| 19171 | |
| 19172 | fi |
| 19173 | |
| 19174 | done |
| 19175 | |
| 19176 | |
| 19177 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19178 | do |
| 19179 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19180 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19181 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19182 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19184 | else |
| 19185 | cat >conftest.$ac_ext <<_ACEOF |
| 19186 | /* confdefs.h. */ |
| 19187 | _ACEOF |
| 19188 | cat confdefs.h >>conftest.$ac_ext |
| 19189 | cat >>conftest.$ac_ext <<_ACEOF |
| 19190 | /* end confdefs.h. */ |
| 19191 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19192 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19193 | #define $ac_func innocuous_$ac_func |
| 19194 | |
| 19195 | /* System header to define __stub macros and hopefully few prototypes, |
| 19196 | which can conflict with char $ac_func (); below. |
| 19197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19198 | <limits.h> exists even on freestanding compilers. */ |
| 19199 | |
| 19200 | #ifdef __STDC__ |
| 19201 | # include <limits.h> |
| 19202 | #else |
| 19203 | # include <assert.h> |
| 19204 | #endif |
| 19205 | |
| 19206 | #undef $ac_func |
| 19207 | |
| 19208 | /* Override any GCC internal prototype to avoid an error. |
| 19209 | Use char because int might match the return type of a GCC |
| 19210 | builtin and then its argument prototype would still apply. */ |
| 19211 | #ifdef __cplusplus |
| 19212 | extern "C" |
| 19213 | #endif |
| 19214 | char $ac_func (); |
| 19215 | /* The GNU C library defines this for functions which it implements |
| 19216 | to always fail with ENOSYS. Some functions are actually named |
| 19217 | something starting with __ and the normal name is an alias. */ |
| 19218 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19219 | choke me |
| 19220 | #endif |
| 19221 | |
| 19222 | int |
| 19223 | main () |
| 19224 | { |
| 19225 | return $ac_func (); |
| 19226 | ; |
| 19227 | return 0; |
| 19228 | } |
| 19229 | _ACEOF |
| 19230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19231 | if { (ac_try="$ac_link" |
| 19232 | case "(($ac_try" in |
| 19233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19234 | *) ac_try_echo=$ac_try;; |
| 19235 | esac |
| 19236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19237 | (eval "$ac_link") 2>conftest.er1 |
| 19238 | ac_status=$? |
| 19239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19240 | rm -f conftest.er1 |
| 19241 | cat conftest.err >&5 |
| 19242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19243 | (exit $ac_status); } && |
| 19244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19245 | { (case "(($ac_try" in |
| 19246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19247 | *) ac_try_echo=$ac_try;; |
| 19248 | esac |
| 19249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19250 | (eval "$ac_try") 2>&5 |
| 19251 | ac_status=$? |
| 19252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19253 | (exit $ac_status); }; } && |
| 19254 | { ac_try='test -s conftest$ac_exeext' |
| 19255 | { (case "(($ac_try" in |
| 19256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19257 | *) ac_try_echo=$ac_try;; |
| 19258 | esac |
| 19259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19260 | (eval "$ac_try") 2>&5 |
| 19261 | ac_status=$? |
| 19262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19263 | (exit $ac_status); }; }; then |
| 19264 | eval "$as_ac_var=yes" |
| 19265 | else |
| 19266 | echo "$as_me: failed program was:" >&5 |
| 19267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19268 | |
| 19269 | eval "$as_ac_var=no" |
| 19270 | fi |
| 19271 | |
| 19272 | rm -f core conftest.err conftest.$ac_objext \ |
| 19273 | conftest$ac_exeext conftest.$ac_ext |
| 19274 | fi |
| 19275 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19276 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19277 | echo "${ECHO_T}$ac_res" >&6; } |
| 19278 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19279 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19280 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19281 | _ACEOF |
| 19282 | |
| 19283 | fi |
| 19284 | done |
| 19285 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19286 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19287 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19288 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19290 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19291 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19292 | ac_cv_func_mmap_fixed_mapped=no |
| 19293 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19294 | cat >conftest.$ac_ext <<_ACEOF |
| 19295 | /* confdefs.h. */ |
| 19296 | _ACEOF |
| 19297 | cat confdefs.h >>conftest.$ac_ext |
| 19298 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19299 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19300 | $ac_includes_default |
| 19301 | /* malloc might have been renamed as rpl_malloc. */ |
| 19302 | #undef malloc |
| 19303 | |
| 19304 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19305 | Here is a matrix of mmap possibilities: |
| 19306 | mmap private not fixed |
| 19307 | mmap private fixed at somewhere currently unmapped |
| 19308 | mmap private fixed at somewhere already mapped |
| 19309 | mmap shared not fixed |
| 19310 | mmap shared fixed at somewhere currently unmapped |
| 19311 | mmap shared fixed at somewhere already mapped |
| 19312 | For private mappings, we should verify that changes cannot be read() |
| 19313 | back from the file, nor mmap's back from the file at a different |
| 19314 | address. (There have been systems where private was not correctly |
| 19315 | implemented like the infamous i386 svr4.0, and systems where the |
| 19316 | VM page cache was not coherent with the file system buffer cache |
| 19317 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19318 | For shared mappings, we should conversely verify that changes get |
| 19319 | propagated back to all the places they're supposed to be. |
| 19320 | |
| 19321 | Grep wants private fixed already mapped. |
| 19322 | The main things grep needs to know about mmap are: |
| 19323 | * does it exist and is it safe to write into the mmap'd area |
| 19324 | * how to use it (BSD variants) */ |
| 19325 | |
| 19326 | #include <fcntl.h> |
| 19327 | #include <sys/mman.h> |
| 19328 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19329 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19330 | char *malloc (); |
| 19331 | #endif |
| 19332 | |
| 19333 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19334 | #if !HAVE_GETPAGESIZE |
| 19335 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19336 | # if !HAVE_SYS_PARAM_H |
| 19337 | # define HAVE_SYS_PARAM_H 1 |
| 19338 | # endif |
| 19339 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19340 | # ifdef _SC_PAGESIZE |
| 19341 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19342 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19343 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19344 | # include <sys/param.h> |
| 19345 | # ifdef EXEC_PAGESIZE |
| 19346 | # define getpagesize() EXEC_PAGESIZE |
| 19347 | # else /* no EXEC_PAGESIZE */ |
| 19348 | # ifdef NBPG |
| 19349 | # define getpagesize() NBPG * CLSIZE |
| 19350 | # ifndef CLSIZE |
| 19351 | # define CLSIZE 1 |
| 19352 | # endif /* no CLSIZE */ |
| 19353 | # else /* no NBPG */ |
| 19354 | # ifdef NBPC |
| 19355 | # define getpagesize() NBPC |
| 19356 | # else /* no NBPC */ |
| 19357 | # ifdef PAGESIZE |
| 19358 | # define getpagesize() PAGESIZE |
| 19359 | # endif /* PAGESIZE */ |
| 19360 | # endif /* no NBPC */ |
| 19361 | # endif /* no NBPG */ |
| 19362 | # endif /* no EXEC_PAGESIZE */ |
| 19363 | # else /* no HAVE_SYS_PARAM_H */ |
| 19364 | # define getpagesize() 8192 /* punt totally */ |
| 19365 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19366 | # endif /* no _SC_PAGESIZE */ |
| 19367 | |
| 19368 | #endif /* no HAVE_GETPAGESIZE */ |
| 19369 | |
| 19370 | int |
| 19371 | main () |
| 19372 | { |
| 19373 | char *data, *data2, *data3; |
| 19374 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19375 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19376 | |
| 19377 | pagesize = getpagesize (); |
| 19378 | |
| 19379 | /* First, make a file with some known garbage in it. */ |
| 19380 | data = (char *) malloc (pagesize); |
| 19381 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19382 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19383 | for (i = 0; i < pagesize; ++i) |
| 19384 | *(data + i) = rand (); |
| 19385 | umask (0); |
| 19386 | fd = creat ("conftest.mmap", 0600); |
| 19387 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19388 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19389 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19390 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19391 | close (fd); |
| 19392 | |
| 19393 | /* Next, try to mmap the file at a fixed address which already has |
| 19394 | something else allocated at it. If we can, also make sure that |
| 19395 | we see the same garbage. */ |
| 19396 | fd = open ("conftest.mmap", O_RDWR); |
| 19397 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19398 | return 1; |
| 19399 | data2 = (char *) malloc (2 * pagesize); |
| 19400 | if (!data2) |
| 19401 | return 1; |
| 19402 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19403 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19404 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19405 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19406 | for (i = 0; i < pagesize; ++i) |
| 19407 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19408 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19409 | |
| 19410 | /* Finally, make sure that changes to the mapped area do not |
| 19411 | percolate back to the file as seen by read(). (This is a bug on |
| 19412 | some variants of i386 svr4.0.) */ |
| 19413 | for (i = 0; i < pagesize; ++i) |
| 19414 | *(data2 + i) = *(data2 + i) + 1; |
| 19415 | data3 = (char *) malloc (pagesize); |
| 19416 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19417 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19418 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19419 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19420 | for (i = 0; i < pagesize; ++i) |
| 19421 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19422 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19423 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19424 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19425 | } |
| 19426 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19427 | rm -f conftest$ac_exeext |
| 19428 | if { (ac_try="$ac_link" |
| 19429 | case "(($ac_try" in |
| 19430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19431 | *) ac_try_echo=$ac_try;; |
| 19432 | esac |
| 19433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19434 | (eval "$ac_link") 2>&5 |
| 19435 | ac_status=$? |
| 19436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19437 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19438 | { (case "(($ac_try" in |
| 19439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19440 | *) ac_try_echo=$ac_try;; |
| 19441 | esac |
| 19442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19443 | (eval "$ac_try") 2>&5 |
| 19444 | ac_status=$? |
| 19445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19446 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19447 | ac_cv_func_mmap_fixed_mapped=yes |
| 19448 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19449 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19450 | echo "$as_me: failed program was:" >&5 |
| 19451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19452 | |
| 19453 | ( exit $ac_status ) |
| 19454 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19455 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19456 | 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] | 19457 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19458 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19459 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19460 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19461 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19462 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19463 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19464 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19465 | cat >>confdefs.h <<\_ACEOF |
| 19466 | #define HAVE_MMAP 1 |
| 19467 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19468 | |
| 19469 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19470 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19471 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19472 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19473 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19474 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19476 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19477 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19478 | ac_cpp='$CPP $CPPFLAGS' |
| 19479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19482 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19483 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19484 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19485 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19486 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19487 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19488 | /* confdefs.h. */ |
| 19489 | _ACEOF |
| 19490 | cat confdefs.h >>conftest.$ac_ext |
| 19491 | cat >>conftest.$ac_ext <<_ACEOF |
| 19492 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19493 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19494 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19495 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19496 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19497 | |
| 19498 | int |
| 19499 | main () |
| 19500 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19501 | |
| 19502 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19503 | fd = creat ("foo",0777); |
| 19504 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19505 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19506 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19507 | ; |
| 19508 | return 0; |
| 19509 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19510 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19511 | rm -f conftest$ac_exeext |
| 19512 | if { (ac_try="$ac_link" |
| 19513 | case "(($ac_try" in |
| 19514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19515 | *) ac_try_echo=$ac_try;; |
| 19516 | esac |
| 19517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19518 | (eval "$ac_link") 2>&5 |
| 19519 | ac_status=$? |
| 19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19521 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19522 | { (case "(($ac_try" in |
| 19523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19524 | *) ac_try_echo=$ac_try;; |
| 19525 | esac |
| 19526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19527 | (eval "$ac_try") 2>&5 |
| 19528 | ac_status=$? |
| 19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19530 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19531 | ac_cv_func_mmap_file=yes |
| 19532 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19533 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19534 | echo "$as_me: failed program was:" >&5 |
| 19535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19536 | |
| 19537 | ( exit $ac_status ) |
| 19538 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19539 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19540 | 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] | 19541 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19542 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19543 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19544 | ac_ext=c |
| 19545 | ac_cpp='$CPP $CPPFLAGS' |
| 19546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19549 | |
| 19550 | |
| 19551 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19552 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19553 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19554 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19555 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19556 | cat >>confdefs.h <<\_ACEOF |
| 19557 | #define HAVE_MMAP_FILE |
| 19558 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19559 | |
| 19560 | MMAP_FILE=yes |
| 19561 | |
| 19562 | fi |
| 19563 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19564 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19565 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19566 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19568 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19569 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19570 | ac_cv_need_dev_zero_for_mmap=yes |
| 19571 | else |
| 19572 | ac_cv_need_dev_zero_for_mmap=no |
| 19573 | fi |
| 19574 | |
| 19575 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19576 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19577 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19578 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19579 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19580 | cat >>confdefs.h <<\_ACEOF |
| 19581 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19582 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19583 | |
| 19584 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19585 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19586 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19587 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19588 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19589 | 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] | 19590 | fi |
| 19591 | if test "$ac_cv_func_mmap_file" = "no" |
| 19592 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19593 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19594 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19595 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19596 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19597 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19598 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19599 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 19600 | cat >conftest.$ac_ext <<_ACEOF |
| 19601 | /* confdefs.h. */ |
| 19602 | _ACEOF |
| 19603 | cat confdefs.h >>conftest.$ac_ext |
| 19604 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19605 | /* end confdefs.h. */ |
| 19606 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19607 | volatile unsigned long val = 1; |
| 19608 | __sync_synchronize(); |
| 19609 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 19610 | __sync_add_and_fetch(&val, 1); |
| 19611 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19612 | return 0; |
| 19613 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19614 | |
| 19615 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19616 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19617 | if { (ac_try="$ac_link" |
| 19618 | case "(($ac_try" in |
| 19619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19620 | *) ac_try_echo=$ac_try;; |
| 19621 | esac |
| 19622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19623 | (eval "$ac_link") 2>conftest.er1 |
| 19624 | ac_status=$? |
| 19625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19626 | rm -f conftest.er1 |
| 19627 | cat conftest.err >&5 |
| 19628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19629 | (exit $ac_status); } && |
| 19630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19631 | { (case "(($ac_try" in |
| 19632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19633 | *) ac_try_echo=$ac_try;; |
| 19634 | esac |
| 19635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19636 | (eval "$ac_try") 2>&5 |
| 19637 | ac_status=$? |
| 19638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19639 | (exit $ac_status); }; } && |
| 19640 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 19650 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19651 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19653 | cat >>confdefs.h <<\_ACEOF |
| 19654 | #define LLVM_MULTITHREADED 1 |
| 19655 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19656 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19657 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19658 | echo "$as_me: failed program was:" >&5 |
| 19659 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19660 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19661 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19662 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19663 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19664 | cat >>confdefs.h <<\_ACEOF |
| 19665 | #define LLVM_MULTITHREADED 0 |
| 19666 | _ACEOF |
| 19667 | |
| 19668 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 19669 | 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] | 19670 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19671 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19672 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19673 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19674 | |
| 19675 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19676 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19677 | 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] | 19678 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 19679 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 19680 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 19681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19682 | else |
| 19683 | ac_ext=c |
| 19684 | ac_cpp='$CPP $CPPFLAGS' |
| 19685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19688 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19689 | cat >conftest.$ac_ext <<_ACEOF |
| 19690 | /* confdefs.h. */ |
| 19691 | _ACEOF |
| 19692 | cat confdefs.h >>conftest.$ac_ext |
| 19693 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19694 | /* end confdefs.h. */ |
| 19695 | #ifndef __x86_64__ |
| 19696 | error: Not x86-64 even if uname says so! |
| 19697 | #endif |
| 19698 | |
| 19699 | int |
| 19700 | main () |
| 19701 | { |
| 19702 | |
| 19703 | ; |
| 19704 | return 0; |
| 19705 | } |
| 19706 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19707 | rm -f conftest.$ac_objext |
| 19708 | if { (ac_try="$ac_compile" |
| 19709 | case "(($ac_try" in |
| 19710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19711 | *) ac_try_echo=$ac_try;; |
| 19712 | esac |
| 19713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19714 | (eval "$ac_compile") 2>conftest.er1 |
| 19715 | ac_status=$? |
| 19716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19717 | rm -f conftest.er1 |
| 19718 | cat conftest.err >&5 |
| 19719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19720 | (exit $ac_status); } && |
| 19721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19722 | { (case "(($ac_try" in |
| 19723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19724 | *) ac_try_echo=$ac_try;; |
| 19725 | esac |
| 19726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19727 | (eval "$ac_try") 2>&5 |
| 19728 | ac_status=$? |
| 19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19730 | (exit $ac_status); }; } && |
| 19731 | { ac_try='test -s conftest.$ac_objext' |
| 19732 | { (case "(($ac_try" in |
| 19733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19734 | *) ac_try_echo=$ac_try;; |
| 19735 | esac |
| 19736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19737 | (eval "$ac_try") 2>&5 |
| 19738 | ac_status=$? |
| 19739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19740 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19741 | llvm_cv_linux_mixed=no |
| 19742 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19743 | echo "$as_me: failed program was:" >&5 |
| 19744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19745 | |
| 19746 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19747 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19748 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19750 | ac_ext=c |
| 19751 | ac_cpp='$CPP $CPPFLAGS' |
| 19752 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19753 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19754 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19755 | |
| 19756 | |
| 19757 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19758 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 19759 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19760 | |
| 19761 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 19762 | llvm_cv_target_arch="x86" |
| 19763 | ARCH="x86" |
| 19764 | fi |
| 19765 | fi |
| 19766 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19767 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19768 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19769 | do |
| 19770 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19771 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19772 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19773 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19775 | else |
| 19776 | cat >conftest.$ac_ext <<_ACEOF |
| 19777 | /* confdefs.h. */ |
| 19778 | _ACEOF |
| 19779 | cat confdefs.h >>conftest.$ac_ext |
| 19780 | cat >>conftest.$ac_ext <<_ACEOF |
| 19781 | /* end confdefs.h. */ |
| 19782 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19783 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19784 | #define $ac_func innocuous_$ac_func |
| 19785 | |
| 19786 | /* System header to define __stub macros and hopefully few prototypes, |
| 19787 | which can conflict with char $ac_func (); below. |
| 19788 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19789 | <limits.h> exists even on freestanding compilers. */ |
| 19790 | |
| 19791 | #ifdef __STDC__ |
| 19792 | # include <limits.h> |
| 19793 | #else |
| 19794 | # include <assert.h> |
| 19795 | #endif |
| 19796 | |
| 19797 | #undef $ac_func |
| 19798 | |
| 19799 | /* Override any GCC internal prototype to avoid an error. |
| 19800 | Use char because int might match the return type of a GCC |
| 19801 | builtin and then its argument prototype would still apply. */ |
| 19802 | #ifdef __cplusplus |
| 19803 | extern "C" |
| 19804 | #endif |
| 19805 | char $ac_func (); |
| 19806 | /* The GNU C library defines this for functions which it implements |
| 19807 | to always fail with ENOSYS. Some functions are actually named |
| 19808 | something starting with __ and the normal name is an alias. */ |
| 19809 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19810 | choke me |
| 19811 | #endif |
| 19812 | |
| 19813 | int |
| 19814 | main () |
| 19815 | { |
| 19816 | return $ac_func (); |
| 19817 | ; |
| 19818 | return 0; |
| 19819 | } |
| 19820 | _ACEOF |
| 19821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19822 | if { (ac_try="$ac_link" |
| 19823 | case "(($ac_try" in |
| 19824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19825 | *) ac_try_echo=$ac_try;; |
| 19826 | esac |
| 19827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19828 | (eval "$ac_link") 2>conftest.er1 |
| 19829 | ac_status=$? |
| 19830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19831 | rm -f conftest.er1 |
| 19832 | cat conftest.err >&5 |
| 19833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19834 | (exit $ac_status); } && |
| 19835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19836 | { (case "(($ac_try" in |
| 19837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19838 | *) ac_try_echo=$ac_try;; |
| 19839 | esac |
| 19840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19841 | (eval "$ac_try") 2>&5 |
| 19842 | ac_status=$? |
| 19843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19844 | (exit $ac_status); }; } && |
| 19845 | { ac_try='test -s conftest$ac_exeext' |
| 19846 | { (case "(($ac_try" in |
| 19847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19848 | *) ac_try_echo=$ac_try;; |
| 19849 | esac |
| 19850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19851 | (eval "$ac_try") 2>&5 |
| 19852 | ac_status=$? |
| 19853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19854 | (exit $ac_status); }; }; then |
| 19855 | eval "$as_ac_var=yes" |
| 19856 | else |
| 19857 | echo "$as_me: failed program was:" >&5 |
| 19858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19859 | |
| 19860 | eval "$as_ac_var=no" |
| 19861 | fi |
| 19862 | |
| 19863 | rm -f core conftest.err conftest.$ac_objext \ |
| 19864 | conftest$ac_exeext conftest.$ac_ext |
| 19865 | fi |
| 19866 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19867 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19868 | echo "${ECHO_T}$ac_res" >&6; } |
| 19869 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19870 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19871 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19872 | _ACEOF |
| 19873 | |
| 19874 | fi |
| 19875 | done |
| 19876 | |
| 19877 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19878 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 19879 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 19880 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 19881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19882 | else |
| 19883 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19884 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19885 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 19886 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 19887 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19888 | if test $? -eq 0 ; then |
| 19889 | llvm_cv_llvmgcc_sanity="yes" |
| 19890 | fi |
| 19891 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19892 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19893 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19894 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 19895 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19896 | |
| 19897 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19898 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 19899 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19900 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19901 | LLVMCC1=$llvmcc1path |
| 19902 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19903 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19904 | LLVMCC1PLUS=$llvmcc1pluspath |
| 19905 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 19906 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 19907 | LLVMGCCDIR=$llvmgccdir |
| 19908 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 19909 | 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] | 19910 | LLVMGCC_LANGS=$llvmgcclangs |
| 19911 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19912 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 19913 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 19914 | fi |
| 19915 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 19916 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 19917 | |
| 19918 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 19919 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 19920 | |
| 19921 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19922 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19923 | # information into substitutions that will end up in Makefile.config.in |
| 19924 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 19925 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 19926 | prefix="/usr/local" |
| 19927 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19928 | eval LLVM_PREFIX="${prefix}"; |
| 19929 | eval LLVM_BINDIR="${prefix}/bin"; |
| 19930 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19931 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 19932 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 19933 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19934 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 19935 | eval LLVM_INFODIR="${prefix}/info"; |
| 19936 | eval LLVM_MANDIR="${prefix}/man"; |
| 19937 | LLVM_CONFIGTIME=`date` |
| 19938 | |
| 19939 | |
| 19940 | |
| 19941 | |
| 19942 | |
| 19943 | |
| 19944 | |
| 19945 | |
| 19946 | |
| 19947 | |
| 19948 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19949 | # Place the various directores into the config.h file as #defines so that we |
| 19950 | # can know about the installation paths within LLVM. |
| 19951 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19952 | cat >>confdefs.h <<_ACEOF |
| 19953 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 19954 | _ACEOF |
| 19955 | |
| 19956 | |
| 19957 | cat >>confdefs.h <<_ACEOF |
| 19958 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 19959 | _ACEOF |
| 19960 | |
| 19961 | |
| 19962 | cat >>confdefs.h <<_ACEOF |
| 19963 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 19964 | _ACEOF |
| 19965 | |
| 19966 | |
| 19967 | cat >>confdefs.h <<_ACEOF |
| 19968 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 19969 | _ACEOF |
| 19970 | |
| 19971 | |
| 19972 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 19973 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19974 | _ACEOF |
| 19975 | |
| 19976 | |
| 19977 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 19978 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 19979 | _ACEOF |
| 19980 | |
| 19981 | |
| 19982 | cat >>confdefs.h <<_ACEOF |
| 19983 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 19984 | _ACEOF |
| 19985 | |
| 19986 | |
| 19987 | cat >>confdefs.h <<_ACEOF |
| 19988 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 19989 | _ACEOF |
| 19990 | |
| 19991 | |
| 19992 | cat >>confdefs.h <<_ACEOF |
| 19993 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 19994 | _ACEOF |
| 19995 | |
| 19996 | |
| 19997 | cat >>confdefs.h <<_ACEOF |
| 19998 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 19999 | _ACEOF |
| 20000 | |
| 20001 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20002 | cat >>confdefs.h <<_ACEOF |
| 20003 | #define LLVM_HOSTTRIPLE "$host" |
| 20004 | _ACEOF |
| 20005 | |
| 20006 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20007 | # Determine which bindings to build. |
| 20008 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20009 | BINDINGS_TO_BUILD="" |
| 20010 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20011 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20012 | fi |
| 20013 | fi |
| 20014 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20015 | |
| 20016 | |
| 20017 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20018 | # other files. |
| 20019 | ALL_BINDINGS=ocaml |
| 20020 | |
| 20021 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20022 | # Do any work necessary to ensure that bindings have what they need. |
| 20023 | binding_prereqs_failed=0 |
| 20024 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20025 | case "$a_binding" in |
| 20026 | ocaml) |
| 20027 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20028 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20029 | 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] | 20030 | binding_prereqs_failed=1 |
| 20031 | fi |
| 20032 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20033 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20034 | 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] | 20035 | binding_prereqs_failed=1 |
| 20036 | fi |
| 20037 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20038 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20039 | 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] | 20040 | fi |
| 20041 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20042 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20043 | |
| 20044 | else |
| 20045 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20046 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20047 | then |
| 20048 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20049 | OCAML_LIBDIR=$ocaml_stdlib |
| 20050 | |
| 20051 | else |
| 20052 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20053 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20054 | |
| 20055 | fi |
| 20056 | fi |
| 20057 | ;; |
| 20058 | esac |
| 20059 | done |
| 20060 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20061 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20062 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20063 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20064 | fi |
| 20065 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20066 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20067 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20068 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20070 | else |
| 20071 | ac_ext=cpp |
| 20072 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20073 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20074 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20075 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20076 | |
| 20077 | oldcxxflags="$CXXFLAGS" |
| 20078 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20079 | cat >conftest.$ac_ext <<_ACEOF |
| 20080 | /* confdefs.h. */ |
| 20081 | _ACEOF |
| 20082 | cat confdefs.h >>conftest.$ac_ext |
| 20083 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20084 | /* end confdefs.h. */ |
| 20085 | |
| 20086 | int |
| 20087 | main () |
| 20088 | { |
| 20089 | |
| 20090 | ; |
| 20091 | return 0; |
| 20092 | } |
| 20093 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20094 | rm -f conftest.$ac_objext |
| 20095 | if { (ac_try="$ac_compile" |
| 20096 | case "(($ac_try" in |
| 20097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20098 | *) ac_try_echo=$ac_try;; |
| 20099 | esac |
| 20100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20101 | (eval "$ac_compile") 2>conftest.er1 |
| 20102 | ac_status=$? |
| 20103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20104 | rm -f conftest.er1 |
| 20105 | cat conftest.err >&5 |
| 20106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20107 | (exit $ac_status); } && |
| 20108 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20109 | { (case "(($ac_try" in |
| 20110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20111 | *) ac_try_echo=$ac_try;; |
| 20112 | esac |
| 20113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20114 | (eval "$ac_try") 2>&5 |
| 20115 | ac_status=$? |
| 20116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20117 | (exit $ac_status); }; } && |
| 20118 | { ac_try='test -s conftest.$ac_objext' |
| 20119 | { (case "(($ac_try" in |
| 20120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20121 | *) ac_try_echo=$ac_try;; |
| 20122 | esac |
| 20123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20124 | (eval "$ac_try") 2>&5 |
| 20125 | ac_status=$? |
| 20126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20127 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20128 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20129 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20130 | echo "$as_me: failed program was:" >&5 |
| 20131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20132 | |
| 20133 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20134 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20135 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20137 | CXXFLAGS="$oldcxxflags" |
| 20138 | ac_ext=c |
| 20139 | ac_cpp='$CPP $CPPFLAGS' |
| 20140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20143 | |
| 20144 | |
| 20145 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20146 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20147 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20148 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20149 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20150 | |
| 20151 | else |
| 20152 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20153 | |
| 20154 | fi |
| 20155 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20156 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 20157 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20158 | RPATH="-Wl,-R" |
| 20159 | else |
| 20160 | RPATH="-Wl,-rpath" |
| 20161 | fi |
| 20162 | |
| 20163 | |
| 20164 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20165 | RDYNAMIC="-Wl,-export-dynamic" |
| 20166 | else |
| 20167 | RDYNAMIC="" |
| 20168 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 20169 | |
| 20170 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20171 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20172 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20173 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20174 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 20175 | |
| 20176 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 20177 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20178 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 20179 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20180 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 20181 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20182 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20183 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20185 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20186 | |
| 20187 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20188 | ac_config_files="$ac_config_files llvm.spec" |
| 20189 | |
| 20190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20191 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20192 | |
| 20193 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20194 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 20195 | |
| 20196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20197 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 20198 | |
| 20199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20200 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20202 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20203 | |
| 20204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20205 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20206 | |
| 20207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20208 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20209 | |
| 20210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20211 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20212 | |
| 20213 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20214 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 20215 | |
| 20216 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20217 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20218 | |
| 20219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20220 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20221 | |
| 20222 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20223 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 20224 | |
| 20225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20226 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20227 | |
| 20228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20229 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20230 | |
| 20231 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20232 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20233 | |
| 20234 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20235 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20236 | |
| 20237 | |
| 20238 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20239 | |
| 20240 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20241 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20242 | cat >confcache <<\_ACEOF |
| 20243 | # This file is a shell script that caches the results of configure |
| 20244 | # tests run on this system so they can be shared between configure |
| 20245 | # scripts and configure runs, see configure's option --config-cache. |
| 20246 | # It is not useful on other systems. If it contains results you don't |
| 20247 | # want to keep, you may remove or edit it. |
| 20248 | # |
| 20249 | # config.status only pays attention to the cache file if you give it |
| 20250 | # the --recheck option to rerun configure. |
| 20251 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20252 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20253 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20254 | # following values. |
| 20255 | |
| 20256 | _ACEOF |
| 20257 | |
| 20258 | # The following way of writing the cache mishandles newlines in values, |
| 20259 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20260 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20261 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20262 | # 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] | 20263 | ( |
| 20264 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20265 | eval ac_val=\$$ac_var |
| 20266 | case $ac_val in #( |
| 20267 | *${as_nl}*) |
| 20268 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20269 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20270 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20271 | esac |
| 20272 | case $ac_var in #( |
| 20273 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20274 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20275 | esac ;; |
| 20276 | esac |
| 20277 | done |
| 20278 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20279 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20280 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20281 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20282 | # `set' does not quote correctly, so add quotes (double-quote |
| 20283 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20284 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20285 | "s/'/'\\\\''/g; |
| 20286 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20287 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20288 | *) |
| 20289 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20290 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20291 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20292 | esac | |
| 20293 | sort |
| 20294 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20295 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20296 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20297 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20298 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20299 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20300 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20301 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20302 | :end' >>confcache |
| 20303 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20304 | if test -w "$cache_file"; then |
| 20305 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20306 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20307 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20308 | cat confcache >$cache_file |
| 20309 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20310 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20311 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20312 | fi |
| 20313 | fi |
| 20314 | rm -f confcache |
| 20315 | |
| 20316 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20317 | # Let make expand exec_prefix. |
| 20318 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20319 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20320 | DEFS=-DHAVE_CONFIG_H |
| 20321 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20322 | ac_libobjs= |
| 20323 | ac_ltlibobjs= |
| 20324 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20325 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20326 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20327 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20328 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20329 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20330 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20331 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20332 | done |
| 20333 | LIBOBJS=$ac_libobjs |
| 20334 | |
| 20335 | LTLIBOBJS=$ac_ltlibobjs |
| 20336 | |
| 20337 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20338 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20339 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20340 | Usually this means the macro was only invoked conditionally." >&5 |
| 20341 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20342 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20343 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20344 | fi |
| 20345 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20346 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20347 | Usually this means the macro was only invoked conditionally." >&5 |
| 20348 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20349 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20350 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20351 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20352 | |
| 20353 | : ${CONFIG_STATUS=./config.status} |
| 20354 | ac_clean_files_save=$ac_clean_files |
| 20355 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20356 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20357 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20358 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20359 | #! $SHELL |
| 20360 | # Generated by $as_me. |
| 20361 | # Run this file to recreate the current configuration. |
| 20362 | # Compiler output produced by configure, useful for debugging |
| 20363 | # configure, is in config.log if it exists. |
| 20364 | |
| 20365 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20366 | ac_cs_recheck=false |
| 20367 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20368 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20369 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20370 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20371 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20372 | ## --------------------- ## |
| 20373 | ## M4sh Initialization. ## |
| 20374 | ## --------------------- ## |
| 20375 | |
| 20376 | # Be Bourne compatible |
| 20377 | 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] | 20378 | emulate sh |
| 20379 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20380 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20381 | # is contrary to our usage. Disable this feature. |
| 20382 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20383 | setopt NO_GLOB_SUBST |
| 20384 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20385 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20386 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20387 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20388 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20389 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20390 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20391 | # PATH needs CR |
| 20392 | # Avoid depending upon Character Ranges. |
| 20393 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20394 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20395 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20396 | as_cr_digits='0123456789' |
| 20397 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20398 | |
| 20399 | # The user is always right. |
| 20400 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20401 | echo "#! /bin/sh" >conf$$.sh |
| 20402 | echo "exit 0" >>conf$$.sh |
| 20403 | chmod +x conf$$.sh |
| 20404 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20405 | PATH_SEPARATOR=';' |
| 20406 | else |
| 20407 | PATH_SEPARATOR=: |
| 20408 | fi |
| 20409 | rm -f conf$$.sh |
| 20410 | fi |
| 20411 | |
| 20412 | # Support unset when possible. |
| 20413 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20414 | as_unset=unset |
| 20415 | else |
| 20416 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20417 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20419 | |
| 20420 | # IFS |
| 20421 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20422 | # there to prevent editors from complaining about space-tab. |
| 20423 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20424 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20425 | as_nl=' |
| 20426 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20427 | IFS=" "" $as_nl" |
| 20428 | |
| 20429 | # 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] | 20430 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20431 | *[\\/]* ) as_myself=$0 ;; |
| 20432 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20433 | for as_dir in $PATH |
| 20434 | do |
| 20435 | IFS=$as_save_IFS |
| 20436 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20437 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20438 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20439 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20441 | ;; |
| 20442 | esac |
| 20443 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20444 | # in which case we are not to be found in the path. |
| 20445 | if test "x$as_myself" = x; then |
| 20446 | as_myself=$0 |
| 20447 | fi |
| 20448 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20449 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20450 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20451 | fi |
| 20452 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20453 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20454 | for as_var in ENV MAIL MAILPATH |
| 20455 | 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] | 20456 | done |
| 20457 | PS1='$ ' |
| 20458 | PS2='> ' |
| 20459 | PS4='+ ' |
| 20460 | |
| 20461 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20462 | for as_var in \ |
| 20463 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20464 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20465 | LC_TELEPHONE LC_TIME |
| 20466 | do |
| 20467 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20468 | eval $as_var=C; export $as_var |
| 20469 | else |
| 20470 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20471 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20472 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20473 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20474 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20475 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20476 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20477 | as_expr=expr |
| 20478 | else |
| 20479 | as_expr=false |
| 20480 | fi |
| 20481 | |
| 20482 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20483 | as_basename=basename |
| 20484 | else |
| 20485 | as_basename=false |
| 20486 | fi |
| 20487 | |
| 20488 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20489 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20490 | as_me=`$as_basename -- "$0" || |
| 20491 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20492 | X"$0" : 'X\(//\)$' \| \ |
| 20493 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20494 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20495 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20496 | s//\1/ |
| 20497 | q |
| 20498 | } |
| 20499 | /^X\/\(\/\/\)$/{ |
| 20500 | s//\1/ |
| 20501 | q |
| 20502 | } |
| 20503 | /^X\/\(\/\).*/{ |
| 20504 | s//\1/ |
| 20505 | q |
| 20506 | } |
| 20507 | s/.*/./; q'` |
| 20508 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20509 | # CDPATH. |
| 20510 | $as_unset CDPATH |
| 20511 | |
| 20512 | |
| 20513 | |
| 20514 | as_lineno_1=$LINENO |
| 20515 | as_lineno_2=$LINENO |
| 20516 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20517 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20518 | |
| 20519 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20520 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20521 | # line-number line after each line using $LINENO; the second 'sed' |
| 20522 | # does the real work. The second script uses 'N' to pair each |
| 20523 | # line-number line with the line containing $LINENO, and appends |
| 20524 | # trailing '-' during substitution so that $LINENO is not a special |
| 20525 | # case at line end. |
| 20526 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20527 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20528 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20529 | sed -n ' |
| 20530 | p |
| 20531 | /[$]LINENO/= |
| 20532 | ' <$as_myself | |
| 20533 | sed ' |
| 20534 | s/[$]LINENO.*/&-/ |
| 20535 | t lineno |
| 20536 | b |
| 20537 | :lineno |
| 20538 | N |
| 20539 | :loop |
| 20540 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20541 | t loop |
| 20542 | s/-\n.*// |
| 20543 | ' >$as_me.lineno && |
| 20544 | chmod +x "$as_me.lineno" || |
| 20545 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20546 | { (exit 1); exit 1; }; } |
| 20547 | |
| 20548 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20549 | # (the dirname of $[0] is not the place where we might find the |
| 20550 | # original and so on. Autoconf is especially sensitive to this). |
| 20551 | . "./$as_me.lineno" |
| 20552 | # Exit status is that of the last command. |
| 20553 | exit |
| 20554 | } |
| 20555 | |
| 20556 | |
| 20557 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20558 | as_dirname=dirname |
| 20559 | else |
| 20560 | as_dirname=false |
| 20561 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20562 | |
| 20563 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20564 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20565 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20566 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20567 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20568 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20569 | esac;; |
| 20570 | *) |
| 20571 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20572 | esac |
| 20573 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20574 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20575 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20576 | as_expr=expr |
| 20577 | else |
| 20578 | as_expr=false |
| 20579 | fi |
| 20580 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20581 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20582 | if test -d conf$$.dir; then |
| 20583 | rm -f conf$$.dir/conf$$.file |
| 20584 | else |
| 20585 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20586 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20587 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20588 | echo >conf$$.file |
| 20589 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20590 | as_ln_s='ln -s' |
| 20591 | # ... but there are two gotchas: |
| 20592 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20593 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20594 | # In both cases, we have to default to `cp -p'. |
| 20595 | 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] | 20596 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20597 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20598 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20599 | else |
| 20600 | as_ln_s='cp -p' |
| 20601 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20602 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20603 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20604 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20605 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20606 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20607 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20608 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20609 | as_mkdir_p=false |
| 20610 | fi |
| 20611 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20612 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20613 | # systems may use methods other than mode bits to determine executability. |
| 20614 | cat >conf$$.file <<_ASEOF |
| 20615 | #! /bin/sh |
| 20616 | exit 0 |
| 20617 | _ASEOF |
| 20618 | chmod +x conf$$.file |
| 20619 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20620 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20621 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20622 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20623 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20624 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20625 | |
| 20626 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20627 | 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] | 20628 | |
| 20629 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20630 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20631 | |
| 20632 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20633 | exec 6>&1 |
| 20634 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20635 | # 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] | 20636 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20637 | # values after options handling. |
| 20638 | ac_log=" |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 20639 | This file was extended by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20640 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20641 | |
| 20642 | CONFIG_FILES = $CONFIG_FILES |
| 20643 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20644 | CONFIG_LINKS = $CONFIG_LINKS |
| 20645 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20646 | $ $0 $@ |
| 20647 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20648 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20649 | " |
| 20650 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20651 | _ACEOF |
| 20652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20653 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20654 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20655 | config_files="$ac_config_files" |
| 20656 | config_headers="$ac_config_headers" |
| 20657 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20659 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20660 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20661 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20662 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20663 | \`$as_me' instantiates files from templates according to the |
| 20664 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20666 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20667 | |
| 20668 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20669 | -V, --version print version number, then exit |
| 20670 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20671 | -d, --debug don't remove temporary files |
| 20672 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20673 | --file=FILE[:TEMPLATE] |
| 20674 | instantiate the configuration file FILE |
| 20675 | --header=FILE[:TEMPLATE] |
| 20676 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20677 | |
| 20678 | Configuration files: |
| 20679 | $config_files |
| 20680 | |
| 20681 | Configuration headers: |
| 20682 | $config_headers |
| 20683 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20684 | Configuration commands: |
| 20685 | $config_commands |
| 20686 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20687 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20689 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20690 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20691 | ac_cs_version="\\ |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 20692 | llvm config.status 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20693 | configured by $0, generated by GNU Autoconf 2.60, |
| 20694 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20695 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20696 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20697 | This config.status script is free software; the Free Software Foundation |
| 20698 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20699 | |
| 20700 | ac_pwd='$ac_pwd' |
| 20701 | srcdir='$srcdir' |
| 20702 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20703 | _ACEOF |
| 20704 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20705 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20706 | # If no file are specified by the user, then we need to provide default |
| 20707 | # 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] | 20708 | ac_need_defaults=: |
| 20709 | while test $# != 0 |
| 20710 | do |
| 20711 | case $1 in |
| 20712 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20713 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20714 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20715 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20716 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20717 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20718 | ac_option=$1 |
| 20719 | ac_optarg=$2 |
| 20720 | ac_shift=shift |
| 20721 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20722 | esac |
| 20723 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20724 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20725 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20726 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20727 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20728 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20729 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20730 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20731 | debug=: ;; |
| 20732 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20733 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20734 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20735 | ac_need_defaults=false;; |
| 20736 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20737 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20738 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20739 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20740 | --he | --h) |
| 20741 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20742 | { echo "$as_me: error: ambiguous option: $1 |
| 20743 | Try \`$0 --help' for more information." >&2 |
| 20744 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20745 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20746 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20747 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20748 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20749 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20750 | |
| 20751 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20752 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20753 | Try \`$0 --help' for more information." >&2 |
| 20754 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20755 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20756 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20757 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20758 | |
| 20759 | esac |
| 20760 | shift |
| 20761 | done |
| 20762 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20763 | ac_configure_extra_args= |
| 20764 | |
| 20765 | if $ac_cs_silent; then |
| 20766 | exec 6>/dev/null |
| 20767 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20768 | fi |
| 20769 | |
| 20770 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20771 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20772 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20773 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20774 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20775 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20776 | 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] | 20777 | fi |
| 20778 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20779 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20780 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20781 | exec 5>>config.log |
| 20782 | { |
| 20783 | echo |
| 20784 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20785 | ## Running $as_me. ## |
| 20786 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20787 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20788 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20789 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20790 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20791 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20792 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20793 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20794 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20795 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20796 | |
| 20797 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20799 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20800 | |
| 20801 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20802 | for ac_config_target in $ac_config_targets |
| 20803 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20804 | case $ac_config_target in |
| 20805 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20806 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 20807 | "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] | 20808 | "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] | 20809 | "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] | 20810 | "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] | 20811 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20812 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20813 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20814 | "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20815 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 20816 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 20817 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 20818 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 20819 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 20820 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20821 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20822 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 20823 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20824 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20825 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 20826 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 20827 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20828 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 20829 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20830 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20831 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20832 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20833 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20834 | esac |
| 20835 | done |
| 20836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20837 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20838 | # If the user did not use the arguments to specify the items to instantiate, |
| 20839 | # then the envvar interface is used. Set only those that are not. |
| 20840 | # We use the long form for the default assignment because of an extremely |
| 20841 | # bizarre bug on SunOS 4.1.3. |
| 20842 | if $ac_need_defaults; then |
| 20843 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20844 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20845 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20846 | fi |
| 20847 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20848 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20849 | # 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] | 20850 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20851 | # Hook for its removal unless debugging. |
| 20852 | # Note that there is a small window in which the directory will not be cleaned: |
| 20853 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20854 | $debug || |
| 20855 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20856 | tmp= |
| 20857 | trap 'exit_status=$? |
| 20858 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20859 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20860 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20861 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20862 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20863 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20864 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20865 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20866 | test -n "$tmp" && test -d "$tmp" |
| 20867 | } || |
| 20868 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20869 | tmp=./conf$$-$RANDOM |
| 20870 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20871 | } || |
| 20872 | { |
| 20873 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20874 | { (exit 1); exit 1; } |
| 20875 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20877 | # |
| 20878 | # Set up the sed scripts for CONFIG_FILES section. |
| 20879 | # |
| 20880 | |
| 20881 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20882 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20883 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20884 | |
| 20885 | _ACEOF |
| 20886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20887 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20889 | ac_delim='%!_!# ' |
| 20890 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20891 | cat >conf$$subs.sed <<_ACEOF |
| 20892 | SHELL!$SHELL$ac_delim |
| 20893 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20894 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20895 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20896 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20897 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20898 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20899 | exec_prefix!$exec_prefix$ac_delim |
| 20900 | prefix!$prefix$ac_delim |
| 20901 | program_transform_name!$program_transform_name$ac_delim |
| 20902 | bindir!$bindir$ac_delim |
| 20903 | sbindir!$sbindir$ac_delim |
| 20904 | libexecdir!$libexecdir$ac_delim |
| 20905 | datarootdir!$datarootdir$ac_delim |
| 20906 | datadir!$datadir$ac_delim |
| 20907 | sysconfdir!$sysconfdir$ac_delim |
| 20908 | sharedstatedir!$sharedstatedir$ac_delim |
| 20909 | localstatedir!$localstatedir$ac_delim |
| 20910 | includedir!$includedir$ac_delim |
| 20911 | oldincludedir!$oldincludedir$ac_delim |
| 20912 | docdir!$docdir$ac_delim |
| 20913 | infodir!$infodir$ac_delim |
| 20914 | htmldir!$htmldir$ac_delim |
| 20915 | dvidir!$dvidir$ac_delim |
| 20916 | pdfdir!$pdfdir$ac_delim |
| 20917 | psdir!$psdir$ac_delim |
| 20918 | libdir!$libdir$ac_delim |
| 20919 | localedir!$localedir$ac_delim |
| 20920 | mandir!$mandir$ac_delim |
| 20921 | DEFS!$DEFS$ac_delim |
| 20922 | ECHO_C!$ECHO_C$ac_delim |
| 20923 | ECHO_N!$ECHO_N$ac_delim |
| 20924 | ECHO_T!$ECHO_T$ac_delim |
| 20925 | LIBS!$LIBS$ac_delim |
| 20926 | build_alias!$build_alias$ac_delim |
| 20927 | host_alias!$host_alias$ac_delim |
| 20928 | target_alias!$target_alias$ac_delim |
| 20929 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 20930 | subdirs!$subdirs$ac_delim |
| 20931 | build!$build$ac_delim |
| 20932 | build_cpu!$build_cpu$ac_delim |
| 20933 | build_vendor!$build_vendor$ac_delim |
| 20934 | build_os!$build_os$ac_delim |
| 20935 | host!$host$ac_delim |
| 20936 | host_cpu!$host_cpu$ac_delim |
| 20937 | host_vendor!$host_vendor$ac_delim |
| 20938 | host_os!$host_os$ac_delim |
| 20939 | target!$target$ac_delim |
| 20940 | target_cpu!$target_cpu$ac_delim |
| 20941 | target_vendor!$target_vendor$ac_delim |
| 20942 | target_os!$target_os$ac_delim |
| 20943 | OS!$OS$ac_delim |
| 20944 | HOST_OS!$HOST_OS$ac_delim |
| 20945 | TARGET_OS!$TARGET_OS$ac_delim |
| 20946 | LINKALL!$LINKALL$ac_delim |
| 20947 | NOLINKALL!$NOLINKALL$ac_delim |
| 20948 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 20949 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 20950 | ARCH!$ARCH$ac_delim |
| 20951 | ENDIAN!$ENDIAN$ac_delim |
| 20952 | CC!$CC$ac_delim |
| 20953 | CFLAGS!$CFLAGS$ac_delim |
| 20954 | LDFLAGS!$LDFLAGS$ac_delim |
| 20955 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20956 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20957 | EXEEXT!$EXEEXT$ac_delim |
| 20958 | OBJEXT!$OBJEXT$ac_delim |
| 20959 | CPP!$CPP$ac_delim |
| 20960 | GREP!$GREP$ac_delim |
| 20961 | EGREP!$EGREP$ac_delim |
| 20962 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 20963 | BUILD_CC!$BUILD_CC$ac_delim |
| 20964 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 20965 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 20966 | CVSBUILD!$CVSBUILD$ac_delim |
| 20967 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 20968 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 20969 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 20970 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 20971 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 20972 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 20973 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 20974 | JIT!$JIT$ac_delim |
| 20975 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 20976 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 20977 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 20978 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20979 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20980 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 20981 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 20982 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 20983 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 20984 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 20985 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 20986 | CLANGPATH!$CLANGPATH$ac_delim |
| 20987 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
| 20988 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20989 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20990 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20991 | 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] | 20992 | break |
| 20993 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20994 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20995 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20996 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20997 | else |
| 20998 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20999 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21000 | done |
| 21001 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21002 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21003 | if test -n "$ac_eof"; then |
| 21004 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21005 | ac_eof=`expr $ac_eof + 1` |
| 21006 | fi |
| 21007 | |
| 21008 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21009 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21010 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21011 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21012 | sed ' |
| 21013 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21014 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21015 | :n |
| 21016 | t n |
| 21017 | s/'"$ac_delim"'$/,g/; t |
| 21018 | s/$/\\/; p |
| 21019 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21020 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21021 | rm -f conf$$subs.sed |
| 21022 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21023 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21024 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21025 | |
| 21026 | |
| 21027 | ac_delim='%!_!# ' |
| 21028 | for ac_last_try in false false false false false :; do |
| 21029 | cat >conf$$subs.sed <<_ACEOF |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21030 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21031 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21032 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
| 21033 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21034 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 21035 | CXX!$CXX$ac_delim |
| 21036 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21037 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21038 | NM!$NM$ac_delim |
| 21039 | ifGNUmake!$ifGNUmake$ac_delim |
| 21040 | LN_S!$LN_S$ac_delim |
| 21041 | CMP!$CMP$ac_delim |
| 21042 | CP!$CP$ac_delim |
| 21043 | DATE!$DATE$ac_delim |
| 21044 | FIND!$FIND$ac_delim |
| 21045 | MKDIR!$MKDIR$ac_delim |
| 21046 | MV!$MV$ac_delim |
| 21047 | RANLIB!$RANLIB$ac_delim |
| 21048 | AR!$AR$ac_delim |
| 21049 | RM!$RM$ac_delim |
| 21050 | SED!$SED$ac_delim |
| 21051 | TAR!$TAR$ac_delim |
| 21052 | BINPWD!$BINPWD$ac_delim |
| 21053 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21054 | DOT!$DOT$ac_delim |
| 21055 | FDP!$FDP$ac_delim |
| 21056 | NEATO!$NEATO$ac_delim |
| 21057 | TWOPI!$TWOPI$ac_delim |
| 21058 | CIRCO!$CIRCO$ac_delim |
| 21059 | GV!$GV$ac_delim |
| 21060 | DOTTY!$DOTTY$ac_delim |
| 21061 | PERL!$PERL$ac_delim |
| 21062 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21063 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21064 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21065 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21066 | BZIP2!$BZIP2$ac_delim |
| 21067 | DOXYGEN!$DOXYGEN$ac_delim |
| 21068 | GROFF!$GROFF$ac_delim |
| 21069 | GZIP!$GZIP$ac_delim |
| 21070 | POD2HTML!$POD2HTML$ac_delim |
| 21071 | POD2MAN!$POD2MAN$ac_delim |
| 21072 | RUNTEST!$RUNTEST$ac_delim |
| 21073 | TCLSH!$TCLSH$ac_delim |
| 21074 | ZIP!$ZIP$ac_delim |
| 21075 | OCAMLC!$OCAMLC$ac_delim |
| 21076 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21077 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21078 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21079 | GAS!$GAS$ac_delim |
| 21080 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21081 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21082 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21083 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21084 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21085 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 21086 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 21087 | LLVMGCC!$LLVMGCC$ac_delim |
| 21088 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21089 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21090 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21091 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21092 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21093 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21094 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21095 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21096 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 21097 | LLVMCC1!$LLVMCC1$ac_delim |
| 21098 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 21099 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21100 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 21101 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21102 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21103 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21104 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21105 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21106 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21107 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21108 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21109 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21110 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21111 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21112 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21113 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21114 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21115 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21116 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21117 | RPATH!$RPATH$ac_delim |
| 21118 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21119 | LIBOBJS!$LIBOBJS$ac_delim |
| 21120 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21121 | _ACEOF |
| 21122 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21123 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21124 | break |
| 21125 | elif $ac_last_try; then |
| 21126 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21127 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21128 | { (exit 1); exit 1; }; } |
| 21129 | else |
| 21130 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21131 | fi |
| 21132 | done |
| 21133 | |
| 21134 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21135 | if test -n "$ac_eof"; then |
| 21136 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21137 | ac_eof=`expr $ac_eof + 1` |
| 21138 | fi |
| 21139 | |
| 21140 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21141 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 21142 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21143 | _ACEOF |
| 21144 | sed ' |
| 21145 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21146 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21147 | :n |
| 21148 | t n |
| 21149 | s/'"$ac_delim"'$/,g/; t |
| 21150 | s/$/\\/; p |
| 21151 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21152 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21153 | rm -f conf$$subs.sed |
| 21154 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21155 | :end |
| 21156 | s/|#_!!_#|//g |
| 21157 | CEOF$ac_eof |
| 21158 | _ACEOF |
| 21159 | |
| 21160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21161 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21162 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21163 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21164 | # (actually we leave an empty line to preserve line numbers). |
| 21165 | if test "x$srcdir" = x.; then |
| 21166 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21167 | s/:*\$(srcdir):*/:/ |
| 21168 | s/:*\${srcdir}:*/:/ |
| 21169 | s/:*@srcdir@:*/:/ |
| 21170 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21171 | s/:*$// |
| 21172 | s/^[^=]*=[ ]*$// |
| 21173 | }' |
| 21174 | fi |
| 21175 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21176 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21177 | fi # test -n "$CONFIG_FILES" |
| 21178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21179 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21180 | 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] | 21181 | do |
| 21182 | case $ac_tag in |
| 21183 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21184 | esac |
| 21185 | case $ac_mode$ac_tag in |
| 21186 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21187 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21188 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21189 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21190 | :[FH]-) ac_tag=-:-;; |
| 21191 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21192 | esac |
| 21193 | ac_save_IFS=$IFS |
| 21194 | IFS=: |
| 21195 | set x $ac_tag |
| 21196 | IFS=$ac_save_IFS |
| 21197 | shift |
| 21198 | ac_file=$1 |
| 21199 | shift |
| 21200 | |
| 21201 | case $ac_mode in |
| 21202 | :L) ac_source=$1;; |
| 21203 | :[FH]) |
| 21204 | ac_file_inputs= |
| 21205 | for ac_f |
| 21206 | do |
| 21207 | case $ac_f in |
| 21208 | -) ac_f="$tmp/stdin";; |
| 21209 | *) # Look for the file first in the build tree, then in the source tree |
| 21210 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21211 | # because $ac_f cannot contain `:'. |
| 21212 | test -f "$ac_f" || |
| 21213 | case $ac_f in |
| 21214 | [\\/$]*) false;; |
| 21215 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21216 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21217 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21218 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21219 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21220 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21221 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21222 | done |
| 21223 | |
| 21224 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21225 | # use $as_me), people would be surprised to read: |
| 21226 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21227 | configure_input="Generated from "`IFS=: |
| 21228 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21229 | if test x"$ac_file" != x-; then |
| 21230 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21231 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21232 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21233 | fi |
| 21234 | |
| 21235 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21236 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21237 | esac |
| 21238 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21239 | esac |
| 21240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21241 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21242 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21243 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21244 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21245 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21246 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21247 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21248 | s//\1/ |
| 21249 | q |
| 21250 | } |
| 21251 | /^X\(\/\/\)[^/].*/{ |
| 21252 | s//\1/ |
| 21253 | q |
| 21254 | } |
| 21255 | /^X\(\/\/\)$/{ |
| 21256 | s//\1/ |
| 21257 | q |
| 21258 | } |
| 21259 | /^X\(\/\).*/{ |
| 21260 | s//\1/ |
| 21261 | q |
| 21262 | } |
| 21263 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21264 | { as_dir="$ac_dir" |
| 21265 | case $as_dir in #( |
| 21266 | -*) as_dir=./$as_dir;; |
| 21267 | esac |
| 21268 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21269 | as_dirs= |
| 21270 | while :; do |
| 21271 | case $as_dir in #( |
| 21272 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21273 | *) as_qdir=$as_dir;; |
| 21274 | esac |
| 21275 | as_dirs="'$as_qdir' $as_dirs" |
| 21276 | as_dir=`$as_dirname -- "$as_dir" || |
| 21277 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21278 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21279 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21280 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21281 | echo X"$as_dir" | |
| 21282 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21283 | s//\1/ |
| 21284 | q |
| 21285 | } |
| 21286 | /^X\(\/\/\)[^/].*/{ |
| 21287 | s//\1/ |
| 21288 | q |
| 21289 | } |
| 21290 | /^X\(\/\/\)$/{ |
| 21291 | s//\1/ |
| 21292 | q |
| 21293 | } |
| 21294 | /^X\(\/\).*/{ |
| 21295 | s//\1/ |
| 21296 | q |
| 21297 | } |
| 21298 | s/.*/./; q'` |
| 21299 | test -d "$as_dir" && break |
| 21300 | done |
| 21301 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21302 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21303 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21304 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21305 | ac_builddir=. |
| 21306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21307 | case "$ac_dir" in |
| 21308 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21309 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21310 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21311 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21312 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21313 | case $ac_top_builddir_sub in |
| 21314 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21315 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21316 | esac ;; |
| 21317 | esac |
| 21318 | ac_abs_top_builddir=$ac_pwd |
| 21319 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21320 | # for backward compatibility: |
| 21321 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21322 | |
| 21323 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21324 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21325 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21326 | ac_top_srcdir=$ac_top_builddir_sub |
| 21327 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21328 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21329 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21330 | ac_top_srcdir=$srcdir |
| 21331 | ac_abs_top_srcdir=$srcdir ;; |
| 21332 | *) # Relative name. |
| 21333 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21334 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21335 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21336 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21337 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21338 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21339 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21340 | case $ac_mode in |
| 21341 | :F) |
| 21342 | # |
| 21343 | # CONFIG_FILE |
| 21344 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21345 | |
| 21346 | case $INSTALL in |
| 21347 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21348 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21349 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21350 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21351 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21352 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21353 | # If the template does not know about datarootdir, expand it. |
| 21354 | # FIXME: This hack should be removed a few years after 2.60. |
| 21355 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21356 | |
| 21357 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21358 | p |
| 21359 | q |
| 21360 | } |
| 21361 | /@datadir@/p |
| 21362 | /@docdir@/p |
| 21363 | /@infodir@/p |
| 21364 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21365 | /@mandir@/p |
| 21366 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21367 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21368 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21369 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21370 | 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] | 21371 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21372 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21373 | ac_datarootdir_hack=' |
| 21374 | s&@datadir@&$datadir&g |
| 21375 | s&@docdir@&$docdir&g |
| 21376 | s&@infodir@&$infodir&g |
| 21377 | s&@localedir@&$localedir&g |
| 21378 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21379 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21380 | esac |
| 21381 | _ACEOF |
| 21382 | |
| 21383 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21384 | # Shell code in configure.ac might set extrasub. |
| 21385 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21386 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21387 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21388 | $extrasub |
| 21389 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21390 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21391 | :t |
| 21392 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21393 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21394 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21395 | s&@srcdir@&$ac_srcdir&;t t |
| 21396 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21397 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21398 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21399 | s&@builddir@&$ac_builddir&;t t |
| 21400 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21401 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21402 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21403 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21404 | " $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] | 21405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21406 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21407 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21408 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21409 | { 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] | 21410 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21411 | 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] | 21412 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21414 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21415 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21416 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21417 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21418 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21419 | ;; |
| 21420 | :H) |
| 21421 | # |
| 21422 | # CONFIG_HEADER |
| 21423 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21424 | _ACEOF |
| 21425 | |
| 21426 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21427 | # substitutes the proper values into config.h.in to produce config.h. |
| 21428 | rm -f conftest.defines conftest.tail |
| 21429 | # First, append a space to every undef/define line, to ease matching. |
| 21430 | echo 's/$/ /' >conftest.defines |
| 21431 | # Then, protect against being on the right side of a sed subst, or in |
| 21432 | # an unquoted here document, in config.status. If some macros were |
| 21433 | # called several times there might be several #defines for the same |
| 21434 | # symbol, which is useless. But do not sort them, since the last |
| 21435 | # AC_DEFINE must be honored. |
| 21436 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21437 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21438 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21439 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21440 | # just an empty string. |
| 21441 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21442 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21443 | ac_dC=' ' |
| 21444 | ac_dD=' ,' |
| 21445 | |
| 21446 | uniq confdefs.h | |
| 21447 | sed -n ' |
| 21448 | t rset |
| 21449 | :rset |
| 21450 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21451 | t ok |
| 21452 | d |
| 21453 | :ok |
| 21454 | s/[\\&,]/\\&/g |
| 21455 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21456 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21457 | ' >>conftest.defines |
| 21458 | |
| 21459 | # Remove the space that was appended to ease matching. |
| 21460 | # Then replace #undef with comments. This is necessary, for |
| 21461 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21462 | # on some systems where configure will not decide to define it. |
| 21463 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21464 | echo 's/ $// |
| 21465 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21466 | |
| 21467 | # Break up conftest.defines: |
| 21468 | ac_max_sed_lines=50 |
| 21469 | |
| 21470 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21471 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21472 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21473 | # et cetera. |
| 21474 | ac_in='$ac_file_inputs' |
| 21475 | ac_out='"$tmp/out1"' |
| 21476 | ac_nxt='"$tmp/out2"' |
| 21477 | |
| 21478 | while : |
| 21479 | do |
| 21480 | # Write a here document: |
| 21481 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21482 | # First, check the format of the line: |
| 21483 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21484 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21485 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21486 | b |
| 21487 | :def |
| 21488 | _ACEOF |
| 21489 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21490 | echo 'CEOF |
| 21491 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21492 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21493 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21494 | grep . conftest.tail >/dev/null || break |
| 21495 | rm -f conftest.defines |
| 21496 | mv conftest.tail conftest.defines |
| 21497 | done |
| 21498 | rm -f conftest.defines conftest.tail |
| 21499 | |
| 21500 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21501 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21502 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21503 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21504 | cat "$ac_result" >>"$tmp/config.h" |
| 21505 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21506 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21507 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21508 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21509 | rm -f $ac_file |
| 21510 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21511 | fi |
| 21512 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21513 | echo "/* $configure_input */" |
| 21514 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21515 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21516 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21517 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21518 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21519 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21520 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21521 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21522 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21524 | |
| 21525 | case $ac_file$ac_mode in |
| 21526 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21527 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21528 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21529 | ${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] | 21530 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21531 | ${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] | 21532 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21533 | ${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] | 21534 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21535 | ${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] | 21536 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21537 | ${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] | 21538 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21539 | ${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] | 21540 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21541 | ${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] | 21542 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21543 | ${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] | 21544 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21545 | ${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] | 21546 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21547 | ${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] | 21548 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21549 | ${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] | 21550 | "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] | 21551 | ${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] | 21552 | |
| 21553 | esac |
| 21554 | done # for ac_tag |
| 21555 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21556 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21557 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21558 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21559 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21560 | ac_clean_files=$ac_clean_files_save |
| 21561 | |
| 21562 | |
| 21563 | # configure is writing to config.log, and then calls config.status. |
| 21564 | # config.status does its own redirection, appending to config.log. |
| 21565 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21566 | # by configure, so config.status won't be able to write to it; its |
| 21567 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21568 | # effectively closing config.log, so it can be properly (re)opened and |
| 21569 | # appended to by config.status. When coming back to configure, we |
| 21570 | # need to make the FD available again. |
| 21571 | if test "$no_create" != yes; then |
| 21572 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21573 | ac_config_status_args= |
| 21574 | test "$silent" = yes && |
| 21575 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21576 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21577 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21578 | exec 5>>config.log |
| 21579 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21580 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21581 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21582 | fi |
| 21583 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21584 | # |
| 21585 | # CONFIG_SUBDIRS section. |
| 21586 | # |
| 21587 | if test "$no_recursion" != yes; then |
| 21588 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21589 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21590 | ac_sub_configure_args= |
| 21591 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21592 | eval "set x $ac_configure_args" |
| 21593 | shift |
| 21594 | for ac_arg |
| 21595 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21596 | if test -n "$ac_prev"; then |
| 21597 | ac_prev= |
| 21598 | continue |
| 21599 | fi |
| 21600 | case $ac_arg in |
| 21601 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 21602 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 21603 | ac_prev=cache_file ;; |
| 21604 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 21605 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 21606 | | --c=*) |
| 21607 | ;; |
| 21608 | --config-cache | -C) |
| 21609 | ;; |
| 21610 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 21611 | ac_prev=srcdir ;; |
| 21612 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 21613 | ;; |
| 21614 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 21615 | ac_prev=prefix ;; |
| 21616 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 21617 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21618 | *) |
| 21619 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21620 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21621 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21622 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21623 | esac |
| 21624 | done |
| 21625 | |
| 21626 | # Always prepend --prefix to ensure using the same prefix |
| 21627 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21628 | ac_arg="--prefix=$prefix" |
| 21629 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21630 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
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_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21633 | |
| 21634 | ac_popdir=`pwd` |
| 21635 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 21636 | |
| 21637 | # Do not complain, so a configure script can configure whichever |
| 21638 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21639 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21641 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21642 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 21643 | echo "$ac_msg" >&6 |
| 21644 | { as_dir="$ac_dir" |
| 21645 | case $as_dir in #( |
| 21646 | -*) as_dir=./$as_dir;; |
| 21647 | esac |
| 21648 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21649 | as_dirs= |
| 21650 | while :; do |
| 21651 | case $as_dir in #( |
| 21652 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21653 | *) as_qdir=$as_dir;; |
| 21654 | esac |
| 21655 | as_dirs="'$as_qdir' $as_dirs" |
| 21656 | as_dir=`$as_dirname -- "$as_dir" || |
| 21657 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21658 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21659 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21660 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21661 | echo X"$as_dir" | |
| 21662 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21663 | s//\1/ |
| 21664 | q |
| 21665 | } |
| 21666 | /^X\(\/\/\)[^/].*/{ |
| 21667 | s//\1/ |
| 21668 | q |
| 21669 | } |
| 21670 | /^X\(\/\/\)$/{ |
| 21671 | s//\1/ |
| 21672 | q |
| 21673 | } |
| 21674 | /^X\(\/\).*/{ |
| 21675 | s//\1/ |
| 21676 | q |
| 21677 | } |
| 21678 | s/.*/./; q'` |
| 21679 | test -d "$as_dir" && break |
| 21680 | done |
| 21681 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21682 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21683 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21684 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21685 | ac_builddir=. |
| 21686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21687 | case "$ac_dir" in |
| 21688 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21689 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21690 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21691 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21692 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21693 | case $ac_top_builddir_sub in |
| 21694 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21695 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21696 | esac ;; |
| 21697 | esac |
| 21698 | ac_abs_top_builddir=$ac_pwd |
| 21699 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21700 | # for backward compatibility: |
| 21701 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21702 | |
| 21703 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21704 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21705 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21706 | ac_top_srcdir=$ac_top_builddir_sub |
| 21707 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21708 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21709 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21710 | ac_top_srcdir=$srcdir |
| 21711 | ac_abs_top_srcdir=$srcdir ;; |
| 21712 | *) # Relative name. |
| 21713 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21714 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21715 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21716 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21717 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21718 | |
| 21719 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21720 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21721 | |
| 21722 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21723 | if test -f "$ac_srcdir/configure.gnu"; then |
| 21724 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 21725 | elif test -f "$ac_srcdir/configure"; then |
| 21726 | ac_sub_configure=$ac_srcdir/configure |
| 21727 | elif test -f "$ac_srcdir/configure.in"; then |
| 21728 | # This should be Cygnus configure. |
| 21729 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21731 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 21732 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21733 | ac_sub_configure= |
| 21734 | fi |
| 21735 | |
| 21736 | # The recursion is here. |
| 21737 | if test -n "$ac_sub_configure"; then |
| 21738 | # Make the cache file name correct relative to the subdirectory. |
| 21739 | case $cache_file in |
| 21740 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21741 | *) # Relative name. |
| 21742 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21743 | esac |
| 21744 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21745 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 21746 | 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] | 21747 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21748 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 21749 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21750 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 21751 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 21752 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21753 | fi |
| 21754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21755 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21756 | done |
| 21757 | fi |
| 21758 | |