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. |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 3.0svn. |
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 | # |
Benjamin Kramer | b73cd94 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2011 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-' |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.0svn' |
| 565 | PACKAGE_STRING='llvm 3.0svn' |
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 |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 643 | CC |
| 644 | CFLAGS |
| 645 | LDFLAGS |
| 646 | CPPFLAGS |
| 647 | ac_ct_CC |
| 648 | EXEEXT |
| 649 | OBJEXT |
| 650 | CXX |
| 651 | CXXFLAGS |
| 652 | ac_ct_CXX |
| 653 | CPP |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 654 | subdirs |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 655 | ENABLE_POLLY |
| 656 | LLVM_HAS_POLLY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 657 | build |
| 658 | build_cpu |
| 659 | build_vendor |
| 660 | build_os |
| 661 | host |
| 662 | host_cpu |
| 663 | host_vendor |
| 664 | host_os |
| 665 | target |
| 666 | target_cpu |
| 667 | target_vendor |
| 668 | target_os |
| 669 | OS |
| 670 | HOST_OS |
| 671 | TARGET_OS |
| 672 | LINKALL |
| 673 | NOLINKALL |
| 674 | LLVM_ON_UNIX |
| 675 | LLVM_ON_WIN32 |
| 676 | ARCH |
| 677 | ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 678 | GREP |
| 679 | EGREP |
| 680 | LLVM_CROSS_COMPILING |
| 681 | BUILD_CC |
| 682 | BUILD_EXEEXT |
| 683 | BUILD_CXX |
| 684 | CVSBUILD |
| 685 | ENABLE_OPTIMIZED |
| 686 | ENABLE_PROFILING |
| 687 | DISABLE_ASSERTIONS |
| 688 | ENABLE_EXPENSIVE_CHECKS |
| 689 | EXPENSIVE_CHECKS |
| 690 | DEBUG_RUNTIME |
| 691 | DEBUG_SYMBOLS |
| 692 | JIT |
| 693 | TARGET_HAS_JIT |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 694 | ENABLE_DOCS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 695 | ENABLE_DOXYGEN |
| 696 | ENABLE_THREADS |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 697 | ENABLE_PTHREADS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 698 | ENABLE_PIC |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 699 | ENABLE_SHARED |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 700 | ENABLE_EMBED_STDCXX |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 701 | ENABLE_TIMESTAMPS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 702 | TARGETS_TO_BUILD |
| 703 | LLVM_ENUM_TARGETS |
| 704 | LLVM_ENUM_ASM_PRINTERS |
| 705 | LLVM_ENUM_ASM_PARSERS |
| 706 | LLVM_ENUM_DISASSEMBLERS |
| 707 | ENABLE_CBE_PRINTF_A |
| 708 | OPTIMIZE_OPTION |
| 709 | EXTRA_OPTIONS |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 710 | EXTRA_LD_OPTIONS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 711 | BINUTILS_INCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 712 | NM |
| 713 | ifGNUmake |
| 714 | LN_S |
| 715 | CMP |
| 716 | CP |
| 717 | DATE |
| 718 | FIND |
| 719 | MKDIR |
| 720 | MV |
| 721 | RANLIB |
| 722 | AR |
| 723 | RM |
| 724 | SED |
| 725 | TAR |
| 726 | BINPWD |
| 727 | GRAPHVIZ |
| 728 | DOT |
| 729 | FDP |
| 730 | NEATO |
| 731 | TWOPI |
| 732 | CIRCO |
| 733 | GV |
| 734 | DOTTY |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 735 | XDOT_PY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 736 | PERL |
| 737 | HAVE_PERL |
| 738 | INSTALL_PROGRAM |
| 739 | INSTALL_SCRIPT |
| 740 | INSTALL_DATA |
| 741 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 742 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 743 | DOXYGEN |
| 744 | GROFF |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 745 | GZIPBIN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 746 | POD2HTML |
| 747 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 748 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 749 | RUNTEST |
| 750 | TCLSH |
| 751 | ZIP |
| 752 | OCAMLC |
| 753 | OCAMLOPT |
| 754 | OCAMLDEP |
| 755 | OCAMLDOC |
| 756 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 757 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 758 | INSTALL_LTDL_TRUE |
| 759 | INSTALL_LTDL_FALSE |
| 760 | CONVENIENCE_LTDL_TRUE |
| 761 | CONVENIENCE_LTDL_FALSE |
| 762 | LIBADD_DL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 763 | NO_VARIADIC_MACROS |
| 764 | NO_MISSING_FIELD_INITIALIZERS |
| 765 | USE_UDIS86 |
| 766 | USE_OPROFILE |
| 767 | HAVE_PTHREAD |
| 768 | HUGE_VAL_SANITY |
| 769 | MMAP_FILE |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 770 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 771 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 772 | LLVM_PREFIX |
| 773 | LLVM_BINDIR |
| 774 | LLVM_LIBDIR |
| 775 | LLVM_DATADIR |
| 776 | LLVM_DOCSDIR |
| 777 | LLVM_ETCDIR |
| 778 | LLVM_INCLUDEDIR |
| 779 | LLVM_INFODIR |
| 780 | LLVM_MANDIR |
| 781 | LLVM_CONFIGTIME |
| 782 | BINDINGS_TO_BUILD |
| 783 | ALL_BINDINGS |
| 784 | OCAML_LIBDIR |
| 785 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 786 | RPATH |
| 787 | RDYNAMIC |
| 788 | LIBOBJS |
| 789 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 790 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 791 | ac_precious_vars='build_alias |
| 792 | host_alias |
| 793 | target_alias |
| 794 | CC |
| 795 | CFLAGS |
| 796 | LDFLAGS |
| 797 | CPPFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 798 | CXX |
| 799 | CXXFLAGS |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 800 | CCC |
| 801 | CPP' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 802 | ac_subdirs_all='projects/llvm-gcc |
| 803 | projects/test-suite |
| 804 | projects/llvm-test |
| 805 | projects/poolalloc |
| 806 | projects/llvm-poolalloc |
| 807 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 808 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 809 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 810 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 811 | projects/llvm-java |
| 812 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 813 | projects/safecode |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 814 | projects/llvm-kernel |
| 815 | tools/polly' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 816 | |
| 817 | # Initialize some variables set by options. |
| 818 | ac_init_help= |
| 819 | ac_init_version=false |
| 820 | # The variables have the same names as the options, with |
| 821 | # dashes changed to underlines. |
| 822 | cache_file=/dev/null |
| 823 | exec_prefix=NONE |
| 824 | no_create= |
| 825 | no_recursion= |
| 826 | prefix=NONE |
| 827 | program_prefix=NONE |
| 828 | program_suffix=NONE |
| 829 | program_transform_name=s,x,x, |
| 830 | silent= |
| 831 | site= |
| 832 | srcdir= |
| 833 | verbose= |
| 834 | x_includes=NONE |
| 835 | x_libraries=NONE |
| 836 | |
| 837 | # Installation directory options. |
| 838 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 839 | # and all the variables that are supposed to be based on exec_prefix |
| 840 | # by default will actually change. |
| 841 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 842 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 843 | bindir='${exec_prefix}/bin' |
| 844 | sbindir='${exec_prefix}/sbin' |
| 845 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | datarootdir='${prefix}/share' |
| 847 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 848 | sysconfdir='${prefix}/etc' |
| 849 | sharedstatedir='${prefix}/com' |
| 850 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 851 | includedir='${prefix}/include' |
| 852 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 853 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 854 | infodir='${datarootdir}/info' |
| 855 | htmldir='${docdir}' |
| 856 | dvidir='${docdir}' |
| 857 | pdfdir='${docdir}' |
| 858 | psdir='${docdir}' |
| 859 | libdir='${exec_prefix}/lib' |
| 860 | localedir='${datarootdir}/locale' |
| 861 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 862 | |
| 863 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 864 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 865 | for ac_option |
| 866 | do |
| 867 | # If the previous option needs an argument, assign it. |
| 868 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 869 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 870 | ac_prev= |
| 871 | continue |
| 872 | fi |
| 873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 874 | case $ac_option in |
| 875 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 876 | *) ac_optarg=yes ;; |
| 877 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 878 | |
| 879 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 881 | case $ac_dashdash$ac_option in |
| 882 | --) |
| 883 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 884 | |
| 885 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 886 | ac_prev=bindir ;; |
| 887 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 888 | bindir=$ac_optarg ;; |
| 889 | |
| 890 | -build | --build | --buil | --bui | --bu) |
| 891 | ac_prev=build_alias ;; |
| 892 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 893 | build_alias=$ac_optarg ;; |
| 894 | |
| 895 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 896 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 897 | ac_prev=cache_file ;; |
| 898 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 899 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 900 | cache_file=$ac_optarg ;; |
| 901 | |
| 902 | --config-cache | -C) |
| 903 | cache_file=config.cache ;; |
| 904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 905 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 906 | ac_prev=datadir ;; |
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 | datadir=$ac_optarg ;; |
| 909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 910 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 911 | | --dataroo | --dataro | --datar) |
| 912 | ac_prev=datarootdir ;; |
| 913 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 914 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 915 | datarootdir=$ac_optarg ;; |
| 916 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 917 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 918 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 919 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 920 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 921 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 922 | { (exit 1); exit 1; }; } |
| 923 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 924 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 925 | |
| 926 | -docdir | --docdir | --docdi | --doc | --do) |
| 927 | ac_prev=docdir ;; |
| 928 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 929 | docdir=$ac_optarg ;; |
| 930 | |
| 931 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 932 | ac_prev=dvidir ;; |
| 933 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 934 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 935 | |
| 936 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 937 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 938 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 939 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 940 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 941 | { (exit 1); exit 1; }; } |
| 942 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 943 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 944 | |
| 945 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 946 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 947 | | --exec | --exe | --ex) |
| 948 | ac_prev=exec_prefix ;; |
| 949 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 950 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 951 | | --exec=* | --exe=* | --ex=*) |
| 952 | exec_prefix=$ac_optarg ;; |
| 953 | |
| 954 | -gas | --gas | --ga | --g) |
| 955 | # Obsolete; use --with-gas. |
| 956 | with_gas=yes ;; |
| 957 | |
| 958 | -help | --help | --hel | --he | -h) |
| 959 | ac_init_help=long ;; |
| 960 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 961 | ac_init_help=recursive ;; |
| 962 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 963 | ac_init_help=short ;; |
| 964 | |
| 965 | -host | --host | --hos | --ho) |
| 966 | ac_prev=host_alias ;; |
| 967 | -host=* | --host=* | --hos=* | --ho=*) |
| 968 | host_alias=$ac_optarg ;; |
| 969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 970 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 971 | ac_prev=htmldir ;; |
| 972 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 973 | | --ht=*) |
| 974 | htmldir=$ac_optarg ;; |
| 975 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 976 | -includedir | --includedir | --includedi | --included | --include \ |
| 977 | | --includ | --inclu | --incl | --inc) |
| 978 | ac_prev=includedir ;; |
| 979 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 980 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 981 | includedir=$ac_optarg ;; |
| 982 | |
| 983 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 984 | ac_prev=infodir ;; |
| 985 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 986 | infodir=$ac_optarg ;; |
| 987 | |
| 988 | -libdir | --libdir | --libdi | --libd) |
| 989 | ac_prev=libdir ;; |
| 990 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 991 | libdir=$ac_optarg ;; |
| 992 | |
| 993 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 994 | | --libexe | --libex | --libe) |
| 995 | ac_prev=libexecdir ;; |
| 996 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 997 | | --libexe=* | --libex=* | --libe=*) |
| 998 | libexecdir=$ac_optarg ;; |
| 999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1000 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1001 | ac_prev=localedir ;; |
| 1002 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1003 | localedir=$ac_optarg ;; |
| 1004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1005 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1006 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1007 | ac_prev=localstatedir ;; |
| 1008 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1010 | localstatedir=$ac_optarg ;; |
| 1011 | |
| 1012 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1013 | ac_prev=mandir ;; |
| 1014 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1015 | mandir=$ac_optarg ;; |
| 1016 | |
| 1017 | -nfp | --nfp | --nf) |
| 1018 | # Obsolete; use --without-fp. |
| 1019 | with_fp=no ;; |
| 1020 | |
| 1021 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1022 | | --no-cr | --no-c | -n) |
| 1023 | no_create=yes ;; |
| 1024 | |
| 1025 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1026 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1027 | no_recursion=yes ;; |
| 1028 | |
| 1029 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1030 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1031 | | --oldin | --oldi | --old | --ol | --o) |
| 1032 | ac_prev=oldincludedir ;; |
| 1033 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1034 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1035 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1036 | oldincludedir=$ac_optarg ;; |
| 1037 | |
| 1038 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1039 | ac_prev=prefix ;; |
| 1040 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1041 | prefix=$ac_optarg ;; |
| 1042 | |
| 1043 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1044 | | --program-pre | --program-pr | --program-p) |
| 1045 | ac_prev=program_prefix ;; |
| 1046 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1047 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1048 | program_prefix=$ac_optarg ;; |
| 1049 | |
| 1050 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1051 | | --program-suf | --program-su | --program-s) |
| 1052 | ac_prev=program_suffix ;; |
| 1053 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1054 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1055 | program_suffix=$ac_optarg ;; |
| 1056 | |
| 1057 | -program-transform-name | --program-transform-name \ |
| 1058 | | --program-transform-nam | --program-transform-na \ |
| 1059 | | --program-transform-n | --program-transform- \ |
| 1060 | | --program-transform | --program-transfor \ |
| 1061 | | --program-transfo | --program-transf \ |
| 1062 | | --program-trans | --program-tran \ |
| 1063 | | --progr-tra | --program-tr | --program-t) |
| 1064 | ac_prev=program_transform_name ;; |
| 1065 | -program-transform-name=* | --program-transform-name=* \ |
| 1066 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1067 | | --program-transform-n=* | --program-transform-=* \ |
| 1068 | | --program-transform=* | --program-transfor=* \ |
| 1069 | | --program-transfo=* | --program-transf=* \ |
| 1070 | | --program-trans=* | --program-tran=* \ |
| 1071 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1072 | program_transform_name=$ac_optarg ;; |
| 1073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1074 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1075 | ac_prev=pdfdir ;; |
| 1076 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1077 | pdfdir=$ac_optarg ;; |
| 1078 | |
| 1079 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1080 | ac_prev=psdir ;; |
| 1081 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1082 | psdir=$ac_optarg ;; |
| 1083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1085 | | -silent | --silent | --silen | --sile | --sil) |
| 1086 | silent=yes ;; |
| 1087 | |
| 1088 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1089 | ac_prev=sbindir ;; |
| 1090 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1091 | | --sbi=* | --sb=*) |
| 1092 | sbindir=$ac_optarg ;; |
| 1093 | |
| 1094 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1095 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1096 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1097 | | --sha | --sh) |
| 1098 | ac_prev=sharedstatedir ;; |
| 1099 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1100 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1101 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1102 | | --sha=* | --sh=*) |
| 1103 | sharedstatedir=$ac_optarg ;; |
| 1104 | |
| 1105 | -site | --site | --sit) |
| 1106 | ac_prev=site ;; |
| 1107 | -site=* | --site=* | --sit=*) |
| 1108 | site=$ac_optarg ;; |
| 1109 | |
| 1110 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1111 | ac_prev=srcdir ;; |
| 1112 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1113 | srcdir=$ac_optarg ;; |
| 1114 | |
| 1115 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1116 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1117 | ac_prev=sysconfdir ;; |
| 1118 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1119 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1120 | sysconfdir=$ac_optarg ;; |
| 1121 | |
| 1122 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1123 | ac_prev=target_alias ;; |
| 1124 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1125 | target_alias=$ac_optarg ;; |
| 1126 | |
| 1127 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1128 | verbose=yes ;; |
| 1129 | |
| 1130 | -version | --version | --versio | --versi | --vers | -V) |
| 1131 | ac_init_version=: ;; |
| 1132 | |
| 1133 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1134 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1135 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1136 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1137 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1138 | { (exit 1); exit 1; }; } |
| 1139 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1140 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1141 | |
| 1142 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1143 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1144 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1145 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1146 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1147 | { (exit 1); exit 1; }; } |
| 1148 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1149 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1150 | |
| 1151 | --x) |
| 1152 | # Obsolete; use --with-x. |
| 1153 | with_x=yes ;; |
| 1154 | |
| 1155 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1156 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1157 | ac_prev=x_includes ;; |
| 1158 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1159 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1160 | x_includes=$ac_optarg ;; |
| 1161 | |
| 1162 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1163 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1164 | ac_prev=x_libraries ;; |
| 1165 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1166 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1167 | x_libraries=$ac_optarg ;; |
| 1168 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1169 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1170 | Try \`$0 --help' for more information." >&2 |
| 1171 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1172 | ;; |
| 1173 | |
| 1174 | *=*) |
| 1175 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1176 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1177 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1178 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1179 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1180 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1181 | export $ac_envvar ;; |
| 1182 | |
| 1183 | *) |
| 1184 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1185 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1186 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1187 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1188 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1189 | ;; |
| 1190 | |
| 1191 | esac |
| 1192 | done |
| 1193 | |
| 1194 | if test -n "$ac_prev"; then |
| 1195 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1196 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1197 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1198 | fi |
| 1199 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1200 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1201 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1202 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1203 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1204 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1205 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1206 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1207 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1208 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1209 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1211 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1212 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | done |
| 1214 | |
| 1215 | # There might be people who depend on the old broken behavior: `$host' |
| 1216 | # used to hold the argument of --host etc. |
| 1217 | # FIXME: To remove some day. |
| 1218 | build=$build_alias |
| 1219 | host=$host_alias |
| 1220 | target=$target_alias |
| 1221 | |
| 1222 | # FIXME: To remove some day. |
| 1223 | if test "x$host_alias" != x; then |
| 1224 | if test "x$build_alias" = x; then |
| 1225 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1226 | 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] | 1227 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1228 | elif test "x$build_alias" != "x$host_alias"; then |
| 1229 | cross_compiling=yes |
| 1230 | fi |
| 1231 | fi |
| 1232 | |
| 1233 | ac_tool_prefix= |
| 1234 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1235 | |
| 1236 | test "$silent" = yes && exec 6>/dev/null |
| 1237 | |
| 1238 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1239 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1240 | ac_ls_di=`ls -di .` && |
| 1241 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1242 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1243 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1244 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1245 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1246 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1247 | |
| 1248 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1249 | # Find the source files, if location was not specified. |
| 1250 | if test -z "$srcdir"; then |
| 1251 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1252 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1253 | ac_confdir=`$as_dirname -- "$0" || |
| 1254 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1255 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1256 | X"$0" : 'X\(//\)$' \| \ |
| 1257 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1258 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1259 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1260 | s//\1/ |
| 1261 | q |
| 1262 | } |
| 1263 | /^X\(\/\/\)[^/].*/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\/\)$/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\).*/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1276 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1277 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1278 | srcdir=.. |
| 1279 | fi |
| 1280 | else |
| 1281 | ac_srcdir_defaulted=no |
| 1282 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1283 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1284 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1285 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1286 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1288 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1289 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1290 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1291 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1292 | pwd)` |
| 1293 | # When building in place, set srcdir=. |
| 1294 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1295 | srcdir=. |
| 1296 | fi |
| 1297 | # Remove unnecessary trailing slashes from srcdir. |
| 1298 | # Double slashes in file names in object file debugging info |
| 1299 | # mess up M-x gdb in Emacs. |
| 1300 | case $srcdir in |
| 1301 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1302 | esac |
| 1303 | for ac_var in $ac_precious_vars; do |
| 1304 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1305 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1306 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1307 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1308 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1309 | |
| 1310 | # |
| 1311 | # Report the --help message. |
| 1312 | # |
| 1313 | if test "$ac_init_help" = "long"; then |
| 1314 | # Omit some internal or obsolete options to make the list less imposing. |
| 1315 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1316 | cat <<_ACEOF |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 1317 | \`configure' configures llvm 3.0svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1318 | |
| 1319 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1320 | |
| 1321 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1322 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1323 | |
| 1324 | Defaults for the options are specified in brackets. |
| 1325 | |
| 1326 | Configuration: |
| 1327 | -h, --help display this help and exit |
| 1328 | --help=short display options specific to this package |
| 1329 | --help=recursive display the short help of all the included packages |
| 1330 | -V, --version display version information and exit |
| 1331 | -q, --quiet, --silent do not print \`checking...' messages |
| 1332 | --cache-file=FILE cache test results in FILE [disabled] |
| 1333 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1334 | -n, --no-create do not create output files |
| 1335 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1336 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1337 | Installation directories: |
| 1338 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1339 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1340 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1341 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1342 | |
| 1343 | By default, \`make install' will install all the files in |
| 1344 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1345 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1346 | for instance \`--prefix=\$HOME'. |
| 1347 | |
| 1348 | For better control, use the options below. |
| 1349 | |
| 1350 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1351 | --bindir=DIR user executables [EPREFIX/bin] |
| 1352 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1353 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1354 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1355 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1356 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1357 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1358 | --includedir=DIR C header files [PREFIX/include] |
| 1359 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1360 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1361 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1362 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1363 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1364 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1365 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1366 | --htmldir=DIR html documentation [DOCDIR] |
| 1367 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1368 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1369 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1370 | _ACEOF |
| 1371 | |
| 1372 | cat <<\_ACEOF |
| 1373 | |
| 1374 | System types: |
| 1375 | --build=BUILD configure for building on BUILD [guessed] |
| 1376 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1377 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1378 | _ACEOF |
| 1379 | fi |
| 1380 | |
| 1381 | if test -n "$ac_init_help"; then |
| 1382 | case $ac_init_help in |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 1383 | short | recursive ) echo "Configuration of llvm 3.0svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1384 | esac |
| 1385 | cat <<\_ACEOF |
| 1386 | |
| 1387 | Optional Features: |
| 1388 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1389 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1390 | --enable-polly Use polly if available (default is YES) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1391 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1392 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1393 | --enable-assertions Compile with assertion checks enabled (default is |
| 1394 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1395 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1396 | Compile with expensive debug checks enabled (default |
| 1397 | is NO) |
| 1398 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1399 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1400 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1401 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1402 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1403 | --enable-docs Build documents (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) |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1406 | --enable-pthreads Use pthreads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1407 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1408 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1409 | --enable-shared Build a shared library and link tools against it |
| 1410 | (default is NO) |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1411 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
| 1412 | Win32 DLL (default is YES) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1413 | --enable-timestamps Enable embedding timestamp information in build |
| 1414 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1415 | --enable-targets Build specific host targets: all or |
| 1416 | target1,target2,... Valid targets are: host, x86, |
| 1417 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
Eric Christopher | 14074e8 | 2010-10-12 02:42:05 +0000 | [diff] [blame] | 1418 | xcore, msp430, systemz, blackfin, ptx, cbe, and cpp |
| 1419 | (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1420 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1421 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1422 | --enable-bindings Build specific language bindings: |
| 1423 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1424 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1425 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1426 | |
| 1427 | Optional Packages: |
| 1428 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1429 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1430 | --with-optimize-option Select the compiler options to use for optimized |
| 1431 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1432 | --with-extra-options Specify additional options to compile LLVM with |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1433 | --with-extra-ld-options Specify additional options to link LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1434 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1435 | is stdlib) |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1436 | --with-clang-resource-dir |
| 1437 | Relative directory from the Clang binary for |
| 1438 | resource files |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1439 | --with-c-include-dirs Colon separated list of directories clang will |
| 1440 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1441 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1442 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1443 | --with-cxx-include-32bit-dir |
| 1444 | 32 bit multilib dir. |
| 1445 | --with-cxx-include-64bit-dir |
| 1446 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1447 | --with-binutils-include Specify path to binutils/include/ containing |
| 1448 | plugin-api.h file for gold plugin. |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1449 | --with-bug-report-url Specify the URL where bug reports should be |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1450 | submitted (default=http://llvm.org/bugs/) |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1451 | --with-tclinclude directory where tcl headers are |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1452 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1453 | --with-oprofile=<prefix> |
| 1454 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1455 | |
| 1456 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1457 | CC C compiler command |
| 1458 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1459 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1460 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1461 | 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] | 1462 | you have headers in a nonstandard directory <include dir> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1463 | CXX C++ compiler command |
| 1464 | CXXFLAGS C++ compiler flags |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1465 | CPP C preprocessor |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1466 | |
| 1467 | Use these variables to override the choices made by `configure' or to help |
| 1468 | it to find libraries and programs with nonstandard names/locations. |
| 1469 | |
| 1470 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1471 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1472 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1473 | fi |
| 1474 | |
| 1475 | if test "$ac_init_help" = "recursive"; then |
| 1476 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1477 | 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] | 1478 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1479 | ac_builddir=. |
| 1480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1481 | case "$ac_dir" in |
| 1482 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1483 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1484 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1485 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1486 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1487 | case $ac_top_builddir_sub in |
| 1488 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1489 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1490 | esac ;; |
| 1491 | esac |
| 1492 | ac_abs_top_builddir=$ac_pwd |
| 1493 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1494 | # for backward compatibility: |
| 1495 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1496 | |
| 1497 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1498 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1500 | ac_top_srcdir=$ac_top_builddir_sub |
| 1501 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1502 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1503 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1504 | ac_top_srcdir=$srcdir |
| 1505 | ac_abs_top_srcdir=$srcdir ;; |
| 1506 | *) # Relative name. |
| 1507 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1508 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1509 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1510 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1511 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1513 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1514 | # Check for guested configure. |
| 1515 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1516 | echo && |
| 1517 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1518 | elif test -f "$ac_srcdir/configure"; then |
| 1519 | echo && |
| 1520 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1522 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1523 | fi || ac_status=$? |
| 1524 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1525 | done |
| 1526 | fi |
| 1527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1529 | if $ac_init_version; then |
| 1530 | cat <<\_ACEOF |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 1531 | llvm configure 3.0svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1532 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1534 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1535 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | This configure script is free software; the Free Software Foundation |
| 1537 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1538 | |
Benjamin Kramer | b73cd94 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 1539 | Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1541 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1542 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1543 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | This file contains any messages produced by compilers while |
| 1545 | running configure, to aid debugging if configure makes a mistake. |
| 1546 | |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 1547 | It was created by llvm $as_me 3.0svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1548 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | |
| 1550 | $ $0 $@ |
| 1551 | |
| 1552 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1553 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | { |
| 1555 | cat <<_ASUNAME |
| 1556 | ## --------- ## |
| 1557 | ## Platform. ## |
| 1558 | ## --------- ## |
| 1559 | |
| 1560 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1561 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1562 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1563 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1564 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1565 | |
| 1566 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1567 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1568 | |
| 1569 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1570 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1571 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1572 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1573 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1574 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1575 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1576 | |
| 1577 | _ASUNAME |
| 1578 | |
| 1579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1580 | for as_dir in $PATH |
| 1581 | do |
| 1582 | IFS=$as_save_IFS |
| 1583 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1584 | echo "PATH: $as_dir" |
| 1585 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1586 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1587 | |
| 1588 | } >&5 |
| 1589 | |
| 1590 | cat >&5 <<_ACEOF |
| 1591 | |
| 1592 | |
| 1593 | ## ----------- ## |
| 1594 | ## Core tests. ## |
| 1595 | ## ----------- ## |
| 1596 | |
| 1597 | _ACEOF |
| 1598 | |
| 1599 | |
| 1600 | # Keep a trace of the command line. |
| 1601 | # 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] | 1602 | # 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] | 1603 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1604 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1606 | ac_configure_args0= |
| 1607 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1608 | ac_must_keep_next=false |
| 1609 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | for ac_arg |
| 1612 | do |
| 1613 | case $ac_arg in |
| 1614 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1615 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1616 | | -silent | --silent | --silen | --sile | --sil) |
| 1617 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1618 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1619 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1620 | esac |
| 1621 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1622 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1623 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1624 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1626 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1627 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1628 | case $ac_arg in |
| 1629 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1630 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1631 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1632 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1633 | case "$ac_configure_args0 " in |
| 1634 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1635 | esac |
| 1636 | ;; |
| 1637 | -* ) ac_must_keep_next=true ;; |
| 1638 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1639 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1640 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1641 | ;; |
| 1642 | esac |
| 1643 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1644 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1646 | $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] | 1647 | |
| 1648 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1649 | # config.log. We remove comments because anyway the quotes in there |
| 1650 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1651 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1652 | # 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] | 1653 | trap 'exit_status=$? |
| 1654 | # Save into config.log some information that might help in debugging. |
| 1655 | { |
| 1656 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1658 | cat <<\_ASBOX |
| 1659 | ## ---------------- ## |
| 1660 | ## Cache variables. ## |
| 1661 | ## ---------------- ## |
| 1662 | _ASBOX |
| 1663 | echo |
| 1664 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1665 | ( |
| 1666 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1667 | eval ac_val=\$$ac_var |
| 1668 | case $ac_val in #( |
| 1669 | *${as_nl}*) |
| 1670 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1671 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1672 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | esac |
| 1674 | case $ac_var in #( |
| 1675 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1676 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1677 | esac ;; |
| 1678 | esac |
| 1679 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1680 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1681 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1682 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1685 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1686 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1687 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1688 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1689 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1690 | esac | |
| 1691 | sort |
| 1692 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1693 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1694 | |
| 1695 | cat <<\_ASBOX |
| 1696 | ## ----------------- ## |
| 1697 | ## Output variables. ## |
| 1698 | ## ----------------- ## |
| 1699 | _ASBOX |
| 1700 | echo |
| 1701 | for ac_var in $ac_subst_vars |
| 1702 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1703 | eval ac_val=\$$ac_var |
| 1704 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1705 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1707 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1708 | done | sort |
| 1709 | echo |
| 1710 | |
| 1711 | if test -n "$ac_subst_files"; then |
| 1712 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1713 | ## ------------------- ## |
| 1714 | ## File substitutions. ## |
| 1715 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1716 | _ASBOX |
| 1717 | echo |
| 1718 | for ac_var in $ac_subst_files |
| 1719 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1720 | eval ac_val=\$$ac_var |
| 1721 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1722 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1723 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1724 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1725 | done | sort |
| 1726 | echo |
| 1727 | fi |
| 1728 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1729 | if test -s confdefs.h; then |
| 1730 | cat <<\_ASBOX |
| 1731 | ## ----------- ## |
| 1732 | ## confdefs.h. ## |
| 1733 | ## ----------- ## |
| 1734 | _ASBOX |
| 1735 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1736 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1737 | echo |
| 1738 | fi |
| 1739 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1740 | echo "$as_me: caught signal $ac_signal" |
| 1741 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1743 | rm -f core *.core core.conftest.* && |
| 1744 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1745 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1746 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1748 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1749 | done |
| 1750 | ac_signal=0 |
| 1751 | |
| 1752 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1753 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | |
| 1755 | # Predefined preprocessor variables. |
| 1756 | |
| 1757 | cat >>confdefs.h <<_ACEOF |
| 1758 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1759 | _ACEOF |
| 1760 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1762 | cat >>confdefs.h <<_ACEOF |
| 1763 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 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_VERSION "$PACKAGE_VERSION" |
| 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_STRING "$PACKAGE_STRING" |
| 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_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1779 | _ACEOF |
| 1780 | |
| 1781 | |
| 1782 | # 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] | 1783 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1784 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1785 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1786 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1787 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1788 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1789 | set x "$ac_default_prefix/share/config.site" \ |
| 1790 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1791 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | shift |
| 1793 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1794 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1795 | if test -r "$ac_site_file"; then |
| 1796 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1797 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1798 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1799 | . "$ac_site_file" |
| 1800 | fi |
| 1801 | done |
| 1802 | |
| 1803 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1804 | # Some versions of bash will fail to source /dev/null (special |
| 1805 | # files actually), so we avoid doing that. |
| 1806 | if test -f "$cache_file"; then |
| 1807 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1808 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1809 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1810 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1811 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1812 | esac |
| 1813 | fi |
| 1814 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1815 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1816 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | >$cache_file |
| 1818 | fi |
| 1819 | |
| 1820 | # Check that the precious variables saved in the cache have kept the same |
| 1821 | # value. |
| 1822 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1823 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1824 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1825 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1826 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1827 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1828 | case $ac_old_set,$ac_new_set in |
| 1829 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1830 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1831 | 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] | 1832 | ac_cache_corrupted=: ;; |
| 1833 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1834 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1835 | 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] | 1836 | ac_cache_corrupted=: ;; |
| 1837 | ,);; |
| 1838 | *) |
| 1839 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1840 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1841 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1842 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1843 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1844 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1845 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1846 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1847 | fi;; |
| 1848 | esac |
| 1849 | # Pass precious variables to config.status. |
| 1850 | if test "$ac_new_set" = set; then |
| 1851 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1852 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1853 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1854 | esac |
| 1855 | case " $ac_configure_args " in |
| 1856 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | esac |
| 1859 | fi |
| 1860 | done |
| 1861 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1863 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1864 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1865 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1866 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1867 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1868 | |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1893 | ac_ext=c |
| 1894 | ac_cpp='$CPP $CPPFLAGS' |
| 1895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1898 | |
| 1899 | |
| 1900 | |
Benjamin Kramer | b73cd94 | 2011-06-12 15:26:54 +0000 | [diff] [blame] | 1901 | LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1909 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1910 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1911 | if test -f "$ac_dir/install-sh"; then |
| 1912 | ac_aux_dir=$ac_dir |
| 1913 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1914 | break |
| 1915 | elif test -f "$ac_dir/install.sh"; then |
| 1916 | ac_aux_dir=$ac_dir |
| 1917 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1918 | break |
| 1919 | elif test -f "$ac_dir/shtool"; then |
| 1920 | ac_aux_dir=$ac_dir |
| 1921 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1922 | break |
| 1923 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1924 | done |
| 1925 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1926 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1927 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1928 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1929 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1930 | |
| 1931 | # These three variables are undocumented and unsupported, |
| 1932 | # and are intended to be withdrawn in a future Autoconf release. |
| 1933 | # They can cause serious problems if a builder's source tree is in a directory |
| 1934 | # whose full name contains unusual characters. |
| 1935 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1936 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1937 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1939 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1940 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1941 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1942 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1943 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1944 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1945 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1946 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1947 | fi |
| 1948 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1949 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1950 | ac_cpp='$CPP $CPPFLAGS' |
| 1951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1954 | if test -n "$ac_tool_prefix"; then |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1955 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1956 | do |
| 1957 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1958 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1959 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1961 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1963 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1964 | if test -n "$CC"; then |
| 1965 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1966 | else |
| 1967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1968 | for as_dir in $PATH |
| 1969 | do |
| 1970 | IFS=$as_save_IFS |
| 1971 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1972 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1973 | 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] | 1974 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1975 | 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] | 1976 | break 2 |
| 1977 | fi |
| 1978 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1979 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1980 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1981 | |
| 1982 | fi |
| 1983 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1984 | CC=$ac_cv_prog_CC |
| 1985 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1986 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1987 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1988 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1989 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1990 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1991 | fi |
| 1992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1993 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1994 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1995 | done |
| 1996 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1997 | if test -z "$CC"; then |
| 1998 | ac_ct_CC=$CC |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1999 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2000 | do |
| 2001 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2002 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2005 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2007 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2008 | if test -n "$ac_ct_CC"; then |
| 2009 | 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] | 2010 | else |
| 2011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2012 | for as_dir in $PATH |
| 2013 | do |
| 2014 | IFS=$as_save_IFS |
| 2015 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2016 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2017 | 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] | 2018 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2019 | 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] | 2020 | break 2 |
| 2021 | fi |
| 2022 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2023 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2024 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | |
| 2026 | fi |
| 2027 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2028 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2029 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2030 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2031 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2032 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2033 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2034 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2035 | fi |
| 2036 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2037 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2038 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2039 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2041 | if test "x$ac_ct_CC" = x; then |
| 2042 | CC="" |
| 2043 | else |
| 2044 | case $cross_compiling:$ac_tool_warned in |
| 2045 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2046 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2047 | whose name does not start with the host triplet. If you think this |
| 2048 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2049 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2050 | whose name does not start with the host triplet. If you think this |
| 2051 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2052 | ac_tool_warned=yes ;; |
| 2053 | esac |
| 2054 | CC=$ac_ct_CC |
| 2055 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2056 | fi |
| 2057 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2058 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2059 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2060 | See \`config.log' for more details." >&5 |
| 2061 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2062 | See \`config.log' for more details." >&2;} |
| 2063 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2064 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2066 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2067 | ac_compiler=`set X $ac_compile; echo $2` |
| 2068 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2069 | case "(($ac_try" in |
| 2070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2071 | *) ac_try_echo=$ac_try;; |
| 2072 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2074 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2075 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2077 | (exit $ac_status); } |
| 2078 | { (ac_try="$ac_compiler -v >&5" |
| 2079 | case "(($ac_try" in |
| 2080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2081 | *) ac_try_echo=$ac_try;; |
| 2082 | esac |
| 2083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2084 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2085 | ac_status=$? |
| 2086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2087 | (exit $ac_status); } |
| 2088 | { (ac_try="$ac_compiler -V >&5" |
| 2089 | case "(($ac_try" in |
| 2090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2091 | *) ac_try_echo=$ac_try;; |
| 2092 | esac |
| 2093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2094 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2095 | ac_status=$? |
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2097 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2098 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2099 | cat >conftest.$ac_ext <<_ACEOF |
| 2100 | /* confdefs.h. */ |
| 2101 | _ACEOF |
| 2102 | cat confdefs.h >>conftest.$ac_ext |
| 2103 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2104 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2105 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2106 | int |
| 2107 | main () |
| 2108 | { |
| 2109 | |
| 2110 | ; |
| 2111 | return 0; |
| 2112 | } |
| 2113 | _ACEOF |
| 2114 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2115 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2116 | # Try to create an executable without -o first, disregard a.out. |
| 2117 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2118 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2119 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2120 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2121 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2122 | # |
| 2123 | # List of possible output files, starting from the most likely. |
| 2124 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2125 | # only as a last resort. b.out is created by i960 compilers. |
| 2126 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2127 | # |
| 2128 | # The IRIX 6 linker writes into existing files which may not be |
| 2129 | # executable, retaining their permissions. Remove them first so a |
| 2130 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2131 | ac_rmfiles= |
| 2132 | for ac_file in $ac_files |
| 2133 | do |
| 2134 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2135 | *.$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] | 2136 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2137 | esac |
| 2138 | done |
| 2139 | rm -f $ac_rmfiles |
| 2140 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2141 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2142 | case "(($ac_try" in |
| 2143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2144 | *) ac_try_echo=$ac_try;; |
| 2145 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2147 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2148 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2150 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2151 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2152 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2153 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2154 | # so that the user can short-circuit this test for compilers unknown to |
| 2155 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2156 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2157 | do |
| 2158 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2159 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2160 | *.$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] | 2161 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2162 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2163 | # We found the default executable, but exeext='' is most |
| 2164 | # certainly right. |
| 2165 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2166 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2167 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | then :; else |
| 2169 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2170 | fi |
| 2171 | # We set ac_cv_exeext here because the later test for it is not |
| 2172 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2173 | # argument, so we may need to know it at that point already. |
| 2174 | # Even if this section looks crufty: it has the advantage of |
| 2175 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2176 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2177 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2178 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2179 | esac |
| 2180 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2181 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2182 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2183 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2184 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2186 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2187 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2188 | See \`config.log' for more details." >&5 |
| 2189 | echo "$as_me: error: C compiler cannot create executables |
| 2190 | See \`config.log' for more details." >&2;} |
| 2191 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2192 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2193 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2194 | ac_exeext=$ac_cv_exeext |
| 2195 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2196 | echo "${ECHO_T}$ac_file" >&6; } |
| 2197 | |
| 2198 | # Check that the compiler produces executables we can run. If not, either |
| 2199 | # the compiler is broken, or we cross compile. |
| 2200 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2201 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2202 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2203 | # If not cross compiling, check that we can run a simple program. |
| 2204 | if test "$cross_compiling" != yes; then |
| 2205 | if { ac_try='./$ac_file' |
| 2206 | { (case "(($ac_try" in |
| 2207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2208 | *) ac_try_echo=$ac_try;; |
| 2209 | esac |
| 2210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2211 | (eval "$ac_try") 2>&5 |
| 2212 | ac_status=$? |
| 2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2214 | (exit $ac_status); }; }; then |
| 2215 | cross_compiling=no |
| 2216 | else |
| 2217 | if test "$cross_compiling" = maybe; then |
| 2218 | cross_compiling=yes |
| 2219 | else |
| 2220 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2221 | If you meant to cross compile, use \`--host'. |
| 2222 | See \`config.log' for more details." >&5 |
| 2223 | echo "$as_me: error: cannot run C compiled programs. |
| 2224 | If you meant to cross compile, use \`--host'. |
| 2225 | See \`config.log' for more details." >&2;} |
| 2226 | { (exit 1); exit 1; }; } |
| 2227 | fi |
| 2228 | fi |
| 2229 | fi |
| 2230 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2231 | echo "${ECHO_T}yes" >&6; } |
| 2232 | |
| 2233 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2234 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2235 | # Check that the compiler produces executables we can run. If not, either |
| 2236 | # the compiler is broken, or we cross compile. |
| 2237 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2238 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2239 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2240 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2241 | |
| 2242 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2243 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2244 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2245 | case "(($ac_try" in |
| 2246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2247 | *) ac_try_echo=$ac_try;; |
| 2248 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2250 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2251 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2253 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2254 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2255 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2256 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2257 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2258 | for ac_file in conftest.exe conftest conftest.*; do |
| 2259 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2260 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2261 | *.$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] | 2262 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2263 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2264 | * ) break;; |
| 2265 | esac |
| 2266 | done |
| 2267 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2268 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2269 | See \`config.log' for more details." >&5 |
| 2270 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2271 | See \`config.log' for more details." >&2;} |
| 2272 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2273 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2274 | |
| 2275 | rm -f conftest$ac_cv_exeext |
| 2276 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2277 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2278 | |
| 2279 | rm -f conftest.$ac_ext |
| 2280 | EXEEXT=$ac_cv_exeext |
| 2281 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2282 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2283 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2284 | if test "${ac_cv_objext+set}" = set; then |
| 2285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2286 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2287 | cat >conftest.$ac_ext <<_ACEOF |
| 2288 | /* confdefs.h. */ |
| 2289 | _ACEOF |
| 2290 | cat confdefs.h >>conftest.$ac_ext |
| 2291 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2292 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2293 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2294 | int |
| 2295 | main () |
| 2296 | { |
| 2297 | |
| 2298 | ; |
| 2299 | return 0; |
| 2300 | } |
| 2301 | _ACEOF |
| 2302 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2303 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2304 | case "(($ac_try" in |
| 2305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2306 | *) ac_try_echo=$ac_try;; |
| 2307 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2309 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2310 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2312 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2313 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2314 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2315 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2316 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2317 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2318 | break;; |
| 2319 | esac |
| 2320 | done |
| 2321 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2322 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2324 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2325 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2326 | See \`config.log' for more details." >&5 |
| 2327 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2328 | See \`config.log' for more details." >&2;} |
| 2329 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2330 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2331 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2332 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2334 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2335 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2336 | OBJEXT=$ac_cv_objext |
| 2337 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2338 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2339 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2340 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2342 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2343 | cat >conftest.$ac_ext <<_ACEOF |
| 2344 | /* confdefs.h. */ |
| 2345 | _ACEOF |
| 2346 | cat confdefs.h >>conftest.$ac_ext |
| 2347 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2348 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2349 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 | int |
| 2351 | main () |
| 2352 | { |
| 2353 | #ifndef __GNUC__ |
| 2354 | choke me |
| 2355 | #endif |
| 2356 | |
| 2357 | ; |
| 2358 | return 0; |
| 2359 | } |
| 2360 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2361 | rm -f conftest.$ac_objext |
| 2362 | if { (ac_try="$ac_compile" |
| 2363 | case "(($ac_try" in |
| 2364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2365 | *) ac_try_echo=$ac_try;; |
| 2366 | esac |
| 2367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2368 | (eval "$ac_compile") 2>conftest.er1 |
| 2369 | ac_status=$? |
| 2370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2371 | rm -f conftest.er1 |
| 2372 | cat conftest.err >&5 |
| 2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2374 | (exit $ac_status); } && |
| 2375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2376 | { (case "(($ac_try" in |
| 2377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2378 | *) ac_try_echo=$ac_try;; |
| 2379 | esac |
| 2380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2381 | (eval "$ac_try") 2>&5 |
| 2382 | ac_status=$? |
| 2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2384 | (exit $ac_status); }; } && |
| 2385 | { ac_try='test -s conftest.$ac_objext' |
| 2386 | { (case "(($ac_try" in |
| 2387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2388 | *) ac_try_echo=$ac_try;; |
| 2389 | esac |
| 2390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2391 | (eval "$ac_try") 2>&5 |
| 2392 | ac_status=$? |
| 2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2394 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2395 | ac_compiler_gnu=yes |
| 2396 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2397 | echo "$as_me: failed program was:" >&5 |
| 2398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2399 | |
| 2400 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2401 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2404 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2405 | |
| 2406 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2407 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2408 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2409 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2410 | ac_test_CFLAGS=${CFLAGS+set} |
| 2411 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2412 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2413 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2414 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2416 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2417 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2418 | ac_c_werror_flag=yes |
| 2419 | ac_cv_prog_cc_g=no |
| 2420 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2421 | cat >conftest.$ac_ext <<_ACEOF |
| 2422 | /* confdefs.h. */ |
| 2423 | _ACEOF |
| 2424 | cat confdefs.h >>conftest.$ac_ext |
| 2425 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2426 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2427 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2428 | int |
| 2429 | main () |
| 2430 | { |
| 2431 | |
| 2432 | ; |
| 2433 | return 0; |
| 2434 | } |
| 2435 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2436 | rm -f conftest.$ac_objext |
| 2437 | if { (ac_try="$ac_compile" |
| 2438 | case "(($ac_try" in |
| 2439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2440 | *) ac_try_echo=$ac_try;; |
| 2441 | esac |
| 2442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2443 | (eval "$ac_compile") 2>conftest.er1 |
| 2444 | ac_status=$? |
| 2445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2446 | rm -f conftest.er1 |
| 2447 | cat conftest.err >&5 |
| 2448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2449 | (exit $ac_status); } && |
| 2450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2451 | { (case "(($ac_try" in |
| 2452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2453 | *) ac_try_echo=$ac_try;; |
| 2454 | esac |
| 2455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2456 | (eval "$ac_try") 2>&5 |
| 2457 | ac_status=$? |
| 2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2459 | (exit $ac_status); }; } && |
| 2460 | { ac_try='test -s conftest.$ac_objext' |
| 2461 | { (case "(($ac_try" in |
| 2462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2463 | *) ac_try_echo=$ac_try;; |
| 2464 | esac |
| 2465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2466 | (eval "$ac_try") 2>&5 |
| 2467 | ac_status=$? |
| 2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2469 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2470 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2471 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2472 | echo "$as_me: failed program was:" >&5 |
| 2473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2474 | |
| 2475 | CFLAGS="" |
| 2476 | cat >conftest.$ac_ext <<_ACEOF |
| 2477 | /* confdefs.h. */ |
| 2478 | _ACEOF |
| 2479 | cat confdefs.h >>conftest.$ac_ext |
| 2480 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2481 | /* end confdefs.h. */ |
| 2482 | |
| 2483 | int |
| 2484 | main () |
| 2485 | { |
| 2486 | |
| 2487 | ; |
| 2488 | return 0; |
| 2489 | } |
| 2490 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2491 | rm -f conftest.$ac_objext |
| 2492 | if { (ac_try="$ac_compile" |
| 2493 | case "(($ac_try" in |
| 2494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2495 | *) ac_try_echo=$ac_try;; |
| 2496 | esac |
| 2497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2498 | (eval "$ac_compile") 2>conftest.er1 |
| 2499 | ac_status=$? |
| 2500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2501 | rm -f conftest.er1 |
| 2502 | cat conftest.err >&5 |
| 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2504 | (exit $ac_status); } && |
| 2505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2506 | { (case "(($ac_try" in |
| 2507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2508 | *) ac_try_echo=$ac_try;; |
| 2509 | esac |
| 2510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2511 | (eval "$ac_try") 2>&5 |
| 2512 | ac_status=$? |
| 2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2514 | (exit $ac_status); }; } && |
| 2515 | { ac_try='test -s conftest.$ac_objext' |
| 2516 | { (case "(($ac_try" in |
| 2517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2518 | *) ac_try_echo=$ac_try;; |
| 2519 | esac |
| 2520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2521 | (eval "$ac_try") 2>&5 |
| 2522 | ac_status=$? |
| 2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2524 | (exit $ac_status); }; }; then |
| 2525 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2527 | echo "$as_me: failed program was:" >&5 |
| 2528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2529 | |
| 2530 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2531 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2532 | cat >conftest.$ac_ext <<_ACEOF |
| 2533 | /* confdefs.h. */ |
| 2534 | _ACEOF |
| 2535 | cat confdefs.h >>conftest.$ac_ext |
| 2536 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2537 | /* end confdefs.h. */ |
| 2538 | |
| 2539 | int |
| 2540 | main () |
| 2541 | { |
| 2542 | |
| 2543 | ; |
| 2544 | return 0; |
| 2545 | } |
| 2546 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2547 | rm -f conftest.$ac_objext |
| 2548 | if { (ac_try="$ac_compile" |
| 2549 | case "(($ac_try" in |
| 2550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2551 | *) ac_try_echo=$ac_try;; |
| 2552 | esac |
| 2553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2554 | (eval "$ac_compile") 2>conftest.er1 |
| 2555 | ac_status=$? |
| 2556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2557 | rm -f conftest.er1 |
| 2558 | cat conftest.err >&5 |
| 2559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2560 | (exit $ac_status); } && |
| 2561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2562 | { (case "(($ac_try" in |
| 2563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2564 | *) ac_try_echo=$ac_try;; |
| 2565 | esac |
| 2566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2567 | (eval "$ac_try") 2>&5 |
| 2568 | ac_status=$? |
| 2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2570 | (exit $ac_status); }; } && |
| 2571 | { ac_try='test -s conftest.$ac_objext' |
| 2572 | { (case "(($ac_try" in |
| 2573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2574 | *) ac_try_echo=$ac_try;; |
| 2575 | esac |
| 2576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2577 | (eval "$ac_try") 2>&5 |
| 2578 | ac_status=$? |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2581 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2582 | else |
| 2583 | echo "$as_me: failed program was:" >&5 |
| 2584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2585 | |
| 2586 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2587 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2590 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2591 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2593 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2596 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2597 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2598 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2599 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2600 | if test "$ac_test_CFLAGS" = set; then |
| 2601 | CFLAGS=$ac_save_CFLAGS |
| 2602 | elif test $ac_cv_prog_cc_g = yes; then |
| 2603 | if test "$GCC" = yes; then |
| 2604 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2605 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2606 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2607 | fi |
| 2608 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2609 | if test "$GCC" = yes; then |
| 2610 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2611 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2612 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2613 | fi |
| 2614 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2615 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2616 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2617 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2619 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2620 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2621 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2622 | cat >conftest.$ac_ext <<_ACEOF |
| 2623 | /* confdefs.h. */ |
| 2624 | _ACEOF |
| 2625 | cat confdefs.h >>conftest.$ac_ext |
| 2626 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | /* end confdefs.h. */ |
| 2628 | #include <stdarg.h> |
| 2629 | #include <stdio.h> |
| 2630 | #include <sys/types.h> |
| 2631 | #include <sys/stat.h> |
| 2632 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2633 | struct buf { int x; }; |
| 2634 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2635 | static char *e (p, i) |
| 2636 | char **p; |
| 2637 | int i; |
| 2638 | { |
| 2639 | return p[i]; |
| 2640 | } |
| 2641 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2642 | { |
| 2643 | char *s; |
| 2644 | va_list v; |
| 2645 | va_start (v,p); |
| 2646 | s = g (p, va_arg (v,int)); |
| 2647 | va_end (v); |
| 2648 | return s; |
| 2649 | } |
| 2650 | |
| 2651 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2652 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2653 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2654 | 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] | 2655 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2656 | 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] | 2657 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2658 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2659 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2660 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2661 | inside strings and character constants. */ |
| 2662 | #define FOO(x) 'x' |
| 2663 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2664 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2665 | int test (int i, double x); |
| 2666 | struct s1 {int (*f) (int a);}; |
| 2667 | struct s2 {int (*f) (double a);}; |
| 2668 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2669 | int argc; |
| 2670 | char **argv; |
| 2671 | int |
| 2672 | main () |
| 2673 | { |
| 2674 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2675 | ; |
| 2676 | return 0; |
| 2677 | } |
| 2678 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2679 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2680 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2681 | do |
| 2682 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2683 | rm -f conftest.$ac_objext |
| 2684 | if { (ac_try="$ac_compile" |
| 2685 | case "(($ac_try" in |
| 2686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2687 | *) ac_try_echo=$ac_try;; |
| 2688 | esac |
| 2689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2690 | (eval "$ac_compile") 2>conftest.er1 |
| 2691 | ac_status=$? |
| 2692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2693 | rm -f conftest.er1 |
| 2694 | cat conftest.err >&5 |
| 2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2696 | (exit $ac_status); } && |
| 2697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2698 | { (case "(($ac_try" in |
| 2699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2700 | *) ac_try_echo=$ac_try;; |
| 2701 | esac |
| 2702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2703 | (eval "$ac_try") 2>&5 |
| 2704 | ac_status=$? |
| 2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2706 | (exit $ac_status); }; } && |
| 2707 | { ac_try='test -s conftest.$ac_objext' |
| 2708 | { (case "(($ac_try" in |
| 2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2710 | *) ac_try_echo=$ac_try;; |
| 2711 | esac |
| 2712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2713 | (eval "$ac_try") 2>&5 |
| 2714 | ac_status=$? |
| 2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2716 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2717 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2718 | else |
| 2719 | echo "$as_me: failed program was:" >&5 |
| 2720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2721 | |
| 2722 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2723 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2724 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2725 | rm -f core conftest.err conftest.$ac_objext |
| 2726 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2727 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2728 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2729 | CC=$ac_save_CC |
| 2730 | |
| 2731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2732 | # AC_CACHE_VAL |
| 2733 | case "x$ac_cv_prog_cc_c89" in |
| 2734 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2735 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2736 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2737 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2738 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2739 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2740 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2741 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2742 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2743 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2744 | esac |
| 2745 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2746 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2747 | ac_ext=c |
| 2748 | ac_cpp='$CPP $CPPFLAGS' |
| 2749 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2750 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2752 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2753 | ac_ext=cpp |
| 2754 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2755 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2756 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2757 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2758 | if test -z "$CXX"; then |
| 2759 | if test -n "$CCC"; then |
| 2760 | CXX=$CCC |
| 2761 | else |
| 2762 | if test -n "$ac_tool_prefix"; then |
| 2763 | for ac_prog in clang++ llvm-g++ g++ |
| 2764 | do |
| 2765 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2766 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2767 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2769 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2771 | else |
| 2772 | if test -n "$CXX"; then |
| 2773 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2774 | else |
| 2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2776 | for as_dir in $PATH |
| 2777 | do |
| 2778 | IFS=$as_save_IFS |
| 2779 | test -z "$as_dir" && as_dir=. |
| 2780 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2782 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2784 | break 2 |
| 2785 | fi |
| 2786 | done |
| 2787 | done |
| 2788 | IFS=$as_save_IFS |
| 2789 | |
| 2790 | fi |
| 2791 | fi |
| 2792 | CXX=$ac_cv_prog_CXX |
| 2793 | if test -n "$CXX"; then |
| 2794 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2795 | echo "${ECHO_T}$CXX" >&6; } |
| 2796 | else |
| 2797 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2798 | echo "${ECHO_T}no" >&6; } |
| 2799 | fi |
| 2800 | |
| 2801 | |
| 2802 | test -n "$CXX" && break |
| 2803 | done |
| 2804 | fi |
| 2805 | if test -z "$CXX"; then |
| 2806 | ac_ct_CXX=$CXX |
| 2807 | for ac_prog in clang++ llvm-g++ g++ |
| 2808 | do |
| 2809 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2810 | set dummy $ac_prog; ac_word=$2 |
| 2811 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2813 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2815 | else |
| 2816 | if test -n "$ac_ct_CXX"; then |
| 2817 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2818 | else |
| 2819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2820 | for as_dir in $PATH |
| 2821 | do |
| 2822 | IFS=$as_save_IFS |
| 2823 | test -z "$as_dir" && as_dir=. |
| 2824 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2826 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2828 | break 2 |
| 2829 | fi |
| 2830 | done |
| 2831 | done |
| 2832 | IFS=$as_save_IFS |
| 2833 | |
| 2834 | fi |
| 2835 | fi |
| 2836 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2837 | if test -n "$ac_ct_CXX"; then |
| 2838 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2839 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2840 | else |
| 2841 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2842 | echo "${ECHO_T}no" >&6; } |
| 2843 | fi |
| 2844 | |
| 2845 | |
| 2846 | test -n "$ac_ct_CXX" && break |
| 2847 | done |
| 2848 | |
| 2849 | if test "x$ac_ct_CXX" = x; then |
| 2850 | CXX="g++" |
| 2851 | else |
| 2852 | case $cross_compiling:$ac_tool_warned in |
| 2853 | yes:) |
| 2854 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2855 | whose name does not start with the host triplet. If you think this |
| 2856 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2857 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2858 | whose name does not start with the host triplet. If you think this |
| 2859 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2860 | ac_tool_warned=yes ;; |
| 2861 | esac |
| 2862 | CXX=$ac_ct_CXX |
| 2863 | fi |
| 2864 | fi |
| 2865 | |
| 2866 | fi |
| 2867 | fi |
| 2868 | # Provide some information about the compiler. |
| 2869 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2870 | ac_compiler=`set X $ac_compile; echo $2` |
| 2871 | { (ac_try="$ac_compiler --version >&5" |
| 2872 | case "(($ac_try" in |
| 2873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2874 | *) ac_try_echo=$ac_try;; |
| 2875 | esac |
| 2876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2877 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2878 | ac_status=$? |
| 2879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2880 | (exit $ac_status); } |
| 2881 | { (ac_try="$ac_compiler -v >&5" |
| 2882 | case "(($ac_try" in |
| 2883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2884 | *) ac_try_echo=$ac_try;; |
| 2885 | esac |
| 2886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2887 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2888 | ac_status=$? |
| 2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2890 | (exit $ac_status); } |
| 2891 | { (ac_try="$ac_compiler -V >&5" |
| 2892 | case "(($ac_try" in |
| 2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2894 | *) ac_try_echo=$ac_try;; |
| 2895 | esac |
| 2896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2897 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2898 | ac_status=$? |
| 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2900 | (exit $ac_status); } |
| 2901 | |
| 2902 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2903 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2904 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2906 | else |
| 2907 | cat >conftest.$ac_ext <<_ACEOF |
| 2908 | /* confdefs.h. */ |
| 2909 | _ACEOF |
| 2910 | cat confdefs.h >>conftest.$ac_ext |
| 2911 | cat >>conftest.$ac_ext <<_ACEOF |
| 2912 | /* end confdefs.h. */ |
| 2913 | |
| 2914 | int |
| 2915 | main () |
| 2916 | { |
| 2917 | #ifndef __GNUC__ |
| 2918 | choke me |
| 2919 | #endif |
| 2920 | |
| 2921 | ; |
| 2922 | return 0; |
| 2923 | } |
| 2924 | _ACEOF |
| 2925 | rm -f conftest.$ac_objext |
| 2926 | if { (ac_try="$ac_compile" |
| 2927 | case "(($ac_try" in |
| 2928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2929 | *) ac_try_echo=$ac_try;; |
| 2930 | esac |
| 2931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2932 | (eval "$ac_compile") 2>conftest.er1 |
| 2933 | ac_status=$? |
| 2934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2935 | rm -f conftest.er1 |
| 2936 | cat conftest.err >&5 |
| 2937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2938 | (exit $ac_status); } && |
| 2939 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2940 | { (case "(($ac_try" in |
| 2941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2942 | *) ac_try_echo=$ac_try;; |
| 2943 | esac |
| 2944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2945 | (eval "$ac_try") 2>&5 |
| 2946 | ac_status=$? |
| 2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2948 | (exit $ac_status); }; } && |
| 2949 | { ac_try='test -s conftest.$ac_objext' |
| 2950 | { (case "(($ac_try" in |
| 2951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2952 | *) ac_try_echo=$ac_try;; |
| 2953 | esac |
| 2954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2955 | (eval "$ac_try") 2>&5 |
| 2956 | ac_status=$? |
| 2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2958 | (exit $ac_status); }; }; then |
| 2959 | ac_compiler_gnu=yes |
| 2960 | else |
| 2961 | echo "$as_me: failed program was:" >&5 |
| 2962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2963 | |
| 2964 | ac_compiler_gnu=no |
| 2965 | fi |
| 2966 | |
| 2967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2968 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2969 | |
| 2970 | fi |
| 2971 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2972 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 2973 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2974 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2975 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2976 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2977 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 2978 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2980 | else |
| 2981 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 2982 | ac_cxx_werror_flag=yes |
| 2983 | ac_cv_prog_cxx_g=no |
| 2984 | CXXFLAGS="-g" |
| 2985 | cat >conftest.$ac_ext <<_ACEOF |
| 2986 | /* confdefs.h. */ |
| 2987 | _ACEOF |
| 2988 | cat confdefs.h >>conftest.$ac_ext |
| 2989 | cat >>conftest.$ac_ext <<_ACEOF |
| 2990 | /* end confdefs.h. */ |
| 2991 | |
| 2992 | int |
| 2993 | main () |
| 2994 | { |
| 2995 | |
| 2996 | ; |
| 2997 | return 0; |
| 2998 | } |
| 2999 | _ACEOF |
| 3000 | rm -f conftest.$ac_objext |
| 3001 | if { (ac_try="$ac_compile" |
| 3002 | case "(($ac_try" in |
| 3003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3004 | *) ac_try_echo=$ac_try;; |
| 3005 | esac |
| 3006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3007 | (eval "$ac_compile") 2>conftest.er1 |
| 3008 | ac_status=$? |
| 3009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3010 | rm -f conftest.er1 |
| 3011 | cat conftest.err >&5 |
| 3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3013 | (exit $ac_status); } && |
| 3014 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3015 | { (case "(($ac_try" in |
| 3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3017 | *) ac_try_echo=$ac_try;; |
| 3018 | esac |
| 3019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3020 | (eval "$ac_try") 2>&5 |
| 3021 | ac_status=$? |
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3023 | (exit $ac_status); }; } && |
| 3024 | { ac_try='test -s conftest.$ac_objext' |
| 3025 | { (case "(($ac_try" in |
| 3026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3027 | *) ac_try_echo=$ac_try;; |
| 3028 | esac |
| 3029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3030 | (eval "$ac_try") 2>&5 |
| 3031 | ac_status=$? |
| 3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3033 | (exit $ac_status); }; }; then |
| 3034 | ac_cv_prog_cxx_g=yes |
| 3035 | else |
| 3036 | echo "$as_me: failed program was:" >&5 |
| 3037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3038 | |
| 3039 | CXXFLAGS="" |
| 3040 | cat >conftest.$ac_ext <<_ACEOF |
| 3041 | /* confdefs.h. */ |
| 3042 | _ACEOF |
| 3043 | cat confdefs.h >>conftest.$ac_ext |
| 3044 | cat >>conftest.$ac_ext <<_ACEOF |
| 3045 | /* end confdefs.h. */ |
| 3046 | |
| 3047 | int |
| 3048 | main () |
| 3049 | { |
| 3050 | |
| 3051 | ; |
| 3052 | return 0; |
| 3053 | } |
| 3054 | _ACEOF |
| 3055 | rm -f conftest.$ac_objext |
| 3056 | if { (ac_try="$ac_compile" |
| 3057 | case "(($ac_try" in |
| 3058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3059 | *) ac_try_echo=$ac_try;; |
| 3060 | esac |
| 3061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3062 | (eval "$ac_compile") 2>conftest.er1 |
| 3063 | ac_status=$? |
| 3064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3065 | rm -f conftest.er1 |
| 3066 | cat conftest.err >&5 |
| 3067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3068 | (exit $ac_status); } && |
| 3069 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3070 | { (case "(($ac_try" in |
| 3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3072 | *) ac_try_echo=$ac_try;; |
| 3073 | esac |
| 3074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3075 | (eval "$ac_try") 2>&5 |
| 3076 | ac_status=$? |
| 3077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3078 | (exit $ac_status); }; } && |
| 3079 | { ac_try='test -s conftest.$ac_objext' |
| 3080 | { (case "(($ac_try" in |
| 3081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3082 | *) ac_try_echo=$ac_try;; |
| 3083 | esac |
| 3084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3085 | (eval "$ac_try") 2>&5 |
| 3086 | ac_status=$? |
| 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3088 | (exit $ac_status); }; }; then |
| 3089 | : |
| 3090 | else |
| 3091 | echo "$as_me: failed program was:" >&5 |
| 3092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3093 | |
| 3094 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3095 | CXXFLAGS="-g" |
| 3096 | cat >conftest.$ac_ext <<_ACEOF |
| 3097 | /* confdefs.h. */ |
| 3098 | _ACEOF |
| 3099 | cat confdefs.h >>conftest.$ac_ext |
| 3100 | cat >>conftest.$ac_ext <<_ACEOF |
| 3101 | /* end confdefs.h. */ |
| 3102 | |
| 3103 | int |
| 3104 | main () |
| 3105 | { |
| 3106 | |
| 3107 | ; |
| 3108 | return 0; |
| 3109 | } |
| 3110 | _ACEOF |
| 3111 | rm -f conftest.$ac_objext |
| 3112 | if { (ac_try="$ac_compile" |
| 3113 | case "(($ac_try" in |
| 3114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3115 | *) ac_try_echo=$ac_try;; |
| 3116 | esac |
| 3117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3118 | (eval "$ac_compile") 2>conftest.er1 |
| 3119 | ac_status=$? |
| 3120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3121 | rm -f conftest.er1 |
| 3122 | cat conftest.err >&5 |
| 3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3124 | (exit $ac_status); } && |
| 3125 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 3132 | ac_status=$? |
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); }; } && |
| 3135 | { ac_try='test -s conftest.$ac_objext' |
| 3136 | { (case "(($ac_try" in |
| 3137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3138 | *) ac_try_echo=$ac_try;; |
| 3139 | esac |
| 3140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3141 | (eval "$ac_try") 2>&5 |
| 3142 | ac_status=$? |
| 3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3144 | (exit $ac_status); }; }; then |
| 3145 | ac_cv_prog_cxx_g=yes |
| 3146 | else |
| 3147 | echo "$as_me: failed program was:" >&5 |
| 3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3149 | |
| 3150 | |
| 3151 | fi |
| 3152 | |
| 3153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3154 | fi |
| 3155 | |
| 3156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3157 | fi |
| 3158 | |
| 3159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3160 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3161 | fi |
| 3162 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3163 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3164 | if test "$ac_test_CXXFLAGS" = set; then |
| 3165 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3166 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3167 | if test "$GXX" = yes; then |
| 3168 | CXXFLAGS="-g -O2" |
| 3169 | else |
| 3170 | CXXFLAGS="-g" |
| 3171 | fi |
| 3172 | else |
| 3173 | if test "$GXX" = yes; then |
| 3174 | CXXFLAGS="-O2" |
| 3175 | else |
| 3176 | CXXFLAGS= |
| 3177 | fi |
| 3178 | fi |
| 3179 | ac_ext=c |
| 3180 | ac_cpp='$CPP $CPPFLAGS' |
| 3181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3184 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3185 | ac_ext=c |
| 3186 | ac_cpp='$CPP $CPPFLAGS' |
| 3187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3190 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3191 | 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] | 3192 | # On Suns, sometimes $CPP names a directory. |
| 3193 | if test -n "$CPP" && test -d "$CPP"; then |
| 3194 | CPP= |
| 3195 | fi |
| 3196 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3197 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3199 | else |
| 3200 | # Double quotes because CPP needs to be expanded |
| 3201 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3202 | do |
| 3203 | ac_preproc_ok=false |
| 3204 | for ac_c_preproc_warn_flag in '' yes |
| 3205 | do |
| 3206 | # Use a header file that comes with gcc, so configuring glibc |
| 3207 | # with a fresh cross-compiler works. |
| 3208 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3209 | # <limits.h> exists even on freestanding compilers. |
| 3210 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3211 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3212 | cat >conftest.$ac_ext <<_ACEOF |
| 3213 | /* confdefs.h. */ |
| 3214 | _ACEOF |
| 3215 | cat confdefs.h >>conftest.$ac_ext |
| 3216 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3217 | /* end confdefs.h. */ |
| 3218 | #ifdef __STDC__ |
| 3219 | # include <limits.h> |
| 3220 | #else |
| 3221 | # include <assert.h> |
| 3222 | #endif |
| 3223 | Syntax error |
| 3224 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3225 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3226 | case "(($ac_try" in |
| 3227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3228 | *) ac_try_echo=$ac_try;; |
| 3229 | esac |
| 3230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3231 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3232 | ac_status=$? |
| 3233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3234 | rm -f conftest.er1 |
| 3235 | cat conftest.err >&5 |
| 3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3237 | (exit $ac_status); } >/dev/null; then |
| 3238 | if test -s conftest.err; then |
| 3239 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3240 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3241 | else |
| 3242 | ac_cpp_err= |
| 3243 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3244 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3245 | ac_cpp_err=yes |
| 3246 | fi |
| 3247 | if test -z "$ac_cpp_err"; then |
| 3248 | : |
| 3249 | else |
| 3250 | echo "$as_me: failed program was:" >&5 |
| 3251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3252 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3253 | # Broken: fails on valid input. |
| 3254 | continue |
| 3255 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3256 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3257 | rm -f conftest.err conftest.$ac_ext |
| 3258 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3259 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3260 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3261 | cat >conftest.$ac_ext <<_ACEOF |
| 3262 | /* confdefs.h. */ |
| 3263 | _ACEOF |
| 3264 | cat confdefs.h >>conftest.$ac_ext |
| 3265 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3266 | /* end confdefs.h. */ |
| 3267 | #include <ac_nonexistent.h> |
| 3268 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3269 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3270 | case "(($ac_try" in |
| 3271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3272 | *) ac_try_echo=$ac_try;; |
| 3273 | esac |
| 3274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3276 | ac_status=$? |
| 3277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3278 | rm -f conftest.er1 |
| 3279 | cat conftest.err >&5 |
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3281 | (exit $ac_status); } >/dev/null; then |
| 3282 | if test -s conftest.err; then |
| 3283 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3285 | else |
| 3286 | ac_cpp_err= |
| 3287 | fi |
| 3288 | else |
| 3289 | ac_cpp_err=yes |
| 3290 | fi |
| 3291 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3292 | # Broken: success on invalid input. |
| 3293 | continue |
| 3294 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3295 | echo "$as_me: failed program was:" >&5 |
| 3296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3297 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3298 | # Passes both tests. |
| 3299 | ac_preproc_ok=: |
| 3300 | break |
| 3301 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3302 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3303 | rm -f conftest.err conftest.$ac_ext |
| 3304 | |
| 3305 | done |
| 3306 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3307 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3308 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3309 | break |
| 3310 | fi |
| 3311 | |
| 3312 | done |
| 3313 | ac_cv_prog_CPP=$CPP |
| 3314 | |
| 3315 | fi |
| 3316 | CPP=$ac_cv_prog_CPP |
| 3317 | else |
| 3318 | ac_cv_prog_CPP=$CPP |
| 3319 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3320 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3321 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3322 | ac_preproc_ok=false |
| 3323 | for ac_c_preproc_warn_flag in '' yes |
| 3324 | do |
| 3325 | # Use a header file that comes with gcc, so configuring glibc |
| 3326 | # with a fresh cross-compiler works. |
| 3327 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3328 | # <limits.h> exists even on freestanding compilers. |
| 3329 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3330 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3331 | cat >conftest.$ac_ext <<_ACEOF |
| 3332 | /* confdefs.h. */ |
| 3333 | _ACEOF |
| 3334 | cat confdefs.h >>conftest.$ac_ext |
| 3335 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3336 | /* end confdefs.h. */ |
| 3337 | #ifdef __STDC__ |
| 3338 | # include <limits.h> |
| 3339 | #else |
| 3340 | # include <assert.h> |
| 3341 | #endif |
| 3342 | Syntax error |
| 3343 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3344 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3345 | case "(($ac_try" in |
| 3346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3347 | *) ac_try_echo=$ac_try;; |
| 3348 | esac |
| 3349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3350 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3351 | ac_status=$? |
| 3352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3353 | rm -f conftest.er1 |
| 3354 | cat conftest.err >&5 |
| 3355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3356 | (exit $ac_status); } >/dev/null; then |
| 3357 | if test -s conftest.err; then |
| 3358 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3360 | else |
| 3361 | ac_cpp_err= |
| 3362 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3364 | ac_cpp_err=yes |
| 3365 | fi |
| 3366 | if test -z "$ac_cpp_err"; then |
| 3367 | : |
| 3368 | else |
| 3369 | echo "$as_me: failed program was:" >&5 |
| 3370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3371 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3372 | # Broken: fails on valid input. |
| 3373 | continue |
| 3374 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3375 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3376 | rm -f conftest.err conftest.$ac_ext |
| 3377 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3378 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3379 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3380 | cat >conftest.$ac_ext <<_ACEOF |
| 3381 | /* confdefs.h. */ |
| 3382 | _ACEOF |
| 3383 | cat confdefs.h >>conftest.$ac_ext |
| 3384 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3385 | /* end confdefs.h. */ |
| 3386 | #include <ac_nonexistent.h> |
| 3387 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3388 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3389 | case "(($ac_try" in |
| 3390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3391 | *) ac_try_echo=$ac_try;; |
| 3392 | esac |
| 3393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3394 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3395 | ac_status=$? |
| 3396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3397 | rm -f conftest.er1 |
| 3398 | cat conftest.err >&5 |
| 3399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3400 | (exit $ac_status); } >/dev/null; then |
| 3401 | if test -s conftest.err; then |
| 3402 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3404 | else |
| 3405 | ac_cpp_err= |
| 3406 | fi |
| 3407 | else |
| 3408 | ac_cpp_err=yes |
| 3409 | fi |
| 3410 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3411 | # Broken: success on invalid input. |
| 3412 | continue |
| 3413 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3414 | echo "$as_me: failed program was:" >&5 |
| 3415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3416 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3417 | # Passes both tests. |
| 3418 | ac_preproc_ok=: |
| 3419 | break |
| 3420 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3421 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3422 | rm -f conftest.err conftest.$ac_ext |
| 3423 | |
| 3424 | done |
| 3425 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3426 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3427 | if $ac_preproc_ok; then |
| 3428 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3429 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3430 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3431 | See \`config.log' for more details." >&5 |
| 3432 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3433 | See \`config.log' for more details." >&2;} |
| 3434 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3435 | fi |
| 3436 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3437 | ac_ext=c |
| 3438 | ac_cpp='$CPP $CPPFLAGS' |
| 3439 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3440 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3442 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3443 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3444 | |
| 3445 | |
| 3446 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 3447 | subdirs="$subdirs projects/llvm-gcc" |
| 3448 | |
| 3449 | fi |
| 3450 | |
| 3451 | if test -d ${srcdir}/projects/test-suite ; then |
| 3452 | subdirs="$subdirs projects/test-suite" |
| 3453 | |
| 3454 | fi |
| 3455 | |
| 3456 | if test -d ${srcdir}/projects/llvm-test ; then |
| 3457 | subdirs="$subdirs projects/llvm-test" |
| 3458 | |
| 3459 | fi |
| 3460 | |
| 3461 | if test -d ${srcdir}/projects/poolalloc ; then |
| 3462 | subdirs="$subdirs projects/poolalloc" |
| 3463 | |
| 3464 | fi |
| 3465 | |
| 3466 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 3467 | subdirs="$subdirs projects/llvm-poolalloc" |
| 3468 | |
| 3469 | fi |
| 3470 | |
| 3471 | for i in `ls ${srcdir}/projects` |
| 3472 | do |
| 3473 | if test -d ${srcdir}/projects/${i} ; then |
| 3474 | case ${i} in |
| 3475 | sample) subdirs="$subdirs projects/sample" |
| 3476 | ;; |
| 3477 | privbracket) subdirs="$subdirs projects/privbracket" |
| 3478 | ;; |
| 3479 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
| 3480 | ;; |
| 3481 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
| 3482 | ;; |
| 3483 | llvm-java) subdirs="$subdirs projects/llvm-java" |
| 3484 | ;; |
| 3485 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
| 3486 | ;; |
| 3487 | safecode) subdirs="$subdirs projects/safecode" |
| 3488 | ;; |
| 3489 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
| 3490 | ;; |
| 3491 | llvm-gcc) ;; |
| 3492 | test-suite) ;; |
| 3493 | llvm-test) ;; |
| 3494 | poolalloc) ;; |
| 3495 | llvm-poolalloc) ;; |
| 3496 | *) |
| 3497 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 3498 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
| 3499 | ;; |
| 3500 | esac |
| 3501 | fi |
| 3502 | done |
| 3503 | |
| 3504 | # Check whether --enable-polly was given. |
| 3505 | if test "${enable_polly+set}" = set; then |
| 3506 | enableval=$enable_polly; |
| 3507 | else |
| 3508 | enableval=default |
| 3509 | fi |
| 3510 | |
| 3511 | case "$enableval" in |
| 3512 | yes) ENABLE_POLLY=1 |
| 3513 | ;; |
| 3514 | no) ENABLE_POLLY=0 |
| 3515 | ;; |
| 3516 | default) ENABLE_POLLY=1 |
| 3517 | ;; |
| 3518 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 3519 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 3520 | { (exit 1); exit 1; }; } ;; |
| 3521 | esac |
| 3522 | |
| 3523 | |
| 3524 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 3525 | LLVM_HAS_POLLY=1 |
| 3526 | |
| 3527 | subdirs="$subdirs tools/polly" |
| 3528 | |
| 3529 | fi |
| 3530 | |
| 3531 | |
| 3532 | # Make sure we can run config.sub. |
| 3533 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3534 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3535 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3536 | { (exit 1); exit 1; }; } |
| 3537 | |
| 3538 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3539 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3540 | if test "${ac_cv_build+set}" = set; then |
| 3541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3542 | else |
| 3543 | ac_build_alias=$build_alias |
| 3544 | test "x$ac_build_alias" = x && |
| 3545 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3546 | test "x$ac_build_alias" = x && |
| 3547 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3548 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3549 | { (exit 1); exit 1; }; } |
| 3550 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3551 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3552 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3553 | { (exit 1); exit 1; }; } |
| 3554 | |
| 3555 | fi |
| 3556 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3557 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3558 | case $ac_cv_build in |
| 3559 | *-*-*) ;; |
| 3560 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3561 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3562 | { (exit 1); exit 1; }; };; |
| 3563 | esac |
| 3564 | build=$ac_cv_build |
| 3565 | ac_save_IFS=$IFS; IFS='-' |
| 3566 | set x $ac_cv_build |
| 3567 | shift |
| 3568 | build_cpu=$1 |
| 3569 | build_vendor=$2 |
| 3570 | shift; shift |
| 3571 | # Remember, the first character of IFS is used to create $*, |
| 3572 | # except with old shells: |
| 3573 | build_os=$* |
| 3574 | IFS=$ac_save_IFS |
| 3575 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3576 | |
| 3577 | |
| 3578 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3579 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3580 | if test "${ac_cv_host+set}" = set; then |
| 3581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3582 | else |
| 3583 | if test "x$host_alias" = x; then |
| 3584 | ac_cv_host=$ac_cv_build |
| 3585 | else |
| 3586 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3587 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3588 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3589 | { (exit 1); exit 1; }; } |
| 3590 | fi |
| 3591 | |
| 3592 | fi |
| 3593 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3594 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3595 | case $ac_cv_host in |
| 3596 | *-*-*) ;; |
| 3597 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3598 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3599 | { (exit 1); exit 1; }; };; |
| 3600 | esac |
| 3601 | host=$ac_cv_host |
| 3602 | ac_save_IFS=$IFS; IFS='-' |
| 3603 | set x $ac_cv_host |
| 3604 | shift |
| 3605 | host_cpu=$1 |
| 3606 | host_vendor=$2 |
| 3607 | shift; shift |
| 3608 | # Remember, the first character of IFS is used to create $*, |
| 3609 | # except with old shells: |
| 3610 | host_os=$* |
| 3611 | IFS=$ac_save_IFS |
| 3612 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3613 | |
| 3614 | |
| 3615 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 3616 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 3617 | if test "${ac_cv_target+set}" = set; then |
| 3618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3619 | else |
| 3620 | if test "x$target_alias" = x; then |
| 3621 | ac_cv_target=$ac_cv_host |
| 3622 | else |
| 3623 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3624 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 3625 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 3626 | { (exit 1); exit 1; }; } |
| 3627 | fi |
| 3628 | |
| 3629 | fi |
| 3630 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3631 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 3632 | case $ac_cv_target in |
| 3633 | *-*-*) ;; |
| 3634 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 3635 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 3636 | { (exit 1); exit 1; }; };; |
| 3637 | esac |
| 3638 | target=$ac_cv_target |
| 3639 | ac_save_IFS=$IFS; IFS='-' |
| 3640 | set x $ac_cv_target |
| 3641 | shift |
| 3642 | target_cpu=$1 |
| 3643 | target_vendor=$2 |
| 3644 | shift; shift |
| 3645 | # Remember, the first character of IFS is used to create $*, |
| 3646 | # except with old shells: |
| 3647 | target_os=$* |
| 3648 | IFS=$ac_save_IFS |
| 3649 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3650 | |
| 3651 | |
| 3652 | # The aliases save the names the user supplied, while $host etc. |
| 3653 | # will get canonicalized. |
| 3654 | test -n "$target_alias" && |
| 3655 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3656 | NONENONEs,x,x, && |
| 3657 | program_prefix=${target_alias}- |
| 3658 | |
| 3659 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 3660 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 3661 | if test "${llvm_cv_os_type+set}" = set; then |
| 3662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3663 | else |
| 3664 | case $host in |
| 3665 | *-*-aix*) |
| 3666 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3667 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3668 | llvm_cv_os_type="AIX" |
| 3669 | llvm_cv_platform_type="Unix" ;; |
| 3670 | *-*-irix*) |
| 3671 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3672 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3673 | llvm_cv_os_type="IRIX" |
| 3674 | llvm_cv_platform_type="Unix" ;; |
| 3675 | *-*-cygwin*) |
| 3676 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3677 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3678 | llvm_cv_os_type="Cygwin" |
| 3679 | llvm_cv_platform_type="Unix" ;; |
| 3680 | *-*-darwin*) |
| 3681 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3682 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3683 | llvm_cv_os_type="Darwin" |
| 3684 | llvm_cv_platform_type="Unix" ;; |
| 3685 | *-*-minix*) |
| 3686 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3687 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3688 | llvm_cv_os_type="Minix" |
| 3689 | llvm_cv_platform_type="Unix" ;; |
| 3690 | *-*-freebsd*) |
| 3691 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3692 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3693 | llvm_cv_os_type="FreeBSD" |
| 3694 | llvm_cv_platform_type="Unix" ;; |
| 3695 | *-*-openbsd*) |
| 3696 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3697 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3698 | llvm_cv_os_type="OpenBSD" |
| 3699 | llvm_cv_platform_type="Unix" ;; |
| 3700 | *-*-netbsd*) |
| 3701 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3702 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3703 | llvm_cv_os_type="NetBSD" |
| 3704 | llvm_cv_platform_type="Unix" ;; |
| 3705 | *-*-dragonfly*) |
| 3706 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3707 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3708 | llvm_cv_os_type="DragonFly" |
| 3709 | llvm_cv_platform_type="Unix" ;; |
| 3710 | *-*-hpux*) |
| 3711 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3712 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3713 | llvm_cv_os_type="HP-UX" |
| 3714 | llvm_cv_platform_type="Unix" ;; |
| 3715 | *-*-interix*) |
| 3716 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3717 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3718 | llvm_cv_os_type="Interix" |
| 3719 | llvm_cv_platform_type="Unix" ;; |
| 3720 | *-*-linux*) |
| 3721 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3722 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3723 | llvm_cv_os_type="Linux" |
| 3724 | llvm_cv_platform_type="Unix" ;; |
| 3725 | *-*-solaris*) |
| 3726 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3727 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
| 3728 | llvm_cv_os_type="SunOS" |
| 3729 | llvm_cv_platform_type="Unix" ;; |
| 3730 | *-*-auroraux*) |
| 3731 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3732 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 3733 | llvm_cv_os_type="AuroraUX" |
| 3734 | llvm_cv_platform_type="Unix" ;; |
| 3735 | *-*-win32*) |
| 3736 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3737 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3738 | llvm_cv_os_type="Win32" |
| 3739 | llvm_cv_platform_type="Win32" ;; |
| 3740 | *-*-mingw*) |
| 3741 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3742 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3743 | llvm_cv_os_type="MingW" |
| 3744 | llvm_cv_platform_type="Win32" ;; |
| 3745 | *-*-haiku*) |
| 3746 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3747 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3748 | llvm_cv_os_type="Haiku" |
| 3749 | llvm_cv_platform_type="Unix" ;; |
| 3750 | *-unknown-eabi*) |
| 3751 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3752 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3753 | llvm_cv_os_type="Freestanding" |
| 3754 | llvm_cv_platform_type="Unix" ;; |
| 3755 | *-unknown-elf*) |
| 3756 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3757 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3758 | llvm_cv_os_type="Freestanding" |
| 3759 | llvm_cv_platform_type="Unix" ;; |
| 3760 | *) |
| 3761 | llvm_cv_link_all_option="" |
| 3762 | llvm_cv_no_link_all_option="" |
| 3763 | llvm_cv_os_type="Unknown" |
| 3764 | llvm_cv_platform_type="Unknown" ;; |
| 3765 | esac |
| 3766 | fi |
| 3767 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 3768 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
| 3769 | |
| 3770 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 3771 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 3772 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 3773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3774 | else |
| 3775 | case $target in |
| 3776 | *-*-aix*) |
| 3777 | llvm_cv_target_os_type="AIX" ;; |
| 3778 | *-*-irix*) |
| 3779 | llvm_cv_target_os_type="IRIX" ;; |
| 3780 | *-*-cygwin*) |
| 3781 | llvm_cv_target_os_type="Cygwin" ;; |
| 3782 | *-*-darwin*) |
| 3783 | llvm_cv_target_os_type="Darwin" ;; |
| 3784 | *-*-minix*) |
| 3785 | llvm_cv_target_os_type="Minix" ;; |
| 3786 | *-*-freebsd*) |
| 3787 | llvm_cv_target_os_type="FreeBSD" ;; |
| 3788 | *-*-openbsd*) |
| 3789 | llvm_cv_target_os_type="OpenBSD" ;; |
| 3790 | *-*-netbsd*) |
| 3791 | llvm_cv_target_os_type="NetBSD" ;; |
| 3792 | *-*-dragonfly*) |
| 3793 | llvm_cv_target_os_type="DragonFly" ;; |
| 3794 | *-*-hpux*) |
| 3795 | llvm_cv_target_os_type="HP-UX" ;; |
| 3796 | *-*-interix*) |
| 3797 | llvm_cv_target_os_type="Interix" ;; |
| 3798 | *-*-linux*) |
| 3799 | llvm_cv_target_os_type="Linux" ;; |
| 3800 | *-*-solaris*) |
| 3801 | llvm_cv_target_os_type="SunOS" ;; |
| 3802 | *-*-auroraux*) |
| 3803 | llvm_cv_target_os_type="AuroraUX" ;; |
| 3804 | *-*-win32*) |
| 3805 | llvm_cv_target_os_type="Win32" ;; |
| 3806 | *-*-mingw*) |
| 3807 | llvm_cv_target_os_type="MingW" ;; |
| 3808 | *-*-haiku*) |
| 3809 | llvm_cv_target_os_type="Haiku" ;; |
| 3810 | *-*-rtems*) |
| 3811 | llvm_cv_target_os_type="RTEMS" ;; |
| 3812 | *-*-nacl*) |
| 3813 | llvm_cv_target_os_type="NativeClient" ;; |
| 3814 | *-unknown-eabi*) |
| 3815 | llvm_cv_target_os_type="Freestanding" ;; |
| 3816 | *) |
| 3817 | llvm_cv_target_os_type="Unknown" ;; |
| 3818 | esac |
| 3819 | fi |
| 3820 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 3821 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 3822 | |
| 3823 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 3824 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 3825 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 3826 | { (exit 1); exit 1; }; } |
| 3827 | fi |
| 3828 | |
| 3829 | OS=$llvm_cv_os_type |
| 3830 | |
| 3831 | HOST_OS=$llvm_cv_os_type |
| 3832 | |
| 3833 | TARGET_OS=$llvm_cv_target_os_type |
| 3834 | |
| 3835 | |
| 3836 | LINKALL=$llvm_cv_link_all_option |
| 3837 | |
| 3838 | NOLINKALL=$llvm_cv_no_link_all_option |
| 3839 | |
| 3840 | |
| 3841 | case $llvm_cv_platform_type in |
| 3842 | Unix) |
| 3843 | |
| 3844 | cat >>confdefs.h <<\_ACEOF |
| 3845 | #define LLVM_ON_UNIX 1 |
| 3846 | _ACEOF |
| 3847 | |
| 3848 | LLVM_ON_UNIX=1 |
| 3849 | |
| 3850 | LLVM_ON_WIN32=0 |
| 3851 | |
| 3852 | ;; |
| 3853 | Win32) |
| 3854 | |
| 3855 | cat >>confdefs.h <<\_ACEOF |
| 3856 | #define LLVM_ON_WIN32 1 |
| 3857 | _ACEOF |
| 3858 | |
| 3859 | LLVM_ON_UNIX=0 |
| 3860 | |
| 3861 | LLVM_ON_WIN32=1 |
| 3862 | |
| 3863 | ;; |
| 3864 | esac |
| 3865 | |
| 3866 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 3867 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 3868 | if test "${llvm_cv_target_arch+set}" = set; then |
| 3869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3870 | else |
| 3871 | case $target in |
| 3872 | i?86-*) llvm_cv_target_arch="x86" ;; |
| 3873 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
| 3874 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 3875 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
| 3876 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
| 3877 | arm*-*) llvm_cv_target_arch="ARM" ;; |
| 3878 | mips-*) llvm_cv_target_arch="Mips" ;; |
| 3879 | xcore-*) llvm_cv_target_arch="XCore" ;; |
| 3880 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
| 3881 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
| 3882 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
| 3883 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
| 3884 | ptx-*) llvm_cv_target_arch="PTX" ;; |
| 3885 | *) llvm_cv_target_arch="Unknown" ;; |
| 3886 | esac |
| 3887 | fi |
| 3888 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 3889 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
| 3890 | |
| 3891 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 3892 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 3893 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 3894 | fi |
| 3895 | |
| 3896 | # Determine the LLVM native architecture for the target |
| 3897 | case "$llvm_cv_target_arch" in |
| 3898 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 3899 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 3900 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 3901 | esac |
| 3902 | |
| 3903 | ARCH=$llvm_cv_target_arch |
| 3904 | |
| 3905 | |
| 3906 | |
| 3907 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3908 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3909 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3910 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3912 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3913 | # Extract the first word of "grep ggrep" to use in msg output |
| 3914 | if test -z "$GREP"; then |
| 3915 | set dummy grep ggrep; ac_prog_name=$2 |
| 3916 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3918 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3919 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3920 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3922 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3923 | do |
| 3924 | IFS=$as_save_IFS |
| 3925 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3926 | for ac_prog in grep ggrep; do |
| 3927 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3928 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3929 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3930 | # 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] | 3931 | # Check for GNU $ac_path_GREP |
| 3932 | case `"$ac_path_GREP" --version 2>&1` in |
| 3933 | *GNU*) |
| 3934 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3935 | *) |
| 3936 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3937 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3938 | while : |
| 3939 | do |
| 3940 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3941 | mv "conftest.tmp" "conftest.in" |
| 3942 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3943 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3944 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3945 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3946 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3947 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3948 | # Best one so far, save it but keep looking for a better one |
| 3949 | ac_cv_path_GREP="$ac_path_GREP" |
| 3950 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3951 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3952 | # 10*(2^10) chars as input seems more than enough |
| 3953 | test $ac_count -gt 10 && break |
| 3954 | done |
| 3955 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3956 | esac |
| 3957 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3958 | |
| 3959 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3960 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3961 | done |
| 3962 | |
| 3963 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3964 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3965 | |
| 3966 | |
| 3967 | fi |
| 3968 | |
| 3969 | GREP="$ac_cv_path_GREP" |
| 3970 | if test -z "$GREP"; then |
| 3971 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3972 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3973 | { (exit 1); exit 1; }; } |
| 3974 | fi |
| 3975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3976 | else |
| 3977 | ac_cv_path_GREP=$GREP |
| 3978 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3979 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3980 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3981 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3982 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3983 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3984 | GREP="$ac_cv_path_GREP" |
| 3985 | |
| 3986 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3987 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3988 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3989 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3991 | else |
| 3992 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3993 | then ac_cv_path_EGREP="$GREP -E" |
| 3994 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3995 | # Extract the first word of "egrep" to use in msg output |
| 3996 | if test -z "$EGREP"; then |
| 3997 | set dummy egrep; ac_prog_name=$2 |
| 3998 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4000 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4001 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4002 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4004 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4005 | do |
| 4006 | IFS=$as_save_IFS |
| 4007 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4008 | for ac_prog in egrep; do |
| 4009 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4010 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4011 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4012 | # 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] | 4013 | # Check for GNU $ac_path_EGREP |
| 4014 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4015 | *GNU*) |
| 4016 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4017 | *) |
| 4018 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4019 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4020 | while : |
| 4021 | do |
| 4022 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4023 | mv "conftest.tmp" "conftest.in" |
| 4024 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4025 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4026 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4027 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4028 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4029 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4030 | # Best one so far, save it but keep looking for a better one |
| 4031 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4032 | ac_path_EGREP_max=$ac_count |
| 4033 | fi |
| 4034 | # 10*(2^10) chars as input seems more than enough |
| 4035 | test $ac_count -gt 10 && break |
| 4036 | done |
| 4037 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4038 | esac |
| 4039 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4040 | |
| 4041 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4042 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4043 | done |
| 4044 | |
| 4045 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4046 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4047 | |
| 4048 | |
| 4049 | fi |
| 4050 | |
| 4051 | EGREP="$ac_cv_path_EGREP" |
| 4052 | if test -z "$EGREP"; then |
| 4053 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4054 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4055 | { (exit 1); exit 1; }; } |
| 4056 | fi |
| 4057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4058 | else |
| 4059 | ac_cv_path_EGREP=$EGREP |
| 4060 | fi |
| 4061 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4063 | fi |
| 4064 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4065 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4066 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4067 | EGREP="$ac_cv_path_EGREP" |
| 4068 | |
| 4069 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4070 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4071 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4072 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4074 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4075 | cat >conftest.$ac_ext <<_ACEOF |
| 4076 | /* confdefs.h. */ |
| 4077 | _ACEOF |
| 4078 | cat confdefs.h >>conftest.$ac_ext |
| 4079 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4080 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4081 | #include <stdlib.h> |
| 4082 | #include <stdarg.h> |
| 4083 | #include <string.h> |
| 4084 | #include <float.h> |
| 4085 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4086 | int |
| 4087 | main () |
| 4088 | { |
| 4089 | |
| 4090 | ; |
| 4091 | return 0; |
| 4092 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4093 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4094 | rm -f conftest.$ac_objext |
| 4095 | if { (ac_try="$ac_compile" |
| 4096 | case "(($ac_try" in |
| 4097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4098 | *) ac_try_echo=$ac_try;; |
| 4099 | esac |
| 4100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4101 | (eval "$ac_compile") 2>conftest.er1 |
| 4102 | ac_status=$? |
| 4103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4104 | rm -f conftest.er1 |
| 4105 | cat conftest.err >&5 |
| 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4107 | (exit $ac_status); } && |
| 4108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4109 | { (case "(($ac_try" in |
| 4110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4111 | *) ac_try_echo=$ac_try;; |
| 4112 | esac |
| 4113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4114 | (eval "$ac_try") 2>&5 |
| 4115 | ac_status=$? |
| 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4117 | (exit $ac_status); }; } && |
| 4118 | { ac_try='test -s conftest.$ac_objext' |
| 4119 | { (case "(($ac_try" in |
| 4120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4121 | *) ac_try_echo=$ac_try;; |
| 4122 | esac |
| 4123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4124 | (eval "$ac_try") 2>&5 |
| 4125 | ac_status=$? |
| 4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4127 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4128 | ac_cv_header_stdc=yes |
| 4129 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4130 | echo "$as_me: failed program was:" >&5 |
| 4131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4132 | |
| 4133 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4134 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4137 | |
| 4138 | if test $ac_cv_header_stdc = yes; then |
| 4139 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4140 | cat >conftest.$ac_ext <<_ACEOF |
| 4141 | /* confdefs.h. */ |
| 4142 | _ACEOF |
| 4143 | cat confdefs.h >>conftest.$ac_ext |
| 4144 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4145 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4146 | #include <string.h> |
| 4147 | |
| 4148 | _ACEOF |
| 4149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4150 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4151 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4152 | else |
| 4153 | ac_cv_header_stdc=no |
| 4154 | fi |
| 4155 | rm -f conftest* |
| 4156 | |
| 4157 | fi |
| 4158 | |
| 4159 | if test $ac_cv_header_stdc = yes; then |
| 4160 | # 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] | 4161 | cat >conftest.$ac_ext <<_ACEOF |
| 4162 | /* confdefs.h. */ |
| 4163 | _ACEOF |
| 4164 | cat confdefs.h >>conftest.$ac_ext |
| 4165 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4166 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4167 | #include <stdlib.h> |
| 4168 | |
| 4169 | _ACEOF |
| 4170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4171 | $EGREP "free" >/dev/null 2>&1; then |
| 4172 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4173 | else |
| 4174 | ac_cv_header_stdc=no |
| 4175 | fi |
| 4176 | rm -f conftest* |
| 4177 | |
| 4178 | fi |
| 4179 | |
| 4180 | if test $ac_cv_header_stdc = yes; then |
| 4181 | # /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] | 4182 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4183 | : |
| 4184 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4185 | cat >conftest.$ac_ext <<_ACEOF |
| 4186 | /* confdefs.h. */ |
| 4187 | _ACEOF |
| 4188 | cat confdefs.h >>conftest.$ac_ext |
| 4189 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4190 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4191 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4192 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4193 | #if ((' ' & 0x0FF) == 0x020) |
| 4194 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4195 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4196 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4197 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4198 | (('a' <= (c) && (c) <= 'i') \ |
| 4199 | || ('j' <= (c) && (c) <= 'r') \ |
| 4200 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4201 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4202 | #endif |
| 4203 | |
| 4204 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4205 | int |
| 4206 | main () |
| 4207 | { |
| 4208 | int i; |
| 4209 | for (i = 0; i < 256; i++) |
| 4210 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4211 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4212 | return 2; |
| 4213 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4214 | } |
| 4215 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4216 | rm -f conftest$ac_exeext |
| 4217 | if { (ac_try="$ac_link" |
| 4218 | case "(($ac_try" in |
| 4219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4220 | *) ac_try_echo=$ac_try;; |
| 4221 | esac |
| 4222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4223 | (eval "$ac_link") 2>&5 |
| 4224 | ac_status=$? |
| 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4226 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4227 | { (case "(($ac_try" in |
| 4228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4229 | *) ac_try_echo=$ac_try;; |
| 4230 | esac |
| 4231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4232 | (eval "$ac_try") 2>&5 |
| 4233 | ac_status=$? |
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4235 | (exit $ac_status); }; }; then |
| 4236 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4237 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4238 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4239 | echo "$as_me: failed program was:" >&5 |
| 4240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4241 | |
| 4242 | ( exit $ac_status ) |
| 4243 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4244 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4245 | 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] | 4246 | fi |
| 4247 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4248 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4249 | fi |
| 4250 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4251 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4252 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4253 | if test $ac_cv_header_stdc = yes; then |
| 4254 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4255 | cat >>confdefs.h <<\_ACEOF |
| 4256 | #define STDC_HEADERS 1 |
| 4257 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4258 | |
| 4259 | fi |
| 4260 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4261 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4262 | |
| 4263 | |
| 4264 | |
| 4265 | |
| 4266 | |
| 4267 | |
| 4268 | |
| 4269 | |
| 4270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4271 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4272 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4273 | do |
| 4274 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4275 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4277 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4279 | else |
| 4280 | cat >conftest.$ac_ext <<_ACEOF |
| 4281 | /* confdefs.h. */ |
| 4282 | _ACEOF |
| 4283 | cat confdefs.h >>conftest.$ac_ext |
| 4284 | cat >>conftest.$ac_ext <<_ACEOF |
| 4285 | /* end confdefs.h. */ |
| 4286 | $ac_includes_default |
| 4287 | |
| 4288 | #include <$ac_header> |
| 4289 | _ACEOF |
| 4290 | rm -f conftest.$ac_objext |
| 4291 | if { (ac_try="$ac_compile" |
| 4292 | case "(($ac_try" in |
| 4293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4294 | *) ac_try_echo=$ac_try;; |
| 4295 | esac |
| 4296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4297 | (eval "$ac_compile") 2>conftest.er1 |
| 4298 | ac_status=$? |
| 4299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4300 | rm -f conftest.er1 |
| 4301 | cat conftest.err >&5 |
| 4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4303 | (exit $ac_status); } && |
| 4304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4305 | { (case "(($ac_try" in |
| 4306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4307 | *) ac_try_echo=$ac_try;; |
| 4308 | esac |
| 4309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4310 | (eval "$ac_try") 2>&5 |
| 4311 | ac_status=$? |
| 4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4313 | (exit $ac_status); }; } && |
| 4314 | { ac_try='test -s conftest.$ac_objext' |
| 4315 | { (case "(($ac_try" in |
| 4316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4317 | *) ac_try_echo=$ac_try;; |
| 4318 | esac |
| 4319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4320 | (eval "$ac_try") 2>&5 |
| 4321 | ac_status=$? |
| 4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4323 | (exit $ac_status); }; }; then |
| 4324 | eval "$as_ac_Header=yes" |
| 4325 | else |
| 4326 | echo "$as_me: failed program was:" >&5 |
| 4327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4328 | |
| 4329 | eval "$as_ac_Header=no" |
| 4330 | fi |
| 4331 | |
| 4332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4333 | fi |
| 4334 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4335 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4336 | echo "${ECHO_T}$ac_res" >&6; } |
| 4337 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4338 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4339 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4340 | _ACEOF |
| 4341 | |
| 4342 | fi |
| 4343 | |
| 4344 | done |
| 4345 | |
| 4346 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4347 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4348 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4349 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4351 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4352 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4353 | cat >conftest.$ac_ext <<_ACEOF |
| 4354 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4355 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4356 | cat confdefs.h >>conftest.$ac_ext |
| 4357 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4358 | /* end confdefs.h. */ |
| 4359 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4360 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4361 | |
| 4362 | int |
| 4363 | main () |
| 4364 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4365 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4366 | bogus endian macros |
| 4367 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4368 | |
| 4369 | ; |
| 4370 | return 0; |
| 4371 | } |
| 4372 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4373 | rm -f conftest.$ac_objext |
| 4374 | if { (ac_try="$ac_compile" |
| 4375 | case "(($ac_try" in |
| 4376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4377 | *) ac_try_echo=$ac_try;; |
| 4378 | esac |
| 4379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4380 | (eval "$ac_compile") 2>conftest.er1 |
| 4381 | ac_status=$? |
| 4382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4383 | rm -f conftest.er1 |
| 4384 | cat conftest.err >&5 |
| 4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4386 | (exit $ac_status); } && |
| 4387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4388 | { (case "(($ac_try" in |
| 4389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4390 | *) ac_try_echo=$ac_try;; |
| 4391 | esac |
| 4392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4393 | (eval "$ac_try") 2>&5 |
| 4394 | ac_status=$? |
| 4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4396 | (exit $ac_status); }; } && |
| 4397 | { ac_try='test -s conftest.$ac_objext' |
| 4398 | { (case "(($ac_try" in |
| 4399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4400 | *) ac_try_echo=$ac_try;; |
| 4401 | esac |
| 4402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4403 | (eval "$ac_try") 2>&5 |
| 4404 | ac_status=$? |
| 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4406 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4407 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4408 | cat >conftest.$ac_ext <<_ACEOF |
| 4409 | /* confdefs.h. */ |
| 4410 | _ACEOF |
| 4411 | cat confdefs.h >>conftest.$ac_ext |
| 4412 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4413 | /* end confdefs.h. */ |
| 4414 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4415 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4416 | |
| 4417 | int |
| 4418 | main () |
| 4419 | { |
| 4420 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4421 | not big endian |
| 4422 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4423 | |
| 4424 | ; |
| 4425 | return 0; |
| 4426 | } |
| 4427 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4428 | rm -f conftest.$ac_objext |
| 4429 | if { (ac_try="$ac_compile" |
| 4430 | case "(($ac_try" in |
| 4431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4432 | *) ac_try_echo=$ac_try;; |
| 4433 | esac |
| 4434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4435 | (eval "$ac_compile") 2>conftest.er1 |
| 4436 | ac_status=$? |
| 4437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4438 | rm -f conftest.er1 |
| 4439 | cat conftest.err >&5 |
| 4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4441 | (exit $ac_status); } && |
| 4442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4443 | { (case "(($ac_try" in |
| 4444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4445 | *) ac_try_echo=$ac_try;; |
| 4446 | esac |
| 4447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4448 | (eval "$ac_try") 2>&5 |
| 4449 | ac_status=$? |
| 4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4451 | (exit $ac_status); }; } && |
| 4452 | { ac_try='test -s conftest.$ac_objext' |
| 4453 | { (case "(($ac_try" in |
| 4454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4455 | *) ac_try_echo=$ac_try;; |
| 4456 | esac |
| 4457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4458 | (eval "$ac_try") 2>&5 |
| 4459 | ac_status=$? |
| 4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4461 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4462 | ac_cv_c_bigendian=yes |
| 4463 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4464 | echo "$as_me: failed program was:" >&5 |
| 4465 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4466 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4467 | ac_cv_c_bigendian=no |
| 4468 | fi |
| 4469 | |
| 4470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4471 | else |
| 4472 | echo "$as_me: failed program was:" >&5 |
| 4473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4474 | |
| 4475 | # It does not; compile a test program. |
| 4476 | if test "$cross_compiling" = yes; then |
| 4477 | # try to guess the endianness by grepping values into an object file |
| 4478 | ac_cv_c_bigendian=unknown |
| 4479 | cat >conftest.$ac_ext <<_ACEOF |
| 4480 | /* confdefs.h. */ |
| 4481 | _ACEOF |
| 4482 | cat confdefs.h >>conftest.$ac_ext |
| 4483 | cat >>conftest.$ac_ext <<_ACEOF |
| 4484 | /* end confdefs.h. */ |
| 4485 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4486 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4487 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4488 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4489 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4490 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4491 | int |
| 4492 | main () |
| 4493 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4494 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4495 | ; |
| 4496 | return 0; |
| 4497 | } |
| 4498 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4499 | rm -f conftest.$ac_objext |
| 4500 | if { (ac_try="$ac_compile" |
| 4501 | case "(($ac_try" in |
| 4502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4503 | *) ac_try_echo=$ac_try;; |
| 4504 | esac |
| 4505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4506 | (eval "$ac_compile") 2>conftest.er1 |
| 4507 | ac_status=$? |
| 4508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4509 | rm -f conftest.er1 |
| 4510 | cat conftest.err >&5 |
| 4511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4512 | (exit $ac_status); } && |
| 4513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4514 | { (case "(($ac_try" in |
| 4515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4516 | *) ac_try_echo=$ac_try;; |
| 4517 | esac |
| 4518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4519 | (eval "$ac_try") 2>&5 |
| 4520 | ac_status=$? |
| 4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4522 | (exit $ac_status); }; } && |
| 4523 | { ac_try='test -s conftest.$ac_objext' |
| 4524 | { (case "(($ac_try" in |
| 4525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4526 | *) ac_try_echo=$ac_try;; |
| 4527 | esac |
| 4528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4529 | (eval "$ac_try") 2>&5 |
| 4530 | ac_status=$? |
| 4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4532 | (exit $ac_status); }; }; then |
| 4533 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4534 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4535 | fi |
| 4536 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4537 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4538 | ac_cv_c_bigendian=no |
| 4539 | else |
| 4540 | # finding both strings is unlikely to happen, but who knows? |
| 4541 | ac_cv_c_bigendian=unknown |
| 4542 | fi |
| 4543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4544 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4545 | echo "$as_me: failed program was:" >&5 |
| 4546 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4547 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4548 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4549 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4552 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4553 | cat >conftest.$ac_ext <<_ACEOF |
| 4554 | /* confdefs.h. */ |
| 4555 | _ACEOF |
| 4556 | cat confdefs.h >>conftest.$ac_ext |
| 4557 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4558 | /* end confdefs.h. */ |
| 4559 | $ac_includes_default |
| 4560 | int |
| 4561 | main () |
| 4562 | { |
| 4563 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4564 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4565 | union |
| 4566 | { |
| 4567 | long int l; |
| 4568 | char c[sizeof (long int)]; |
| 4569 | } u; |
| 4570 | u.l = 1; |
| 4571 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4572 | |
| 4573 | ; |
| 4574 | return 0; |
| 4575 | } |
| 4576 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4577 | rm -f conftest$ac_exeext |
| 4578 | if { (ac_try="$ac_link" |
| 4579 | case "(($ac_try" in |
| 4580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4581 | *) ac_try_echo=$ac_try;; |
| 4582 | esac |
| 4583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4584 | (eval "$ac_link") 2>&5 |
| 4585 | ac_status=$? |
| 4586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4588 | { (case "(($ac_try" in |
| 4589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4590 | *) ac_try_echo=$ac_try;; |
| 4591 | esac |
| 4592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4593 | (eval "$ac_try") 2>&5 |
| 4594 | ac_status=$? |
| 4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4596 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4597 | ac_cv_c_bigendian=no |
| 4598 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4599 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4600 | echo "$as_me: failed program was:" >&5 |
| 4601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4602 | |
| 4603 | ( exit $ac_status ) |
| 4604 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4605 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4606 | 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] | 4607 | fi |
| 4608 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4610 | fi |
| 4611 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4613 | fi |
| 4614 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4615 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4616 | case $ac_cv_c_bigendian in |
| 4617 | yes) |
| 4618 | ENDIAN=big |
| 4619 | ;; |
| 4620 | no) |
| 4621 | ENDIAN=little |
| 4622 | ;; |
| 4623 | *) |
| 4624 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4625 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4626 | echo "$as_me: error: unknown endianness |
| 4627 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4628 | { (exit 1); exit 1; }; } ;; |
| 4629 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4630 | |
| 4631 | |
| 4632 | if test "$cross_compiling" = yes; then |
| 4633 | LLVM_CROSS_COMPILING=1 |
| 4634 | |
| 4635 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4636 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4637 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4638 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4640 | else |
| 4641 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4642 | ac_cv_build_exeext=.exe |
| 4643 | else |
| 4644 | ac_build_prefix=${build_alias}- |
| 4645 | |
| 4646 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4647 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4648 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4650 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4652 | else |
| 4653 | if test -n "$BUILD_CC"; then |
| 4654 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4655 | else |
| 4656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4657 | for as_dir in $PATH |
| 4658 | do |
| 4659 | IFS=$as_save_IFS |
| 4660 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4661 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4662 | 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] | 4663 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4664 | 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] | 4665 | break 2 |
| 4666 | fi |
| 4667 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4668 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4669 | IFS=$as_save_IFS |
| 4670 | |
| 4671 | fi |
| 4672 | fi |
| 4673 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4674 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4675 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4676 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4677 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4678 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4679 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4680 | fi |
| 4681 | |
| 4682 | |
| 4683 | if test -z "$BUILD_CC"; then |
| 4684 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4685 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4686 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4688 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4690 | else |
| 4691 | if test -n "$BUILD_CC"; then |
| 4692 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4693 | else |
| 4694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4695 | for as_dir in $PATH |
| 4696 | do |
| 4697 | IFS=$as_save_IFS |
| 4698 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4699 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4700 | 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] | 4701 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4702 | 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] | 4703 | break 2 |
| 4704 | fi |
| 4705 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4706 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4707 | IFS=$as_save_IFS |
| 4708 | |
| 4709 | fi |
| 4710 | fi |
| 4711 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4712 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4713 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4714 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4715 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4716 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4717 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4718 | fi |
| 4719 | |
| 4720 | |
| 4721 | if test -z "$BUILD_CC"; then |
| 4722 | # Extract the first word of "cc", so it can be a program name with args. |
| 4723 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4724 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4726 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4728 | else |
| 4729 | if test -n "$BUILD_CC"; then |
| 4730 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4731 | else |
| 4732 | ac_prog_rejected=no |
| 4733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4734 | for as_dir in $PATH |
| 4735 | do |
| 4736 | IFS=$as_save_IFS |
| 4737 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4739 | 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] | 4740 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4741 | ac_prog_rejected=yes |
| 4742 | continue |
| 4743 | fi |
| 4744 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4745 | 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] | 4746 | break 2 |
| 4747 | fi |
| 4748 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4749 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4750 | IFS=$as_save_IFS |
| 4751 | |
| 4752 | if test $ac_prog_rejected = yes; then |
| 4753 | # We found a bogon in the path, so make sure we never use it. |
| 4754 | set dummy $ac_cv_prog_BUILD_CC |
| 4755 | shift |
| 4756 | if test $# != 0; then |
| 4757 | # We chose a different compiler from the bogus one. |
| 4758 | # However, it has the same basename, so the bogon will be chosen |
| 4759 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4760 | shift |
| 4761 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4762 | fi |
| 4763 | fi |
| 4764 | fi |
| 4765 | fi |
| 4766 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4767 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4768 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4769 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4770 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4771 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4772 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4773 | fi |
| 4774 | |
| 4775 | |
| 4776 | fi |
| 4777 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4778 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4779 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4780 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4781 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4782 | rm -f conftest* |
| 4783 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4784 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4785 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4786 | (eval $ac_build_link) 2>&5 |
| 4787 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4789 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4790 | for file in conftest.*; do |
| 4791 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4792 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4793 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4794 | esac |
| 4795 | done |
| 4796 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4797 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4798 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4799 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4800 | fi |
| 4801 | rm -f conftest* |
| 4802 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4803 | fi |
| 4804 | fi |
| 4805 | |
| 4806 | BUILD_EXEEXT="" |
| 4807 | 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] | 4808 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4809 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4810 | ac_build_exeext=$BUILD_EXEEXT |
| 4811 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4812 | ac_build_prefix=${build_alias}- |
| 4813 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4814 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4815 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4817 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4819 | else |
| 4820 | if test -n "$BUILD_CXX"; then |
| 4821 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4822 | else |
| 4823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4824 | for as_dir in $PATH |
| 4825 | do |
| 4826 | IFS=$as_save_IFS |
| 4827 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4829 | 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] | 4830 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4831 | 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] | 4832 | break 2 |
| 4833 | fi |
| 4834 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4835 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4836 | IFS=$as_save_IFS |
| 4837 | |
| 4838 | fi |
| 4839 | fi |
| 4840 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4841 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4842 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4843 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4844 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4845 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4846 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4847 | fi |
| 4848 | |
| 4849 | |
| 4850 | if test -z "$BUILD_CXX"; then |
| 4851 | # Extract the first word of "g++", so it can be a program name with args. |
| 4852 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4853 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4855 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4857 | else |
| 4858 | if test -n "$BUILD_CXX"; then |
| 4859 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4860 | else |
| 4861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4862 | for as_dir in $PATH |
| 4863 | do |
| 4864 | IFS=$as_save_IFS |
| 4865 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4867 | 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] | 4868 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4869 | 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] | 4870 | break 2 |
| 4871 | fi |
| 4872 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4873 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4874 | IFS=$as_save_IFS |
| 4875 | |
| 4876 | fi |
| 4877 | fi |
| 4878 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4879 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4880 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4881 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4882 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4883 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4884 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4885 | fi |
| 4886 | |
| 4887 | |
| 4888 | if test -z "$BUILD_CXX"; then |
| 4889 | # Extract the first word of "c++", so it can be a program name with args. |
| 4890 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4891 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4893 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4895 | else |
| 4896 | if test -n "$BUILD_CXX"; then |
| 4897 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4898 | else |
| 4899 | ac_prog_rejected=no |
| 4900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4901 | for as_dir in $PATH |
| 4902 | do |
| 4903 | IFS=$as_save_IFS |
| 4904 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4905 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4906 | 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] | 4907 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4908 | ac_prog_rejected=yes |
| 4909 | continue |
| 4910 | fi |
| 4911 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4912 | 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] | 4913 | break 2 |
| 4914 | fi |
| 4915 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4916 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4917 | IFS=$as_save_IFS |
| 4918 | |
| 4919 | if test $ac_prog_rejected = yes; then |
| 4920 | # We found a bogon in the path, so make sure we never use it. |
| 4921 | set dummy $ac_cv_prog_BUILD_CXX |
| 4922 | shift |
| 4923 | if test $# != 0; then |
| 4924 | # We chose a different compiler from the bogus one. |
| 4925 | # However, it has the same basename, so the bogon will be chosen |
| 4926 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4927 | shift |
| 4928 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4929 | fi |
| 4930 | fi |
| 4931 | fi |
| 4932 | fi |
| 4933 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4934 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4935 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4936 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4937 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4938 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4939 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4940 | fi |
| 4941 | |
| 4942 | |
| 4943 | fi |
| 4944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4945 | else |
| 4946 | LLVM_CROSS_COMPILING=0 |
| 4947 | |
| 4948 | fi |
| 4949 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4950 | if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4951 | cvsbuild="yes" |
| 4952 | optimize="no" |
| 4953 | CVSBUILD=CVSBUILD=1 |
| 4954 | |
| 4955 | else |
| 4956 | cvsbuild="no" |
| 4957 | optimize="yes" |
| 4958 | fi |
| 4959 | |
| 4960 | |
| 4961 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4962 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4963 | enableval=$enable_optimized; |
| 4964 | else |
| 4965 | enableval=$optimize |
| 4966 | fi |
| 4967 | |
| 4968 | if test ${enableval} = "no" ; then |
| 4969 | ENABLE_OPTIMIZED= |
| 4970 | |
| 4971 | else |
| 4972 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4973 | |
| 4974 | fi |
| 4975 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4976 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4977 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4978 | enableval=$enable_profiling; |
| 4979 | else |
| 4980 | enableval="no" |
| 4981 | fi |
| 4982 | |
| 4983 | if test ${enableval} = "no" ; then |
| 4984 | ENABLE_PROFILING= |
| 4985 | |
| 4986 | else |
| 4987 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4988 | |
| 4989 | fi |
| 4990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4991 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4992 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4993 | enableval=$enable_assertions; |
| 4994 | else |
| 4995 | enableval="yes" |
| 4996 | fi |
| 4997 | |
| 4998 | if test ${enableval} = "yes" ; then |
| 4999 | DISABLE_ASSERTIONS= |
| 5000 | |
| 5001 | else |
| 5002 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 5003 | |
| 5004 | fi |
| 5005 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5006 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5007 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5008 | enableval=$enable_expensive_checks; |
| 5009 | else |
| 5010 | enableval="no" |
| 5011 | fi |
| 5012 | |
| 5013 | if test ${enableval} = "yes" ; then |
| 5014 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 5015 | |
| 5016 | EXPENSIVE_CHECKS=yes |
| 5017 | |
| 5018 | else |
| 5019 | ENABLE_EXPENSIVE_CHECKS= |
| 5020 | |
| 5021 | EXPENSIVE_CHECKS=no |
| 5022 | |
| 5023 | fi |
| 5024 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5025 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5026 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5027 | enableval=$enable_debug_runtime; |
| 5028 | else |
| 5029 | enableval=no |
| 5030 | fi |
| 5031 | |
| 5032 | if test ${enableval} = "no" ; then |
| 5033 | DEBUG_RUNTIME= |
| 5034 | |
| 5035 | else |
| 5036 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 5037 | |
| 5038 | fi |
| 5039 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5040 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5041 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5042 | enableval=$enable_debug_symbols; |
| 5043 | else |
| 5044 | enableval=no |
| 5045 | fi |
| 5046 | |
| 5047 | if test ${enableval} = "no" ; then |
| 5048 | DEBUG_SYMBOLS= |
| 5049 | |
| 5050 | else |
| 5051 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 5052 | |
| 5053 | fi |
| 5054 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5055 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5056 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5057 | enableval=$enable_jit; |
| 5058 | else |
| 5059 | enableval=default |
| 5060 | fi |
| 5061 | |
| 5062 | if test ${enableval} = "no" |
| 5063 | then |
| 5064 | JIT= |
| 5065 | |
| 5066 | else |
| 5067 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5068 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5069 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5070 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5071 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5072 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5073 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5074 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5075 | ;; |
Chris Lattner | c476ed9 | 2010-11-14 18:24:41 +0000 | [diff] [blame] | 5076 | Alpha) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5077 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5078 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5079 | ;; |
Bruno Cardoso Lopes | dca6cdd | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5080 | Mips) TARGET_HAS_JIT=1 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5081 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5082 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5083 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5084 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5085 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5086 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 5087 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5088 | Blackfin) TARGET_HAS_JIT=0 |
| 5089 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5090 | MBlaze) TARGET_HAS_JIT=0 |
| 5091 | ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5092 | PTX) TARGET_HAS_JIT=0 |
| 5093 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5094 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5095 | ;; |
| 5096 | esac |
| 5097 | fi |
| 5098 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5099 | # Check whether --enable-docs was given. |
| 5100 | if test "${enable_docs+set}" = set; then |
| 5101 | enableval=$enable_docs; |
| 5102 | else |
| 5103 | enableval=default |
| 5104 | fi |
| 5105 | |
| 5106 | case "$enableval" in |
| 5107 | yes) ENABLE_DOCS=1 |
| 5108 | ;; |
| 5109 | no) ENABLE_DOCS=0 |
| 5110 | ;; |
| 5111 | default) ENABLE_DOCS=1 |
| 5112 | ;; |
| 5113 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 5114 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 5115 | { (exit 1); exit 1; }; } ;; |
| 5116 | esac |
| 5117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5118 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5119 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5120 | enableval=$enable_doxygen; |
| 5121 | else |
| 5122 | enableval=default |
| 5123 | fi |
| 5124 | |
| 5125 | case "$enableval" in |
| 5126 | yes) ENABLE_DOXYGEN=1 |
| 5127 | ;; |
| 5128 | no) ENABLE_DOXYGEN=0 |
| 5129 | ;; |
| 5130 | default) ENABLE_DOXYGEN=0 |
| 5131 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5132 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 5133 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 5134 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5135 | esac |
| 5136 | |
| 5137 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5138 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5139 | enableval=$enable_threads; |
| 5140 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5141 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5142 | fi |
| 5143 | |
| 5144 | case "$enableval" in |
| 5145 | yes) ENABLE_THREADS=1 |
| 5146 | ;; |
| 5147 | no) ENABLE_THREADS=0 |
| 5148 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5149 | default) ENABLE_THREADS=1 |
| 5150 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5151 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5152 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5153 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5154 | esac |
| 5155 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5156 | cat >>confdefs.h <<_ACEOF |
| 5157 | #define ENABLE_THREADS $ENABLE_THREADS |
| 5158 | _ACEOF |
| 5159 | |
| 5160 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5161 | # Check whether --enable-pthreads was given. |
| 5162 | if test "${enable_pthreads+set}" = set; then |
| 5163 | enableval=$enable_pthreads; |
| 5164 | else |
| 5165 | enableval=default |
| 5166 | fi |
| 5167 | |
| 5168 | case "$enableval" in |
| 5169 | yes) ENABLE_PTHREADS=1 |
| 5170 | ;; |
| 5171 | no) ENABLE_PTHREADS=0 |
| 5172 | ;; |
| 5173 | default) ENABLE_PTHREADS=1 |
| 5174 | ;; |
| 5175 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 5176 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 5177 | { (exit 1); exit 1; }; } ;; |
| 5178 | esac |
| 5179 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5180 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5181 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5182 | enableval=$enable_pic; |
| 5183 | else |
| 5184 | enableval=default |
| 5185 | fi |
| 5186 | |
| 5187 | case "$enableval" in |
| 5188 | yes) ENABLE_PIC=1 |
| 5189 | ;; |
| 5190 | no) ENABLE_PIC=0 |
| 5191 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5192 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5193 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5194 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5195 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5196 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5197 | esac |
| 5198 | |
| 5199 | cat >>confdefs.h <<_ACEOF |
| 5200 | #define ENABLE_PIC $ENABLE_PIC |
| 5201 | _ACEOF |
| 5202 | |
| 5203 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5204 | # Check whether --enable-shared was given. |
| 5205 | if test "${enable_shared+set}" = set; then |
| 5206 | enableval=$enable_shared; |
| 5207 | else |
| 5208 | enableval=default |
| 5209 | fi |
| 5210 | |
| 5211 | case "$enableval" in |
| 5212 | yes) ENABLE_SHARED=1 |
| 5213 | ;; |
| 5214 | no) ENABLE_SHARED=0 |
| 5215 | ;; |
| 5216 | default) ENABLE_SHARED=0 |
| 5217 | ;; |
| 5218 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5219 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5220 | { (exit 1); exit 1; }; } ;; |
| 5221 | esac |
| 5222 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5223 | # Check whether --enable-embed-stdcxx was given. |
| 5224 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5225 | enableval=$enable_embed_stdcxx; |
| 5226 | else |
| 5227 | enableval=default |
| 5228 | fi |
| 5229 | |
| 5230 | case "$enableval" in |
| 5231 | yes) ENABLE_EMBED_STDCXX=1 |
| 5232 | ;; |
| 5233 | no) ENABLE_EMBED_STDCXX=0 |
| 5234 | ;; |
| 5235 | default) ENABLE_EMBED_STDCXX=1 |
| 5236 | ;; |
| 5237 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5238 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5239 | { (exit 1); exit 1; }; } ;; |
| 5240 | esac |
| 5241 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5242 | # Check whether --enable-timestamps was given. |
| 5243 | if test "${enable_timestamps+set}" = set; then |
| 5244 | enableval=$enable_timestamps; |
| 5245 | else |
| 5246 | enableval=default |
| 5247 | fi |
| 5248 | |
| 5249 | case "$enableval" in |
| 5250 | yes) ENABLE_TIMESTAMPS=1 |
| 5251 | ;; |
| 5252 | no) ENABLE_TIMESTAMPS=0 |
| 5253 | ;; |
| 5254 | default) ENABLE_TIMESTAMPS=1 |
| 5255 | ;; |
| 5256 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5257 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5258 | { (exit 1); exit 1; }; } ;; |
| 5259 | esac |
| 5260 | |
| 5261 | cat >>confdefs.h <<_ACEOF |
| 5262 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5263 | _ACEOF |
| 5264 | |
| 5265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5266 | TARGETS_TO_BUILD="" |
| 5267 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5268 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5269 | enableval=$enable_targets; |
| 5270 | else |
| 5271 | enableval=all |
| 5272 | fi |
| 5273 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5274 | if test "$enableval" = host-only ; then |
| 5275 | enableval=host |
| 5276 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5277 | case "$enableval" in |
Chris Lattner | 60cb528 | 2010-10-11 05:44:40 +0000 | [diff] [blame] | 5278 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5279 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5280 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5281 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5282 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5283 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5284 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5285 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5286 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5287 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5288 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5289 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5290 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 5291 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 5292 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 5293 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5294 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5295 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5296 | ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5297 | host) case "$llvm_cv_target_arch" in |
| 5298 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5299 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5300 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5301 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 5302 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 5303 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5304 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5305 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5306 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5307 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5308 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 5309 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5310 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5311 | PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5312 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5313 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5314 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5315 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5316 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5317 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5318 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5319 | esac |
| 5320 | done |
| 5321 | ;; |
| 5322 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5323 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5324 | |
| 5325 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5326 | # Determine whether we are building LLVM support for the native architecture. |
| 5327 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5328 | for a_target in $TARGETS_TO_BUILD; do |
| 5329 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5330 | |
| 5331 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5332 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5333 | _ACEOF |
| 5334 | |
| 5335 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5336 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5337 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5338 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5339 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5340 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5341 | fi |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5342 | |
| 5343 | cat >>confdefs.h <<_ACEOF |
| 5344 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5345 | _ACEOF |
| 5346 | |
| 5347 | |
| 5348 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5349 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5350 | _ACEOF |
| 5351 | |
| 5352 | |
| 5353 | cat >>confdefs.h <<_ACEOF |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5354 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC |
Evan Cheng | 4396613 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5355 | _ACEOF |
| 5356 | |
| 5357 | |
| 5358 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5359 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5360 | _ACEOF |
| 5361 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5362 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
Jan Sjödin | dd54ffd | 2011-03-09 17:25:46 +0000 | [diff] [blame] | 5363 | |
| 5364 | cat >>confdefs.h <<_ACEOF |
| 5365 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5366 | _ACEOF |
| 5367 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5368 | fi |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5369 | fi |
| 5370 | done |
| 5371 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5372 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5373 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5374 | LLVM_ENUM_TARGETS="" |
| 5375 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5376 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5377 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5378 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5379 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | e15f2e1 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5380 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 7ac1609 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5381 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5382 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5383 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5384 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5385 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5386 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5387 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5388 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5389 | done |
| 5390 | |
| 5391 | |
| 5392 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5393 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5394 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5395 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5396 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5397 | enableval=$enable_cbe_printf_a; |
| 5398 | else |
| 5399 | enableval=default |
| 5400 | fi |
| 5401 | |
| 5402 | case "$enableval" in |
| 5403 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5404 | ;; |
| 5405 | no) ENABLE_CBE_PRINTF_A=0 |
| 5406 | ;; |
| 5407 | default) ENABLE_CBE_PRINTF_A=1 |
| 5408 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5409 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5410 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5411 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5412 | esac |
| 5413 | |
| 5414 | cat >>confdefs.h <<_ACEOF |
| 5415 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5416 | _ACEOF |
| 5417 | |
| 5418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5419 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5420 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5421 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5422 | withval=$with_optimize_option; |
| 5423 | else |
| 5424 | withval=default |
| 5425 | fi |
| 5426 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5427 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5428 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5429 | case "$withval" in |
| 5430 | default) |
| 5431 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5432 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5433 | MingW) optimize_option=-O2 ;; |
| 5434 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5435 | esac ;; |
| 5436 | *) optimize_option="$withval" ;; |
| 5437 | esac |
| 5438 | OPTIMIZE_OPTION=$optimize_option |
| 5439 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5440 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5441 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5442 | |
| 5443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5444 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5445 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5446 | withval=$with_extra_options; |
| 5447 | else |
| 5448 | withval=default |
| 5449 | fi |
| 5450 | |
| 5451 | case "$withval" in |
| 5452 | default) EXTRA_OPTIONS= ;; |
| 5453 | *) EXTRA_OPTIONS=$withval ;; |
| 5454 | esac |
| 5455 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5456 | |
| 5457 | |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5458 | |
| 5459 | # Check whether --with-extra-ld-options was given. |
| 5460 | if test "${with_extra_ld_options+set}" = set; then |
| 5461 | withval=$with_extra_ld_options; |
| 5462 | else |
| 5463 | withval=default |
| 5464 | fi |
| 5465 | |
| 5466 | case "$withval" in |
| 5467 | default) EXTRA_LD_OPTIONS= ;; |
| 5468 | *) EXTRA_LD_OPTIONS=$withval ;; |
| 5469 | esac |
| 5470 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS |
| 5471 | |
| 5472 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5473 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5474 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5475 | enableval=$enable_bindings; |
| 5476 | else |
| 5477 | enableval=default |
| 5478 | fi |
| 5479 | |
| 5480 | BINDINGS_TO_BUILD="" |
| 5481 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5482 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5483 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5484 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5485 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5486 | case "$a_binding" in |
| 5487 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5488 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5489 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5490 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5491 | esac |
| 5492 | done |
| 5493 | ;; |
| 5494 | esac |
| 5495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5496 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5497 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5498 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5499 | withval=$with_ocaml_libdir; |
| 5500 | else |
| 5501 | withval=auto |
| 5502 | fi |
| 5503 | |
| 5504 | case "$withval" in |
| 5505 | auto) with_ocaml_libdir="$withval" ;; |
| 5506 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5507 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5508 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5509 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5510 | esac |
| 5511 | |
| 5512 | |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5513 | # Check whether --with-clang-resource-dir was given. |
| 5514 | if test "${with_clang_resource_dir+set}" = set; then |
| 5515 | withval=$with_clang_resource_dir; |
| 5516 | else |
| 5517 | withval="" |
| 5518 | fi |
| 5519 | |
| 5520 | |
| 5521 | cat >>confdefs.h <<_ACEOF |
| 5522 | #define CLANG_RESOURCE_DIR "$withval" |
| 5523 | _ACEOF |
| 5524 | |
| 5525 | |
| 5526 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5527 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5528 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5529 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5530 | else |
| 5531 | withval="" |
| 5532 | fi |
| 5533 | |
| 5534 | |
| 5535 | cat >>confdefs.h <<_ACEOF |
| 5536 | #define C_INCLUDE_DIRS "$withval" |
| 5537 | _ACEOF |
| 5538 | |
| 5539 | |
| 5540 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5541 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5542 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5543 | withval=$with_cxx_include_root; |
| 5544 | else |
| 5545 | withval="" |
| 5546 | fi |
| 5547 | |
| 5548 | |
| 5549 | cat >>confdefs.h <<_ACEOF |
| 5550 | #define CXX_INCLUDE_ROOT "$withval" |
| 5551 | _ACEOF |
| 5552 | |
| 5553 | |
| 5554 | |
| 5555 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5556 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5557 | withval=$with_cxx_include_arch; |
| 5558 | else |
| 5559 | withval="" |
| 5560 | fi |
| 5561 | |
| 5562 | |
| 5563 | cat >>confdefs.h <<_ACEOF |
| 5564 | #define CXX_INCLUDE_ARCH "$withval" |
| 5565 | _ACEOF |
| 5566 | |
| 5567 | |
| 5568 | |
| 5569 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5570 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5571 | withval=$with_cxx_include_32bit_dir; |
| 5572 | else |
| 5573 | withval="" |
| 5574 | fi |
| 5575 | |
| 5576 | |
| 5577 | cat >>confdefs.h <<_ACEOF |
| 5578 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5579 | _ACEOF |
| 5580 | |
| 5581 | |
| 5582 | |
| 5583 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5584 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5585 | withval=$with_cxx_include_64bit_dir; |
| 5586 | else |
| 5587 | withval="" |
| 5588 | fi |
| 5589 | |
| 5590 | |
| 5591 | cat >>confdefs.h <<_ACEOF |
| 5592 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5593 | _ACEOF |
| 5594 | |
| 5595 | |
| 5596 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5597 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5598 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5599 | withval=$with_binutils_include; |
| 5600 | else |
| 5601 | withval=default |
| 5602 | fi |
| 5603 | |
| 5604 | case "$withval" in |
| 5605 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5606 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5607 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5608 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5609 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5610 | esac |
| 5611 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5612 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5613 | |
| 5614 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5615 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5616 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5617 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5618 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5619 | fi |
| 5620 | fi |
| 5621 | |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5622 | |
| 5623 | # Check whether --with-bug-report-url was given. |
| 5624 | if test "${with_bug_report_url+set}" = set; then |
| 5625 | withval=$with_bug_report_url; |
| 5626 | else |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5627 | withval="http://llvm.org/bugs/" |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5628 | fi |
| 5629 | |
| 5630 | |
| 5631 | cat >>confdefs.h <<_ACEOF |
| 5632 | #define BUG_REPORT_URL "$withval" |
| 5633 | _ACEOF |
| 5634 | |
| 5635 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5636 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5637 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5638 | enableval=$enable_libffi; case "$enableval" in |
| 5639 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5640 | no) llvm_cv_enable_libffi="no" ;; |
| 5641 | *) { { 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] | 5642 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5643 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5644 | esac |
| 5645 | else |
| 5646 | llvm_cv_enable_libffi=no |
| 5647 | fi |
| 5648 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5649 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5650 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5651 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 5652 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 5653 | if test "${lt_cv_path_NM+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 "$NM"; then |
| 5657 | # Let the user override the test. |
| 5658 | lt_cv_path_NM="$NM" |
| 5659 | else |
| 5660 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5661 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5662 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5663 | fi |
| 5664 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5665 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5666 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5667 | IFS="$lt_save_ifs" |
| 5668 | test -z "$ac_dir" && ac_dir=. |
| 5669 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5670 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5671 | # Check to see if the nm accepts a BSD-compat flag. |
| 5672 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5673 | # nm: unknown option "B" ignored |
| 5674 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5675 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5676 | */dev/null* | *'Invalid file or object type'*) |
| 5677 | lt_cv_path_NM="$tmp_nm -B" |
| 5678 | break |
| 5679 | ;; |
| 5680 | *) |
| 5681 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5682 | */dev/null*) |
| 5683 | lt_cv_path_NM="$tmp_nm -p" |
| 5684 | break |
| 5685 | ;; |
| 5686 | *) |
| 5687 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5688 | continue # so that we can try to find one that supports BSD flags |
| 5689 | ;; |
| 5690 | esac |
| 5691 | ;; |
| 5692 | esac |
| 5693 | fi |
| 5694 | done |
| 5695 | IFS="$lt_save_ifs" |
| 5696 | done |
| 5697 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5698 | fi |
| 5699 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5700 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 5701 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5702 | NM="$lt_cv_path_NM" |
| 5703 | |
| 5704 | |
| 5705 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5706 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 5707 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 5708 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5710 | else |
| 5711 | llvm_cv_gnu_make_command='' |
| 5712 | for a in "$MAKE" make gmake gnumake ; do |
| 5713 | if test -z "$a" ; then continue ; fi ; |
| 5714 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5715 | then |
| 5716 | llvm_cv_gnu_make_command=$a ; |
| 5717 | break; |
| 5718 | fi |
| 5719 | done |
| 5720 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5721 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 5722 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5723 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 5724 | ifGNUmake='' ; |
| 5725 | else |
| 5726 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5727 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 5728 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5729 | fi |
| 5730 | |
| 5731 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5732 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5733 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5734 | LN_S=$as_ln_s |
| 5735 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5736 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5737 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5738 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5739 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5740 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5741 | fi |
| 5742 | |
| 5743 | # Extract the first word of "cmp", so it can be a program name with args. |
| 5744 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5745 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5747 | if test "${ac_cv_path_CMP+set}" = set; then |
| 5748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5749 | else |
| 5750 | case $CMP in |
| 5751 | [\\/]* | ?:[\\/]*) |
| 5752 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 5753 | ;; |
| 5754 | *) |
| 5755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5756 | for as_dir in $PATH |
| 5757 | do |
| 5758 | IFS=$as_save_IFS |
| 5759 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5760 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5761 | 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] | 5762 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5763 | 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] | 5764 | break 2 |
| 5765 | fi |
| 5766 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5767 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5768 | IFS=$as_save_IFS |
| 5769 | |
| 5770 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 5771 | ;; |
| 5772 | esac |
| 5773 | fi |
| 5774 | CMP=$ac_cv_path_CMP |
| 5775 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5776 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 5777 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5778 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5779 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5780 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5781 | fi |
| 5782 | |
| 5783 | |
| 5784 | # Extract the first word of "cp", so it can be a program name with args. |
| 5785 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5786 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5788 | if test "${ac_cv_path_CP+set}" = set; then |
| 5789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5790 | else |
| 5791 | case $CP in |
| 5792 | [\\/]* | ?:[\\/]*) |
| 5793 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 5794 | ;; |
| 5795 | *) |
| 5796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5797 | for as_dir in $PATH |
| 5798 | do |
| 5799 | IFS=$as_save_IFS |
| 5800 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5802 | 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] | 5803 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5804 | 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] | 5805 | break 2 |
| 5806 | fi |
| 5807 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5808 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5809 | IFS=$as_save_IFS |
| 5810 | |
| 5811 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 5812 | ;; |
| 5813 | esac |
| 5814 | fi |
| 5815 | CP=$ac_cv_path_CP |
| 5816 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5817 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 5818 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5819 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5820 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5821 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5822 | fi |
| 5823 | |
| 5824 | |
| 5825 | # Extract the first word of "date", so it can be a program name with args. |
| 5826 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5827 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5829 | if test "${ac_cv_path_DATE+set}" = set; then |
| 5830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5831 | else |
| 5832 | case $DATE in |
| 5833 | [\\/]* | ?:[\\/]*) |
| 5834 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 5835 | ;; |
| 5836 | *) |
| 5837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5838 | for as_dir in $PATH |
| 5839 | do |
| 5840 | IFS=$as_save_IFS |
| 5841 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5843 | 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] | 5844 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5845 | 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] | 5846 | break 2 |
| 5847 | fi |
| 5848 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5849 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5850 | IFS=$as_save_IFS |
| 5851 | |
| 5852 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 5853 | ;; |
| 5854 | esac |
| 5855 | fi |
| 5856 | DATE=$ac_cv_path_DATE |
| 5857 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5858 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 5859 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5860 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5861 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5862 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5863 | fi |
| 5864 | |
| 5865 | |
| 5866 | # Extract the first word of "find", so it can be a program name with args. |
| 5867 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5870 | if test "${ac_cv_path_FIND+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5872 | else |
| 5873 | case $FIND in |
| 5874 | [\\/]* | ?:[\\/]*) |
| 5875 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 5876 | ;; |
| 5877 | *) |
| 5878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5879 | for as_dir in $PATH |
| 5880 | do |
| 5881 | IFS=$as_save_IFS |
| 5882 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5883 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5884 | 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] | 5885 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5886 | 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] | 5887 | break 2 |
| 5888 | fi |
| 5889 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5890 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5891 | IFS=$as_save_IFS |
| 5892 | |
| 5893 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 5894 | ;; |
| 5895 | esac |
| 5896 | fi |
| 5897 | FIND=$ac_cv_path_FIND |
| 5898 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5899 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 5900 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5901 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5902 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5903 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5904 | fi |
| 5905 | |
| 5906 | |
| 5907 | # Extract the first word of "grep", so it can be a program name with args. |
| 5908 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5909 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5911 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5913 | else |
| 5914 | case $GREP in |
| 5915 | [\\/]* | ?:[\\/]*) |
| 5916 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 5917 | ;; |
| 5918 | *) |
| 5919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5920 | for as_dir in $PATH |
| 5921 | do |
| 5922 | IFS=$as_save_IFS |
| 5923 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5924 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5925 | 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] | 5926 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5927 | 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] | 5928 | break 2 |
| 5929 | fi |
| 5930 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5931 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5932 | IFS=$as_save_IFS |
| 5933 | |
| 5934 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 5935 | ;; |
| 5936 | esac |
| 5937 | fi |
| 5938 | GREP=$ac_cv_path_GREP |
| 5939 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5940 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 5941 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5942 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5943 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5944 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5945 | fi |
| 5946 | |
| 5947 | |
| 5948 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 5949 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5950 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5952 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 5953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5954 | else |
| 5955 | case $MKDIR in |
| 5956 | [\\/]* | ?:[\\/]*) |
| 5957 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 5958 | ;; |
| 5959 | *) |
| 5960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5961 | for as_dir in $PATH |
| 5962 | do |
| 5963 | IFS=$as_save_IFS |
| 5964 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5965 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5966 | 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] | 5967 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5968 | 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] | 5969 | break 2 |
| 5970 | fi |
| 5971 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5972 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5973 | IFS=$as_save_IFS |
| 5974 | |
| 5975 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 5976 | ;; |
| 5977 | esac |
| 5978 | fi |
| 5979 | MKDIR=$ac_cv_path_MKDIR |
| 5980 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5981 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 5982 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5983 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5984 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5985 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5986 | fi |
| 5987 | |
| 5988 | |
| 5989 | # Extract the first word of "mv", so it can be a program name with args. |
| 5990 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5991 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5993 | if test "${ac_cv_path_MV+set}" = set; then |
| 5994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5995 | else |
| 5996 | case $MV in |
| 5997 | [\\/]* | ?:[\\/]*) |
| 5998 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 5999 | ;; |
| 6000 | *) |
| 6001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6002 | for as_dir in $PATH |
| 6003 | do |
| 6004 | IFS=$as_save_IFS |
| 6005 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6006 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6007 | 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] | 6008 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6009 | 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] | 6010 | break 2 |
| 6011 | fi |
| 6012 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6013 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6014 | IFS=$as_save_IFS |
| 6015 | |
| 6016 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6017 | ;; |
| 6018 | esac |
| 6019 | fi |
| 6020 | MV=$ac_cv_path_MV |
| 6021 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6022 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6023 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6024 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6025 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6026 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6027 | fi |
| 6028 | |
| 6029 | |
| 6030 | if test -n "$ac_tool_prefix"; then |
| 6031 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6032 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6035 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6037 | else |
| 6038 | if test -n "$RANLIB"; then |
| 6039 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6040 | else |
| 6041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6042 | for as_dir in $PATH |
| 6043 | do |
| 6044 | IFS=$as_save_IFS |
| 6045 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6046 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6047 | 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] | 6048 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6049 | 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] | 6050 | break 2 |
| 6051 | fi |
| 6052 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6053 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6054 | IFS=$as_save_IFS |
| 6055 | |
| 6056 | fi |
| 6057 | fi |
| 6058 | RANLIB=$ac_cv_prog_RANLIB |
| 6059 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6060 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6061 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6062 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6063 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6064 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6065 | fi |
| 6066 | |
| 6067 | |
| 6068 | fi |
| 6069 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6070 | ac_ct_RANLIB=$RANLIB |
| 6071 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6072 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6073 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6075 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6077 | else |
| 6078 | if test -n "$ac_ct_RANLIB"; then |
| 6079 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6080 | else |
| 6081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6082 | for as_dir in $PATH |
| 6083 | do |
| 6084 | IFS=$as_save_IFS |
| 6085 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6086 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6087 | 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] | 6088 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6089 | 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] | 6090 | break 2 |
| 6091 | fi |
| 6092 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6093 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6094 | IFS=$as_save_IFS |
| 6095 | |
| 6096 | fi |
| 6097 | fi |
| 6098 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6099 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6100 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6101 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6102 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6103 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6104 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6105 | fi |
| 6106 | |
| 6107 | if test "x$ac_ct_RANLIB" = x; then |
| 6108 | RANLIB=":" |
| 6109 | else |
| 6110 | case $cross_compiling:$ac_tool_warned in |
| 6111 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6112 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6113 | whose name does not start with the host triplet. If you think this |
| 6114 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6115 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6116 | whose name does not start with the host triplet. If you think this |
| 6117 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6118 | ac_tool_warned=yes ;; |
| 6119 | esac |
| 6120 | RANLIB=$ac_ct_RANLIB |
| 6121 | fi |
| 6122 | else |
| 6123 | RANLIB="$ac_cv_prog_RANLIB" |
| 6124 | fi |
| 6125 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6126 | if test -n "$ac_tool_prefix"; then |
| 6127 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6128 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6131 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6133 | else |
| 6134 | if test -n "$AR"; then |
| 6135 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6136 | else |
| 6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6138 | for as_dir in $PATH |
| 6139 | do |
| 6140 | IFS=$as_save_IFS |
| 6141 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6142 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6143 | 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] | 6144 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6145 | 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] | 6146 | break 2 |
| 6147 | fi |
| 6148 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6149 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6150 | IFS=$as_save_IFS |
| 6151 | |
| 6152 | fi |
| 6153 | fi |
| 6154 | AR=$ac_cv_prog_AR |
| 6155 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6156 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6157 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6159 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6160 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6161 | fi |
| 6162 | |
| 6163 | |
| 6164 | fi |
| 6165 | if test -z "$ac_cv_prog_AR"; then |
| 6166 | ac_ct_AR=$AR |
| 6167 | # Extract the first word of "ar", so it can be a program name with args. |
| 6168 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6171 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6173 | else |
| 6174 | if test -n "$ac_ct_AR"; then |
| 6175 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6176 | else |
| 6177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6178 | for as_dir in $PATH |
| 6179 | do |
| 6180 | IFS=$as_save_IFS |
| 6181 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6182 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6183 | 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] | 6184 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6185 | 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] | 6186 | break 2 |
| 6187 | fi |
| 6188 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6189 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6190 | IFS=$as_save_IFS |
| 6191 | |
| 6192 | fi |
| 6193 | fi |
| 6194 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6195 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6196 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6197 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6198 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6199 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6200 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6201 | fi |
| 6202 | |
| 6203 | if test "x$ac_ct_AR" = x; then |
| 6204 | AR="false" |
| 6205 | else |
| 6206 | case $cross_compiling:$ac_tool_warned in |
| 6207 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6208 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6209 | whose name does not start with the host triplet. If you think this |
| 6210 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6211 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6212 | whose name does not start with the host triplet. If you think this |
| 6213 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6214 | ac_tool_warned=yes ;; |
| 6215 | esac |
| 6216 | AR=$ac_ct_AR |
| 6217 | fi |
| 6218 | else |
| 6219 | AR="$ac_cv_prog_AR" |
| 6220 | fi |
| 6221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6222 | # Extract the first word of "rm", so it can be a program name with args. |
| 6223 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6224 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6226 | if test "${ac_cv_path_RM+set}" = set; then |
| 6227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6228 | else |
| 6229 | case $RM in |
| 6230 | [\\/]* | ?:[\\/]*) |
| 6231 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6232 | ;; |
| 6233 | *) |
| 6234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6235 | for as_dir in $PATH |
| 6236 | do |
| 6237 | IFS=$as_save_IFS |
| 6238 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6239 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6240 | 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] | 6241 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6242 | 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] | 6243 | break 2 |
| 6244 | fi |
| 6245 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6246 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6247 | IFS=$as_save_IFS |
| 6248 | |
| 6249 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6250 | ;; |
| 6251 | esac |
| 6252 | fi |
| 6253 | RM=$ac_cv_path_RM |
| 6254 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6255 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6256 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6257 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6258 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6259 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6260 | fi |
| 6261 | |
| 6262 | |
| 6263 | # Extract the first word of "sed", so it can be a program name with args. |
| 6264 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6265 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6267 | if test "${ac_cv_path_SED+set}" = set; then |
| 6268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6269 | else |
| 6270 | case $SED in |
| 6271 | [\\/]* | ?:[\\/]*) |
| 6272 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6273 | ;; |
| 6274 | *) |
| 6275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6276 | for as_dir in $PATH |
| 6277 | do |
| 6278 | IFS=$as_save_IFS |
| 6279 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6280 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6281 | 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] | 6282 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6283 | 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] | 6284 | break 2 |
| 6285 | fi |
| 6286 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6287 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6288 | IFS=$as_save_IFS |
| 6289 | |
| 6290 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6291 | ;; |
| 6292 | esac |
| 6293 | fi |
| 6294 | SED=$ac_cv_path_SED |
| 6295 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6296 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6297 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6298 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6299 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6300 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6301 | fi |
| 6302 | |
| 6303 | |
| 6304 | # Extract the first word of "tar", so it can be a program name with args. |
| 6305 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6308 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6310 | else |
| 6311 | case $TAR in |
| 6312 | [\\/]* | ?:[\\/]*) |
| 6313 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6314 | ;; |
| 6315 | *) |
| 6316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6317 | for as_dir in $PATH |
| 6318 | do |
| 6319 | IFS=$as_save_IFS |
| 6320 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6321 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6322 | 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] | 6323 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6324 | 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] | 6325 | break 2 |
| 6326 | fi |
| 6327 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6328 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6329 | IFS=$as_save_IFS |
| 6330 | |
| 6331 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6332 | ;; |
| 6333 | esac |
| 6334 | fi |
| 6335 | TAR=$ac_cv_path_TAR |
| 6336 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6337 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6338 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6339 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6340 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6341 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6342 | fi |
| 6343 | |
| 6344 | |
| 6345 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6346 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6347 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6349 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6351 | else |
| 6352 | case $BINPWD in |
| 6353 | [\\/]* | ?:[\\/]*) |
| 6354 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6355 | ;; |
| 6356 | *) |
| 6357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6358 | for as_dir in $PATH |
| 6359 | do |
| 6360 | IFS=$as_save_IFS |
| 6361 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6362 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6363 | 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] | 6364 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6365 | 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] | 6366 | break 2 |
| 6367 | fi |
| 6368 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6369 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6370 | IFS=$as_save_IFS |
| 6371 | |
| 6372 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6373 | ;; |
| 6374 | esac |
| 6375 | fi |
| 6376 | BINPWD=$ac_cv_path_BINPWD |
| 6377 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6378 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6379 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6380 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6381 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6382 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6383 | fi |
| 6384 | |
| 6385 | |
| 6386 | |
| 6387 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6388 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6389 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6391 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6393 | else |
| 6394 | case $GRAPHVIZ in |
| 6395 | [\\/]* | ?:[\\/]*) |
| 6396 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6397 | ;; |
| 6398 | *) |
| 6399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6400 | for as_dir in $PATH |
| 6401 | do |
| 6402 | IFS=$as_save_IFS |
| 6403 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6405 | 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] | 6406 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6407 | 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] | 6408 | break 2 |
| 6409 | fi |
| 6410 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6411 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6412 | IFS=$as_save_IFS |
| 6413 | |
| 6414 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6415 | ;; |
| 6416 | esac |
| 6417 | fi |
| 6418 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6419 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6420 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 6421 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6422 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6423 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6424 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6425 | fi |
| 6426 | |
| 6427 | |
| 6428 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6429 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6430 | cat >>confdefs.h <<\_ACEOF |
| 6431 | #define HAVE_GRAPHVIZ 1 |
| 6432 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6433 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6434 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6435 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6436 | fi |
| 6437 | |
| 6438 | cat >>confdefs.h <<_ACEOF |
| 6439 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6440 | _ACEOF |
| 6441 | |
| 6442 | fi |
| 6443 | # Extract the first word of "dot", so it can be a program name with args. |
| 6444 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6447 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6449 | else |
| 6450 | case $DOT in |
| 6451 | [\\/]* | ?:[\\/]*) |
| 6452 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6453 | ;; |
| 6454 | *) |
| 6455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6456 | for as_dir in $PATH |
| 6457 | do |
| 6458 | IFS=$as_save_IFS |
| 6459 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6461 | 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] | 6462 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6463 | 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] | 6464 | break 2 |
| 6465 | fi |
| 6466 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6467 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6468 | IFS=$as_save_IFS |
| 6469 | |
| 6470 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6471 | ;; |
| 6472 | esac |
| 6473 | fi |
| 6474 | DOT=$ac_cv_path_DOT |
| 6475 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6476 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6477 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6478 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6479 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6480 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6481 | fi |
| 6482 | |
| 6483 | |
| 6484 | if test "$DOT" != "echo dot" ; then |
| 6485 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6486 | cat >>confdefs.h <<\_ACEOF |
| 6487 | #define HAVE_DOT 1 |
| 6488 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6489 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6490 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6491 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6492 | fi |
| 6493 | |
| 6494 | cat >>confdefs.h <<_ACEOF |
| 6495 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6496 | _ACEOF |
| 6497 | |
| 6498 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6499 | # Extract the first word of "fdp", so it can be a program name with args. |
| 6500 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6503 | if test "${ac_cv_path_FDP+set}" = set; then |
| 6504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6505 | else |
| 6506 | case $FDP in |
| 6507 | [\\/]* | ?:[\\/]*) |
| 6508 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 6509 | ;; |
| 6510 | *) |
| 6511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6512 | for as_dir in $PATH |
| 6513 | do |
| 6514 | IFS=$as_save_IFS |
| 6515 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6516 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6517 | 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] | 6518 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6519 | 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] | 6520 | break 2 |
| 6521 | fi |
| 6522 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6523 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6524 | IFS=$as_save_IFS |
| 6525 | |
| 6526 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 6527 | ;; |
| 6528 | esac |
| 6529 | fi |
| 6530 | FDP=$ac_cv_path_FDP |
| 6531 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6532 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 6533 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6534 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6535 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6536 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6537 | fi |
| 6538 | |
| 6539 | |
| 6540 | if test "$FDP" != "echo fdp" ; then |
| 6541 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6542 | cat >>confdefs.h <<\_ACEOF |
| 6543 | #define HAVE_FDP 1 |
| 6544 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6545 | |
| 6546 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6547 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6548 | fi |
| 6549 | |
| 6550 | cat >>confdefs.h <<_ACEOF |
| 6551 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 6552 | _ACEOF |
| 6553 | |
| 6554 | fi |
| 6555 | # Extract the first word of "neato", so it can be a program name with args. |
| 6556 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6559 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 6560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6561 | else |
| 6562 | case $NEATO in |
| 6563 | [\\/]* | ?:[\\/]*) |
| 6564 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 6565 | ;; |
| 6566 | *) |
| 6567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6568 | for as_dir in $PATH |
| 6569 | do |
| 6570 | IFS=$as_save_IFS |
| 6571 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6573 | 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] | 6574 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6575 | 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] | 6576 | break 2 |
| 6577 | fi |
| 6578 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6579 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6580 | IFS=$as_save_IFS |
| 6581 | |
| 6582 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 6583 | ;; |
| 6584 | esac |
| 6585 | fi |
| 6586 | NEATO=$ac_cv_path_NEATO |
| 6587 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6588 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 6589 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6590 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6591 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6592 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6593 | fi |
| 6594 | |
| 6595 | |
| 6596 | if test "$NEATO" != "echo neato" ; then |
| 6597 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6598 | cat >>confdefs.h <<\_ACEOF |
| 6599 | #define HAVE_NEATO 1 |
| 6600 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6601 | |
| 6602 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6603 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6604 | fi |
| 6605 | |
| 6606 | cat >>confdefs.h <<_ACEOF |
| 6607 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 6608 | _ACEOF |
| 6609 | |
| 6610 | fi |
| 6611 | # Extract the first word of "twopi", so it can be a program name with args. |
| 6612 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6613 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6615 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 6616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6617 | else |
| 6618 | case $TWOPI in |
| 6619 | [\\/]* | ?:[\\/]*) |
| 6620 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 6621 | ;; |
| 6622 | *) |
| 6623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6624 | for as_dir in $PATH |
| 6625 | do |
| 6626 | IFS=$as_save_IFS |
| 6627 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6628 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6629 | 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] | 6630 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6631 | 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] | 6632 | break 2 |
| 6633 | fi |
| 6634 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6635 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6636 | IFS=$as_save_IFS |
| 6637 | |
| 6638 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 6639 | ;; |
| 6640 | esac |
| 6641 | fi |
| 6642 | TWOPI=$ac_cv_path_TWOPI |
| 6643 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6644 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 6645 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6646 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6647 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6648 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6649 | fi |
| 6650 | |
| 6651 | |
| 6652 | if test "$TWOPI" != "echo twopi" ; then |
| 6653 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6654 | cat >>confdefs.h <<\_ACEOF |
| 6655 | #define HAVE_TWOPI 1 |
| 6656 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6657 | |
| 6658 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6659 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6660 | fi |
| 6661 | |
| 6662 | cat >>confdefs.h <<_ACEOF |
| 6663 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 6664 | _ACEOF |
| 6665 | |
| 6666 | fi |
| 6667 | # Extract the first word of "circo", so it can be a program name with args. |
| 6668 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6669 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6671 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 6672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6673 | else |
| 6674 | case $CIRCO in |
| 6675 | [\\/]* | ?:[\\/]*) |
| 6676 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 6677 | ;; |
| 6678 | *) |
| 6679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6680 | for as_dir in $PATH |
| 6681 | do |
| 6682 | IFS=$as_save_IFS |
| 6683 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6685 | 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] | 6686 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6687 | 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] | 6688 | break 2 |
| 6689 | fi |
| 6690 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6691 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6692 | IFS=$as_save_IFS |
| 6693 | |
| 6694 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 6695 | ;; |
| 6696 | esac |
| 6697 | fi |
| 6698 | CIRCO=$ac_cv_path_CIRCO |
| 6699 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6700 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 6701 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6702 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6703 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6704 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6705 | fi |
| 6706 | |
| 6707 | |
| 6708 | if test "$CIRCO" != "echo circo" ; then |
| 6709 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6710 | cat >>confdefs.h <<\_ACEOF |
| 6711 | #define HAVE_CIRCO 1 |
| 6712 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6713 | |
| 6714 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6715 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6716 | fi |
| 6717 | |
| 6718 | cat >>confdefs.h <<_ACEOF |
| 6719 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 6720 | _ACEOF |
| 6721 | |
| 6722 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6723 | for ac_prog in gv gsview32 |
| 6724 | do |
| 6725 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6726 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6729 | if test "${ac_cv_path_GV+set}" = set; then |
| 6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6731 | else |
| 6732 | case $GV in |
| 6733 | [\\/]* | ?:[\\/]*) |
| 6734 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6735 | ;; |
| 6736 | *) |
| 6737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6738 | for as_dir in $PATH |
| 6739 | do |
| 6740 | IFS=$as_save_IFS |
| 6741 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6742 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6743 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6744 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6746 | break 2 |
| 6747 | fi |
| 6748 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6749 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6750 | IFS=$as_save_IFS |
| 6751 | |
| 6752 | ;; |
| 6753 | esac |
| 6754 | fi |
| 6755 | GV=$ac_cv_path_GV |
| 6756 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6757 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 6758 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6759 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6760 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6761 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6762 | fi |
| 6763 | |
| 6764 | |
| 6765 | test -n "$GV" && break |
| 6766 | done |
| 6767 | test -n "$GV" || GV="echo gv" |
| 6768 | |
| 6769 | if test "$GV" != "echo gv" ; then |
| 6770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6771 | cat >>confdefs.h <<\_ACEOF |
| 6772 | #define HAVE_GV 1 |
| 6773 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6774 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6775 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6776 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6777 | fi |
| 6778 | |
| 6779 | cat >>confdefs.h <<_ACEOF |
| 6780 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 6781 | _ACEOF |
| 6782 | |
| 6783 | fi |
| 6784 | # Extract the first word of "dotty", so it can be a program name with args. |
| 6785 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6786 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6788 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 6789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6790 | else |
| 6791 | case $DOTTY in |
| 6792 | [\\/]* | ?:[\\/]*) |
| 6793 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 6794 | ;; |
| 6795 | *) |
| 6796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6797 | for as_dir in $PATH |
| 6798 | do |
| 6799 | IFS=$as_save_IFS |
| 6800 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6802 | 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] | 6803 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6804 | 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] | 6805 | break 2 |
| 6806 | fi |
| 6807 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6808 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6809 | IFS=$as_save_IFS |
| 6810 | |
| 6811 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 6812 | ;; |
| 6813 | esac |
| 6814 | fi |
| 6815 | DOTTY=$ac_cv_path_DOTTY |
| 6816 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6817 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 6818 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6819 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6820 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6821 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6822 | fi |
| 6823 | |
| 6824 | |
| 6825 | if test "$DOTTY" != "echo dotty" ; then |
| 6826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6827 | cat >>confdefs.h <<\_ACEOF |
| 6828 | #define HAVE_DOTTY 1 |
| 6829 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6830 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6831 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6832 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6833 | fi |
| 6834 | |
| 6835 | cat >>confdefs.h <<_ACEOF |
| 6836 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 6837 | _ACEOF |
| 6838 | |
| 6839 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 6840 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 6841 | set dummy xdot.py; ac_word=$2 |
| 6842 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6844 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 6845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6846 | else |
| 6847 | case $XDOT_PY in |
| 6848 | [\\/]* | ?:[\\/]*) |
| 6849 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 6850 | ;; |
| 6851 | *) |
| 6852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6853 | for as_dir in $PATH |
| 6854 | do |
| 6855 | IFS=$as_save_IFS |
| 6856 | test -z "$as_dir" && as_dir=. |
| 6857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6859 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 6860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6861 | break 2 |
| 6862 | fi |
| 6863 | done |
| 6864 | done |
| 6865 | IFS=$as_save_IFS |
| 6866 | |
| 6867 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 6868 | ;; |
| 6869 | esac |
| 6870 | fi |
| 6871 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 6872 | if test -n "$XDOT_PY"; then |
| 6873 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 6874 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 6875 | else |
| 6876 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6877 | echo "${ECHO_T}no" >&6; } |
| 6878 | fi |
| 6879 | |
| 6880 | |
| 6881 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 6882 | |
| 6883 | cat >>confdefs.h <<\_ACEOF |
| 6884 | #define HAVE_XDOT_PY 1 |
| 6885 | _ACEOF |
| 6886 | |
| 6887 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6888 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6889 | fi |
| 6890 | |
| 6891 | cat >>confdefs.h <<_ACEOF |
| 6892 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 6893 | _ACEOF |
| 6894 | |
| 6895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6896 | |
| 6897 | |
| 6898 | # Extract the first word of "perl", so it can be a program name with args. |
| 6899 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6902 | if test "${ac_cv_path_PERL+set}" = set; then |
| 6903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6904 | else |
| 6905 | case $PERL in |
| 6906 | [\\/]* | ?:[\\/]*) |
| 6907 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 6908 | ;; |
| 6909 | *) |
| 6910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6911 | for as_dir in $PATH |
| 6912 | do |
| 6913 | IFS=$as_save_IFS |
| 6914 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6915 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6916 | 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] | 6917 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6918 | 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] | 6919 | break 2 |
| 6920 | fi |
| 6921 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6922 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6923 | IFS=$as_save_IFS |
| 6924 | |
| 6925 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 6926 | ;; |
| 6927 | esac |
| 6928 | fi |
| 6929 | PERL=$ac_cv_path_PERL |
| 6930 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6931 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 6932 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6933 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6934 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6935 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6936 | fi |
| 6937 | |
| 6938 | |
| 6939 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6940 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 6941 | 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] | 6942 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6943 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6944 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6945 | else |
| 6946 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6947 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 6948 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6949 | fi |
| 6950 | fi |
| 6951 | |
| 6952 | |
| 6953 | if test x"$PERL" = xnone; then |
| 6954 | HAVE_PERL=0 |
| 6955 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6956 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 6957 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 6958 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6959 | else |
| 6960 | HAVE_PERL=1 |
| 6961 | |
| 6962 | fi |
| 6963 | |
| 6964 | # Find a good install program. We prefer a C program (faster), |
| 6965 | # so one script is as good as another. But avoid the broken or |
| 6966 | # incompatible versions: |
| 6967 | # SysV /etc/install, /usr/sbin/install |
| 6968 | # SunOS /usr/etc/install |
| 6969 | # IRIX /sbin/install |
| 6970 | # AIX /bin/install |
| 6971 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6972 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6973 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6974 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6975 | # OS/2's system install, which has a completely different semantic |
| 6976 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6977 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6978 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6979 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6980 | if test "${ac_cv_path_install+set}" = set; then |
| 6981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6982 | else |
| 6983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6984 | for as_dir in $PATH |
| 6985 | do |
| 6986 | IFS=$as_save_IFS |
| 6987 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6988 | # Account for people who put trailing slashes in PATH elements. |
| 6989 | case $as_dir/ in |
| 6990 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6991 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6992 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6993 | /usr/ucb/* ) ;; |
| 6994 | *) |
| 6995 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6996 | # Don't use installbsd from OSF since it installs stuff as root |
| 6997 | # by default. |
| 6998 | for ac_prog in ginstall scoinst install; do |
| 6999 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7000 | 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] | 7001 | if test $ac_prog = install && |
| 7002 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7003 | # AIX install. It has an incompatible calling convention. |
| 7004 | : |
| 7005 | elif test $ac_prog = install && |
| 7006 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7007 | # program-specific install script used by HP pwplus--don't use. |
| 7008 | : |
| 7009 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7010 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7011 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7012 | fi |
| 7013 | fi |
| 7014 | done |
| 7015 | done |
| 7016 | ;; |
| 7017 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7018 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7019 | IFS=$as_save_IFS |
| 7020 | |
| 7021 | |
| 7022 | fi |
| 7023 | if test "${ac_cv_path_install+set}" = set; then |
| 7024 | INSTALL=$ac_cv_path_install |
| 7025 | else |
| 7026 | # As a last resort, use the slow shell script. Don't cache a |
| 7027 | # value for INSTALL within a source directory, because that will |
| 7028 | # break other packages using the cache if that directory is |
| 7029 | # removed, or if the value is a relative name. |
| 7030 | INSTALL=$ac_install_sh |
| 7031 | fi |
| 7032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7033 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7034 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7035 | |
| 7036 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7037 | # It thinks the first close brace ends the variable substitution. |
| 7038 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7039 | |
| 7040 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7041 | |
| 7042 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7043 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7044 | case "$INSTALL" in |
| 7045 | [\\/$]* | ?:[\\/]* ) ;; |
| 7046 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 7047 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7048 | |
| 7049 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7050 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7051 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7053 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7055 | else |
| 7056 | case $BZIP2 in |
| 7057 | [\\/]* | ?:[\\/]*) |
| 7058 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7059 | ;; |
| 7060 | *) |
| 7061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7062 | for as_dir in $PATH |
| 7063 | do |
| 7064 | IFS=$as_save_IFS |
| 7065 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7066 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7067 | 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] | 7068 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7069 | 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] | 7070 | break 2 |
| 7071 | fi |
| 7072 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7073 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7074 | IFS=$as_save_IFS |
| 7075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7076 | ;; |
| 7077 | esac |
| 7078 | fi |
| 7079 | BZIP2=$ac_cv_path_BZIP2 |
| 7080 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7081 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7082 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7083 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7084 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7085 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7086 | fi |
| 7087 | |
| 7088 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7089 | # Extract the first word of "cat", so it can be a program name with args. |
| 7090 | set dummy cat; ac_word=$2 |
| 7091 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7093 | if test "${ac_cv_path_CAT+set}" = set; then |
| 7094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7095 | else |
| 7096 | case $CAT in |
| 7097 | [\\/]* | ?:[\\/]*) |
| 7098 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 7099 | ;; |
| 7100 | *) |
| 7101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7102 | for as_dir in $PATH |
| 7103 | do |
| 7104 | IFS=$as_save_IFS |
| 7105 | test -z "$as_dir" && as_dir=. |
| 7106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7108 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 7109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7110 | break 2 |
| 7111 | fi |
| 7112 | done |
| 7113 | done |
| 7114 | IFS=$as_save_IFS |
| 7115 | |
| 7116 | ;; |
| 7117 | esac |
| 7118 | fi |
| 7119 | CAT=$ac_cv_path_CAT |
| 7120 | if test -n "$CAT"; then |
| 7121 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 7122 | echo "${ECHO_T}$CAT" >&6; } |
| 7123 | else |
| 7124 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7125 | echo "${ECHO_T}no" >&6; } |
| 7126 | fi |
| 7127 | |
| 7128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7129 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7130 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7131 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7133 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7135 | else |
| 7136 | case $DOXYGEN in |
| 7137 | [\\/]* | ?:[\\/]*) |
| 7138 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7139 | ;; |
| 7140 | *) |
| 7141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7142 | for as_dir in $PATH |
| 7143 | do |
| 7144 | IFS=$as_save_IFS |
| 7145 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7147 | 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] | 7148 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7149 | 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] | 7150 | break 2 |
| 7151 | fi |
| 7152 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7153 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7154 | IFS=$as_save_IFS |
| 7155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7156 | ;; |
| 7157 | esac |
| 7158 | fi |
| 7159 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7160 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7161 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7162 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7163 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7164 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7165 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7166 | fi |
| 7167 | |
| 7168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7169 | # Extract the first word of "groff", so it can be a program name with args. |
| 7170 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7171 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7173 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7175 | else |
| 7176 | case $GROFF in |
| 7177 | [\\/]* | ?:[\\/]*) |
| 7178 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7179 | ;; |
| 7180 | *) |
| 7181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7182 | for as_dir in $PATH |
| 7183 | do |
| 7184 | IFS=$as_save_IFS |
| 7185 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7186 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7187 | 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] | 7188 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7189 | 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] | 7190 | break 2 |
| 7191 | fi |
| 7192 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7193 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7194 | IFS=$as_save_IFS |
| 7195 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7196 | ;; |
| 7197 | esac |
| 7198 | fi |
| 7199 | GROFF=$ac_cv_path_GROFF |
| 7200 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7201 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7202 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7203 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7204 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7205 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7206 | fi |
| 7207 | |
| 7208 | |
| 7209 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7210 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7211 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7212 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7213 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7215 | else |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7216 | case $GZIPBIN in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7217 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7218 | ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7219 | ;; |
| 7220 | *) |
| 7221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7222 | for as_dir in $PATH |
| 7223 | do |
| 7224 | IFS=$as_save_IFS |
| 7225 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7226 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7228 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7229 | 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] | 7230 | break 2 |
| 7231 | fi |
| 7232 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7233 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7234 | IFS=$as_save_IFS |
| 7235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7236 | ;; |
| 7237 | esac |
| 7238 | fi |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7239 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 7240 | if test -n "$GZIPBIN"; then |
| 7241 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 7242 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7243 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7244 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7245 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7246 | fi |
| 7247 | |
| 7248 | |
| 7249 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7250 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7251 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7253 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7255 | else |
| 7256 | case $POD2HTML in |
| 7257 | [\\/]* | ?:[\\/]*) |
| 7258 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7259 | ;; |
| 7260 | *) |
| 7261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7262 | for as_dir in $PATH |
| 7263 | do |
| 7264 | IFS=$as_save_IFS |
| 7265 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7266 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7267 | 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] | 7268 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7269 | 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] | 7270 | break 2 |
| 7271 | fi |
| 7272 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7273 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7274 | IFS=$as_save_IFS |
| 7275 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7276 | ;; |
| 7277 | esac |
| 7278 | fi |
| 7279 | POD2HTML=$ac_cv_path_POD2HTML |
| 7280 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7281 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7282 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7283 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7284 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7285 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7286 | fi |
| 7287 | |
| 7288 | |
| 7289 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7290 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7291 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7293 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7295 | else |
| 7296 | case $POD2MAN in |
| 7297 | [\\/]* | ?:[\\/]*) |
| 7298 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7299 | ;; |
| 7300 | *) |
| 7301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7302 | for as_dir in $PATH |
| 7303 | do |
| 7304 | IFS=$as_save_IFS |
| 7305 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7306 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7307 | 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] | 7308 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7309 | 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] | 7310 | break 2 |
| 7311 | fi |
| 7312 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7313 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7314 | IFS=$as_save_IFS |
| 7315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7316 | ;; |
| 7317 | esac |
| 7318 | fi |
| 7319 | POD2MAN=$ac_cv_path_POD2MAN |
| 7320 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7321 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7322 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7323 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7324 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7325 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7326 | fi |
| 7327 | |
| 7328 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7329 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 7330 | set dummy pdfroff; ac_word=$2 |
| 7331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7333 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 7334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7335 | else |
| 7336 | case $PDFROFF in |
| 7337 | [\\/]* | ?:[\\/]*) |
| 7338 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 7339 | ;; |
| 7340 | *) |
| 7341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7342 | for as_dir in $PATH |
| 7343 | do |
| 7344 | IFS=$as_save_IFS |
| 7345 | test -z "$as_dir" && as_dir=. |
| 7346 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7348 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7349 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7350 | break 2 |
| 7351 | fi |
| 7352 | done |
| 7353 | done |
| 7354 | IFS=$as_save_IFS |
| 7355 | |
| 7356 | ;; |
| 7357 | esac |
| 7358 | fi |
| 7359 | PDFROFF=$ac_cv_path_PDFROFF |
| 7360 | if test -n "$PDFROFF"; then |
| 7361 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 7362 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 7363 | else |
| 7364 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7365 | echo "${ECHO_T}no" >&6; } |
| 7366 | fi |
| 7367 | |
| 7368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7369 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7370 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7373 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7375 | else |
| 7376 | case $RUNTEST in |
| 7377 | [\\/]* | ?:[\\/]*) |
| 7378 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7379 | ;; |
| 7380 | *) |
| 7381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7382 | for as_dir in $PATH |
| 7383 | do |
| 7384 | IFS=$as_save_IFS |
| 7385 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7386 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7387 | 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] | 7388 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7389 | 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] | 7390 | break 2 |
| 7391 | fi |
| 7392 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7393 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7394 | IFS=$as_save_IFS |
| 7395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7396 | ;; |
| 7397 | esac |
| 7398 | fi |
| 7399 | RUNTEST=$ac_cv_path_RUNTEST |
| 7400 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7401 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7402 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7403 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7404 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7405 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7406 | fi |
| 7407 | |
| 7408 | |
| 7409 | |
| 7410 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7411 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7412 | 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] | 7413 | |
| 7414 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7415 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7416 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7417 | else |
| 7418 | with_tclinclude='' |
| 7419 | fi |
| 7420 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7421 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7423 | else |
| 7424 | |
| 7425 | if test x"${with_tclinclude}" != x ; then |
| 7426 | if test -f ${with_tclinclude}/tclsh ; then |
| 7427 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7428 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7429 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7430 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7431 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7432 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7433 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7434 | fi |
| 7435 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7436 | fi |
| 7437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7438 | |
| 7439 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7440 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7441 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7442 | 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 |
| 7443 | do |
| 7444 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7445 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7446 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7448 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7450 | else |
| 7451 | case $TCLSH in |
| 7452 | [\\/]* | ?:[\\/]*) |
| 7453 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7454 | ;; |
| 7455 | *) |
| 7456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7457 | for as_dir in $PATH |
| 7458 | do |
| 7459 | IFS=$as_save_IFS |
| 7460 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7462 | 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] | 7463 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7464 | 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] | 7465 | break 2 |
| 7466 | fi |
| 7467 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7468 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7469 | IFS=$as_save_IFS |
| 7470 | |
| 7471 | ;; |
| 7472 | esac |
| 7473 | fi |
| 7474 | TCLSH=$ac_cv_path_TCLSH |
| 7475 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7476 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7477 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7478 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7479 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7480 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7481 | fi |
| 7482 | |
| 7483 | |
| 7484 | test -n "$TCLSH" && break |
| 7485 | done |
| 7486 | |
| 7487 | if test x"${TCLSH}" = x ; then |
| 7488 | ac_cv_path_tclsh=''; |
| 7489 | else |
| 7490 | ac_cv_path_tclsh="${TCLSH}"; |
| 7491 | fi |
| 7492 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7493 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7494 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7495 | TCLSH="${ac_cv_path_tclsh}" |
| 7496 | |
| 7497 | fi |
| 7498 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7499 | # Extract the first word of "zip", so it can be a program name with args. |
| 7500 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7503 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7505 | else |
| 7506 | case $ZIP in |
| 7507 | [\\/]* | ?:[\\/]*) |
| 7508 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7509 | ;; |
| 7510 | *) |
| 7511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7512 | for as_dir in $PATH |
| 7513 | do |
| 7514 | IFS=$as_save_IFS |
| 7515 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7516 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7517 | 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] | 7518 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7519 | 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] | 7520 | break 2 |
| 7521 | fi |
| 7522 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7523 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7524 | IFS=$as_save_IFS |
| 7525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7526 | ;; |
| 7527 | esac |
| 7528 | fi |
| 7529 | ZIP=$ac_cv_path_ZIP |
| 7530 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7531 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7532 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7533 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7534 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7535 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7536 | fi |
| 7537 | |
| 7538 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7539 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7540 | do |
| 7541 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7542 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7543 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7545 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7547 | else |
| 7548 | case $OCAMLC in |
| 7549 | [\\/]* | ?:[\\/]*) |
| 7550 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7551 | ;; |
| 7552 | *) |
| 7553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7554 | for as_dir in $PATH |
| 7555 | do |
| 7556 | IFS=$as_save_IFS |
| 7557 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7559 | 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] | 7560 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7561 | 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] | 7562 | break 2 |
| 7563 | fi |
| 7564 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7565 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7566 | IFS=$as_save_IFS |
| 7567 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7568 | ;; |
| 7569 | esac |
| 7570 | fi |
| 7571 | OCAMLC=$ac_cv_path_OCAMLC |
| 7572 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7573 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7574 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7575 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7576 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7577 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7578 | fi |
| 7579 | |
| 7580 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7581 | test -n "$OCAMLC" && break |
| 7582 | done |
| 7583 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7584 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7585 | do |
| 7586 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7587 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7588 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7590 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7592 | else |
| 7593 | case $OCAMLOPT in |
| 7594 | [\\/]* | ?:[\\/]*) |
| 7595 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7596 | ;; |
| 7597 | *) |
| 7598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7599 | for as_dir in $PATH |
| 7600 | do |
| 7601 | IFS=$as_save_IFS |
| 7602 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7603 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7604 | 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] | 7605 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7606 | 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] | 7607 | break 2 |
| 7608 | fi |
| 7609 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7610 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7611 | IFS=$as_save_IFS |
| 7612 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7613 | ;; |
| 7614 | esac |
| 7615 | fi |
| 7616 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7617 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7618 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7619 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7620 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7621 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7622 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7623 | fi |
| 7624 | |
| 7625 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7626 | test -n "$OCAMLOPT" && break |
| 7627 | done |
| 7628 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7629 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7630 | do |
| 7631 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7632 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7633 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7635 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7637 | else |
| 7638 | case $OCAMLDEP in |
| 7639 | [\\/]* | ?:[\\/]*) |
| 7640 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7641 | ;; |
| 7642 | *) |
| 7643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7644 | for as_dir in $PATH |
| 7645 | do |
| 7646 | IFS=$as_save_IFS |
| 7647 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7648 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7649 | 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] | 7650 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7651 | 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] | 7652 | break 2 |
| 7653 | fi |
| 7654 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7655 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7656 | IFS=$as_save_IFS |
| 7657 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7658 | ;; |
| 7659 | esac |
| 7660 | fi |
| 7661 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7662 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7663 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7664 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7665 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7666 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7667 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7668 | fi |
| 7669 | |
| 7670 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7671 | test -n "$OCAMLDEP" && break |
| 7672 | done |
| 7673 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7674 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7675 | do |
| 7676 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7677 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7678 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7680 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 7681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7682 | else |
| 7683 | case $OCAMLDOC in |
| 7684 | [\\/]* | ?:[\\/]*) |
| 7685 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7686 | ;; |
| 7687 | *) |
| 7688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7689 | for as_dir in $PATH |
| 7690 | do |
| 7691 | IFS=$as_save_IFS |
| 7692 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7694 | 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] | 7695 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7696 | 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] | 7697 | break 2 |
| 7698 | fi |
| 7699 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7700 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7701 | IFS=$as_save_IFS |
| 7702 | |
| 7703 | ;; |
| 7704 | esac |
| 7705 | fi |
| 7706 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7707 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7708 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 7709 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7710 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7711 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7712 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7713 | fi |
| 7714 | |
| 7715 | |
| 7716 | test -n "$OCAMLDOC" && break |
| 7717 | done |
| 7718 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7719 | for ac_prog in gas as |
| 7720 | do |
| 7721 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7722 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7723 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7725 | if test "${ac_cv_path_GAS+set}" = set; then |
| 7726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7727 | else |
| 7728 | case $GAS in |
| 7729 | [\\/]* | ?:[\\/]*) |
| 7730 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7731 | ;; |
| 7732 | *) |
| 7733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7734 | for as_dir in $PATH |
| 7735 | do |
| 7736 | IFS=$as_save_IFS |
| 7737 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7739 | 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] | 7740 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7741 | 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] | 7742 | break 2 |
| 7743 | fi |
| 7744 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7745 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7746 | IFS=$as_save_IFS |
| 7747 | |
| 7748 | ;; |
| 7749 | esac |
| 7750 | fi |
| 7751 | GAS=$ac_cv_path_GAS |
| 7752 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7753 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7754 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7755 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7756 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7757 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7758 | fi |
| 7759 | |
| 7760 | |
| 7761 | test -n "$GAS" && break |
| 7762 | done |
| 7763 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7764 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7765 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 7766 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 7767 | if test "${llvm_cv_link_version+set}" = set; then |
| 7768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7769 | else |
| 7770 | |
| 7771 | version_string="$(ld -v 2>&1 | head -1)" |
| 7772 | |
| 7773 | # Check for ld64. |
| 7774 | if (echo "$version_string" | grep -q "ld64"); then |
| 7775 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 7776 | else |
| 7777 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 7778 | fi |
| 7779 | |
| 7780 | fi |
| 7781 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 7782 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 7783 | |
| 7784 | cat >>confdefs.h <<_ACEOF |
| 7785 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 7786 | _ACEOF |
| 7787 | |
| 7788 | |
| 7789 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7790 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7791 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7792 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7794 | else |
| 7795 | ac_ext=c |
| 7796 | ac_cpp='$CPP $CPPFLAGS' |
| 7797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7800 | |
| 7801 | oldcflags="$CFLAGS" |
| 7802 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7803 | cat >conftest.$ac_ext <<_ACEOF |
| 7804 | /* confdefs.h. */ |
| 7805 | _ACEOF |
| 7806 | cat confdefs.h >>conftest.$ac_ext |
| 7807 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7808 | /* end confdefs.h. */ |
| 7809 | |
| 7810 | int |
| 7811 | main () |
| 7812 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7814 | ; |
| 7815 | return 0; |
| 7816 | } |
| 7817 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7818 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7819 | if { (ac_try="$ac_link" |
| 7820 | case "(($ac_try" in |
| 7821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7822 | *) ac_try_echo=$ac_try;; |
| 7823 | esac |
| 7824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7825 | (eval "$ac_link") 2>conftest.er1 |
| 7826 | ac_status=$? |
| 7827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7828 | rm -f conftest.er1 |
| 7829 | cat conftest.err >&5 |
| 7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7831 | (exit $ac_status); } && |
| 7832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7833 | { (case "(($ac_try" in |
| 7834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7835 | *) ac_try_echo=$ac_try;; |
| 7836 | esac |
| 7837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7838 | (eval "$ac_try") 2>&5 |
| 7839 | ac_status=$? |
| 7840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7841 | (exit $ac_status); }; } && |
| 7842 | { ac_try='test -s conftest$ac_exeext' |
| 7843 | { (case "(($ac_try" in |
| 7844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7845 | *) ac_try_echo=$ac_try;; |
| 7846 | esac |
| 7847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7848 | (eval "$ac_try") 2>&5 |
| 7849 | ac_status=$? |
| 7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7851 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7852 | llvm_cv_link_use_r=yes |
| 7853 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7854 | echo "$as_me: failed program was:" >&5 |
| 7855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7856 | |
| 7857 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7858 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7859 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7860 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7861 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7862 | CFLAGS="$oldcflags" |
| 7863 | ac_ext=c |
| 7864 | ac_cpp='$CPP $CPPFLAGS' |
| 7865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7868 | |
| 7869 | |
| 7870 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7871 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7872 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7873 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7874 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7875 | cat >>confdefs.h <<\_ACEOF |
| 7876 | #define HAVE_LINK_R 1 |
| 7877 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7878 | |
| 7879 | fi |
| 7880 | |
| 7881 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7882 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 7883 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 7884 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 7885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7886 | else |
| 7887 | ac_ext=c |
| 7888 | ac_cpp='$CPP $CPPFLAGS' |
| 7889 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7890 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7892 | |
| 7893 | oldcflags="$CFLAGS" |
| 7894 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7895 | cat >conftest.$ac_ext <<_ACEOF |
| 7896 | /* confdefs.h. */ |
| 7897 | _ACEOF |
| 7898 | cat confdefs.h >>conftest.$ac_ext |
| 7899 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7900 | /* end confdefs.h. */ |
| 7901 | |
| 7902 | int |
| 7903 | main () |
| 7904 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7905 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7906 | ; |
| 7907 | return 0; |
| 7908 | } |
| 7909 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7910 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7911 | if { (ac_try="$ac_link" |
| 7912 | case "(($ac_try" in |
| 7913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7914 | *) ac_try_echo=$ac_try;; |
| 7915 | esac |
| 7916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7917 | (eval "$ac_link") 2>conftest.er1 |
| 7918 | ac_status=$? |
| 7919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7920 | rm -f conftest.er1 |
| 7921 | cat conftest.err >&5 |
| 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7923 | (exit $ac_status); } && |
| 7924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7925 | { (case "(($ac_try" in |
| 7926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7927 | *) ac_try_echo=$ac_try;; |
| 7928 | esac |
| 7929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7930 | (eval "$ac_try") 2>&5 |
| 7931 | ac_status=$? |
| 7932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7933 | (exit $ac_status); }; } && |
| 7934 | { ac_try='test -s conftest$ac_exeext' |
| 7935 | { (case "(($ac_try" in |
| 7936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7937 | *) ac_try_echo=$ac_try;; |
| 7938 | esac |
| 7939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7940 | (eval "$ac_try") 2>&5 |
| 7941 | ac_status=$? |
| 7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7943 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7944 | llvm_cv_link_use_export_dynamic=yes |
| 7945 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7946 | echo "$as_me: failed program was:" >&5 |
| 7947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7948 | |
| 7949 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7950 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7951 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7952 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7953 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7954 | CFLAGS="$oldcflags" |
| 7955 | ac_ext=c |
| 7956 | ac_cpp='$CPP $CPPFLAGS' |
| 7957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7960 | |
| 7961 | |
| 7962 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7963 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 7964 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7965 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 7966 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7967 | cat >>confdefs.h <<\_ACEOF |
| 7968 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 7969 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7970 | |
| 7971 | fi |
| 7972 | |
| 7973 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7974 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 7975 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 7976 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7978 | else |
| 7979 | ac_ext=c |
| 7980 | ac_cpp='$CPP $CPPFLAGS' |
| 7981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7984 | |
| 7985 | oldcflags="$CFLAGS" |
| 7986 | |
| 7987 | # The following code is from the autoconf manual, |
| 7988 | # "11.13: Limitations of Usual Tools". |
| 7989 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 7990 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 7991 | # with $RANDOM to make collisions less likely. |
| 7992 | : ${TMPDIR=/tmp} |
| 7993 | { |
| 7994 | tmp=` |
| 7995 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 7996 | ` && |
| 7997 | test -n "$tmp" && test -d "$tmp" |
| 7998 | } || { |
| 7999 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8000 | (umask 077 && mkdir "$tmp") |
| 8001 | } || exit $? |
| 8002 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8003 | echo "{" > "$tmp/export.map" |
| 8004 | echo " global: main;" >> "$tmp/export.map" |
| 8005 | echo " local: *;" >> "$tmp/export.map" |
| 8006 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8007 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8008 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8009 | cat >conftest.$ac_ext <<_ACEOF |
| 8010 | /* confdefs.h. */ |
| 8011 | _ACEOF |
| 8012 | cat confdefs.h >>conftest.$ac_ext |
| 8013 | cat >>conftest.$ac_ext <<_ACEOF |
| 8014 | /* end confdefs.h. */ |
| 8015 | |
| 8016 | int |
| 8017 | main () |
| 8018 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8019 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8020 | ; |
| 8021 | return 0; |
| 8022 | } |
| 8023 | _ACEOF |
| 8024 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8025 | if { (ac_try="$ac_link" |
| 8026 | case "(($ac_try" in |
| 8027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8028 | *) ac_try_echo=$ac_try;; |
| 8029 | esac |
| 8030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8031 | (eval "$ac_link") 2>conftest.er1 |
| 8032 | ac_status=$? |
| 8033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8034 | rm -f conftest.er1 |
| 8035 | cat conftest.err >&5 |
| 8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8037 | (exit $ac_status); } && |
| 8038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8039 | { (case "(($ac_try" in |
| 8040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8041 | *) ac_try_echo=$ac_try;; |
| 8042 | esac |
| 8043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8044 | (eval "$ac_try") 2>&5 |
| 8045 | ac_status=$? |
| 8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8047 | (exit $ac_status); }; } && |
| 8048 | { ac_try='test -s conftest$ac_exeext' |
| 8049 | { (case "(($ac_try" in |
| 8050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8051 | *) ac_try_echo=$ac_try;; |
| 8052 | esac |
| 8053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8054 | (eval "$ac_try") 2>&5 |
| 8055 | ac_status=$? |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8058 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8059 | else |
| 8060 | echo "$as_me: failed program was:" >&5 |
| 8061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8062 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8063 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8064 | fi |
| 8065 | |
| 8066 | rm -f core conftest.err conftest.$ac_objext \ |
| 8067 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8068 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8069 | rmdir "$tmp" |
| 8070 | CFLAGS="$oldcflags" |
| 8071 | ac_ext=c |
| 8072 | ac_cpp='$CPP $CPPFLAGS' |
| 8073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8076 | |
| 8077 | |
| 8078 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8079 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 8080 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 8081 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 8082 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8083 | |
| 8084 | fi |
| 8085 | |
| 8086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8087 | |
| 8088 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8089 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8090 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8091 | if test "${ac_cv_c_const+set}" = set; then |
| 8092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8093 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8094 | cat >conftest.$ac_ext <<_ACEOF |
| 8095 | /* confdefs.h. */ |
| 8096 | _ACEOF |
| 8097 | cat confdefs.h >>conftest.$ac_ext |
| 8098 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8099 | /* end confdefs.h. */ |
| 8100 | |
| 8101 | int |
| 8102 | main () |
| 8103 | { |
| 8104 | /* FIXME: Include the comments suggested by Paul. */ |
| 8105 | #ifndef __cplusplus |
| 8106 | /* Ultrix mips cc rejects this. */ |
| 8107 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8108 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8109 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8110 | char const *const *ccp; |
| 8111 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8112 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8113 | struct point {int x, y;}; |
| 8114 | static struct point const zero = {0,0}; |
| 8115 | /* AIX XL C 1.02.0.0 rejects this. |
| 8116 | It does not let you subtract one const X* pointer from another in |
| 8117 | an arm of an if-expression whose if-part is not a constant |
| 8118 | expression */ |
| 8119 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8120 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8121 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8122 | ++ccp; |
| 8123 | p = (char**) ccp; |
| 8124 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8125 | { /* SCO 3.2v4 cc rejects this. */ |
| 8126 | char *t; |
| 8127 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8128 | |
| 8129 | *t++ = 0; |
| 8130 | if (s) return 0; |
| 8131 | } |
| 8132 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8133 | int x[] = {25, 17}; |
| 8134 | const int *foo = &x[0]; |
| 8135 | ++foo; |
| 8136 | } |
| 8137 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8138 | typedef const int *iptr; |
| 8139 | iptr p = 0; |
| 8140 | ++p; |
| 8141 | } |
| 8142 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8143 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8144 | struct s { int j; const int *ap[3]; }; |
| 8145 | struct s *b; b->j = 5; |
| 8146 | } |
| 8147 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8148 | const int foo = 10; |
| 8149 | if (!foo) return 0; |
| 8150 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8151 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8152 | #endif |
| 8153 | |
| 8154 | ; |
| 8155 | return 0; |
| 8156 | } |
| 8157 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8158 | rm -f conftest.$ac_objext |
| 8159 | if { (ac_try="$ac_compile" |
| 8160 | case "(($ac_try" in |
| 8161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8162 | *) ac_try_echo=$ac_try;; |
| 8163 | esac |
| 8164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8165 | (eval "$ac_compile") 2>conftest.er1 |
| 8166 | ac_status=$? |
| 8167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8168 | rm -f conftest.er1 |
| 8169 | cat conftest.err >&5 |
| 8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8171 | (exit $ac_status); } && |
| 8172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8173 | { (case "(($ac_try" in |
| 8174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8175 | *) ac_try_echo=$ac_try;; |
| 8176 | esac |
| 8177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8178 | (eval "$ac_try") 2>&5 |
| 8179 | ac_status=$? |
| 8180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8181 | (exit $ac_status); }; } && |
| 8182 | { ac_try='test -s conftest.$ac_objext' |
| 8183 | { (case "(($ac_try" in |
| 8184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8185 | *) ac_try_echo=$ac_try;; |
| 8186 | esac |
| 8187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8188 | (eval "$ac_try") 2>&5 |
| 8189 | ac_status=$? |
| 8190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8191 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8192 | ac_cv_c_const=yes |
| 8193 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8194 | echo "$as_me: failed program was:" >&5 |
| 8195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8196 | |
| 8197 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8198 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8201 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8202 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8203 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8204 | if test $ac_cv_c_const = no; then |
| 8205 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8206 | cat >>confdefs.h <<\_ACEOF |
| 8207 | #define const |
| 8208 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8209 | |
| 8210 | fi |
| 8211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8212 | |
| 8213 | |
| 8214 | |
| 8215 | |
| 8216 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8217 | ac_header_dirent=no |
| 8218 | 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] | 8219 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8220 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8221 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8222 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8224 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8225 | cat >conftest.$ac_ext <<_ACEOF |
| 8226 | /* confdefs.h. */ |
| 8227 | _ACEOF |
| 8228 | cat confdefs.h >>conftest.$ac_ext |
| 8229 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8230 | /* end confdefs.h. */ |
| 8231 | #include <sys/types.h> |
| 8232 | #include <$ac_hdr> |
| 8233 | |
| 8234 | int |
| 8235 | main () |
| 8236 | { |
| 8237 | if ((DIR *) 0) |
| 8238 | return 0; |
| 8239 | ; |
| 8240 | return 0; |
| 8241 | } |
| 8242 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8243 | rm -f conftest.$ac_objext |
| 8244 | if { (ac_try="$ac_compile" |
| 8245 | case "(($ac_try" in |
| 8246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8247 | *) ac_try_echo=$ac_try;; |
| 8248 | esac |
| 8249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8250 | (eval "$ac_compile") 2>conftest.er1 |
| 8251 | ac_status=$? |
| 8252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8253 | rm -f conftest.er1 |
| 8254 | cat conftest.err >&5 |
| 8255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8256 | (exit $ac_status); } && |
| 8257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8258 | { (case "(($ac_try" in |
| 8259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8260 | *) ac_try_echo=$ac_try;; |
| 8261 | esac |
| 8262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8263 | (eval "$ac_try") 2>&5 |
| 8264 | ac_status=$? |
| 8265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8266 | (exit $ac_status); }; } && |
| 8267 | { ac_try='test -s conftest.$ac_objext' |
| 8268 | { (case "(($ac_try" in |
| 8269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8270 | *) ac_try_echo=$ac_try;; |
| 8271 | esac |
| 8272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8273 | (eval "$ac_try") 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8277 | eval "$as_ac_Header=yes" |
| 8278 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8279 | echo "$as_me: failed program was:" >&5 |
| 8280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8281 | |
| 8282 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8283 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8286 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8287 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8288 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8289 | echo "${ECHO_T}$ac_res" >&6; } |
| 8290 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8291 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8292 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8293 | _ACEOF |
| 8294 | |
| 8295 | ac_header_dirent=$ac_hdr; break |
| 8296 | fi |
| 8297 | |
| 8298 | done |
| 8299 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8300 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8301 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8302 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8303 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8305 | else |
| 8306 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8307 | cat >conftest.$ac_ext <<_ACEOF |
| 8308 | /* confdefs.h. */ |
| 8309 | _ACEOF |
| 8310 | cat confdefs.h >>conftest.$ac_ext |
| 8311 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8312 | /* end confdefs.h. */ |
| 8313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8314 | /* Override any GCC internal prototype to avoid an error. |
| 8315 | Use char because int might match the return type of a GCC |
| 8316 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8317 | #ifdef __cplusplus |
| 8318 | extern "C" |
| 8319 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8320 | char opendir (); |
| 8321 | int |
| 8322 | main () |
| 8323 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8324 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8325 | ; |
| 8326 | return 0; |
| 8327 | } |
| 8328 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8329 | for ac_lib in '' dir; do |
| 8330 | if test -z "$ac_lib"; then |
| 8331 | ac_res="none required" |
| 8332 | else |
| 8333 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8334 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8335 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8336 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8337 | if { (ac_try="$ac_link" |
| 8338 | case "(($ac_try" in |
| 8339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8340 | *) ac_try_echo=$ac_try;; |
| 8341 | esac |
| 8342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8343 | (eval "$ac_link") 2>conftest.er1 |
| 8344 | ac_status=$? |
| 8345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8346 | rm -f conftest.er1 |
| 8347 | cat conftest.err >&5 |
| 8348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8349 | (exit $ac_status); } && |
| 8350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8351 | { (case "(($ac_try" in |
| 8352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8353 | *) ac_try_echo=$ac_try;; |
| 8354 | esac |
| 8355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8356 | (eval "$ac_try") 2>&5 |
| 8357 | ac_status=$? |
| 8358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8359 | (exit $ac_status); }; } && |
| 8360 | { ac_try='test -s conftest$ac_exeext' |
| 8361 | { (case "(($ac_try" in |
| 8362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8363 | *) ac_try_echo=$ac_try;; |
| 8364 | esac |
| 8365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8366 | (eval "$ac_try") 2>&5 |
| 8367 | ac_status=$? |
| 8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8369 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8370 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8371 | else |
| 8372 | echo "$as_me: failed program was:" >&5 |
| 8373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8374 | |
| 8375 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8376 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8377 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8378 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8379 | conftest$ac_exeext |
| 8380 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8381 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8382 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8383 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8384 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8385 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8386 | else |
| 8387 | ac_cv_search_opendir=no |
| 8388 | fi |
| 8389 | rm conftest.$ac_ext |
| 8390 | LIBS=$ac_func_search_save_LIBS |
| 8391 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8392 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8393 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8394 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8395 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8396 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8398 | fi |
| 8399 | |
| 8400 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8401 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8402 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8403 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8405 | else |
| 8406 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8407 | cat >conftest.$ac_ext <<_ACEOF |
| 8408 | /* confdefs.h. */ |
| 8409 | _ACEOF |
| 8410 | cat confdefs.h >>conftest.$ac_ext |
| 8411 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8412 | /* end confdefs.h. */ |
| 8413 | |
| 8414 | /* Override any GCC internal prototype to avoid an error. |
| 8415 | Use char because int might match the return type of a GCC |
| 8416 | builtin and then its argument prototype would still apply. */ |
| 8417 | #ifdef __cplusplus |
| 8418 | extern "C" |
| 8419 | #endif |
| 8420 | char opendir (); |
| 8421 | int |
| 8422 | main () |
| 8423 | { |
| 8424 | return opendir (); |
| 8425 | ; |
| 8426 | return 0; |
| 8427 | } |
| 8428 | _ACEOF |
| 8429 | for ac_lib in '' x; do |
| 8430 | if test -z "$ac_lib"; then |
| 8431 | ac_res="none required" |
| 8432 | else |
| 8433 | ac_res=-l$ac_lib |
| 8434 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8435 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8436 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8437 | if { (ac_try="$ac_link" |
| 8438 | case "(($ac_try" in |
| 8439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8440 | *) ac_try_echo=$ac_try;; |
| 8441 | esac |
| 8442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8443 | (eval "$ac_link") 2>conftest.er1 |
| 8444 | ac_status=$? |
| 8445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8446 | rm -f conftest.er1 |
| 8447 | cat conftest.err >&5 |
| 8448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8449 | (exit $ac_status); } && |
| 8450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8451 | { (case "(($ac_try" in |
| 8452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8453 | *) ac_try_echo=$ac_try;; |
| 8454 | esac |
| 8455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8456 | (eval "$ac_try") 2>&5 |
| 8457 | ac_status=$? |
| 8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8459 | (exit $ac_status); }; } && |
| 8460 | { ac_try='test -s conftest$ac_exeext' |
| 8461 | { (case "(($ac_try" in |
| 8462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8463 | *) ac_try_echo=$ac_try;; |
| 8464 | esac |
| 8465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8466 | (eval "$ac_try") 2>&5 |
| 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8470 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8471 | else |
| 8472 | echo "$as_me: failed program was:" >&5 |
| 8473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8474 | |
| 8475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8476 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8477 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8478 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8479 | conftest$ac_exeext |
| 8480 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8481 | break |
| 8482 | fi |
| 8483 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8484 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8485 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8486 | else |
| 8487 | ac_cv_search_opendir=no |
| 8488 | fi |
| 8489 | rm conftest.$ac_ext |
| 8490 | LIBS=$ac_func_search_save_LIBS |
| 8491 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8492 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8493 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8494 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8495 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8496 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8497 | |
| 8498 | fi |
| 8499 | |
| 8500 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8501 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8502 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8503 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8504 | do |
| 8505 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8507 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8508 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8511 | fi |
| 8512 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8513 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8514 | echo "${ECHO_T}$ac_res" >&6; } |
| 8515 | else |
| 8516 | # Is the header compilable? |
| 8517 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8518 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 8519 | cat >conftest.$ac_ext <<_ACEOF |
| 8520 | /* confdefs.h. */ |
| 8521 | _ACEOF |
| 8522 | cat confdefs.h >>conftest.$ac_ext |
| 8523 | cat >>conftest.$ac_ext <<_ACEOF |
| 8524 | /* end confdefs.h. */ |
| 8525 | $ac_includes_default |
| 8526 | #include <$ac_header> |
| 8527 | _ACEOF |
| 8528 | rm -f conftest.$ac_objext |
| 8529 | if { (ac_try="$ac_compile" |
| 8530 | case "(($ac_try" in |
| 8531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8532 | *) ac_try_echo=$ac_try;; |
| 8533 | esac |
| 8534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8535 | (eval "$ac_compile") 2>conftest.er1 |
| 8536 | ac_status=$? |
| 8537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8538 | rm -f conftest.er1 |
| 8539 | cat conftest.err >&5 |
| 8540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8541 | (exit $ac_status); } && |
| 8542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8543 | { (case "(($ac_try" in |
| 8544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8545 | *) ac_try_echo=$ac_try;; |
| 8546 | esac |
| 8547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8548 | (eval "$ac_try") 2>&5 |
| 8549 | ac_status=$? |
| 8550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8551 | (exit $ac_status); }; } && |
| 8552 | { ac_try='test -s conftest.$ac_objext' |
| 8553 | { (case "(($ac_try" in |
| 8554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8555 | *) ac_try_echo=$ac_try;; |
| 8556 | esac |
| 8557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8558 | (eval "$ac_try") 2>&5 |
| 8559 | ac_status=$? |
| 8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8561 | (exit $ac_status); }; }; then |
| 8562 | ac_header_compiler=yes |
| 8563 | else |
| 8564 | echo "$as_me: failed program was:" >&5 |
| 8565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8566 | |
| 8567 | ac_header_compiler=no |
| 8568 | fi |
| 8569 | |
| 8570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8571 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8572 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8573 | |
| 8574 | # Is the header present? |
| 8575 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8576 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 8577 | cat >conftest.$ac_ext <<_ACEOF |
| 8578 | /* confdefs.h. */ |
| 8579 | _ACEOF |
| 8580 | cat confdefs.h >>conftest.$ac_ext |
| 8581 | cat >>conftest.$ac_ext <<_ACEOF |
| 8582 | /* end confdefs.h. */ |
| 8583 | #include <$ac_header> |
| 8584 | _ACEOF |
| 8585 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8586 | case "(($ac_try" in |
| 8587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8588 | *) ac_try_echo=$ac_try;; |
| 8589 | esac |
| 8590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8591 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8592 | ac_status=$? |
| 8593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8594 | rm -f conftest.er1 |
| 8595 | cat conftest.err >&5 |
| 8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8597 | (exit $ac_status); } >/dev/null; then |
| 8598 | if test -s conftest.err; then |
| 8599 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8601 | else |
| 8602 | ac_cpp_err= |
| 8603 | fi |
| 8604 | else |
| 8605 | ac_cpp_err=yes |
| 8606 | fi |
| 8607 | if test -z "$ac_cpp_err"; then |
| 8608 | ac_header_preproc=yes |
| 8609 | else |
| 8610 | echo "$as_me: failed program was:" >&5 |
| 8611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8612 | |
| 8613 | ac_header_preproc=no |
| 8614 | fi |
| 8615 | |
| 8616 | rm -f conftest.err conftest.$ac_ext |
| 8617 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8618 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8619 | |
| 8620 | # So? What about this header? |
| 8621 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8622 | yes:no: ) |
| 8623 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8624 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8626 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8627 | ac_header_preproc=yes |
| 8628 | ;; |
| 8629 | no:yes:* ) |
| 8630 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8631 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8632 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8633 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8634 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8635 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8636 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8637 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8638 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8639 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8640 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8641 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8642 | ( cat <<\_ASBOX |
| 8643 | ## ----------------------------------- ## |
| 8644 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8645 | ## ----------------------------------- ## |
| 8646 | _ASBOX |
| 8647 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 8648 | ;; |
| 8649 | esac |
| 8650 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8652 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8654 | else |
| 8655 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8656 | fi |
| 8657 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8658 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8659 | echo "${ECHO_T}$ac_res" >&6; } |
| 8660 | |
| 8661 | fi |
| 8662 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8663 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8664 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8665 | _ACEOF |
| 8666 | |
| 8667 | fi |
| 8668 | |
| 8669 | done |
| 8670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8671 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8672 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8673 | enableval=$enable_ltdl_install; |
| 8674 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8675 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8676 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8677 | |
| 8678 | |
| 8679 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8680 | INSTALL_LTDL_TRUE= |
| 8681 | INSTALL_LTDL_FALSE='#' |
| 8682 | else |
| 8683 | INSTALL_LTDL_TRUE='#' |
| 8684 | INSTALL_LTDL_FALSE= |
| 8685 | fi |
| 8686 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8687 | |
| 8688 | |
| 8689 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8690 | CONVENIENCE_LTDL_TRUE= |
| 8691 | CONVENIENCE_LTDL_FALSE='#' |
| 8692 | else |
| 8693 | CONVENIENCE_LTDL_TRUE='#' |
| 8694 | CONVENIENCE_LTDL_FALSE= |
| 8695 | fi |
| 8696 | |
| 8697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8698 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8699 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8700 | library_names_spec= |
| 8701 | libname_spec='lib$name' |
| 8702 | soname_spec= |
| 8703 | shrext_cmds=".so" |
| 8704 | postinstall_cmds= |
| 8705 | postuninstall_cmds= |
| 8706 | finish_cmds= |
| 8707 | finish_eval= |
| 8708 | shlibpath_var= |
| 8709 | shlibpath_overrides_runpath=unknown |
| 8710 | version_type=none |
| 8711 | dynamic_linker="$host_os ld.so" |
| 8712 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8713 | if test "$GCC" = yes; then |
| 8714 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8715 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8716 | # if the path contains ";" then we assume it to be the separator |
| 8717 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8718 | # assumed that no part of a normal pathname contains ";" but that should |
| 8719 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8720 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8721 | else |
| 8722 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8723 | fi |
| 8724 | else |
| 8725 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8726 | fi |
| 8727 | need_lib_prefix=unknown |
| 8728 | hardcode_into_libs=no |
| 8729 | |
| 8730 | # when you set need_version to no, make sure it does not cause -set_version |
| 8731 | # flags to be left without arguments |
| 8732 | need_version=unknown |
| 8733 | |
| 8734 | case $host_os in |
| 8735 | aix3*) |
| 8736 | version_type=linux |
| 8737 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8738 | shlibpath_var=LIBPATH |
| 8739 | |
| 8740 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8741 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8742 | ;; |
| 8743 | |
| 8744 | aix4* | aix5*) |
| 8745 | version_type=linux |
| 8746 | need_lib_prefix=no |
| 8747 | need_version=no |
| 8748 | hardcode_into_libs=yes |
| 8749 | if test "$host_cpu" = ia64; then |
| 8750 | # AIX 5 supports IA64 |
| 8751 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8752 | shlibpath_var=LD_LIBRARY_PATH |
| 8753 | else |
| 8754 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8755 | # for dependence libraries. The import file would start with |
| 8756 | # the line `#! .'. This would cause the generated library to |
| 8757 | # depend on `.', always an invalid library. This was fixed in |
| 8758 | # development snapshots of GCC prior to 3.0. |
| 8759 | case $host_os in |
| 8760 | aix4 | aix4.[01] | aix4.[01].*) |
| 8761 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8762 | echo ' yes ' |
| 8763 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8764 | : |
| 8765 | else |
| 8766 | can_build_shared=no |
| 8767 | fi |
| 8768 | ;; |
| 8769 | esac |
| 8770 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8771 | # soname into executable. Probably we can add versioning support to |
| 8772 | # collect2, so additional links can be useful in future. |
| 8773 | if test "$aix_use_runtimelinking" = yes; then |
| 8774 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8775 | # instead of lib<name>.a to let people know that these are not |
| 8776 | # typical AIX shared libraries. |
| 8777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8778 | else |
| 8779 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8780 | # and later when we are not doing run time linking. |
| 8781 | library_names_spec='${libname}${release}.a $libname.a' |
| 8782 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8783 | fi |
| 8784 | shlibpath_var=LIBPATH |
| 8785 | fi |
| 8786 | ;; |
| 8787 | |
| 8788 | amigaos*) |
| 8789 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8790 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8791 | 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' |
| 8792 | ;; |
| 8793 | |
| 8794 | beos*) |
| 8795 | library_names_spec='${libname}${shared_ext}' |
| 8796 | dynamic_linker="$host_os ld.so" |
| 8797 | shlibpath_var=LIBRARY_PATH |
| 8798 | ;; |
| 8799 | |
| 8800 | bsdi[45]*) |
| 8801 | version_type=linux |
| 8802 | need_version=no |
| 8803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8804 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8805 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8806 | shlibpath_var=LD_LIBRARY_PATH |
| 8807 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8808 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8809 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8810 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8811 | # libtool to hard-code these into programs |
| 8812 | ;; |
| 8813 | |
| 8814 | cygwin* | mingw* | pw32*) |
| 8815 | version_type=windows |
| 8816 | shrext_cmds=".dll" |
| 8817 | need_version=no |
| 8818 | need_lib_prefix=no |
| 8819 | |
| 8820 | case $GCC,$host_os in |
| 8821 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8822 | library_names_spec='$libname.dll.a' |
| 8823 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8824 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8825 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8826 | dldir=$destdir/`dirname \$dlpath`~ |
| 8827 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8828 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8829 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8830 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8831 | dlpath=$dir/\$dldll~ |
| 8832 | $rm \$dlpath' |
| 8833 | shlibpath_overrides_runpath=yes |
| 8834 | |
| 8835 | case $host_os in |
| 8836 | cygwin*) |
| 8837 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8838 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8839 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8840 | ;; |
| 8841 | mingw*) |
| 8842 | # MinGW DLLs use traditional 'lib' prefix |
| 8843 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8844 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8845 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8846 | # It is most probably a Windows format PATH printed by |
| 8847 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8848 | # path with ; separators, and with drive letters. We can handle the |
| 8849 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8850 | # especially as we might pass files found there to a mingw objdump, |
| 8851 | # which wouldn't understand a cygwinified path. Ahh. |
| 8852 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8853 | else |
| 8854 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8855 | fi |
| 8856 | ;; |
| 8857 | pw32*) |
| 8858 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8859 | 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] | 8860 | ;; |
| 8861 | esac |
| 8862 | ;; |
| 8863 | |
| 8864 | *) |
| 8865 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8866 | ;; |
| 8867 | esac |
| 8868 | dynamic_linker='Win32 ld.exe' |
| 8869 | # FIXME: first we should search . and the directory the executable is in |
| 8870 | shlibpath_var=PATH |
| 8871 | ;; |
| 8872 | |
| 8873 | darwin* | rhapsody*) |
| 8874 | dynamic_linker="$host_os dyld" |
| 8875 | version_type=darwin |
| 8876 | need_lib_prefix=no |
| 8877 | need_version=no |
| 8878 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8879 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8880 | shlibpath_overrides_runpath=yes |
| 8881 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8882 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8883 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8884 | if test "$GCC" = yes; then |
| 8885 | 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"` |
| 8886 | else |
| 8887 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8888 | fi |
| 8889 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8890 | ;; |
| 8891 | |
| 8892 | dgux*) |
| 8893 | version_type=linux |
| 8894 | need_lib_prefix=no |
| 8895 | need_version=no |
| 8896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8897 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8898 | shlibpath_var=LD_LIBRARY_PATH |
| 8899 | ;; |
| 8900 | |
| 8901 | freebsd1*) |
| 8902 | dynamic_linker=no |
| 8903 | ;; |
| 8904 | |
| 8905 | kfreebsd*-gnu) |
| 8906 | version_type=linux |
| 8907 | need_lib_prefix=no |
| 8908 | need_version=no |
| 8909 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8910 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8911 | shlibpath_var=LD_LIBRARY_PATH |
| 8912 | shlibpath_overrides_runpath=no |
| 8913 | hardcode_into_libs=yes |
| 8914 | dynamic_linker='GNU ld.so' |
| 8915 | ;; |
| 8916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8917 | freebsd* | dragonfly*) |
| 8918 | # DragonFly does not have aout. When/if they implement a new |
| 8919 | # versioning mechanism, adjust this. |
| 8920 | if test -x /usr/bin/objformat; then |
| 8921 | objformat=`/usr/bin/objformat` |
| 8922 | else |
| 8923 | case $host_os in |
| 8924 | freebsd[123]*) objformat=aout ;; |
| 8925 | *) objformat=elf ;; |
| 8926 | esac |
| 8927 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8928 | version_type=freebsd-$objformat |
| 8929 | case $version_type in |
| 8930 | freebsd-elf*) |
| 8931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8932 | need_version=no |
| 8933 | need_lib_prefix=no |
| 8934 | ;; |
| 8935 | freebsd-*) |
| 8936 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8937 | need_version=yes |
| 8938 | ;; |
| 8939 | esac |
| 8940 | shlibpath_var=LD_LIBRARY_PATH |
| 8941 | case $host_os in |
| 8942 | freebsd2*) |
| 8943 | shlibpath_overrides_runpath=yes |
| 8944 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8945 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8946 | shlibpath_overrides_runpath=yes |
| 8947 | hardcode_into_libs=yes |
| 8948 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8949 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8950 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8951 | shlibpath_overrides_runpath=no |
| 8952 | hardcode_into_libs=yes |
| 8953 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8954 | freebsd*) # from 4.6 on |
| 8955 | shlibpath_overrides_runpath=yes |
| 8956 | hardcode_into_libs=yes |
| 8957 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8958 | esac |
| 8959 | ;; |
| 8960 | |
| 8961 | gnu*) |
| 8962 | version_type=linux |
| 8963 | need_lib_prefix=no |
| 8964 | need_version=no |
| 8965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8966 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8967 | shlibpath_var=LD_LIBRARY_PATH |
| 8968 | hardcode_into_libs=yes |
| 8969 | ;; |
| 8970 | |
| 8971 | hpux9* | hpux10* | hpux11*) |
| 8972 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8973 | # link against other versions. |
| 8974 | version_type=sunos |
| 8975 | need_lib_prefix=no |
| 8976 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8977 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8978 | ia64*) |
| 8979 | shrext_cmds='.so' |
| 8980 | hardcode_into_libs=yes |
| 8981 | dynamic_linker="$host_os dld.so" |
| 8982 | shlibpath_var=LD_LIBRARY_PATH |
| 8983 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8985 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8986 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8987 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8988 | else |
| 8989 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8990 | fi |
| 8991 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8992 | ;; |
| 8993 | hppa*64*) |
| 8994 | shrext_cmds='.sl' |
| 8995 | hardcode_into_libs=yes |
| 8996 | dynamic_linker="$host_os dld.sl" |
| 8997 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8998 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9000 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9001 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9002 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9003 | ;; |
| 9004 | *) |
| 9005 | shrext_cmds='.sl' |
| 9006 | dynamic_linker="$host_os dld.sl" |
| 9007 | shlibpath_var=SHLIB_PATH |
| 9008 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9010 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9011 | ;; |
| 9012 | esac |
| 9013 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9014 | postinstall_cmds='chmod 555 $lib' |
| 9015 | ;; |
| 9016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9017 | interix3*) |
| 9018 | version_type=linux |
| 9019 | need_lib_prefix=no |
| 9020 | need_version=no |
| 9021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9022 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9023 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9024 | shlibpath_var=LD_LIBRARY_PATH |
| 9025 | shlibpath_overrides_runpath=no |
| 9026 | hardcode_into_libs=yes |
| 9027 | ;; |
| 9028 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9029 | irix5* | irix6* | nonstopux*) |
| 9030 | case $host_os in |
| 9031 | nonstopux*) version_type=nonstopux ;; |
| 9032 | *) |
| 9033 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9034 | version_type=linux |
| 9035 | else |
| 9036 | version_type=irix |
| 9037 | fi ;; |
| 9038 | esac |
| 9039 | need_lib_prefix=no |
| 9040 | need_version=no |
| 9041 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9043 | case $host_os in |
| 9044 | irix5* | nonstopux*) |
| 9045 | libsuff= shlibsuff= |
| 9046 | ;; |
| 9047 | *) |
| 9048 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9049 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9050 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9051 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9052 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9053 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9054 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9055 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9056 | esac |
| 9057 | ;; |
| 9058 | esac |
| 9059 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9060 | shlibpath_overrides_runpath=no |
| 9061 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9062 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9063 | hardcode_into_libs=yes |
| 9064 | ;; |
| 9065 | |
| 9066 | # No shared lib support for Linux oldld, aout, or coff. |
| 9067 | linux*oldld* | linux*aout* | linux*coff*) |
| 9068 | dynamic_linker=no |
| 9069 | ;; |
| 9070 | |
| 9071 | # This must be Linux ELF. |
| 9072 | linux*) |
| 9073 | version_type=linux |
| 9074 | need_lib_prefix=no |
| 9075 | need_version=no |
| 9076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9077 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9078 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9079 | shlibpath_var=LD_LIBRARY_PATH |
| 9080 | shlibpath_overrides_runpath=no |
| 9081 | # This implies no fast_install, which is unacceptable. |
| 9082 | # Some rework will be needed to allow for fast_install |
| 9083 | # before this can be enabled. |
| 9084 | hardcode_into_libs=yes |
| 9085 | |
| 9086 | # Append ld.so.conf contents to the search path |
| 9087 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9088 | 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] | 9089 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9090 | fi |
| 9091 | |
| 9092 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9093 | # powerpc, because MkLinux only supported shared libraries with the |
| 9094 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9095 | # most powerpc-linux boxes support dynamic linking these days and |
| 9096 | # people can always --disable-shared, the test was removed, and we |
| 9097 | # assume the GNU/Linux dynamic linker is in use. |
| 9098 | dynamic_linker='GNU/Linux ld.so' |
| 9099 | ;; |
| 9100 | |
| 9101 | knetbsd*-gnu) |
| 9102 | version_type=linux |
| 9103 | need_lib_prefix=no |
| 9104 | need_version=no |
| 9105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9106 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9107 | shlibpath_var=LD_LIBRARY_PATH |
| 9108 | shlibpath_overrides_runpath=no |
| 9109 | hardcode_into_libs=yes |
| 9110 | dynamic_linker='GNU ld.so' |
| 9111 | ;; |
| 9112 | |
| 9113 | netbsd*) |
| 9114 | version_type=sunos |
| 9115 | need_lib_prefix=no |
| 9116 | need_version=no |
| 9117 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9119 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9120 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9121 | else |
| 9122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9123 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9124 | dynamic_linker='NetBSD ld.elf_so' |
| 9125 | fi |
| 9126 | shlibpath_var=LD_LIBRARY_PATH |
| 9127 | shlibpath_overrides_runpath=yes |
| 9128 | hardcode_into_libs=yes |
| 9129 | ;; |
| 9130 | |
| 9131 | newsos6) |
| 9132 | version_type=linux |
| 9133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9134 | shlibpath_var=LD_LIBRARY_PATH |
| 9135 | shlibpath_overrides_runpath=yes |
| 9136 | ;; |
| 9137 | |
| 9138 | nto-qnx*) |
| 9139 | version_type=linux |
| 9140 | need_lib_prefix=no |
| 9141 | need_version=no |
| 9142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9143 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9144 | shlibpath_var=LD_LIBRARY_PATH |
| 9145 | shlibpath_overrides_runpath=yes |
| 9146 | ;; |
| 9147 | |
| 9148 | openbsd*) |
| 9149 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9150 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9151 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9152 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9153 | case $host_os in |
| 9154 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9155 | *) need_version=no ;; |
| 9156 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9158 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9159 | shlibpath_var=LD_LIBRARY_PATH |
| 9160 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9161 | case $host_os in |
| 9162 | openbsd2.[89] | openbsd2.[89].*) |
| 9163 | shlibpath_overrides_runpath=no |
| 9164 | ;; |
| 9165 | *) |
| 9166 | shlibpath_overrides_runpath=yes |
| 9167 | ;; |
| 9168 | esac |
| 9169 | else |
| 9170 | shlibpath_overrides_runpath=yes |
| 9171 | fi |
| 9172 | ;; |
| 9173 | |
| 9174 | os2*) |
| 9175 | libname_spec='$name' |
| 9176 | shrext_cmds=".dll" |
| 9177 | need_lib_prefix=no |
| 9178 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9179 | dynamic_linker='OS/2 ld.exe' |
| 9180 | shlibpath_var=LIBPATH |
| 9181 | ;; |
| 9182 | |
| 9183 | osf3* | osf4* | osf5*) |
| 9184 | version_type=osf |
| 9185 | need_lib_prefix=no |
| 9186 | need_version=no |
| 9187 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9189 | shlibpath_var=LD_LIBRARY_PATH |
| 9190 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9191 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9192 | ;; |
| 9193 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9194 | solaris*) |
| 9195 | version_type=linux |
| 9196 | need_lib_prefix=no |
| 9197 | need_version=no |
| 9198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9199 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9200 | shlibpath_var=LD_LIBRARY_PATH |
| 9201 | shlibpath_overrides_runpath=yes |
| 9202 | hardcode_into_libs=yes |
| 9203 | # ldd complains unless libraries are executable |
| 9204 | postinstall_cmds='chmod +x $lib' |
| 9205 | ;; |
| 9206 | |
| 9207 | sunos4*) |
| 9208 | version_type=sunos |
| 9209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9210 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9211 | shlibpath_var=LD_LIBRARY_PATH |
| 9212 | shlibpath_overrides_runpath=yes |
| 9213 | if test "$with_gnu_ld" = yes; then |
| 9214 | need_lib_prefix=no |
| 9215 | fi |
| 9216 | need_version=yes |
| 9217 | ;; |
| 9218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9219 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9220 | version_type=linux |
| 9221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9223 | shlibpath_var=LD_LIBRARY_PATH |
| 9224 | case $host_vendor in |
| 9225 | sni) |
| 9226 | shlibpath_overrides_runpath=no |
| 9227 | need_lib_prefix=no |
| 9228 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9229 | runpath_var=LD_RUN_PATH |
| 9230 | ;; |
| 9231 | siemens) |
| 9232 | need_lib_prefix=no |
| 9233 | ;; |
| 9234 | motorola) |
| 9235 | need_lib_prefix=no |
| 9236 | need_version=no |
| 9237 | shlibpath_overrides_runpath=no |
| 9238 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9239 | ;; |
| 9240 | esac |
| 9241 | ;; |
| 9242 | |
| 9243 | sysv4*MP*) |
| 9244 | if test -d /usr/nec ;then |
| 9245 | version_type=linux |
| 9246 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9247 | soname_spec='$libname${shared_ext}.$major' |
| 9248 | shlibpath_var=LD_LIBRARY_PATH |
| 9249 | fi |
| 9250 | ;; |
| 9251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9252 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9253 | version_type=freebsd-elf |
| 9254 | need_lib_prefix=no |
| 9255 | need_version=no |
| 9256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9257 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9258 | shlibpath_var=LD_LIBRARY_PATH |
| 9259 | hardcode_into_libs=yes |
| 9260 | if test "$with_gnu_ld" = yes; then |
| 9261 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9262 | shlibpath_overrides_runpath=no |
| 9263 | else |
| 9264 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9265 | shlibpath_overrides_runpath=yes |
| 9266 | case $host_os in |
| 9267 | sco3.2v5*) |
| 9268 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9269 | ;; |
| 9270 | esac |
| 9271 | fi |
| 9272 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9273 | ;; |
| 9274 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9275 | uts4*) |
| 9276 | version_type=linux |
| 9277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9278 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9279 | shlibpath_var=LD_LIBRARY_PATH |
| 9280 | ;; |
| 9281 | |
| 9282 | *) |
| 9283 | dynamic_linker=no |
| 9284 | ;; |
| 9285 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9286 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9287 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9288 | test "$dynamic_linker" = no && can_build_shared=no |
| 9289 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9290 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9291 | if test "$GCC" = yes; then |
| 9292 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9293 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9295 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9296 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9297 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9298 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9300 | else |
| 9301 | |
| 9302 | module=yes |
| 9303 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9304 | |
| 9305 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9306 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9307 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9308 | if test -n "$libltdl_cv_shlibext"; then |
| 9309 | |
| 9310 | cat >>confdefs.h <<_ACEOF |
| 9311 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9312 | _ACEOF |
| 9313 | |
| 9314 | fi |
| 9315 | |
| 9316 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9317 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9318 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9319 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9321 | else |
| 9322 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9323 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9324 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9325 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9326 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9327 | |
| 9328 | cat >>confdefs.h <<_ACEOF |
| 9329 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9330 | _ACEOF |
| 9331 | |
| 9332 | fi |
| 9333 | |
| 9334 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9335 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9336 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9337 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9339 | else |
| 9340 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9341 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9342 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9343 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9344 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9345 | sys_search_path= |
| 9346 | for dir in $libltdl_cv_sys_search_path; do |
| 9347 | if test -z "$sys_search_path"; then |
| 9348 | sys_search_path="$dir" |
| 9349 | else |
| 9350 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9351 | fi |
| 9352 | done |
| 9353 | |
| 9354 | cat >>confdefs.h <<_ACEOF |
| 9355 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9356 | _ACEOF |
| 9357 | |
| 9358 | fi |
| 9359 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9360 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9361 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9362 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9364 | else |
| 9365 | libltdl_cv_objdir="$objdir" |
| 9366 | if test -n "$objdir"; then |
| 9367 | : |
| 9368 | else |
| 9369 | rm -f .libs 2>/dev/null |
| 9370 | mkdir .libs 2>/dev/null |
| 9371 | if test -d .libs; then |
| 9372 | libltdl_cv_objdir=.libs |
| 9373 | else |
| 9374 | # MS-DOS does not allow filenames that begin with a dot. |
| 9375 | libltdl_cv_objdir=_libs |
| 9376 | fi |
| 9377 | rmdir .libs 2>/dev/null |
| 9378 | fi |
| 9379 | |
| 9380 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9381 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9382 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9383 | |
| 9384 | cat >>confdefs.h <<_ACEOF |
| 9385 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9386 | _ACEOF |
| 9387 | |
| 9388 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9389 | |
| 9390 | |
| 9391 | |
| 9392 | |
| 9393 | # 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] | 9394 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9395 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 9396 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9398 | else |
| 9399 | |
| 9400 | # These are sane defaults that work on at least a few old systems. |
| 9401 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9402 | |
| 9403 | # Character class describing NM global symbol codes. |
| 9404 | symcode='[BCDEGRST]' |
| 9405 | |
| 9406 | # Regexp to match symbols that can be accessed directly from C. |
| 9407 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9408 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9409 | # Transform an extracted symbol line into a proper C declaration |
| 9410 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9411 | |
| 9412 | # Transform an extracted symbol line into symbol name and symbol address |
| 9413 | 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'" |
| 9414 | |
| 9415 | # Define system-specific variables. |
| 9416 | case $host_os in |
| 9417 | aix*) |
| 9418 | symcode='[BCDT]' |
| 9419 | ;; |
| 9420 | cygwin* | mingw* | pw32*) |
| 9421 | symcode='[ABCDGISTW]' |
| 9422 | ;; |
| 9423 | hpux*) # Its linker distinguishes data from code symbols |
| 9424 | if test "$host_cpu" = ia64; then |
| 9425 | symcode='[ABCDEGRST]' |
| 9426 | fi |
| 9427 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9428 | 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'" |
| 9429 | ;; |
| 9430 | linux*) |
| 9431 | if test "$host_cpu" = ia64; then |
| 9432 | symcode='[ABCDGIRSTW]' |
| 9433 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9434 | 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'" |
| 9435 | fi |
| 9436 | ;; |
| 9437 | irix* | nonstopux*) |
| 9438 | symcode='[BCDEGRST]' |
| 9439 | ;; |
| 9440 | osf*) |
| 9441 | symcode='[BCDEGQRST]' |
| 9442 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9443 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9444 | symcode='[BDRT]' |
| 9445 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9446 | sco3.2v5*) |
| 9447 | symcode='[DT]' |
| 9448 | ;; |
| 9449 | sysv4.2uw2*) |
| 9450 | symcode='[DT]' |
| 9451 | ;; |
| 9452 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9453 | symcode='[ABDT]' |
| 9454 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9455 | sysv4) |
| 9456 | symcode='[DFNSTU]' |
| 9457 | ;; |
| 9458 | esac |
| 9459 | |
| 9460 | # Handle CRLF in mingw tool chain |
| 9461 | opt_cr= |
| 9462 | case $build_os in |
| 9463 | mingw*) |
| 9464 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9465 | ;; |
| 9466 | esac |
| 9467 | |
| 9468 | # If we're using GNU nm, then use its standard symbol codes. |
| 9469 | case `$NM -V 2>&1` in |
| 9470 | *GNU* | *'with BFD'*) |
| 9471 | symcode='[ABCDGIRSTW]' ;; |
| 9472 | esac |
| 9473 | |
| 9474 | # Try without a prefix undercore, then with it. |
| 9475 | for ac_symprfx in "" "_"; do |
| 9476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9477 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9478 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9479 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9480 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9481 | 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] | 9482 | |
| 9483 | # Check to see that the pipe works correctly. |
| 9484 | pipe_works=no |
| 9485 | |
| 9486 | rm -f conftest* |
| 9487 | cat > conftest.$ac_ext <<EOF |
| 9488 | #ifdef __cplusplus |
| 9489 | extern "C" { |
| 9490 | #endif |
| 9491 | char nm_test_var; |
| 9492 | void nm_test_func(){} |
| 9493 | #ifdef __cplusplus |
| 9494 | } |
| 9495 | #endif |
| 9496 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9497 | EOF |
| 9498 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9500 | (eval $ac_compile) 2>&5 |
| 9501 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9503 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9504 | # Now try to grab the symbols. |
| 9505 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9506 | 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] | 9507 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9508 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9510 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9511 | # Try sorting and uniquifying the output. |
| 9512 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9513 | mv -f "$nlist"T "$nlist" |
| 9514 | else |
| 9515 | rm -f "$nlist"T |
| 9516 | fi |
| 9517 | |
| 9518 | # Make sure that we snagged all the symbols we need. |
| 9519 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9520 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9521 | cat <<EOF > conftest.$ac_ext |
| 9522 | #ifdef __cplusplus |
| 9523 | extern "C" { |
| 9524 | #endif |
| 9525 | |
| 9526 | EOF |
| 9527 | # Now generate the symbol file. |
| 9528 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9529 | |
| 9530 | cat <<EOF >> conftest.$ac_ext |
| 9531 | #if defined (__STDC__) && __STDC__ |
| 9532 | # define lt_ptr_t void * |
| 9533 | #else |
| 9534 | # define lt_ptr_t char * |
| 9535 | # define const |
| 9536 | #endif |
| 9537 | |
| 9538 | /* The mapping between symbol names and symbols. */ |
| 9539 | const struct { |
| 9540 | const char *name; |
| 9541 | lt_ptr_t address; |
| 9542 | } |
| 9543 | lt_preloaded_symbols[] = |
| 9544 | { |
| 9545 | EOF |
| 9546 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9547 | cat <<\EOF >> conftest.$ac_ext |
| 9548 | {0, (lt_ptr_t) 0} |
| 9549 | }; |
| 9550 | |
| 9551 | #ifdef __cplusplus |
| 9552 | } |
| 9553 | #endif |
| 9554 | EOF |
| 9555 | # Now try linking the two files. |
| 9556 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9557 | lt_save_LIBS="$LIBS" |
| 9558 | lt_save_CFLAGS="$CFLAGS" |
| 9559 | LIBS="conftstm.$ac_objext" |
| 9560 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9562 | (eval $ac_link) 2>&5 |
| 9563 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9565 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9566 | pipe_works=yes |
| 9567 | fi |
| 9568 | LIBS="$lt_save_LIBS" |
| 9569 | CFLAGS="$lt_save_CFLAGS" |
| 9570 | else |
| 9571 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9572 | fi |
| 9573 | else |
| 9574 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9575 | fi |
| 9576 | else |
| 9577 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9578 | fi |
| 9579 | else |
| 9580 | echo "$progname: failed program was:" >&5 |
| 9581 | cat conftest.$ac_ext >&5 |
| 9582 | fi |
| 9583 | rm -f conftest* conftst* |
| 9584 | |
| 9585 | # Do not use the global_symbol_pipe unless it works. |
| 9586 | if test "$pipe_works" = yes; then |
| 9587 | break |
| 9588 | else |
| 9589 | lt_cv_sys_global_symbol_pipe= |
| 9590 | fi |
| 9591 | done |
| 9592 | |
| 9593 | fi |
| 9594 | |
| 9595 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9596 | lt_cv_sys_global_symbol_to_cdecl= |
| 9597 | fi |
| 9598 | 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] | 9599 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9600 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9601 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9602 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9603 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9604 | fi |
| 9605 | |
| 9606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9607 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9608 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 9609 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9611 | else |
| 9612 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9613 | libltdl_cv_preloaded_symbols=yes |
| 9614 | else |
| 9615 | libltdl_cv_preloaded_symbols=no |
| 9616 | fi |
| 9617 | |
| 9618 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9619 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9620 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9621 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9622 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9623 | cat >>confdefs.h <<\_ACEOF |
| 9624 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9625 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9626 | |
| 9627 | fi |
| 9628 | |
| 9629 | LIBADD_DL= |
| 9630 | |
| 9631 | ac_ext=c |
| 9632 | ac_cpp='$CPP $CPPFLAGS' |
| 9633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9636 | |
| 9637 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9638 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9639 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 9640 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9642 | else |
| 9643 | cat >conftest.$ac_ext <<_ACEOF |
| 9644 | /* confdefs.h. */ |
| 9645 | _ACEOF |
| 9646 | cat confdefs.h >>conftest.$ac_ext |
| 9647 | cat >>conftest.$ac_ext <<_ACEOF |
| 9648 | /* end confdefs.h. */ |
| 9649 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9651 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9653 | /* System header to define __stub macros and hopefully few prototypes, |
| 9654 | which can conflict with char shl_load (); below. |
| 9655 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9656 | <limits.h> exists even on freestanding compilers. */ |
| 9657 | |
| 9658 | #ifdef __STDC__ |
| 9659 | # include <limits.h> |
| 9660 | #else |
| 9661 | # include <assert.h> |
| 9662 | #endif |
| 9663 | |
| 9664 | #undef shl_load |
| 9665 | |
| 9666 | /* Override any GCC internal prototype to avoid an error. |
| 9667 | Use char because int might match the return type of a GCC |
| 9668 | builtin and then its argument prototype would still apply. */ |
| 9669 | #ifdef __cplusplus |
| 9670 | extern "C" |
| 9671 | #endif |
| 9672 | char shl_load (); |
| 9673 | /* The GNU C library defines this for functions which it implements |
| 9674 | to always fail with ENOSYS. Some functions are actually named |
| 9675 | something starting with __ and the normal name is an alias. */ |
| 9676 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9677 | choke me |
| 9678 | #endif |
| 9679 | |
| 9680 | int |
| 9681 | main () |
| 9682 | { |
| 9683 | return shl_load (); |
| 9684 | ; |
| 9685 | return 0; |
| 9686 | } |
| 9687 | _ACEOF |
| 9688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9689 | if { (ac_try="$ac_link" |
| 9690 | case "(($ac_try" in |
| 9691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9692 | *) ac_try_echo=$ac_try;; |
| 9693 | esac |
| 9694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9695 | (eval "$ac_link") 2>conftest.er1 |
| 9696 | ac_status=$? |
| 9697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9698 | rm -f conftest.er1 |
| 9699 | cat conftest.err >&5 |
| 9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9701 | (exit $ac_status); } && |
| 9702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9703 | { (case "(($ac_try" in |
| 9704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9705 | *) ac_try_echo=$ac_try;; |
| 9706 | esac |
| 9707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9708 | (eval "$ac_try") 2>&5 |
| 9709 | ac_status=$? |
| 9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9711 | (exit $ac_status); }; } && |
| 9712 | { ac_try='test -s conftest$ac_exeext' |
| 9713 | { (case "(($ac_try" in |
| 9714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9715 | *) ac_try_echo=$ac_try;; |
| 9716 | esac |
| 9717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9718 | (eval "$ac_try") 2>&5 |
| 9719 | ac_status=$? |
| 9720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9721 | (exit $ac_status); }; }; then |
| 9722 | ac_cv_func_shl_load=yes |
| 9723 | else |
| 9724 | echo "$as_me: failed program was:" >&5 |
| 9725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9726 | |
| 9727 | ac_cv_func_shl_load=no |
| 9728 | fi |
| 9729 | |
| 9730 | rm -f core conftest.err conftest.$ac_objext \ |
| 9731 | conftest$ac_exeext conftest.$ac_ext |
| 9732 | fi |
| 9733 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9734 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 9735 | if test $ac_cv_func_shl_load = yes; then |
| 9736 | |
| 9737 | cat >>confdefs.h <<\_ACEOF |
| 9738 | #define HAVE_SHL_LOAD 1 |
| 9739 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9740 | |
| 9741 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9742 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9743 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 9744 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9746 | else |
| 9747 | ac_check_lib_save_LIBS=$LIBS |
| 9748 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9749 | cat >conftest.$ac_ext <<_ACEOF |
| 9750 | /* confdefs.h. */ |
| 9751 | _ACEOF |
| 9752 | cat confdefs.h >>conftest.$ac_ext |
| 9753 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9754 | /* end confdefs.h. */ |
| 9755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9756 | /* Override any GCC internal prototype to avoid an error. |
| 9757 | Use char because int might match the return type of a GCC |
| 9758 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9759 | #ifdef __cplusplus |
| 9760 | extern "C" |
| 9761 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9762 | char shl_load (); |
| 9763 | int |
| 9764 | main () |
| 9765 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9766 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9767 | ; |
| 9768 | return 0; |
| 9769 | } |
| 9770 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9771 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9772 | if { (ac_try="$ac_link" |
| 9773 | case "(($ac_try" in |
| 9774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9775 | *) ac_try_echo=$ac_try;; |
| 9776 | esac |
| 9777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9778 | (eval "$ac_link") 2>conftest.er1 |
| 9779 | ac_status=$? |
| 9780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9781 | rm -f conftest.er1 |
| 9782 | cat conftest.err >&5 |
| 9783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9784 | (exit $ac_status); } && |
| 9785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9786 | { (case "(($ac_try" in |
| 9787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9788 | *) ac_try_echo=$ac_try;; |
| 9789 | esac |
| 9790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9791 | (eval "$ac_try") 2>&5 |
| 9792 | ac_status=$? |
| 9793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9794 | (exit $ac_status); }; } && |
| 9795 | { ac_try='test -s conftest$ac_exeext' |
| 9796 | { (case "(($ac_try" in |
| 9797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9798 | *) ac_try_echo=$ac_try;; |
| 9799 | esac |
| 9800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9801 | (eval "$ac_try") 2>&5 |
| 9802 | ac_status=$? |
| 9803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9804 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9805 | ac_cv_lib_dld_shl_load=yes |
| 9806 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9807 | echo "$as_me: failed program was:" >&5 |
| 9808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9809 | |
| 9810 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9811 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9812 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9813 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9814 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9815 | LIBS=$ac_check_lib_save_LIBS |
| 9816 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9817 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9818 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 9819 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9820 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9821 | cat >>confdefs.h <<\_ACEOF |
| 9822 | #define HAVE_SHL_LOAD 1 |
| 9823 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9824 | |
| 9825 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9826 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9827 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9828 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9829 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9831 | else |
| 9832 | ac_check_lib_save_LIBS=$LIBS |
| 9833 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9834 | cat >conftest.$ac_ext <<_ACEOF |
| 9835 | /* confdefs.h. */ |
| 9836 | _ACEOF |
| 9837 | cat confdefs.h >>conftest.$ac_ext |
| 9838 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9839 | /* end confdefs.h. */ |
| 9840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9841 | /* Override any GCC internal prototype to avoid an error. |
| 9842 | Use char because int might match the return type of a GCC |
| 9843 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9844 | #ifdef __cplusplus |
| 9845 | extern "C" |
| 9846 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9847 | char dlopen (); |
| 9848 | int |
| 9849 | main () |
| 9850 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9851 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9852 | ; |
| 9853 | return 0; |
| 9854 | } |
| 9855 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9857 | if { (ac_try="$ac_link" |
| 9858 | case "(($ac_try" in |
| 9859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9860 | *) ac_try_echo=$ac_try;; |
| 9861 | esac |
| 9862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9863 | (eval "$ac_link") 2>conftest.er1 |
| 9864 | ac_status=$? |
| 9865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9866 | rm -f conftest.er1 |
| 9867 | cat conftest.err >&5 |
| 9868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9869 | (exit $ac_status); } && |
| 9870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9871 | { (case "(($ac_try" in |
| 9872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9873 | *) ac_try_echo=$ac_try;; |
| 9874 | esac |
| 9875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9876 | (eval "$ac_try") 2>&5 |
| 9877 | ac_status=$? |
| 9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9879 | (exit $ac_status); }; } && |
| 9880 | { ac_try='test -s conftest$ac_exeext' |
| 9881 | { (case "(($ac_try" in |
| 9882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9883 | *) ac_try_echo=$ac_try;; |
| 9884 | esac |
| 9885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9886 | (eval "$ac_try") 2>&5 |
| 9887 | ac_status=$? |
| 9888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9889 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9890 | ac_cv_lib_dl_dlopen=yes |
| 9891 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9892 | echo "$as_me: failed program was:" >&5 |
| 9893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9894 | |
| 9895 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9896 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9897 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9898 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9899 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9900 | LIBS=$ac_check_lib_save_LIBS |
| 9901 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9902 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9903 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9904 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9905 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9906 | cat >>confdefs.h <<\_ACEOF |
| 9907 | #define HAVE_LIBDL 1 |
| 9908 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9909 | |
| 9910 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9911 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9912 | cat >conftest.$ac_ext <<_ACEOF |
| 9913 | /* confdefs.h. */ |
| 9914 | _ACEOF |
| 9915 | cat confdefs.h >>conftest.$ac_ext |
| 9916 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9917 | /* end confdefs.h. */ |
| 9918 | #if HAVE_DLFCN_H |
| 9919 | # include <dlfcn.h> |
| 9920 | #endif |
| 9921 | |
| 9922 | int |
| 9923 | main () |
| 9924 | { |
| 9925 | dlopen(0, 0); |
| 9926 | ; |
| 9927 | return 0; |
| 9928 | } |
| 9929 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9931 | if { (ac_try="$ac_link" |
| 9932 | case "(($ac_try" in |
| 9933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9934 | *) ac_try_echo=$ac_try;; |
| 9935 | esac |
| 9936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9937 | (eval "$ac_link") 2>conftest.er1 |
| 9938 | ac_status=$? |
| 9939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9940 | rm -f conftest.er1 |
| 9941 | cat conftest.err >&5 |
| 9942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9943 | (exit $ac_status); } && |
| 9944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9945 | { (case "(($ac_try" in |
| 9946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9947 | *) ac_try_echo=$ac_try;; |
| 9948 | esac |
| 9949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9950 | (eval "$ac_try") 2>&5 |
| 9951 | ac_status=$? |
| 9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9953 | (exit $ac_status); }; } && |
| 9954 | { ac_try='test -s conftest$ac_exeext' |
| 9955 | { (case "(($ac_try" in |
| 9956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9957 | *) ac_try_echo=$ac_try;; |
| 9958 | esac |
| 9959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9960 | (eval "$ac_try") 2>&5 |
| 9961 | ac_status=$? |
| 9962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9963 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9964 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9965 | cat >>confdefs.h <<\_ACEOF |
| 9966 | #define HAVE_LIBDL 1 |
| 9967 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9968 | libltdl_cv_func_dlopen="yes" |
| 9969 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9970 | echo "$as_me: failed program was:" >&5 |
| 9971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9972 | |
| 9973 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9974 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 9975 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9977 | else |
| 9978 | ac_check_lib_save_LIBS=$LIBS |
| 9979 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9980 | cat >conftest.$ac_ext <<_ACEOF |
| 9981 | /* confdefs.h. */ |
| 9982 | _ACEOF |
| 9983 | cat confdefs.h >>conftest.$ac_ext |
| 9984 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9985 | /* end confdefs.h. */ |
| 9986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9987 | /* Override any GCC internal prototype to avoid an error. |
| 9988 | Use char because int might match the return type of a GCC |
| 9989 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9990 | #ifdef __cplusplus |
| 9991 | extern "C" |
| 9992 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9993 | char dlopen (); |
| 9994 | int |
| 9995 | main () |
| 9996 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9997 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9998 | ; |
| 9999 | return 0; |
| 10000 | } |
| 10001 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10003 | if { (ac_try="$ac_link" |
| 10004 | case "(($ac_try" in |
| 10005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10006 | *) ac_try_echo=$ac_try;; |
| 10007 | esac |
| 10008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10009 | (eval "$ac_link") 2>conftest.er1 |
| 10010 | ac_status=$? |
| 10011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10012 | rm -f conftest.er1 |
| 10013 | cat conftest.err >&5 |
| 10014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10015 | (exit $ac_status); } && |
| 10016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10017 | { (case "(($ac_try" in |
| 10018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10019 | *) ac_try_echo=$ac_try;; |
| 10020 | esac |
| 10021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10022 | (eval "$ac_try") 2>&5 |
| 10023 | ac_status=$? |
| 10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10025 | (exit $ac_status); }; } && |
| 10026 | { ac_try='test -s conftest$ac_exeext' |
| 10027 | { (case "(($ac_try" in |
| 10028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10029 | *) ac_try_echo=$ac_try;; |
| 10030 | esac |
| 10031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10032 | (eval "$ac_try") 2>&5 |
| 10033 | ac_status=$? |
| 10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10035 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10036 | ac_cv_lib_svld_dlopen=yes |
| 10037 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10038 | echo "$as_me: failed program was:" >&5 |
| 10039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10040 | |
| 10041 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10042 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10043 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10044 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10045 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10046 | LIBS=$ac_check_lib_save_LIBS |
| 10047 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10048 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10049 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10050 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10051 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10052 | cat >>confdefs.h <<\_ACEOF |
| 10053 | #define HAVE_LIBDL 1 |
| 10054 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10055 | |
| 10056 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10057 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10058 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10059 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10060 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10062 | else |
| 10063 | ac_check_lib_save_LIBS=$LIBS |
| 10064 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10065 | cat >conftest.$ac_ext <<_ACEOF |
| 10066 | /* confdefs.h. */ |
| 10067 | _ACEOF |
| 10068 | cat confdefs.h >>conftest.$ac_ext |
| 10069 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10070 | /* end confdefs.h. */ |
| 10071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10072 | /* Override any GCC internal prototype to avoid an error. |
| 10073 | Use char because int might match the return type of a GCC |
| 10074 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10075 | #ifdef __cplusplus |
| 10076 | extern "C" |
| 10077 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10078 | char dld_link (); |
| 10079 | int |
| 10080 | main () |
| 10081 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10082 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10083 | ; |
| 10084 | return 0; |
| 10085 | } |
| 10086 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10087 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10088 | if { (ac_try="$ac_link" |
| 10089 | case "(($ac_try" in |
| 10090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10091 | *) ac_try_echo=$ac_try;; |
| 10092 | esac |
| 10093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10094 | (eval "$ac_link") 2>conftest.er1 |
| 10095 | ac_status=$? |
| 10096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10097 | rm -f conftest.er1 |
| 10098 | cat conftest.err >&5 |
| 10099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10100 | (exit $ac_status); } && |
| 10101 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10102 | { (case "(($ac_try" in |
| 10103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10104 | *) ac_try_echo=$ac_try;; |
| 10105 | esac |
| 10106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10107 | (eval "$ac_try") 2>&5 |
| 10108 | ac_status=$? |
| 10109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10110 | (exit $ac_status); }; } && |
| 10111 | { ac_try='test -s conftest$ac_exeext' |
| 10112 | { (case "(($ac_try" in |
| 10113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10114 | *) ac_try_echo=$ac_try;; |
| 10115 | esac |
| 10116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10117 | (eval "$ac_try") 2>&5 |
| 10118 | ac_status=$? |
| 10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10120 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10121 | ac_cv_lib_dld_dld_link=yes |
| 10122 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10123 | echo "$as_me: failed program was:" >&5 |
| 10124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10125 | |
| 10126 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10127 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10128 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10129 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10130 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10131 | LIBS=$ac_check_lib_save_LIBS |
| 10132 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10133 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10134 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10135 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10136 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10137 | cat >>confdefs.h <<\_ACEOF |
| 10138 | #define HAVE_DLD 1 |
| 10139 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10140 | |
| 10141 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10142 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10143 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10144 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10145 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10147 | else |
| 10148 | cat >conftest.$ac_ext <<_ACEOF |
| 10149 | /* confdefs.h. */ |
| 10150 | _ACEOF |
| 10151 | cat confdefs.h >>conftest.$ac_ext |
| 10152 | cat >>conftest.$ac_ext <<_ACEOF |
| 10153 | /* end confdefs.h. */ |
| 10154 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10156 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10157 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10158 | /* System header to define __stub macros and hopefully few prototypes, |
| 10159 | which can conflict with char _dyld_func_lookup (); below. |
| 10160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10161 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10162 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10163 | #ifdef __STDC__ |
| 10164 | # include <limits.h> |
| 10165 | #else |
| 10166 | # include <assert.h> |
| 10167 | #endif |
| 10168 | |
| 10169 | #undef _dyld_func_lookup |
| 10170 | |
| 10171 | /* Override any GCC internal prototype to avoid an error. |
| 10172 | Use char because int might match the return type of a GCC |
| 10173 | builtin and then its argument prototype would still apply. */ |
| 10174 | #ifdef __cplusplus |
| 10175 | extern "C" |
| 10176 | #endif |
| 10177 | char _dyld_func_lookup (); |
| 10178 | /* The GNU C library defines this for functions which it implements |
| 10179 | to always fail with ENOSYS. Some functions are actually named |
| 10180 | something starting with __ and the normal name is an alias. */ |
| 10181 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10182 | choke me |
| 10183 | #endif |
| 10184 | |
| 10185 | int |
| 10186 | main () |
| 10187 | { |
| 10188 | return _dyld_func_lookup (); |
| 10189 | ; |
| 10190 | return 0; |
| 10191 | } |
| 10192 | _ACEOF |
| 10193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10194 | if { (ac_try="$ac_link" |
| 10195 | case "(($ac_try" in |
| 10196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10197 | *) ac_try_echo=$ac_try;; |
| 10198 | esac |
| 10199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10200 | (eval "$ac_link") 2>conftest.er1 |
| 10201 | ac_status=$? |
| 10202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10203 | rm -f conftest.er1 |
| 10204 | cat conftest.err >&5 |
| 10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10206 | (exit $ac_status); } && |
| 10207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10208 | { (case "(($ac_try" in |
| 10209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10210 | *) ac_try_echo=$ac_try;; |
| 10211 | esac |
| 10212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10213 | (eval "$ac_try") 2>&5 |
| 10214 | ac_status=$? |
| 10215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10216 | (exit $ac_status); }; } && |
| 10217 | { ac_try='test -s conftest$ac_exeext' |
| 10218 | { (case "(($ac_try" in |
| 10219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10220 | *) ac_try_echo=$ac_try;; |
| 10221 | esac |
| 10222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10223 | (eval "$ac_try") 2>&5 |
| 10224 | ac_status=$? |
| 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10226 | (exit $ac_status); }; }; then |
| 10227 | ac_cv_func__dyld_func_lookup=yes |
| 10228 | else |
| 10229 | echo "$as_me: failed program was:" >&5 |
| 10230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10231 | |
| 10232 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10233 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10234 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10235 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10236 | conftest$ac_exeext conftest.$ac_ext |
| 10237 | fi |
| 10238 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10239 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10240 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10241 | |
| 10242 | cat >>confdefs.h <<\_ACEOF |
| 10243 | #define HAVE_DYLD 1 |
| 10244 | _ACEOF |
| 10245 | |
| 10246 | fi |
| 10247 | |
| 10248 | |
| 10249 | fi |
| 10250 | |
| 10251 | |
| 10252 | fi |
| 10253 | |
| 10254 | |
| 10255 | fi |
| 10256 | |
| 10257 | rm -f core conftest.err conftest.$ac_objext \ |
| 10258 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10259 | |
| 10260 | fi |
| 10261 | |
| 10262 | |
| 10263 | fi |
| 10264 | |
| 10265 | |
| 10266 | fi |
| 10267 | |
| 10268 | |
| 10269 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10270 | then |
| 10271 | lt_save_LIBS="$LIBS" |
| 10272 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10273 | |
| 10274 | for ac_func in dlerror |
| 10275 | do |
| 10276 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10277 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10278 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10279 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10281 | else |
| 10282 | cat >conftest.$ac_ext <<_ACEOF |
| 10283 | /* confdefs.h. */ |
| 10284 | _ACEOF |
| 10285 | cat confdefs.h >>conftest.$ac_ext |
| 10286 | cat >>conftest.$ac_ext <<_ACEOF |
| 10287 | /* end confdefs.h. */ |
| 10288 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10289 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10290 | #define $ac_func innocuous_$ac_func |
| 10291 | |
| 10292 | /* System header to define __stub macros and hopefully few prototypes, |
| 10293 | which can conflict with char $ac_func (); below. |
| 10294 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10295 | <limits.h> exists even on freestanding compilers. */ |
| 10296 | |
| 10297 | #ifdef __STDC__ |
| 10298 | # include <limits.h> |
| 10299 | #else |
| 10300 | # include <assert.h> |
| 10301 | #endif |
| 10302 | |
| 10303 | #undef $ac_func |
| 10304 | |
| 10305 | /* Override any GCC internal prototype to avoid an error. |
| 10306 | Use char because int might match the return type of a GCC |
| 10307 | builtin and then its argument prototype would still apply. */ |
| 10308 | #ifdef __cplusplus |
| 10309 | extern "C" |
| 10310 | #endif |
| 10311 | char $ac_func (); |
| 10312 | /* The GNU C library defines this for functions which it implements |
| 10313 | to always fail with ENOSYS. Some functions are actually named |
| 10314 | something starting with __ and the normal name is an alias. */ |
| 10315 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10316 | choke me |
| 10317 | #endif |
| 10318 | |
| 10319 | int |
| 10320 | main () |
| 10321 | { |
| 10322 | return $ac_func (); |
| 10323 | ; |
| 10324 | return 0; |
| 10325 | } |
| 10326 | _ACEOF |
| 10327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10328 | if { (ac_try="$ac_link" |
| 10329 | case "(($ac_try" in |
| 10330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10331 | *) ac_try_echo=$ac_try;; |
| 10332 | esac |
| 10333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10334 | (eval "$ac_link") 2>conftest.er1 |
| 10335 | ac_status=$? |
| 10336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10337 | rm -f conftest.er1 |
| 10338 | cat conftest.err >&5 |
| 10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10340 | (exit $ac_status); } && |
| 10341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10342 | { (case "(($ac_try" in |
| 10343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10344 | *) ac_try_echo=$ac_try;; |
| 10345 | esac |
| 10346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10347 | (eval "$ac_try") 2>&5 |
| 10348 | ac_status=$? |
| 10349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10350 | (exit $ac_status); }; } && |
| 10351 | { ac_try='test -s conftest$ac_exeext' |
| 10352 | { (case "(($ac_try" in |
| 10353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10354 | *) ac_try_echo=$ac_try;; |
| 10355 | esac |
| 10356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10357 | (eval "$ac_try") 2>&5 |
| 10358 | ac_status=$? |
| 10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10360 | (exit $ac_status); }; }; then |
| 10361 | eval "$as_ac_var=yes" |
| 10362 | else |
| 10363 | echo "$as_me: failed program was:" >&5 |
| 10364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10365 | |
| 10366 | eval "$as_ac_var=no" |
| 10367 | fi |
| 10368 | |
| 10369 | rm -f core conftest.err conftest.$ac_objext \ |
| 10370 | conftest$ac_exeext conftest.$ac_ext |
| 10371 | fi |
| 10372 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10373 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10374 | echo "${ECHO_T}$ac_res" >&6; } |
| 10375 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10376 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10377 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10378 | _ACEOF |
| 10379 | |
| 10380 | fi |
| 10381 | done |
| 10382 | |
| 10383 | LIBS="$lt_save_LIBS" |
| 10384 | fi |
| 10385 | ac_ext=c |
| 10386 | ac_cpp='$CPP $CPPFLAGS' |
| 10387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10390 | |
| 10391 | |
| 10392 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10393 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10394 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10395 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10397 | else |
| 10398 | ac_cv_sys_symbol_underscore=no |
| 10399 | cat > conftest.$ac_ext <<EOF |
| 10400 | void nm_test_func(){} |
| 10401 | int main(){nm_test_func;return 0;} |
| 10402 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10404 | (eval $ac_compile) 2>&5 |
| 10405 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10407 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10408 | # Now try to grab the symbols. |
| 10409 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10410 | 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] | 10411 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10412 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10414 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10415 | # See whether the symbols have a leading underscore. |
| 10416 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10417 | ac_cv_sys_symbol_underscore=yes |
| 10418 | else |
| 10419 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10420 | : |
| 10421 | else |
| 10422 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10423 | fi |
| 10424 | fi |
| 10425 | else |
| 10426 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10427 | fi |
| 10428 | else |
| 10429 | echo "configure: failed program was:" >&5 |
| 10430 | cat conftest.c >&5 |
| 10431 | fi |
| 10432 | rm -rf conftest* |
| 10433 | |
| 10434 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10435 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10436 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10437 | |
| 10438 | |
| 10439 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10440 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10441 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10442 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10443 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 10444 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10446 | else |
| 10447 | libltdl_cv_need_uscore=unknown |
| 10448 | save_LIBS="$LIBS" |
| 10449 | LIBS="$LIBS $LIBADD_DL" |
| 10450 | if test "$cross_compiling" = yes; then : |
| 10451 | libltdl_cv_need_uscore=cross |
| 10452 | else |
| 10453 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10454 | lt_status=$lt_dlunknown |
| 10455 | cat > conftest.$ac_ext <<EOF |
Eric Christopher | 73ec952 | 2011-09-21 00:53:42 +0000 | [diff] [blame] | 10456 | #line 10456 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10457 | #include "confdefs.h" |
| 10458 | |
| 10459 | #if HAVE_DLFCN_H |
| 10460 | #include <dlfcn.h> |
| 10461 | #endif |
| 10462 | |
| 10463 | #include <stdio.h> |
| 10464 | |
| 10465 | #ifdef RTLD_GLOBAL |
| 10466 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10467 | #else |
| 10468 | # ifdef DL_GLOBAL |
| 10469 | # define LT_DLGLOBAL DL_GLOBAL |
| 10470 | # else |
| 10471 | # define LT_DLGLOBAL 0 |
| 10472 | # endif |
| 10473 | #endif |
| 10474 | |
| 10475 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10476 | find out it does not work in some platform. */ |
| 10477 | #ifndef LT_DLLAZY_OR_NOW |
| 10478 | # ifdef RTLD_LAZY |
| 10479 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10480 | # else |
| 10481 | # ifdef DL_LAZY |
| 10482 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10483 | # else |
| 10484 | # ifdef RTLD_NOW |
| 10485 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10486 | # else |
| 10487 | # ifdef DL_NOW |
| 10488 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10489 | # else |
| 10490 | # define LT_DLLAZY_OR_NOW 0 |
| 10491 | # endif |
| 10492 | # endif |
| 10493 | # endif |
| 10494 | # endif |
| 10495 | #endif |
| 10496 | |
| 10497 | #ifdef __cplusplus |
| 10498 | extern "C" void exit (int); |
| 10499 | #endif |
| 10500 | |
| 10501 | void fnord() { int i=42;} |
| 10502 | int main () |
| 10503 | { |
| 10504 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10505 | int status = $lt_dlunknown; |
| 10506 | |
| 10507 | if (self) |
| 10508 | { |
| 10509 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10510 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10511 | /* dlclose (self); */ |
| 10512 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10513 | else |
| 10514 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10515 | |
| 10516 | exit (status); |
| 10517 | } |
| 10518 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10520 | (eval $ac_link) 2>&5 |
| 10521 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10523 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10524 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10525 | lt_status=$? |
| 10526 | case x$lt_status in |
| 10527 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10528 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10529 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10530 | esac |
| 10531 | else : |
| 10532 | # compilation failed |
| 10533 | |
| 10534 | fi |
| 10535 | fi |
| 10536 | rm -fr conftest* |
| 10537 | |
| 10538 | LIBS="$save_LIBS" |
| 10539 | |
| 10540 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10541 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10542 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10543 | fi |
| 10544 | fi |
| 10545 | |
| 10546 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10547 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10548 | cat >>confdefs.h <<\_ACEOF |
| 10549 | #define NEED_USCORE 1 |
| 10550 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10551 | |
| 10552 | fi |
| 10553 | |
| 10554 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10555 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10556 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 10557 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10559 | else |
| 10560 | # PORTME does your system automatically load deplibs for dlopen? |
| 10561 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10562 | # For now, we just catch OSes we know something about -- in the |
| 10563 | # future, we'll try test this programmatically. |
| 10564 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10565 | case "$host_os" in |
| 10566 | aix3*|aix4.1.*|aix4.2.*) |
| 10567 | # Unknown whether this is true for these versions of AIX, but |
| 10568 | # we want this `case' here to explicitly catch those versions. |
| 10569 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10570 | ;; |
| 10571 | aix[45]*) |
| 10572 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10573 | ;; |
| 10574 | darwin*) |
| 10575 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10576 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10577 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10578 | ;; |
| 10579 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10580 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10581 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10582 | ;; |
| 10583 | hpux10*|hpux11*) |
| 10584 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10585 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10586 | interix*) |
| 10587 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10588 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10589 | irix[12345]*|irix6.[01]*) |
| 10590 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10591 | # know how it worked for any of those versions. |
| 10592 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10593 | ;; |
| 10594 | irix*) |
| 10595 | # The case above catches anything before 6.2, and it's known that |
| 10596 | # at 6.2 and later dlopen does load deplibs. |
| 10597 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10598 | ;; |
| 10599 | netbsd*) |
| 10600 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10601 | ;; |
| 10602 | openbsd*) |
| 10603 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10604 | ;; |
| 10605 | osf[1234]*) |
| 10606 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10607 | # it did *not* use an RPATH in a shared library to find objects the |
Chris Lattner | 7a2bdde | 2011-04-15 05:18:47 +0000 | [diff] [blame] | 10608 | # library depends on, so we explicitly say `no'. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10609 | libltdl_cv_sys_dlopen_deplibs=no |
| 10610 | ;; |
| 10611 | osf5.0|osf5.0a|osf5.1) |
| 10612 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10613 | # it even uses RPATH in a shared library to search for shared objects |
| 10614 | # that the library depends on, but there's no easy way to know if that |
| 10615 | # patch is installed. Since this is the case, all we can really |
| 10616 | # say is unknown -- it depends on the patch being installed. If |
| 10617 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10618 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10619 | ;; |
| 10620 | osf*) |
| 10621 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10622 | # the comments above for what we know about them. |
| 10623 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10624 | # is used to find them so we can finally say `yes'. |
| 10625 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10626 | ;; |
| 10627 | solaris*) |
| 10628 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10629 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10630 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10631 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10632 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10633 | esac |
| 10634 | |
| 10635 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10636 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10637 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10638 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10640 | cat >>confdefs.h <<\_ACEOF |
| 10641 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10642 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10643 | |
| 10644 | fi |
| 10645 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10646 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10647 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10648 | do |
| 10649 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10650 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10651 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10653 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10655 | fi |
| 10656 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10657 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10658 | echo "${ECHO_T}$ac_res" >&6; } |
| 10659 | else |
| 10660 | # Is the header compilable? |
| 10661 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10662 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10663 | cat >conftest.$ac_ext <<_ACEOF |
| 10664 | /* confdefs.h. */ |
| 10665 | _ACEOF |
| 10666 | cat confdefs.h >>conftest.$ac_ext |
| 10667 | cat >>conftest.$ac_ext <<_ACEOF |
| 10668 | /* end confdefs.h. */ |
| 10669 | $ac_includes_default |
| 10670 | #include <$ac_header> |
| 10671 | _ACEOF |
| 10672 | rm -f conftest.$ac_objext |
| 10673 | if { (ac_try="$ac_compile" |
| 10674 | case "(($ac_try" in |
| 10675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10676 | *) ac_try_echo=$ac_try;; |
| 10677 | esac |
| 10678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10679 | (eval "$ac_compile") 2>conftest.er1 |
| 10680 | ac_status=$? |
| 10681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10682 | rm -f conftest.er1 |
| 10683 | cat conftest.err >&5 |
| 10684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10685 | (exit $ac_status); } && |
| 10686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10687 | { (case "(($ac_try" in |
| 10688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10689 | *) ac_try_echo=$ac_try;; |
| 10690 | esac |
| 10691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10692 | (eval "$ac_try") 2>&5 |
| 10693 | ac_status=$? |
| 10694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10695 | (exit $ac_status); }; } && |
| 10696 | { ac_try='test -s conftest.$ac_objext' |
| 10697 | { (case "(($ac_try" in |
| 10698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10699 | *) ac_try_echo=$ac_try;; |
| 10700 | esac |
| 10701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10702 | (eval "$ac_try") 2>&5 |
| 10703 | ac_status=$? |
| 10704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10705 | (exit $ac_status); }; }; then |
| 10706 | ac_header_compiler=yes |
| 10707 | else |
| 10708 | echo "$as_me: failed program was:" >&5 |
| 10709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10710 | |
| 10711 | ac_header_compiler=no |
| 10712 | fi |
| 10713 | |
| 10714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10715 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10716 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10717 | |
| 10718 | # Is the header present? |
| 10719 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10720 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10721 | cat >conftest.$ac_ext <<_ACEOF |
| 10722 | /* confdefs.h. */ |
| 10723 | _ACEOF |
| 10724 | cat confdefs.h >>conftest.$ac_ext |
| 10725 | cat >>conftest.$ac_ext <<_ACEOF |
| 10726 | /* end confdefs.h. */ |
| 10727 | #include <$ac_header> |
| 10728 | _ACEOF |
| 10729 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10730 | case "(($ac_try" in |
| 10731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10732 | *) ac_try_echo=$ac_try;; |
| 10733 | esac |
| 10734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10735 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10736 | ac_status=$? |
| 10737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10738 | rm -f conftest.er1 |
| 10739 | cat conftest.err >&5 |
| 10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10741 | (exit $ac_status); } >/dev/null; then |
| 10742 | if test -s conftest.err; then |
| 10743 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10744 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10745 | else |
| 10746 | ac_cpp_err= |
| 10747 | fi |
| 10748 | else |
| 10749 | ac_cpp_err=yes |
| 10750 | fi |
| 10751 | if test -z "$ac_cpp_err"; then |
| 10752 | ac_header_preproc=yes |
| 10753 | else |
| 10754 | echo "$as_me: failed program was:" >&5 |
| 10755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10756 | |
| 10757 | ac_header_preproc=no |
| 10758 | fi |
| 10759 | |
| 10760 | rm -f conftest.err conftest.$ac_ext |
| 10761 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10762 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10763 | |
| 10764 | # So? What about this header? |
| 10765 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10766 | yes:no: ) |
| 10767 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10768 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10770 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10771 | ac_header_preproc=yes |
| 10772 | ;; |
| 10773 | no:yes:* ) |
| 10774 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10775 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10776 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10777 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10778 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10779 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10780 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10781 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10782 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10783 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10784 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10785 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10786 | ( cat <<\_ASBOX |
| 10787 | ## ----------------------------------- ## |
| 10788 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10789 | ## ----------------------------------- ## |
| 10790 | _ASBOX |
| 10791 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 10792 | ;; |
| 10793 | esac |
| 10794 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10796 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10798 | else |
| 10799 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10800 | fi |
| 10801 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10802 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10803 | echo "${ECHO_T}$ac_res" >&6; } |
| 10804 | |
| 10805 | fi |
| 10806 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10807 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10808 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10809 | _ACEOF |
| 10810 | |
| 10811 | fi |
| 10812 | |
| 10813 | done |
| 10814 | |
| 10815 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10816 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10817 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 10818 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10820 | else |
| 10821 | cat >conftest.$ac_ext <<_ACEOF |
| 10822 | /* confdefs.h. */ |
| 10823 | _ACEOF |
| 10824 | cat confdefs.h >>conftest.$ac_ext |
| 10825 | cat >>conftest.$ac_ext <<_ACEOF |
| 10826 | /* end confdefs.h. */ |
| 10827 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10828 | # include <argz.h> |
| 10829 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10830 | |
| 10831 | typedef error_t ac__type_new_; |
| 10832 | int |
| 10833 | main () |
| 10834 | { |
| 10835 | if ((ac__type_new_ *) 0) |
| 10836 | return 0; |
| 10837 | if (sizeof (ac__type_new_)) |
| 10838 | return 0; |
| 10839 | ; |
| 10840 | return 0; |
| 10841 | } |
| 10842 | _ACEOF |
| 10843 | rm -f conftest.$ac_objext |
| 10844 | if { (ac_try="$ac_compile" |
| 10845 | case "(($ac_try" in |
| 10846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10847 | *) ac_try_echo=$ac_try;; |
| 10848 | esac |
| 10849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10850 | (eval "$ac_compile") 2>conftest.er1 |
| 10851 | ac_status=$? |
| 10852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10853 | rm -f conftest.er1 |
| 10854 | cat conftest.err >&5 |
| 10855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10856 | (exit $ac_status); } && |
| 10857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10858 | { (case "(($ac_try" in |
| 10859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10860 | *) ac_try_echo=$ac_try;; |
| 10861 | esac |
| 10862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10863 | (eval "$ac_try") 2>&5 |
| 10864 | ac_status=$? |
| 10865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10866 | (exit $ac_status); }; } && |
| 10867 | { ac_try='test -s conftest.$ac_objext' |
| 10868 | { (case "(($ac_try" in |
| 10869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10870 | *) ac_try_echo=$ac_try;; |
| 10871 | esac |
| 10872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10873 | (eval "$ac_try") 2>&5 |
| 10874 | ac_status=$? |
| 10875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10876 | (exit $ac_status); }; }; then |
| 10877 | ac_cv_type_error_t=yes |
| 10878 | else |
| 10879 | echo "$as_me: failed program was:" >&5 |
| 10880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10881 | |
| 10882 | ac_cv_type_error_t=no |
| 10883 | fi |
| 10884 | |
| 10885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10886 | fi |
| 10887 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10888 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 10889 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10890 | |
| 10891 | cat >>confdefs.h <<_ACEOF |
| 10892 | #define HAVE_ERROR_T 1 |
| 10893 | _ACEOF |
| 10894 | |
| 10895 | |
| 10896 | else |
| 10897 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10898 | cat >>confdefs.h <<\_ACEOF |
| 10899 | #define error_t int |
| 10900 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10901 | |
| 10902 | fi |
| 10903 | |
| 10904 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10905 | |
| 10906 | |
| 10907 | |
| 10908 | |
| 10909 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10910 | 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] | 10911 | do |
| 10912 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10913 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10914 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10915 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10917 | else |
| 10918 | cat >conftest.$ac_ext <<_ACEOF |
| 10919 | /* confdefs.h. */ |
| 10920 | _ACEOF |
| 10921 | cat confdefs.h >>conftest.$ac_ext |
| 10922 | cat >>conftest.$ac_ext <<_ACEOF |
| 10923 | /* end confdefs.h. */ |
| 10924 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10925 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10926 | #define $ac_func innocuous_$ac_func |
| 10927 | |
| 10928 | /* System header to define __stub macros and hopefully few prototypes, |
| 10929 | which can conflict with char $ac_func (); below. |
| 10930 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10931 | <limits.h> exists even on freestanding compilers. */ |
| 10932 | |
| 10933 | #ifdef __STDC__ |
| 10934 | # include <limits.h> |
| 10935 | #else |
| 10936 | # include <assert.h> |
| 10937 | #endif |
| 10938 | |
| 10939 | #undef $ac_func |
| 10940 | |
| 10941 | /* Override any GCC internal prototype to avoid an error. |
| 10942 | Use char because int might match the return type of a GCC |
| 10943 | builtin and then its argument prototype would still apply. */ |
| 10944 | #ifdef __cplusplus |
| 10945 | extern "C" |
| 10946 | #endif |
| 10947 | char $ac_func (); |
| 10948 | /* The GNU C library defines this for functions which it implements |
| 10949 | to always fail with ENOSYS. Some functions are actually named |
| 10950 | something starting with __ and the normal name is an alias. */ |
| 10951 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10952 | choke me |
| 10953 | #endif |
| 10954 | |
| 10955 | int |
| 10956 | main () |
| 10957 | { |
| 10958 | return $ac_func (); |
| 10959 | ; |
| 10960 | return 0; |
| 10961 | } |
| 10962 | _ACEOF |
| 10963 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10964 | if { (ac_try="$ac_link" |
| 10965 | case "(($ac_try" in |
| 10966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10967 | *) ac_try_echo=$ac_try;; |
| 10968 | esac |
| 10969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10970 | (eval "$ac_link") 2>conftest.er1 |
| 10971 | ac_status=$? |
| 10972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10973 | rm -f conftest.er1 |
| 10974 | cat conftest.err >&5 |
| 10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10976 | (exit $ac_status); } && |
| 10977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10978 | { (case "(($ac_try" in |
| 10979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10980 | *) ac_try_echo=$ac_try;; |
| 10981 | esac |
| 10982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10983 | (eval "$ac_try") 2>&5 |
| 10984 | ac_status=$? |
| 10985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10986 | (exit $ac_status); }; } && |
| 10987 | { ac_try='test -s conftest$ac_exeext' |
| 10988 | { (case "(($ac_try" in |
| 10989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10990 | *) ac_try_echo=$ac_try;; |
| 10991 | esac |
| 10992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10993 | (eval "$ac_try") 2>&5 |
| 10994 | ac_status=$? |
| 10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10996 | (exit $ac_status); }; }; then |
| 10997 | eval "$as_ac_var=yes" |
| 10998 | else |
| 10999 | echo "$as_me: failed program was:" >&5 |
| 11000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11001 | |
| 11002 | eval "$as_ac_var=no" |
| 11003 | fi |
| 11004 | |
| 11005 | rm -f core conftest.err conftest.$ac_objext \ |
| 11006 | conftest$ac_exeext conftest.$ac_ext |
| 11007 | fi |
| 11008 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11009 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11010 | echo "${ECHO_T}$ac_res" >&6; } |
| 11011 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11012 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11013 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11014 | _ACEOF |
| 11015 | |
| 11016 | fi |
| 11017 | done |
| 11018 | |
| 11019 | |
| 11020 | |
| 11021 | |
| 11022 | |
| 11023 | |
| 11024 | |
| 11025 | |
| 11026 | |
| 11027 | |
| 11028 | |
| 11029 | |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | |
| 11043 | |
| 11044 | |
| 11045 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11046 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11047 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11048 | do |
| 11049 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11050 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11051 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11053 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11055 | fi |
| 11056 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11058 | echo "${ECHO_T}$ac_res" >&6; } |
| 11059 | else |
| 11060 | # Is the header compilable? |
| 11061 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11062 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11063 | cat >conftest.$ac_ext <<_ACEOF |
| 11064 | /* confdefs.h. */ |
| 11065 | _ACEOF |
| 11066 | cat confdefs.h >>conftest.$ac_ext |
| 11067 | cat >>conftest.$ac_ext <<_ACEOF |
| 11068 | /* end confdefs.h. */ |
| 11069 | $ac_includes_default |
| 11070 | #include <$ac_header> |
| 11071 | _ACEOF |
| 11072 | rm -f conftest.$ac_objext |
| 11073 | if { (ac_try="$ac_compile" |
| 11074 | case "(($ac_try" in |
| 11075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11076 | *) ac_try_echo=$ac_try;; |
| 11077 | esac |
| 11078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11079 | (eval "$ac_compile") 2>conftest.er1 |
| 11080 | ac_status=$? |
| 11081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11082 | rm -f conftest.er1 |
| 11083 | cat conftest.err >&5 |
| 11084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11085 | (exit $ac_status); } && |
| 11086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11087 | { (case "(($ac_try" in |
| 11088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11089 | *) ac_try_echo=$ac_try;; |
| 11090 | esac |
| 11091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11092 | (eval "$ac_try") 2>&5 |
| 11093 | ac_status=$? |
| 11094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11095 | (exit $ac_status); }; } && |
| 11096 | { ac_try='test -s conftest.$ac_objext' |
| 11097 | { (case "(($ac_try" in |
| 11098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11099 | *) ac_try_echo=$ac_try;; |
| 11100 | esac |
| 11101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11102 | (eval "$ac_try") 2>&5 |
| 11103 | ac_status=$? |
| 11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11105 | (exit $ac_status); }; }; then |
| 11106 | ac_header_compiler=yes |
| 11107 | else |
| 11108 | echo "$as_me: failed program was:" >&5 |
| 11109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11110 | |
| 11111 | ac_header_compiler=no |
| 11112 | fi |
| 11113 | |
| 11114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11115 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11116 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11117 | |
| 11118 | # Is the header present? |
| 11119 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11120 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11121 | cat >conftest.$ac_ext <<_ACEOF |
| 11122 | /* confdefs.h. */ |
| 11123 | _ACEOF |
| 11124 | cat confdefs.h >>conftest.$ac_ext |
| 11125 | cat >>conftest.$ac_ext <<_ACEOF |
| 11126 | /* end confdefs.h. */ |
| 11127 | #include <$ac_header> |
| 11128 | _ACEOF |
| 11129 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11130 | case "(($ac_try" in |
| 11131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11132 | *) ac_try_echo=$ac_try;; |
| 11133 | esac |
| 11134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11135 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11136 | ac_status=$? |
| 11137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11138 | rm -f conftest.er1 |
| 11139 | cat conftest.err >&5 |
| 11140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11141 | (exit $ac_status); } >/dev/null; then |
| 11142 | if test -s conftest.err; then |
| 11143 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11144 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11145 | else |
| 11146 | ac_cpp_err= |
| 11147 | fi |
| 11148 | else |
| 11149 | ac_cpp_err=yes |
| 11150 | fi |
| 11151 | if test -z "$ac_cpp_err"; then |
| 11152 | ac_header_preproc=yes |
| 11153 | else |
| 11154 | echo "$as_me: failed program was:" >&5 |
| 11155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11156 | |
| 11157 | ac_header_preproc=no |
| 11158 | fi |
| 11159 | |
| 11160 | rm -f conftest.err conftest.$ac_ext |
| 11161 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11162 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11163 | |
| 11164 | # So? What about this header? |
| 11165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11166 | yes:no: ) |
| 11167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11171 | ac_header_preproc=yes |
| 11172 | ;; |
| 11173 | no:yes:* ) |
| 11174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11185 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11186 | ( cat <<\_ASBOX |
| 11187 | ## ----------------------------------- ## |
| 11188 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11189 | ## ----------------------------------- ## |
| 11190 | _ASBOX |
| 11191 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11192 | ;; |
| 11193 | esac |
| 11194 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11196 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11198 | else |
| 11199 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11200 | fi |
| 11201 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11203 | echo "${ECHO_T}$ac_res" >&6; } |
| 11204 | |
| 11205 | fi |
| 11206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11207 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11209 | _ACEOF |
| 11210 | |
| 11211 | fi |
| 11212 | |
| 11213 | done |
| 11214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11215 | |
| 11216 | |
| 11217 | |
| 11218 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11219 | 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] | 11220 | do |
| 11221 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11222 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11223 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11225 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11227 | fi |
| 11228 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11229 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11230 | echo "${ECHO_T}$ac_res" >&6; } |
| 11231 | else |
| 11232 | # Is the header compilable? |
| 11233 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11234 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11235 | cat >conftest.$ac_ext <<_ACEOF |
| 11236 | /* confdefs.h. */ |
| 11237 | _ACEOF |
| 11238 | cat confdefs.h >>conftest.$ac_ext |
| 11239 | cat >>conftest.$ac_ext <<_ACEOF |
| 11240 | /* end confdefs.h. */ |
| 11241 | $ac_includes_default |
| 11242 | #include <$ac_header> |
| 11243 | _ACEOF |
| 11244 | rm -f conftest.$ac_objext |
| 11245 | if { (ac_try="$ac_compile" |
| 11246 | case "(($ac_try" in |
| 11247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11248 | *) ac_try_echo=$ac_try;; |
| 11249 | esac |
| 11250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11251 | (eval "$ac_compile") 2>conftest.er1 |
| 11252 | ac_status=$? |
| 11253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11254 | rm -f conftest.er1 |
| 11255 | cat conftest.err >&5 |
| 11256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11257 | (exit $ac_status); } && |
| 11258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11259 | { (case "(($ac_try" in |
| 11260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11261 | *) ac_try_echo=$ac_try;; |
| 11262 | esac |
| 11263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11264 | (eval "$ac_try") 2>&5 |
| 11265 | ac_status=$? |
| 11266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11267 | (exit $ac_status); }; } && |
| 11268 | { ac_try='test -s conftest.$ac_objext' |
| 11269 | { (case "(($ac_try" in |
| 11270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11271 | *) ac_try_echo=$ac_try;; |
| 11272 | esac |
| 11273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11274 | (eval "$ac_try") 2>&5 |
| 11275 | ac_status=$? |
| 11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11277 | (exit $ac_status); }; }; then |
| 11278 | ac_header_compiler=yes |
| 11279 | else |
| 11280 | echo "$as_me: failed program was:" >&5 |
| 11281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11282 | |
| 11283 | ac_header_compiler=no |
| 11284 | fi |
| 11285 | |
| 11286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11287 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11288 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11289 | |
| 11290 | # Is the header present? |
| 11291 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11292 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11293 | cat >conftest.$ac_ext <<_ACEOF |
| 11294 | /* confdefs.h. */ |
| 11295 | _ACEOF |
| 11296 | cat confdefs.h >>conftest.$ac_ext |
| 11297 | cat >>conftest.$ac_ext <<_ACEOF |
| 11298 | /* end confdefs.h. */ |
| 11299 | #include <$ac_header> |
| 11300 | _ACEOF |
| 11301 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11302 | case "(($ac_try" in |
| 11303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11304 | *) ac_try_echo=$ac_try;; |
| 11305 | esac |
| 11306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11307 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11308 | ac_status=$? |
| 11309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11310 | rm -f conftest.er1 |
| 11311 | cat conftest.err >&5 |
| 11312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11313 | (exit $ac_status); } >/dev/null; then |
| 11314 | if test -s conftest.err; then |
| 11315 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11316 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11317 | else |
| 11318 | ac_cpp_err= |
| 11319 | fi |
| 11320 | else |
| 11321 | ac_cpp_err=yes |
| 11322 | fi |
| 11323 | if test -z "$ac_cpp_err"; then |
| 11324 | ac_header_preproc=yes |
| 11325 | else |
| 11326 | echo "$as_me: failed program was:" >&5 |
| 11327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11328 | |
| 11329 | ac_header_preproc=no |
| 11330 | fi |
| 11331 | |
| 11332 | rm -f conftest.err conftest.$ac_ext |
| 11333 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11334 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11335 | |
| 11336 | # So? What about this header? |
| 11337 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11338 | yes:no: ) |
| 11339 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11340 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11341 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11342 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11343 | ac_header_preproc=yes |
| 11344 | ;; |
| 11345 | no:yes:* ) |
| 11346 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11347 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11348 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11349 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11350 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11351 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11352 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11353 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11354 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11355 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11356 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11357 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11358 | ( cat <<\_ASBOX |
| 11359 | ## ----------------------------------- ## |
| 11360 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11361 | ## ----------------------------------- ## |
| 11362 | _ASBOX |
| 11363 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11364 | ;; |
| 11365 | esac |
| 11366 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11368 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11370 | else |
| 11371 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11372 | fi |
| 11373 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11374 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11375 | echo "${ECHO_T}$ac_res" >&6; } |
| 11376 | |
| 11377 | fi |
| 11378 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11379 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11380 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11381 | _ACEOF |
| 11382 | |
| 11383 | fi |
| 11384 | |
| 11385 | done |
| 11386 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11387 | |
| 11388 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11389 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11390 | do |
| 11391 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11397 | fi |
| 11398 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11400 | echo "${ECHO_T}$ac_res" >&6; } |
| 11401 | else |
| 11402 | # Is the header compilable? |
| 11403 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11405 | cat >conftest.$ac_ext <<_ACEOF |
| 11406 | /* confdefs.h. */ |
| 11407 | _ACEOF |
| 11408 | cat confdefs.h >>conftest.$ac_ext |
| 11409 | cat >>conftest.$ac_ext <<_ACEOF |
| 11410 | /* end confdefs.h. */ |
| 11411 | $ac_includes_default |
| 11412 | #include <$ac_header> |
| 11413 | _ACEOF |
| 11414 | rm -f conftest.$ac_objext |
| 11415 | if { (ac_try="$ac_compile" |
| 11416 | case "(($ac_try" in |
| 11417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11418 | *) ac_try_echo=$ac_try;; |
| 11419 | esac |
| 11420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11421 | (eval "$ac_compile") 2>conftest.er1 |
| 11422 | ac_status=$? |
| 11423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11424 | rm -f conftest.er1 |
| 11425 | cat conftest.err >&5 |
| 11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11427 | (exit $ac_status); } && |
| 11428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11429 | { (case "(($ac_try" in |
| 11430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11431 | *) ac_try_echo=$ac_try;; |
| 11432 | esac |
| 11433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11434 | (eval "$ac_try") 2>&5 |
| 11435 | ac_status=$? |
| 11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11437 | (exit $ac_status); }; } && |
| 11438 | { ac_try='test -s conftest.$ac_objext' |
| 11439 | { (case "(($ac_try" in |
| 11440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11441 | *) ac_try_echo=$ac_try;; |
| 11442 | esac |
| 11443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11444 | (eval "$ac_try") 2>&5 |
| 11445 | ac_status=$? |
| 11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11447 | (exit $ac_status); }; }; then |
| 11448 | ac_header_compiler=yes |
| 11449 | else |
| 11450 | echo "$as_me: failed program was:" >&5 |
| 11451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11452 | |
| 11453 | ac_header_compiler=no |
| 11454 | fi |
| 11455 | |
| 11456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11457 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11458 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11459 | |
| 11460 | # Is the header present? |
| 11461 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11463 | cat >conftest.$ac_ext <<_ACEOF |
| 11464 | /* confdefs.h. */ |
| 11465 | _ACEOF |
| 11466 | cat confdefs.h >>conftest.$ac_ext |
| 11467 | cat >>conftest.$ac_ext <<_ACEOF |
| 11468 | /* end confdefs.h. */ |
| 11469 | #include <$ac_header> |
| 11470 | _ACEOF |
| 11471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11472 | case "(($ac_try" in |
| 11473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11474 | *) ac_try_echo=$ac_try;; |
| 11475 | esac |
| 11476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11478 | ac_status=$? |
| 11479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11480 | rm -f conftest.er1 |
| 11481 | cat conftest.err >&5 |
| 11482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11483 | (exit $ac_status); } >/dev/null; then |
| 11484 | if test -s conftest.err; then |
| 11485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11487 | else |
| 11488 | ac_cpp_err= |
| 11489 | fi |
| 11490 | else |
| 11491 | ac_cpp_err=yes |
| 11492 | fi |
| 11493 | if test -z "$ac_cpp_err"; then |
| 11494 | ac_header_preproc=yes |
| 11495 | else |
| 11496 | echo "$as_me: failed program was:" >&5 |
| 11497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11498 | |
| 11499 | ac_header_preproc=no |
| 11500 | fi |
| 11501 | |
| 11502 | rm -f conftest.err conftest.$ac_ext |
| 11503 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11504 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11505 | |
| 11506 | # So? What about this header? |
| 11507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11508 | yes:no: ) |
| 11509 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11510 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11512 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11513 | ac_header_preproc=yes |
| 11514 | ;; |
| 11515 | no:yes:* ) |
| 11516 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11517 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11518 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11519 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11520 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11521 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11522 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11523 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11525 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11526 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11527 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11528 | ( cat <<\_ASBOX |
| 11529 | ## ----------------------------------- ## |
| 11530 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11531 | ## ----------------------------------- ## |
| 11532 | _ASBOX |
| 11533 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11534 | ;; |
| 11535 | esac |
| 11536 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11538 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11540 | else |
| 11541 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11542 | fi |
| 11543 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11544 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11545 | echo "${ECHO_T}$ac_res" >&6; } |
| 11546 | |
| 11547 | fi |
| 11548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11549 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11551 | _ACEOF |
| 11552 | break |
| 11553 | fi |
| 11554 | |
| 11555 | done |
| 11556 | |
| 11557 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11558 | |
| 11559 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11560 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11561 | do |
| 11562 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11563 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11564 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11565 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11567 | else |
| 11568 | cat >conftest.$ac_ext <<_ACEOF |
| 11569 | /* confdefs.h. */ |
| 11570 | _ACEOF |
| 11571 | cat confdefs.h >>conftest.$ac_ext |
| 11572 | cat >>conftest.$ac_ext <<_ACEOF |
| 11573 | /* end confdefs.h. */ |
| 11574 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11575 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11576 | #define $ac_func innocuous_$ac_func |
| 11577 | |
| 11578 | /* System header to define __stub macros and hopefully few prototypes, |
| 11579 | which can conflict with char $ac_func (); below. |
| 11580 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11581 | <limits.h> exists even on freestanding compilers. */ |
| 11582 | |
| 11583 | #ifdef __STDC__ |
| 11584 | # include <limits.h> |
| 11585 | #else |
| 11586 | # include <assert.h> |
| 11587 | #endif |
| 11588 | |
| 11589 | #undef $ac_func |
| 11590 | |
| 11591 | /* Override any GCC internal prototype to avoid an error. |
| 11592 | Use char because int might match the return type of a GCC |
| 11593 | builtin and then its argument prototype would still apply. */ |
| 11594 | #ifdef __cplusplus |
| 11595 | extern "C" |
| 11596 | #endif |
| 11597 | char $ac_func (); |
| 11598 | /* The GNU C library defines this for functions which it implements |
| 11599 | to always fail with ENOSYS. Some functions are actually named |
| 11600 | something starting with __ and the normal name is an alias. */ |
| 11601 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11602 | choke me |
| 11603 | #endif |
| 11604 | |
| 11605 | int |
| 11606 | main () |
| 11607 | { |
| 11608 | return $ac_func (); |
| 11609 | ; |
| 11610 | return 0; |
| 11611 | } |
| 11612 | _ACEOF |
| 11613 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11614 | if { (ac_try="$ac_link" |
| 11615 | case "(($ac_try" in |
| 11616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11617 | *) ac_try_echo=$ac_try;; |
| 11618 | esac |
| 11619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11620 | (eval "$ac_link") 2>conftest.er1 |
| 11621 | ac_status=$? |
| 11622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11623 | rm -f conftest.er1 |
| 11624 | cat conftest.err >&5 |
| 11625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11626 | (exit $ac_status); } && |
| 11627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11628 | { (case "(($ac_try" in |
| 11629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11630 | *) ac_try_echo=$ac_try;; |
| 11631 | esac |
| 11632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11633 | (eval "$ac_try") 2>&5 |
| 11634 | ac_status=$? |
| 11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11636 | (exit $ac_status); }; } && |
| 11637 | { ac_try='test -s conftest$ac_exeext' |
| 11638 | { (case "(($ac_try" in |
| 11639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11640 | *) ac_try_echo=$ac_try;; |
| 11641 | esac |
| 11642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11643 | (eval "$ac_try") 2>&5 |
| 11644 | ac_status=$? |
| 11645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11646 | (exit $ac_status); }; }; then |
| 11647 | eval "$as_ac_var=yes" |
| 11648 | else |
| 11649 | echo "$as_me: failed program was:" >&5 |
| 11650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11651 | |
| 11652 | eval "$as_ac_var=no" |
| 11653 | fi |
| 11654 | |
| 11655 | rm -f core conftest.err conftest.$ac_objext \ |
| 11656 | conftest$ac_exeext conftest.$ac_ext |
| 11657 | fi |
| 11658 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11659 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11660 | echo "${ECHO_T}$ac_res" >&6; } |
| 11661 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11662 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11663 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11664 | _ACEOF |
| 11665 | break |
| 11666 | fi |
| 11667 | done |
| 11668 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11669 | |
| 11670 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11671 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11672 | do |
| 11673 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11674 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11675 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11676 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11678 | else |
| 11679 | cat >conftest.$ac_ext <<_ACEOF |
| 11680 | /* confdefs.h. */ |
| 11681 | _ACEOF |
| 11682 | cat confdefs.h >>conftest.$ac_ext |
| 11683 | cat >>conftest.$ac_ext <<_ACEOF |
| 11684 | /* end confdefs.h. */ |
| 11685 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11686 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11687 | #define $ac_func innocuous_$ac_func |
| 11688 | |
| 11689 | /* System header to define __stub macros and hopefully few prototypes, |
| 11690 | which can conflict with char $ac_func (); below. |
| 11691 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11692 | <limits.h> exists even on freestanding compilers. */ |
| 11693 | |
| 11694 | #ifdef __STDC__ |
| 11695 | # include <limits.h> |
| 11696 | #else |
| 11697 | # include <assert.h> |
| 11698 | #endif |
| 11699 | |
| 11700 | #undef $ac_func |
| 11701 | |
| 11702 | /* Override any GCC internal prototype to avoid an error. |
| 11703 | Use char because int might match the return type of a GCC |
| 11704 | builtin and then its argument prototype would still apply. */ |
| 11705 | #ifdef __cplusplus |
| 11706 | extern "C" |
| 11707 | #endif |
| 11708 | char $ac_func (); |
| 11709 | /* The GNU C library defines this for functions which it implements |
| 11710 | to always fail with ENOSYS. Some functions are actually named |
| 11711 | something starting with __ and the normal name is an alias. */ |
| 11712 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11713 | choke me |
| 11714 | #endif |
| 11715 | |
| 11716 | int |
| 11717 | main () |
| 11718 | { |
| 11719 | return $ac_func (); |
| 11720 | ; |
| 11721 | return 0; |
| 11722 | } |
| 11723 | _ACEOF |
| 11724 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11725 | if { (ac_try="$ac_link" |
| 11726 | case "(($ac_try" in |
| 11727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11728 | *) ac_try_echo=$ac_try;; |
| 11729 | esac |
| 11730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11731 | (eval "$ac_link") 2>conftest.er1 |
| 11732 | ac_status=$? |
| 11733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11734 | rm -f conftest.er1 |
| 11735 | cat conftest.err >&5 |
| 11736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11737 | (exit $ac_status); } && |
| 11738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11739 | { (case "(($ac_try" in |
| 11740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11741 | *) ac_try_echo=$ac_try;; |
| 11742 | esac |
| 11743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11744 | (eval "$ac_try") 2>&5 |
| 11745 | ac_status=$? |
| 11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11747 | (exit $ac_status); }; } && |
| 11748 | { ac_try='test -s conftest$ac_exeext' |
| 11749 | { (case "(($ac_try" in |
| 11750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11751 | *) ac_try_echo=$ac_try;; |
| 11752 | esac |
| 11753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11754 | (eval "$ac_try") 2>&5 |
| 11755 | ac_status=$? |
| 11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11757 | (exit $ac_status); }; }; then |
| 11758 | eval "$as_ac_var=yes" |
| 11759 | else |
| 11760 | echo "$as_me: failed program was:" >&5 |
| 11761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11762 | |
| 11763 | eval "$as_ac_var=no" |
| 11764 | fi |
| 11765 | |
| 11766 | rm -f core conftest.err conftest.$ac_objext \ |
| 11767 | conftest$ac_exeext conftest.$ac_ext |
| 11768 | fi |
| 11769 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11770 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11771 | echo "${ECHO_T}$ac_res" >&6; } |
| 11772 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11773 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11774 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11775 | _ACEOF |
| 11776 | break |
| 11777 | fi |
| 11778 | done |
| 11779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11780 | |
| 11781 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11782 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11783 | do |
| 11784 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11785 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11786 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11787 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11789 | else |
| 11790 | cat >conftest.$ac_ext <<_ACEOF |
| 11791 | /* confdefs.h. */ |
| 11792 | _ACEOF |
| 11793 | cat confdefs.h >>conftest.$ac_ext |
| 11794 | cat >>conftest.$ac_ext <<_ACEOF |
| 11795 | /* end confdefs.h. */ |
| 11796 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11798 | #define $ac_func innocuous_$ac_func |
| 11799 | |
| 11800 | /* System header to define __stub macros and hopefully few prototypes, |
| 11801 | which can conflict with char $ac_func (); below. |
| 11802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11803 | <limits.h> exists even on freestanding compilers. */ |
| 11804 | |
| 11805 | #ifdef __STDC__ |
| 11806 | # include <limits.h> |
| 11807 | #else |
| 11808 | # include <assert.h> |
| 11809 | #endif |
| 11810 | |
| 11811 | #undef $ac_func |
| 11812 | |
| 11813 | /* Override any GCC internal prototype to avoid an error. |
| 11814 | Use char because int might match the return type of a GCC |
| 11815 | builtin and then its argument prototype would still apply. */ |
| 11816 | #ifdef __cplusplus |
| 11817 | extern "C" |
| 11818 | #endif |
| 11819 | char $ac_func (); |
| 11820 | /* The GNU C library defines this for functions which it implements |
| 11821 | to always fail with ENOSYS. Some functions are actually named |
| 11822 | something starting with __ and the normal name is an alias. */ |
| 11823 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11824 | choke me |
| 11825 | #endif |
| 11826 | |
| 11827 | int |
| 11828 | main () |
| 11829 | { |
| 11830 | return $ac_func (); |
| 11831 | ; |
| 11832 | return 0; |
| 11833 | } |
| 11834 | _ACEOF |
| 11835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11836 | if { (ac_try="$ac_link" |
| 11837 | case "(($ac_try" in |
| 11838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11839 | *) ac_try_echo=$ac_try;; |
| 11840 | esac |
| 11841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11842 | (eval "$ac_link") 2>conftest.er1 |
| 11843 | ac_status=$? |
| 11844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11845 | rm -f conftest.er1 |
| 11846 | cat conftest.err >&5 |
| 11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11848 | (exit $ac_status); } && |
| 11849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11850 | { (case "(($ac_try" in |
| 11851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11852 | *) ac_try_echo=$ac_try;; |
| 11853 | esac |
| 11854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11855 | (eval "$ac_try") 2>&5 |
| 11856 | ac_status=$? |
| 11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11858 | (exit $ac_status); }; } && |
| 11859 | { ac_try='test -s conftest$ac_exeext' |
| 11860 | { (case "(($ac_try" in |
| 11861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11862 | *) ac_try_echo=$ac_try;; |
| 11863 | esac |
| 11864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11865 | (eval "$ac_try") 2>&5 |
| 11866 | ac_status=$? |
| 11867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11868 | (exit $ac_status); }; }; then |
| 11869 | eval "$as_ac_var=yes" |
| 11870 | else |
| 11871 | echo "$as_me: failed program was:" >&5 |
| 11872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11873 | |
| 11874 | eval "$as_ac_var=no" |
| 11875 | fi |
| 11876 | |
| 11877 | rm -f core conftest.err conftest.$ac_objext \ |
| 11878 | conftest$ac_exeext conftest.$ac_ext |
| 11879 | fi |
| 11880 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11881 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11882 | echo "${ECHO_T}$ac_res" >&6; } |
| 11883 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11884 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11885 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11886 | _ACEOF |
| 11887 | break |
| 11888 | fi |
| 11889 | done |
| 11890 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11891 | |
| 11892 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11893 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11894 | do |
| 11895 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11896 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11897 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11898 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11900 | else |
| 11901 | cat >conftest.$ac_ext <<_ACEOF |
| 11902 | /* confdefs.h. */ |
| 11903 | _ACEOF |
| 11904 | cat confdefs.h >>conftest.$ac_ext |
| 11905 | cat >>conftest.$ac_ext <<_ACEOF |
| 11906 | /* end confdefs.h. */ |
| 11907 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11908 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11909 | #define $ac_func innocuous_$ac_func |
| 11910 | |
| 11911 | /* System header to define __stub macros and hopefully few prototypes, |
| 11912 | which can conflict with char $ac_func (); below. |
| 11913 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11914 | <limits.h> exists even on freestanding compilers. */ |
| 11915 | |
| 11916 | #ifdef __STDC__ |
| 11917 | # include <limits.h> |
| 11918 | #else |
| 11919 | # include <assert.h> |
| 11920 | #endif |
| 11921 | |
| 11922 | #undef $ac_func |
| 11923 | |
| 11924 | /* Override any GCC internal prototype to avoid an error. |
| 11925 | Use char because int might match the return type of a GCC |
| 11926 | builtin and then its argument prototype would still apply. */ |
| 11927 | #ifdef __cplusplus |
| 11928 | extern "C" |
| 11929 | #endif |
| 11930 | char $ac_func (); |
| 11931 | /* The GNU C library defines this for functions which it implements |
| 11932 | to always fail with ENOSYS. Some functions are actually named |
| 11933 | something starting with __ and the normal name is an alias. */ |
| 11934 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11935 | choke me |
| 11936 | #endif |
| 11937 | |
| 11938 | int |
| 11939 | main () |
| 11940 | { |
| 11941 | return $ac_func (); |
| 11942 | ; |
| 11943 | return 0; |
| 11944 | } |
| 11945 | _ACEOF |
| 11946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11947 | if { (ac_try="$ac_link" |
| 11948 | case "(($ac_try" in |
| 11949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11950 | *) ac_try_echo=$ac_try;; |
| 11951 | esac |
| 11952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11953 | (eval "$ac_link") 2>conftest.er1 |
| 11954 | ac_status=$? |
| 11955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11956 | rm -f conftest.er1 |
| 11957 | cat conftest.err >&5 |
| 11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11959 | (exit $ac_status); } && |
| 11960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11961 | { (case "(($ac_try" in |
| 11962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11963 | *) ac_try_echo=$ac_try;; |
| 11964 | esac |
| 11965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11966 | (eval "$ac_try") 2>&5 |
| 11967 | ac_status=$? |
| 11968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11969 | (exit $ac_status); }; } && |
| 11970 | { ac_try='test -s conftest$ac_exeext' |
| 11971 | { (case "(($ac_try" in |
| 11972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11973 | *) ac_try_echo=$ac_try;; |
| 11974 | esac |
| 11975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11976 | (eval "$ac_try") 2>&5 |
| 11977 | ac_status=$? |
| 11978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11979 | (exit $ac_status); }; }; then |
| 11980 | eval "$as_ac_var=yes" |
| 11981 | else |
| 11982 | echo "$as_me: failed program was:" >&5 |
| 11983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11984 | |
| 11985 | eval "$as_ac_var=no" |
| 11986 | fi |
| 11987 | |
| 11988 | rm -f core conftest.err conftest.$ac_objext \ |
| 11989 | conftest$ac_exeext conftest.$ac_ext |
| 11990 | fi |
| 11991 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11992 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11993 | echo "${ECHO_T}$ac_res" >&6; } |
| 11994 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11995 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11997 | _ACEOF |
| 11998 | |
| 11999 | fi |
| 12000 | done |
| 12001 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12002 | |
| 12003 | |
| 12004 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12005 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12006 | do |
| 12007 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12008 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12009 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12010 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12012 | else |
| 12013 | cat >conftest.$ac_ext <<_ACEOF |
| 12014 | /* confdefs.h. */ |
| 12015 | _ACEOF |
| 12016 | cat confdefs.h >>conftest.$ac_ext |
| 12017 | cat >>conftest.$ac_ext <<_ACEOF |
| 12018 | /* end confdefs.h. */ |
| 12019 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12021 | #define $ac_func innocuous_$ac_func |
| 12022 | |
| 12023 | /* System header to define __stub macros and hopefully few prototypes, |
| 12024 | which can conflict with char $ac_func (); below. |
| 12025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12026 | <limits.h> exists even on freestanding compilers. */ |
| 12027 | |
| 12028 | #ifdef __STDC__ |
| 12029 | # include <limits.h> |
| 12030 | #else |
| 12031 | # include <assert.h> |
| 12032 | #endif |
| 12033 | |
| 12034 | #undef $ac_func |
| 12035 | |
| 12036 | /* Override any GCC internal prototype to avoid an error. |
| 12037 | Use char because int might match the return type of a GCC |
| 12038 | builtin and then its argument prototype would still apply. */ |
| 12039 | #ifdef __cplusplus |
| 12040 | extern "C" |
| 12041 | #endif |
| 12042 | char $ac_func (); |
| 12043 | /* The GNU C library defines this for functions which it implements |
| 12044 | to always fail with ENOSYS. Some functions are actually named |
| 12045 | something starting with __ and the normal name is an alias. */ |
| 12046 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12047 | choke me |
| 12048 | #endif |
| 12049 | |
| 12050 | int |
| 12051 | main () |
| 12052 | { |
| 12053 | return $ac_func (); |
| 12054 | ; |
| 12055 | return 0; |
| 12056 | } |
| 12057 | _ACEOF |
| 12058 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12059 | if { (ac_try="$ac_link" |
| 12060 | case "(($ac_try" in |
| 12061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12062 | *) ac_try_echo=$ac_try;; |
| 12063 | esac |
| 12064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12065 | (eval "$ac_link") 2>conftest.er1 |
| 12066 | ac_status=$? |
| 12067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12068 | rm -f conftest.er1 |
| 12069 | cat conftest.err >&5 |
| 12070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12071 | (exit $ac_status); } && |
| 12072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12073 | { (case "(($ac_try" in |
| 12074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12075 | *) ac_try_echo=$ac_try;; |
| 12076 | esac |
| 12077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12078 | (eval "$ac_try") 2>&5 |
| 12079 | ac_status=$? |
| 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12081 | (exit $ac_status); }; } && |
| 12082 | { ac_try='test -s conftest$ac_exeext' |
| 12083 | { (case "(($ac_try" in |
| 12084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12085 | *) ac_try_echo=$ac_try;; |
| 12086 | esac |
| 12087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12088 | (eval "$ac_try") 2>&5 |
| 12089 | ac_status=$? |
| 12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12091 | (exit $ac_status); }; }; then |
| 12092 | eval "$as_ac_var=yes" |
| 12093 | else |
| 12094 | echo "$as_me: failed program was:" >&5 |
| 12095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12096 | |
| 12097 | eval "$as_ac_var=no" |
| 12098 | fi |
| 12099 | |
| 12100 | rm -f core conftest.err conftest.$ac_objext \ |
| 12101 | conftest$ac_exeext conftest.$ac_ext |
| 12102 | fi |
| 12103 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12104 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12105 | echo "${ECHO_T}$ac_res" >&6; } |
| 12106 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12107 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12108 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12109 | _ACEOF |
| 12110 | |
| 12111 | fi |
| 12112 | done |
| 12113 | |
| 12114 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12115 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12116 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12117 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12118 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12119 | ICC=no |
| 12120 | IXX=no |
| 12121 | case $CC in |
| 12122 | icc*|icpc*) |
| 12123 | ICC=yes |
| 12124 | IXX=yes |
| 12125 | ;; |
| 12126 | *) |
| 12127 | ;; |
| 12128 | esac |
| 12129 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12130 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12131 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12132 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12133 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12134 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12135 | fi |
| 12136 | |
| 12137 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12138 | then |
Eric Christopher | 73e36da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 12139 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 12140 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12141 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12142 | fi |
| 12143 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12144 | if test "$GCC" = "yes" |
| 12145 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12146 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12147 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12148 | #error Unsupported GCC version |
| 12149 | #endif |
| 12150 | |
| 12151 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12152 | rm -f conftest.$ac_objext |
| 12153 | if { (ac_try="$ac_compile" |
| 12154 | case "(($ac_try" in |
| 12155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12156 | *) ac_try_echo=$ac_try;; |
| 12157 | esac |
| 12158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12159 | (eval "$ac_compile") 2>conftest.er1 |
| 12160 | ac_status=$? |
| 12161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12162 | rm -f conftest.er1 |
| 12163 | cat conftest.err >&5 |
| 12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12165 | (exit $ac_status); } && |
| 12166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12167 | { (case "(($ac_try" in |
| 12168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12169 | *) ac_try_echo=$ac_try;; |
| 12170 | esac |
| 12171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12172 | (eval "$ac_try") 2>&5 |
| 12173 | ac_status=$? |
| 12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12175 | (exit $ac_status); }; } && |
| 12176 | { ac_try='test -s conftest.$ac_objext' |
| 12177 | { (case "(($ac_try" in |
| 12178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12179 | *) ac_try_echo=$ac_try;; |
| 12180 | esac |
| 12181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12182 | (eval "$ac_try") 2>&5 |
| 12183 | ac_status=$? |
| 12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12185 | (exit $ac_status); }; }; then |
| 12186 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12187 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12188 | echo "$as_me: failed program was:" >&5 |
| 12189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12190 | |
| 12191 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12192 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12193 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12194 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12195 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12197 | fi |
| 12198 | |
| 12199 | if test -z "$llvm_cv_gnu_make_command" |
| 12200 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12201 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12202 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12203 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12204 | fi |
| 12205 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12206 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12207 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12208 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12209 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12210 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12211 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 12212 | |
| 12213 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 12214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12215 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 12216 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12217 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12219 | |
| 12220 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12221 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12222 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12224 | else |
| 12225 | ac_check_lib_save_LIBS=$LIBS |
| 12226 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12227 | cat >conftest.$ac_ext <<_ACEOF |
| 12228 | /* confdefs.h. */ |
| 12229 | _ACEOF |
| 12230 | cat confdefs.h >>conftest.$ac_ext |
| 12231 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12232 | /* end confdefs.h. */ |
| 12233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12234 | /* Override any GCC internal prototype to avoid an error. |
| 12235 | Use char because int might match the return type of a GCC |
| 12236 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12237 | #ifdef __cplusplus |
| 12238 | extern "C" |
| 12239 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12240 | char sin (); |
| 12241 | int |
| 12242 | main () |
| 12243 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12244 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12245 | ; |
| 12246 | return 0; |
| 12247 | } |
| 12248 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12249 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12250 | if { (ac_try="$ac_link" |
| 12251 | case "(($ac_try" in |
| 12252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12253 | *) ac_try_echo=$ac_try;; |
| 12254 | esac |
| 12255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12256 | (eval "$ac_link") 2>conftest.er1 |
| 12257 | ac_status=$? |
| 12258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12259 | rm -f conftest.er1 |
| 12260 | cat conftest.err >&5 |
| 12261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12262 | (exit $ac_status); } && |
| 12263 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12264 | { (case "(($ac_try" in |
| 12265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12266 | *) ac_try_echo=$ac_try;; |
| 12267 | esac |
| 12268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12269 | (eval "$ac_try") 2>&5 |
| 12270 | ac_status=$? |
| 12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12272 | (exit $ac_status); }; } && |
| 12273 | { ac_try='test -s conftest$ac_exeext' |
| 12274 | { (case "(($ac_try" in |
| 12275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12276 | *) ac_try_echo=$ac_try;; |
| 12277 | esac |
| 12278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12279 | (eval "$ac_try") 2>&5 |
| 12280 | ac_status=$? |
| 12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12282 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12283 | ac_cv_lib_m_sin=yes |
| 12284 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12285 | echo "$as_me: failed program was:" >&5 |
| 12286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12287 | |
| 12288 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12289 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12290 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12291 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12292 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12293 | LIBS=$ac_check_lib_save_LIBS |
| 12294 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12295 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 12296 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 12297 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12298 | cat >>confdefs.h <<_ACEOF |
| 12299 | #define HAVE_LIBM 1 |
| 12300 | _ACEOF |
| 12301 | |
| 12302 | LIBS="-lm $LIBS" |
| 12303 | |
| 12304 | fi |
| 12305 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12306 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12307 | |
| 12308 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 12309 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 12310 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 12311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12312 | else |
| 12313 | ac_check_lib_save_LIBS=$LIBS |
| 12314 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12315 | cat >conftest.$ac_ext <<_ACEOF |
| 12316 | /* confdefs.h. */ |
| 12317 | _ACEOF |
| 12318 | cat confdefs.h >>conftest.$ac_ext |
| 12319 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12320 | /* end confdefs.h. */ |
| 12321 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12322 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12323 | int |
| 12324 | main () |
| 12325 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12326 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12327 | ; |
| 12328 | return 0; |
| 12329 | } |
| 12330 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12331 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12332 | if { (ac_try="$ac_link" |
| 12333 | case "(($ac_try" in |
| 12334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12335 | *) ac_try_echo=$ac_try;; |
| 12336 | esac |
| 12337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12338 | (eval "$ac_link") 2>conftest.er1 |
| 12339 | ac_status=$? |
| 12340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12341 | rm -f conftest.er1 |
| 12342 | cat conftest.err >&5 |
| 12343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12344 | (exit $ac_status); } && |
| 12345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12346 | { (case "(($ac_try" in |
| 12347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12348 | *) ac_try_echo=$ac_try;; |
| 12349 | esac |
| 12350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12351 | (eval "$ac_try") 2>&5 |
| 12352 | ac_status=$? |
| 12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12354 | (exit $ac_status); }; } && |
| 12355 | { ac_try='test -s conftest$ac_exeext' |
| 12356 | { (case "(($ac_try" in |
| 12357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12358 | *) ac_try_echo=$ac_try;; |
| 12359 | esac |
| 12360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12361 | (eval "$ac_try") 2>&5 |
| 12362 | ac_status=$? |
| 12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12364 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12365 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12366 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12367 | echo "$as_me: failed program was:" >&5 |
| 12368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12369 | |
| 12370 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12371 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12372 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12373 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12374 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12375 | LIBS=$ac_check_lib_save_LIBS |
| 12376 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12377 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 12378 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 12379 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12380 | cat >>confdefs.h <<_ACEOF |
| 12381 | #define HAVE_LIBIMAGEHLP 1 |
| 12382 | _ACEOF |
| 12383 | |
| 12384 | LIBS="-limagehlp $LIBS" |
| 12385 | |
| 12386 | fi |
| 12387 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12388 | |
| 12389 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 12390 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 12391 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 12392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12393 | else |
| 12394 | ac_check_lib_save_LIBS=$LIBS |
| 12395 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12396 | cat >conftest.$ac_ext <<_ACEOF |
| 12397 | /* confdefs.h. */ |
| 12398 | _ACEOF |
| 12399 | cat confdefs.h >>conftest.$ac_ext |
| 12400 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12401 | /* end confdefs.h. */ |
| 12402 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12403 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12404 | int |
| 12405 | main () |
| 12406 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12407 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12408 | ; |
| 12409 | return 0; |
| 12410 | } |
| 12411 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12412 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12413 | if { (ac_try="$ac_link" |
| 12414 | case "(($ac_try" in |
| 12415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12416 | *) ac_try_echo=$ac_try;; |
| 12417 | esac |
| 12418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12419 | (eval "$ac_link") 2>conftest.er1 |
| 12420 | ac_status=$? |
| 12421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12422 | rm -f conftest.er1 |
| 12423 | cat conftest.err >&5 |
| 12424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12425 | (exit $ac_status); } && |
| 12426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12427 | { (case "(($ac_try" in |
| 12428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12429 | *) ac_try_echo=$ac_try;; |
| 12430 | esac |
| 12431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12432 | (eval "$ac_try") 2>&5 |
| 12433 | ac_status=$? |
| 12434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12435 | (exit $ac_status); }; } && |
| 12436 | { ac_try='test -s conftest$ac_exeext' |
| 12437 | { (case "(($ac_try" in |
| 12438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12439 | *) ac_try_echo=$ac_try;; |
| 12440 | esac |
| 12441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12442 | (eval "$ac_try") 2>&5 |
| 12443 | ac_status=$? |
| 12444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12445 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12446 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12447 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12448 | echo "$as_me: failed program was:" >&5 |
| 12449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12450 | |
| 12451 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12452 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12453 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12454 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12455 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12456 | LIBS=$ac_check_lib_save_LIBS |
| 12457 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12458 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 12459 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 12460 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12461 | cat >>confdefs.h <<_ACEOF |
| 12462 | #define HAVE_LIBPSAPI 1 |
| 12463 | _ACEOF |
| 12464 | |
| 12465 | LIBS="-lpsapi $LIBS" |
| 12466 | |
| 12467 | fi |
| 12468 | |
| 12469 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12470 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12471 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 12472 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 12473 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12475 | else |
| 12476 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12477 | cat >conftest.$ac_ext <<_ACEOF |
| 12478 | /* confdefs.h. */ |
| 12479 | _ACEOF |
| 12480 | cat confdefs.h >>conftest.$ac_ext |
| 12481 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12482 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12483 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12484 | /* Override any GCC internal prototype to avoid an error. |
| 12485 | Use char because int might match the return type of a GCC |
| 12486 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12487 | #ifdef __cplusplus |
| 12488 | extern "C" |
| 12489 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12490 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12491 | int |
| 12492 | main () |
| 12493 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12494 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12495 | ; |
| 12496 | return 0; |
| 12497 | } |
| 12498 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12499 | for ac_lib in '' dl; do |
| 12500 | if test -z "$ac_lib"; then |
| 12501 | ac_res="none required" |
| 12502 | else |
| 12503 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12504 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12505 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12506 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12507 | if { (ac_try="$ac_link" |
| 12508 | case "(($ac_try" in |
| 12509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12510 | *) ac_try_echo=$ac_try;; |
| 12511 | esac |
| 12512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12513 | (eval "$ac_link") 2>conftest.er1 |
| 12514 | ac_status=$? |
| 12515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12516 | rm -f conftest.er1 |
| 12517 | cat conftest.err >&5 |
| 12518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12519 | (exit $ac_status); } && |
| 12520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12521 | { (case "(($ac_try" in |
| 12522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12523 | *) ac_try_echo=$ac_try;; |
| 12524 | esac |
| 12525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12526 | (eval "$ac_try") 2>&5 |
| 12527 | ac_status=$? |
| 12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12529 | (exit $ac_status); }; } && |
| 12530 | { ac_try='test -s conftest$ac_exeext' |
| 12531 | { (case "(($ac_try" in |
| 12532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12533 | *) ac_try_echo=$ac_try;; |
| 12534 | esac |
| 12535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12536 | (eval "$ac_try") 2>&5 |
| 12537 | ac_status=$? |
| 12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12539 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12540 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12541 | else |
| 12542 | echo "$as_me: failed program was:" >&5 |
| 12543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12544 | |
| 12545 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12546 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12547 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12548 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12549 | conftest$ac_exeext |
| 12550 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12551 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12552 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12553 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12554 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12555 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12556 | else |
| 12557 | ac_cv_search_dlopen=no |
| 12558 | fi |
| 12559 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12560 | LIBS=$ac_func_search_save_LIBS |
| 12561 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12562 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 12563 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12564 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12565 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12566 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12567 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12568 | cat >>confdefs.h <<\_ACEOF |
| 12569 | #define HAVE_DLOPEN 1 |
| 12570 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12571 | |
| 12572 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12573 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 12574 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12575 | fi |
| 12576 | |
| 12577 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12578 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12579 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 12580 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 12581 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12583 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12584 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12585 | cat >conftest.$ac_ext <<_ACEOF |
| 12586 | /* confdefs.h. */ |
| 12587 | _ACEOF |
| 12588 | cat confdefs.h >>conftest.$ac_ext |
| 12589 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12590 | /* end confdefs.h. */ |
| 12591 | |
| 12592 | /* Override any GCC internal prototype to avoid an error. |
| 12593 | Use char because int might match the return type of a GCC |
| 12594 | builtin and then its argument prototype would still apply. */ |
| 12595 | #ifdef __cplusplus |
| 12596 | extern "C" |
| 12597 | #endif |
| 12598 | char ffi_call (); |
| 12599 | int |
| 12600 | main () |
| 12601 | { |
| 12602 | return ffi_call (); |
| 12603 | ; |
| 12604 | return 0; |
| 12605 | } |
| 12606 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12607 | for ac_lib in '' ffi; do |
| 12608 | if test -z "$ac_lib"; then |
| 12609 | ac_res="none required" |
| 12610 | else |
| 12611 | ac_res=-l$ac_lib |
| 12612 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12613 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12615 | if { (ac_try="$ac_link" |
| 12616 | case "(($ac_try" in |
| 12617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12618 | *) ac_try_echo=$ac_try;; |
| 12619 | esac |
| 12620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12621 | (eval "$ac_link") 2>conftest.er1 |
| 12622 | ac_status=$? |
| 12623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12624 | rm -f conftest.er1 |
| 12625 | cat conftest.err >&5 |
| 12626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12627 | (exit $ac_status); } && |
| 12628 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12629 | { (case "(($ac_try" in |
| 12630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12631 | *) ac_try_echo=$ac_try;; |
| 12632 | esac |
| 12633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12634 | (eval "$ac_try") 2>&5 |
| 12635 | ac_status=$? |
| 12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12637 | (exit $ac_status); }; } && |
| 12638 | { ac_try='test -s conftest$ac_exeext' |
| 12639 | { (case "(($ac_try" in |
| 12640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12641 | *) ac_try_echo=$ac_try;; |
| 12642 | esac |
| 12643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12644 | (eval "$ac_try") 2>&5 |
| 12645 | ac_status=$? |
| 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12647 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12648 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12649 | else |
| 12650 | echo "$as_me: failed program was:" >&5 |
| 12651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12652 | |
| 12653 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12654 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12655 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12656 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12657 | conftest$ac_exeext |
| 12658 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12659 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12660 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12661 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12662 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12663 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12664 | else |
| 12665 | ac_cv_search_ffi_call=no |
| 12666 | fi |
| 12667 | rm conftest.$ac_ext |
| 12668 | LIBS=$ac_func_search_save_LIBS |
| 12669 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12670 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 12671 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12672 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12673 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12674 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12675 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12676 | cat >>confdefs.h <<\_ACEOF |
| 12677 | #define HAVE_FFI_CALL 1 |
| 12678 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12679 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12680 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12681 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 12682 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 12683 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12684 | fi |
| 12685 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12686 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12687 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12688 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 12689 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 12690 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12692 | else |
| 12693 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12694 | cat >conftest.$ac_ext <<_ACEOF |
| 12695 | /* confdefs.h. */ |
| 12696 | _ACEOF |
| 12697 | cat confdefs.h >>conftest.$ac_ext |
| 12698 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12699 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12700 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12701 | /* Override any GCC internal prototype to avoid an error. |
| 12702 | Use char because int might match the return type of a GCC |
| 12703 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12704 | #ifdef __cplusplus |
| 12705 | extern "C" |
| 12706 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12707 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12708 | int |
| 12709 | main () |
| 12710 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12711 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12712 | ; |
| 12713 | return 0; |
| 12714 | } |
| 12715 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12716 | for ac_lib in '' malloc; do |
| 12717 | if test -z "$ac_lib"; then |
| 12718 | ac_res="none required" |
| 12719 | else |
| 12720 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12721 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12722 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12724 | if { (ac_try="$ac_link" |
| 12725 | case "(($ac_try" in |
| 12726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12727 | *) ac_try_echo=$ac_try;; |
| 12728 | esac |
| 12729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12730 | (eval "$ac_link") 2>conftest.er1 |
| 12731 | ac_status=$? |
| 12732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12733 | rm -f conftest.er1 |
| 12734 | cat conftest.err >&5 |
| 12735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12736 | (exit $ac_status); } && |
| 12737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12738 | { (case "(($ac_try" in |
| 12739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12740 | *) ac_try_echo=$ac_try;; |
| 12741 | esac |
| 12742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12743 | (eval "$ac_try") 2>&5 |
| 12744 | ac_status=$? |
| 12745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12746 | (exit $ac_status); }; } && |
| 12747 | { ac_try='test -s conftest$ac_exeext' |
| 12748 | { (case "(($ac_try" in |
| 12749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12750 | *) ac_try_echo=$ac_try;; |
| 12751 | esac |
| 12752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12753 | (eval "$ac_try") 2>&5 |
| 12754 | ac_status=$? |
| 12755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12756 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12757 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12758 | else |
| 12759 | echo "$as_me: failed program was:" >&5 |
| 12760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12761 | |
| 12762 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12763 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12764 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12765 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12766 | conftest$ac_exeext |
| 12767 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12768 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12769 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12770 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12771 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12772 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12773 | else |
| 12774 | ac_cv_search_mallinfo=no |
| 12775 | fi |
| 12776 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12777 | LIBS=$ac_func_search_save_LIBS |
| 12778 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12779 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 12780 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12781 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12782 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12783 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12784 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12785 | cat >>confdefs.h <<\_ACEOF |
| 12786 | #define HAVE_MALLINFO 1 |
| 12787 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12788 | |
| 12789 | fi |
| 12790 | |
| 12791 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 12792 | if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12793 | |
| 12794 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 12795 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 12796 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 12797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12798 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12799 | ac_check_lib_save_LIBS=$LIBS |
| 12800 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12801 | cat >conftest.$ac_ext <<_ACEOF |
| 12802 | /* confdefs.h. */ |
| 12803 | _ACEOF |
| 12804 | cat confdefs.h >>conftest.$ac_ext |
| 12805 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12806 | /* end confdefs.h. */ |
| 12807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12808 | /* Override any GCC internal prototype to avoid an error. |
| 12809 | Use char because int might match the return type of a GCC |
| 12810 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12811 | #ifdef __cplusplus |
| 12812 | extern "C" |
| 12813 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12814 | char pthread_mutex_init (); |
| 12815 | int |
| 12816 | main () |
| 12817 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12818 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12819 | ; |
| 12820 | return 0; |
| 12821 | } |
| 12822 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12823 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12824 | if { (ac_try="$ac_link" |
| 12825 | case "(($ac_try" in |
| 12826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12827 | *) ac_try_echo=$ac_try;; |
| 12828 | esac |
| 12829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12830 | (eval "$ac_link") 2>conftest.er1 |
| 12831 | ac_status=$? |
| 12832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12833 | rm -f conftest.er1 |
| 12834 | cat conftest.err >&5 |
| 12835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12836 | (exit $ac_status); } && |
| 12837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12838 | { (case "(($ac_try" in |
| 12839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12840 | *) ac_try_echo=$ac_try;; |
| 12841 | esac |
| 12842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12843 | (eval "$ac_try") 2>&5 |
| 12844 | ac_status=$? |
| 12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12846 | (exit $ac_status); }; } && |
| 12847 | { ac_try='test -s conftest$ac_exeext' |
| 12848 | { (case "(($ac_try" in |
| 12849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12850 | *) ac_try_echo=$ac_try;; |
| 12851 | esac |
| 12852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12853 | (eval "$ac_try") 2>&5 |
| 12854 | ac_status=$? |
| 12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12856 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12857 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12858 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12859 | echo "$as_me: failed program was:" >&5 |
| 12860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12861 | |
| 12862 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12863 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12864 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12865 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12866 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12867 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12868 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12869 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 12870 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 12871 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12872 | cat >>confdefs.h <<_ACEOF |
| 12873 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12874 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12875 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12876 | LIBS="-lpthread $LIBS" |
| 12877 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12878 | fi |
| 12879 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12880 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 12881 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 12882 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12884 | else |
| 12885 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12886 | cat >conftest.$ac_ext <<_ACEOF |
| 12887 | /* confdefs.h. */ |
| 12888 | _ACEOF |
| 12889 | cat confdefs.h >>conftest.$ac_ext |
| 12890 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12891 | /* end confdefs.h. */ |
| 12892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12893 | /* Override any GCC internal prototype to avoid an error. |
| 12894 | Use char because int might match the return type of a GCC |
| 12895 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12896 | #ifdef __cplusplus |
| 12897 | extern "C" |
| 12898 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12899 | char pthread_mutex_lock (); |
| 12900 | int |
| 12901 | main () |
| 12902 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12903 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12904 | ; |
| 12905 | return 0; |
| 12906 | } |
| 12907 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12908 | for ac_lib in '' pthread; do |
| 12909 | if test -z "$ac_lib"; then |
| 12910 | ac_res="none required" |
| 12911 | else |
| 12912 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12913 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12914 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12916 | if { (ac_try="$ac_link" |
| 12917 | case "(($ac_try" in |
| 12918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12919 | *) ac_try_echo=$ac_try;; |
| 12920 | esac |
| 12921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12922 | (eval "$ac_link") 2>conftest.er1 |
| 12923 | ac_status=$? |
| 12924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12925 | rm -f conftest.er1 |
| 12926 | cat conftest.err >&5 |
| 12927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12928 | (exit $ac_status); } && |
| 12929 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12930 | { (case "(($ac_try" in |
| 12931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12932 | *) ac_try_echo=$ac_try;; |
| 12933 | esac |
| 12934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12935 | (eval "$ac_try") 2>&5 |
| 12936 | ac_status=$? |
| 12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12938 | (exit $ac_status); }; } && |
| 12939 | { ac_try='test -s conftest$ac_exeext' |
| 12940 | { (case "(($ac_try" in |
| 12941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12942 | *) ac_try_echo=$ac_try;; |
| 12943 | esac |
| 12944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12945 | (eval "$ac_try") 2>&5 |
| 12946 | ac_status=$? |
| 12947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12948 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12949 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12950 | else |
| 12951 | echo "$as_me: failed program was:" >&5 |
| 12952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12953 | |
| 12954 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12955 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12956 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12957 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12958 | conftest$ac_exeext |
| 12959 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12960 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12962 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12963 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12964 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12965 | else |
| 12966 | ac_cv_search_pthread_mutex_lock=no |
| 12967 | fi |
| 12968 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12969 | LIBS=$ac_func_search_save_LIBS |
| 12970 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12971 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 12972 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12973 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12974 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12975 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12976 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12977 | cat >>confdefs.h <<\_ACEOF |
| 12978 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 12979 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 12980 | |
| 12981 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12982 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12983 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 12984 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 12985 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 12986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12987 | else |
| 12988 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12989 | cat >conftest.$ac_ext <<_ACEOF |
| 12990 | /* confdefs.h. */ |
| 12991 | _ACEOF |
| 12992 | cat confdefs.h >>conftest.$ac_ext |
| 12993 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12994 | /* end confdefs.h. */ |
| 12995 | |
| 12996 | /* Override any GCC internal prototype to avoid an error. |
| 12997 | Use char because int might match the return type of a GCC |
| 12998 | builtin and then its argument prototype would still apply. */ |
| 12999 | #ifdef __cplusplus |
| 13000 | extern "C" |
| 13001 | #endif |
| 13002 | char pthread_rwlock_init (); |
| 13003 | int |
| 13004 | main () |
| 13005 | { |
| 13006 | return pthread_rwlock_init (); |
| 13007 | ; |
| 13008 | return 0; |
| 13009 | } |
| 13010 | _ACEOF |
| 13011 | for ac_lib in '' pthread; do |
| 13012 | if test -z "$ac_lib"; then |
| 13013 | ac_res="none required" |
| 13014 | else |
| 13015 | ac_res=-l$ac_lib |
| 13016 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13017 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13018 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13019 | if { (ac_try="$ac_link" |
| 13020 | case "(($ac_try" in |
| 13021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13022 | *) ac_try_echo=$ac_try;; |
| 13023 | esac |
| 13024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13025 | (eval "$ac_link") 2>conftest.er1 |
| 13026 | ac_status=$? |
| 13027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13028 | rm -f conftest.er1 |
| 13029 | cat conftest.err >&5 |
| 13030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13031 | (exit $ac_status); } && |
| 13032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13033 | { (case "(($ac_try" in |
| 13034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13035 | *) ac_try_echo=$ac_try;; |
| 13036 | esac |
| 13037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13038 | (eval "$ac_try") 2>&5 |
| 13039 | ac_status=$? |
| 13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13041 | (exit $ac_status); }; } && |
| 13042 | { ac_try='test -s conftest$ac_exeext' |
| 13043 | { (case "(($ac_try" in |
| 13044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13045 | *) ac_try_echo=$ac_try;; |
| 13046 | esac |
| 13047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13048 | (eval "$ac_try") 2>&5 |
| 13049 | ac_status=$? |
| 13050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13051 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13052 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13053 | else |
| 13054 | echo "$as_me: failed program was:" >&5 |
| 13055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13056 | |
| 13057 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13058 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13059 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13060 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13061 | conftest$ac_exeext |
| 13062 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13063 | break |
| 13064 | fi |
| 13065 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13066 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13067 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13068 | else |
| 13069 | ac_cv_search_pthread_rwlock_init=no |
| 13070 | fi |
| 13071 | rm conftest.$ac_ext |
| 13072 | LIBS=$ac_func_search_save_LIBS |
| 13073 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13074 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13075 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13076 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13077 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13078 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13079 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13080 | cat >>confdefs.h <<\_ACEOF |
| 13081 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13082 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13083 | |
| 13084 | fi |
| 13085 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13086 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13087 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13088 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13090 | else |
| 13091 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13092 | cat >conftest.$ac_ext <<_ACEOF |
| 13093 | /* confdefs.h. */ |
| 13094 | _ACEOF |
| 13095 | cat confdefs.h >>conftest.$ac_ext |
| 13096 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13097 | /* end confdefs.h. */ |
| 13098 | |
| 13099 | /* Override any GCC internal prototype to avoid an error. |
| 13100 | Use char because int might match the return type of a GCC |
| 13101 | builtin and then its argument prototype would still apply. */ |
| 13102 | #ifdef __cplusplus |
| 13103 | extern "C" |
| 13104 | #endif |
| 13105 | char pthread_getspecific (); |
| 13106 | int |
| 13107 | main () |
| 13108 | { |
| 13109 | return pthread_getspecific (); |
| 13110 | ; |
| 13111 | return 0; |
| 13112 | } |
| 13113 | _ACEOF |
| 13114 | for ac_lib in '' pthread; do |
| 13115 | if test -z "$ac_lib"; then |
| 13116 | ac_res="none required" |
| 13117 | else |
| 13118 | ac_res=-l$ac_lib |
| 13119 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13120 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13122 | if { (ac_try="$ac_link" |
| 13123 | case "(($ac_try" in |
| 13124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13125 | *) ac_try_echo=$ac_try;; |
| 13126 | esac |
| 13127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13128 | (eval "$ac_link") 2>conftest.er1 |
| 13129 | ac_status=$? |
| 13130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13131 | rm -f conftest.er1 |
| 13132 | cat conftest.err >&5 |
| 13133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13134 | (exit $ac_status); } && |
| 13135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13136 | { (case "(($ac_try" in |
| 13137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13138 | *) ac_try_echo=$ac_try;; |
| 13139 | esac |
| 13140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13141 | (eval "$ac_try") 2>&5 |
| 13142 | ac_status=$? |
| 13143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13144 | (exit $ac_status); }; } && |
| 13145 | { ac_try='test -s conftest$ac_exeext' |
| 13146 | { (case "(($ac_try" in |
| 13147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13148 | *) ac_try_echo=$ac_try;; |
| 13149 | esac |
| 13150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13151 | (eval "$ac_try") 2>&5 |
| 13152 | ac_status=$? |
| 13153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13154 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13155 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13156 | else |
| 13157 | echo "$as_me: failed program was:" >&5 |
| 13158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13159 | |
| 13160 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13161 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13162 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13163 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13164 | conftest$ac_exeext |
| 13165 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13166 | break |
| 13167 | fi |
| 13168 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13169 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13170 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13171 | else |
| 13172 | ac_cv_search_pthread_getspecific=no |
| 13173 | fi |
| 13174 | rm conftest.$ac_ext |
| 13175 | LIBS=$ac_func_search_save_LIBS |
| 13176 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13177 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13178 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13179 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13180 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13181 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13182 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13183 | cat >>confdefs.h <<\_ACEOF |
| 13184 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13185 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13186 | |
| 13187 | fi |
| 13188 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13189 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13190 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13191 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13192 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13193 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13194 | withval=$with_udis86; |
| 13195 | USE_UDIS86=1 |
| 13196 | |
| 13197 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13198 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13199 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13200 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13201 | |
| 13202 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13203 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13204 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13206 | else |
| 13207 | ac_check_lib_save_LIBS=$LIBS |
| 13208 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13209 | cat >conftest.$ac_ext <<_ACEOF |
| 13210 | /* confdefs.h. */ |
| 13211 | _ACEOF |
| 13212 | cat confdefs.h >>conftest.$ac_ext |
| 13213 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13214 | /* end confdefs.h. */ |
| 13215 | |
| 13216 | /* Override any GCC internal prototype to avoid an error. |
| 13217 | Use char because int might match the return type of a GCC |
| 13218 | builtin and then its argument prototype would still apply. */ |
| 13219 | #ifdef __cplusplus |
| 13220 | extern "C" |
| 13221 | #endif |
| 13222 | char ud_init (); |
| 13223 | int |
| 13224 | main () |
| 13225 | { |
| 13226 | return ud_init (); |
| 13227 | ; |
| 13228 | return 0; |
| 13229 | } |
| 13230 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13232 | if { (ac_try="$ac_link" |
| 13233 | case "(($ac_try" in |
| 13234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13235 | *) ac_try_echo=$ac_try;; |
| 13236 | esac |
| 13237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13238 | (eval "$ac_link") 2>conftest.er1 |
| 13239 | ac_status=$? |
| 13240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13241 | rm -f conftest.er1 |
| 13242 | cat conftest.err >&5 |
| 13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13244 | (exit $ac_status); } && |
| 13245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13246 | { (case "(($ac_try" in |
| 13247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13248 | *) ac_try_echo=$ac_try;; |
| 13249 | esac |
| 13250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13251 | (eval "$ac_try") 2>&5 |
| 13252 | ac_status=$? |
| 13253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13254 | (exit $ac_status); }; } && |
| 13255 | { ac_try='test -s conftest$ac_exeext' |
| 13256 | { (case "(($ac_try" in |
| 13257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13258 | *) ac_try_echo=$ac_try;; |
| 13259 | esac |
| 13260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13261 | (eval "$ac_try") 2>&5 |
| 13262 | ac_status=$? |
| 13263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13264 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13265 | ac_cv_lib_udis86_ud_init=yes |
| 13266 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13267 | echo "$as_me: failed program was:" >&5 |
| 13268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13269 | |
| 13270 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13271 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13272 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13273 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13274 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13275 | LIBS=$ac_check_lib_save_LIBS |
| 13276 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13277 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13278 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13279 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13280 | cat >>confdefs.h <<_ACEOF |
| 13281 | #define HAVE_LIBUDIS86 1 |
| 13282 | _ACEOF |
| 13283 | |
| 13284 | LIBS="-ludis86 $LIBS" |
| 13285 | |
| 13286 | else |
| 13287 | |
| 13288 | echo "Error! You need to have libudis86 around." |
| 13289 | exit -1 |
| 13290 | |
| 13291 | fi |
| 13292 | |
| 13293 | |
| 13294 | else |
| 13295 | USE_UDIS86=0 |
| 13296 | |
| 13297 | fi |
| 13298 | |
| 13299 | |
| 13300 | cat >>confdefs.h <<_ACEOF |
| 13301 | #define USE_UDIS86 $USE_UDIS86 |
| 13302 | _ACEOF |
| 13303 | |
| 13304 | |
| 13305 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13306 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13307 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13308 | withval=$with_oprofile; |
| 13309 | USE_OPROFILE=1 |
| 13310 | |
| 13311 | case "$withval" in |
| 13312 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13313 | no) llvm_cv_oppath= |
| 13314 | USE_OPROFILE=0 |
| 13315 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13316 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 13317 | CPPFLAGS="-I${withval}/include";; |
| 13318 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13319 | if test -n "$llvm_cv_oppath" ; then |
| 13320 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13321 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 13322 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 13323 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +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 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13332 | /* end confdefs.h. */ |
| 13333 | |
| 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. */ |
| 13337 | #ifdef __cplusplus |
| 13338 | extern "C" |
| 13339 | #endif |
| 13340 | char bfd_init (); |
| 13341 | int |
| 13342 | main () |
| 13343 | { |
| 13344 | return bfd_init (); |
| 13345 | ; |
| 13346 | return 0; |
| 13347 | } |
| 13348 | _ACEOF |
| 13349 | for ac_lib in '' bfd; do |
| 13350 | if test -z "$ac_lib"; then |
| 13351 | ac_res="none required" |
| 13352 | else |
| 13353 | ac_res=-l$ac_lib |
| 13354 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 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 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13390 | ac_cv_search_bfd_init=$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 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13396 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13397 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +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_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13401 | break |
| 13402 | fi |
| 13403 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13404 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13405 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13406 | else |
| 13407 | ac_cv_search_bfd_init=no |
| 13408 | fi |
| 13409 | rm conftest.$ac_ext |
| 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_bfd_init" >&5 |
| 13413 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13414 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13415 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13416 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13417 | |
| 13418 | fi |
| 13419 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13420 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 13421 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 13422 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13424 | else |
| 13425 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13426 | cat >conftest.$ac_ext <<_ACEOF |
| 13427 | /* confdefs.h. */ |
| 13428 | _ACEOF |
| 13429 | cat confdefs.h >>conftest.$ac_ext |
| 13430 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13431 | /* end confdefs.h. */ |
| 13432 | |
| 13433 | /* Override any GCC internal prototype to avoid an error. |
| 13434 | Use char because int might match the return type of a GCC |
| 13435 | builtin and then its argument prototype would still apply. */ |
| 13436 | #ifdef __cplusplus |
| 13437 | extern "C" |
| 13438 | #endif |
| 13439 | char op_open_agent (); |
| 13440 | int |
| 13441 | main () |
| 13442 | { |
| 13443 | return op_open_agent (); |
| 13444 | ; |
| 13445 | return 0; |
| 13446 | } |
| 13447 | _ACEOF |
| 13448 | for ac_lib in '' opagent; do |
| 13449 | if test -z "$ac_lib"; then |
| 13450 | ac_res="none required" |
| 13451 | else |
| 13452 | ac_res=-l$ac_lib |
| 13453 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13454 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13455 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13456 | if { (ac_try="$ac_link" |
| 13457 | case "(($ac_try" in |
| 13458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13459 | *) ac_try_echo=$ac_try;; |
| 13460 | esac |
| 13461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13462 | (eval "$ac_link") 2>conftest.er1 |
| 13463 | ac_status=$? |
| 13464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13465 | rm -f conftest.er1 |
| 13466 | cat conftest.err >&5 |
| 13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13468 | (exit $ac_status); } && |
| 13469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13470 | { (case "(($ac_try" in |
| 13471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13472 | *) ac_try_echo=$ac_try;; |
| 13473 | esac |
| 13474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13475 | (eval "$ac_try") 2>&5 |
| 13476 | ac_status=$? |
| 13477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13478 | (exit $ac_status); }; } && |
| 13479 | { ac_try='test -s conftest$ac_exeext' |
| 13480 | { (case "(($ac_try" in |
| 13481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13482 | *) ac_try_echo=$ac_try;; |
| 13483 | esac |
| 13484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13485 | (eval "$ac_try") 2>&5 |
| 13486 | ac_status=$? |
| 13487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13488 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13489 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13490 | else |
| 13491 | echo "$as_me: failed program was:" >&5 |
| 13492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13493 | |
| 13494 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13495 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13496 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13497 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13498 | conftest$ac_exeext |
| 13499 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13500 | break |
| 13501 | fi |
| 13502 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13503 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13504 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13505 | else |
| 13506 | ac_cv_search_op_open_agent=no |
| 13507 | fi |
| 13508 | rm conftest.$ac_ext |
| 13509 | LIBS=$ac_func_search_save_LIBS |
| 13510 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13511 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 13512 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13513 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13514 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13515 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13516 | |
| 13517 | else |
| 13518 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13519 | echo "Error! You need to have libopagent around." |
| 13520 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13521 | |
| 13522 | fi |
| 13523 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13524 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13525 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13526 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13527 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13529 | fi |
| 13530 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13531 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13532 | else |
| 13533 | # Is the header compilable? |
| 13534 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 13535 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 13536 | cat >conftest.$ac_ext <<_ACEOF |
| 13537 | /* confdefs.h. */ |
| 13538 | _ACEOF |
| 13539 | cat confdefs.h >>conftest.$ac_ext |
| 13540 | cat >>conftest.$ac_ext <<_ACEOF |
| 13541 | /* end confdefs.h. */ |
| 13542 | $ac_includes_default |
| 13543 | #include <opagent.h> |
| 13544 | _ACEOF |
| 13545 | rm -f conftest.$ac_objext |
| 13546 | if { (ac_try="$ac_compile" |
| 13547 | case "(($ac_try" in |
| 13548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13549 | *) ac_try_echo=$ac_try;; |
| 13550 | esac |
| 13551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13552 | (eval "$ac_compile") 2>conftest.er1 |
| 13553 | ac_status=$? |
| 13554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13555 | rm -f conftest.er1 |
| 13556 | cat conftest.err >&5 |
| 13557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13558 | (exit $ac_status); } && |
| 13559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13560 | { (case "(($ac_try" in |
| 13561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13562 | *) ac_try_echo=$ac_try;; |
| 13563 | esac |
| 13564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13565 | (eval "$ac_try") 2>&5 |
| 13566 | ac_status=$? |
| 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13568 | (exit $ac_status); }; } && |
| 13569 | { ac_try='test -s conftest.$ac_objext' |
| 13570 | { (case "(($ac_try" in |
| 13571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13572 | *) ac_try_echo=$ac_try;; |
| 13573 | esac |
| 13574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13575 | (eval "$ac_try") 2>&5 |
| 13576 | ac_status=$? |
| 13577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13578 | (exit $ac_status); }; }; then |
| 13579 | ac_header_compiler=yes |
| 13580 | else |
| 13581 | echo "$as_me: failed program was:" >&5 |
| 13582 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13583 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13584 | ac_header_compiler=no |
| 13585 | fi |
| 13586 | |
| 13587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13588 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13589 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 13590 | |
| 13591 | # Is the header present? |
| 13592 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 13593 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 13594 | cat >conftest.$ac_ext <<_ACEOF |
| 13595 | /* confdefs.h. */ |
| 13596 | _ACEOF |
| 13597 | cat confdefs.h >>conftest.$ac_ext |
| 13598 | cat >>conftest.$ac_ext <<_ACEOF |
| 13599 | /* end confdefs.h. */ |
| 13600 | #include <opagent.h> |
| 13601 | _ACEOF |
| 13602 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13603 | case "(($ac_try" in |
| 13604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13605 | *) ac_try_echo=$ac_try;; |
| 13606 | esac |
| 13607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13608 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13609 | ac_status=$? |
| 13610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13611 | rm -f conftest.er1 |
| 13612 | cat conftest.err >&5 |
| 13613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13614 | (exit $ac_status); } >/dev/null; then |
| 13615 | if test -s conftest.err; then |
| 13616 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13617 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13618 | else |
| 13619 | ac_cpp_err= |
| 13620 | fi |
| 13621 | else |
| 13622 | ac_cpp_err=yes |
| 13623 | fi |
| 13624 | if test -z "$ac_cpp_err"; then |
| 13625 | ac_header_preproc=yes |
| 13626 | else |
| 13627 | echo "$as_me: failed program was:" >&5 |
| 13628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13629 | |
| 13630 | ac_header_preproc=no |
| 13631 | fi |
| 13632 | |
| 13633 | rm -f conftest.err conftest.$ac_ext |
| 13634 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13635 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 13636 | |
| 13637 | # So? What about this header? |
| 13638 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13639 | yes:no: ) |
| 13640 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13641 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13642 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 13643 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 13644 | ac_header_preproc=yes |
| 13645 | ;; |
| 13646 | no:yes:* ) |
| 13647 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 13648 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 13649 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 13650 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 13651 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 13652 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 13653 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13654 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13655 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 13656 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 13657 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 13658 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 13659 | ( cat <<\_ASBOX |
| 13660 | ## ----------------------------------- ## |
| 13661 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 13662 | ## ----------------------------------- ## |
| 13663 | _ASBOX |
| 13664 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13665 | ;; |
| 13666 | esac |
| 13667 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13668 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13669 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13671 | else |
| 13672 | ac_cv_header_opagent_h=$ac_header_preproc |
| 13673 | fi |
| 13674 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13675 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13676 | |
| 13677 | fi |
| 13678 | if test $ac_cv_header_opagent_h = yes; then |
| 13679 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13680 | else |
| 13681 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13682 | echo "Error! You need to have opagent.h around." |
| 13683 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13684 | |
| 13685 | fi |
| 13686 | |
| 13687 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13688 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13689 | |
| 13690 | else |
| 13691 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13692 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13693 | |
| 13694 | |
| 13695 | fi |
| 13696 | |
| 13697 | |
| 13698 | cat >>confdefs.h <<_ACEOF |
| 13699 | #define USE_OPROFILE $USE_OPROFILE |
| 13700 | _ACEOF |
| 13701 | |
| 13702 | |
| 13703 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13704 | |
| 13705 | |
| 13706 | |
| 13707 | |
| 13708 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13709 | ac_header_dirent=no |
| 13710 | 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] | 13711 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 13712 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 13713 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 13714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13716 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13717 | cat >conftest.$ac_ext <<_ACEOF |
| 13718 | /* confdefs.h. */ |
| 13719 | _ACEOF |
| 13720 | cat confdefs.h >>conftest.$ac_ext |
| 13721 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13722 | /* end confdefs.h. */ |
| 13723 | #include <sys/types.h> |
| 13724 | #include <$ac_hdr> |
| 13725 | |
| 13726 | int |
| 13727 | main () |
| 13728 | { |
| 13729 | if ((DIR *) 0) |
| 13730 | return 0; |
| 13731 | ; |
| 13732 | return 0; |
| 13733 | } |
| 13734 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13735 | rm -f conftest.$ac_objext |
| 13736 | if { (ac_try="$ac_compile" |
| 13737 | case "(($ac_try" in |
| 13738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13739 | *) ac_try_echo=$ac_try;; |
| 13740 | esac |
| 13741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13742 | (eval "$ac_compile") 2>conftest.er1 |
| 13743 | ac_status=$? |
| 13744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13745 | rm -f conftest.er1 |
| 13746 | cat conftest.err >&5 |
| 13747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13748 | (exit $ac_status); } && |
| 13749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13750 | { (case "(($ac_try" in |
| 13751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13752 | *) ac_try_echo=$ac_try;; |
| 13753 | esac |
| 13754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13755 | (eval "$ac_try") 2>&5 |
| 13756 | ac_status=$? |
| 13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13758 | (exit $ac_status); }; } && |
| 13759 | { ac_try='test -s conftest.$ac_objext' |
| 13760 | { (case "(($ac_try" in |
| 13761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13762 | *) ac_try_echo=$ac_try;; |
| 13763 | esac |
| 13764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13765 | (eval "$ac_try") 2>&5 |
| 13766 | ac_status=$? |
| 13767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13768 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13769 | eval "$as_ac_Header=yes" |
| 13770 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13771 | echo "$as_me: failed program was:" >&5 |
| 13772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13773 | |
| 13774 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13775 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13778 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13779 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 13780 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13781 | echo "${ECHO_T}$ac_res" >&6; } |
| 13782 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13783 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13784 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13785 | _ACEOF |
| 13786 | |
| 13787 | ac_header_dirent=$ac_hdr; break |
| 13788 | fi |
| 13789 | |
| 13790 | done |
| 13791 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 13792 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13793 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13794 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13795 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13797 | else |
| 13798 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13799 | cat >conftest.$ac_ext <<_ACEOF |
| 13800 | /* confdefs.h. */ |
| 13801 | _ACEOF |
| 13802 | cat confdefs.h >>conftest.$ac_ext |
| 13803 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13804 | /* end confdefs.h. */ |
| 13805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13806 | /* Override any GCC internal prototype to avoid an error. |
| 13807 | Use char because int might match the return type of a GCC |
| 13808 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13809 | #ifdef __cplusplus |
| 13810 | extern "C" |
| 13811 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13812 | char opendir (); |
| 13813 | int |
| 13814 | main () |
| 13815 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13816 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13817 | ; |
| 13818 | return 0; |
| 13819 | } |
| 13820 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13821 | for ac_lib in '' dir; do |
| 13822 | if test -z "$ac_lib"; then |
| 13823 | ac_res="none required" |
| 13824 | else |
| 13825 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13826 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13827 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13828 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13829 | if { (ac_try="$ac_link" |
| 13830 | case "(($ac_try" in |
| 13831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13832 | *) ac_try_echo=$ac_try;; |
| 13833 | esac |
| 13834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13835 | (eval "$ac_link") 2>conftest.er1 |
| 13836 | ac_status=$? |
| 13837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13838 | rm -f conftest.er1 |
| 13839 | cat conftest.err >&5 |
| 13840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13841 | (exit $ac_status); } && |
| 13842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13843 | { (case "(($ac_try" in |
| 13844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13845 | *) ac_try_echo=$ac_try;; |
| 13846 | esac |
| 13847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13848 | (eval "$ac_try") 2>&5 |
| 13849 | ac_status=$? |
| 13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13851 | (exit $ac_status); }; } && |
| 13852 | { ac_try='test -s conftest$ac_exeext' |
| 13853 | { (case "(($ac_try" in |
| 13854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13855 | *) ac_try_echo=$ac_try;; |
| 13856 | esac |
| 13857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13858 | (eval "$ac_try") 2>&5 |
| 13859 | ac_status=$? |
| 13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13861 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13862 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13863 | else |
| 13864 | echo "$as_me: failed program was:" >&5 |
| 13865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13866 | |
| 13867 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13868 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13869 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13870 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13871 | conftest$ac_exeext |
| 13872 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13873 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13874 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13875 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13876 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13877 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13878 | else |
| 13879 | ac_cv_search_opendir=no |
| 13880 | fi |
| 13881 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13882 | LIBS=$ac_func_search_save_LIBS |
| 13883 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13884 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13885 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13886 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13887 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13888 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13889 | |
| 13890 | fi |
| 13891 | |
| 13892 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13893 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13894 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13895 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13897 | else |
| 13898 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13899 | cat >conftest.$ac_ext <<_ACEOF |
| 13900 | /* confdefs.h. */ |
| 13901 | _ACEOF |
| 13902 | cat confdefs.h >>conftest.$ac_ext |
| 13903 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13904 | /* end confdefs.h. */ |
| 13905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13906 | /* Override any GCC internal prototype to avoid an error. |
| 13907 | Use char because int might match the return type of a GCC |
| 13908 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13909 | #ifdef __cplusplus |
| 13910 | extern "C" |
| 13911 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13912 | char opendir (); |
| 13913 | int |
| 13914 | main () |
| 13915 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13916 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13917 | ; |
| 13918 | return 0; |
| 13919 | } |
| 13920 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13921 | for ac_lib in '' x; do |
| 13922 | if test -z "$ac_lib"; then |
| 13923 | ac_res="none required" |
| 13924 | else |
| 13925 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13926 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13927 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13928 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13929 | if { (ac_try="$ac_link" |
| 13930 | case "(($ac_try" in |
| 13931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13932 | *) ac_try_echo=$ac_try;; |
| 13933 | esac |
| 13934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13935 | (eval "$ac_link") 2>conftest.er1 |
| 13936 | ac_status=$? |
| 13937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13938 | rm -f conftest.er1 |
| 13939 | cat conftest.err >&5 |
| 13940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13941 | (exit $ac_status); } && |
| 13942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13943 | { (case "(($ac_try" in |
| 13944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13945 | *) ac_try_echo=$ac_try;; |
| 13946 | esac |
| 13947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13948 | (eval "$ac_try") 2>&5 |
| 13949 | ac_status=$? |
| 13950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13951 | (exit $ac_status); }; } && |
| 13952 | { ac_try='test -s conftest$ac_exeext' |
| 13953 | { (case "(($ac_try" in |
| 13954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13955 | *) ac_try_echo=$ac_try;; |
| 13956 | esac |
| 13957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13958 | (eval "$ac_try") 2>&5 |
| 13959 | ac_status=$? |
| 13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13961 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13962 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13963 | else |
| 13964 | echo "$as_me: failed program was:" >&5 |
| 13965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13966 | |
| 13967 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13968 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13969 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13970 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13971 | conftest$ac_exeext |
| 13972 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13973 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13975 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13976 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13977 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13978 | else |
| 13979 | ac_cv_search_opendir=no |
| 13980 | fi |
| 13981 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13982 | LIBS=$ac_func_search_save_LIBS |
| 13983 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13984 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13985 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13986 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13987 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13988 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13989 | |
| 13990 | fi |
| 13991 | |
| 13992 | fi |
| 13993 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13994 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 13995 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 13996 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 13997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13998 | else |
| 13999 | ac_ext=c |
| 14000 | ac_cpp='$CPP $CPPFLAGS' |
| 14001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14004 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14005 | cat >conftest.$ac_ext <<_ACEOF |
| 14006 | /* confdefs.h. */ |
| 14007 | _ACEOF |
| 14008 | cat confdefs.h >>conftest.$ac_ext |
| 14009 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14010 | /* end confdefs.h. */ |
| 14011 | #include <sys/mman.h> |
| 14012 | #include <unistd.h> |
| 14013 | #include <fcntl.h> |
| 14014 | int |
| 14015 | main () |
| 14016 | { |
| 14017 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14018 | ; |
| 14019 | return 0; |
| 14020 | } |
| 14021 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14022 | rm -f conftest.$ac_objext |
| 14023 | if { (ac_try="$ac_compile" |
| 14024 | case "(($ac_try" in |
| 14025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14026 | *) ac_try_echo=$ac_try;; |
| 14027 | esac |
| 14028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14029 | (eval "$ac_compile") 2>conftest.er1 |
| 14030 | ac_status=$? |
| 14031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14032 | rm -f conftest.er1 |
| 14033 | cat conftest.err >&5 |
| 14034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14035 | (exit $ac_status); } && |
| 14036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14037 | { (case "(($ac_try" in |
| 14038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14039 | *) ac_try_echo=$ac_try;; |
| 14040 | esac |
| 14041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14042 | (eval "$ac_try") 2>&5 |
| 14043 | ac_status=$? |
| 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14045 | (exit $ac_status); }; } && |
| 14046 | { ac_try='test -s conftest.$ac_objext' |
| 14047 | { (case "(($ac_try" in |
| 14048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14049 | *) ac_try_echo=$ac_try;; |
| 14050 | esac |
| 14051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14052 | (eval "$ac_try") 2>&5 |
| 14053 | ac_status=$? |
| 14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14055 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14056 | ac_cv_header_mmap_anon=yes |
| 14057 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14058 | echo "$as_me: failed program was:" >&5 |
| 14059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14060 | |
| 14061 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14062 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14063 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14065 | ac_ext=c |
| 14066 | ac_cpp='$CPP $CPPFLAGS' |
| 14067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14070 | |
| 14071 | |
| 14072 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14073 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14074 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14075 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14076 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14077 | cat >>confdefs.h <<\_ACEOF |
| 14078 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14079 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14080 | |
| 14081 | fi |
| 14082 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14083 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14084 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14085 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14087 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14088 | cat >conftest.$ac_ext <<_ACEOF |
| 14089 | /* confdefs.h. */ |
| 14090 | _ACEOF |
| 14091 | cat confdefs.h >>conftest.$ac_ext |
| 14092 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14093 | /* end confdefs.h. */ |
| 14094 | #include <sys/types.h> |
| 14095 | #include <sys/stat.h> |
| 14096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14097 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14098 | # if S_ISBLK (S_IFDIR) |
| 14099 | You lose. |
| 14100 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14101 | #endif |
| 14102 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14103 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14104 | # if S_ISBLK (S_IFCHR) |
| 14105 | You lose. |
| 14106 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14107 | #endif |
| 14108 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14109 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14110 | # if S_ISLNK (S_IFREG) |
| 14111 | You lose. |
| 14112 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14113 | #endif |
| 14114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14115 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14116 | # if S_ISSOCK (S_IFREG) |
| 14117 | You lose. |
| 14118 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14119 | #endif |
| 14120 | |
| 14121 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14122 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14123 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14124 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14125 | else |
| 14126 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14127 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14128 | rm -f conftest* |
| 14129 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14130 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14131 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14132 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14133 | if test $ac_cv_header_stat_broken = yes; then |
| 14134 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14135 | cat >>confdefs.h <<\_ACEOF |
| 14136 | #define STAT_MACROS_BROKEN 1 |
| 14137 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14138 | |
| 14139 | fi |
| 14140 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14141 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 14142 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 14143 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 14144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14145 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14146 | cat >conftest.$ac_ext <<_ACEOF |
| 14147 | /* confdefs.h. */ |
| 14148 | _ACEOF |
| 14149 | cat confdefs.h >>conftest.$ac_ext |
| 14150 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14151 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14152 | #include <sys/types.h> |
| 14153 | #include <sys/wait.h> |
| 14154 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14155 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14156 | #endif |
| 14157 | #ifndef WIFEXITED |
| 14158 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 14159 | #endif |
| 14160 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14161 | int |
| 14162 | main () |
| 14163 | { |
| 14164 | int s; |
| 14165 | wait (&s); |
| 14166 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 14167 | ; |
| 14168 | return 0; |
| 14169 | } |
| 14170 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14171 | rm -f conftest.$ac_objext |
| 14172 | if { (ac_try="$ac_compile" |
| 14173 | case "(($ac_try" in |
| 14174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14175 | *) ac_try_echo=$ac_try;; |
| 14176 | esac |
| 14177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14178 | (eval "$ac_compile") 2>conftest.er1 |
| 14179 | ac_status=$? |
| 14180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14181 | rm -f conftest.er1 |
| 14182 | cat conftest.err >&5 |
| 14183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14184 | (exit $ac_status); } && |
| 14185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14186 | { (case "(($ac_try" in |
| 14187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14188 | *) ac_try_echo=$ac_try;; |
| 14189 | esac |
| 14190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14191 | (eval "$ac_try") 2>&5 |
| 14192 | ac_status=$? |
| 14193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14194 | (exit $ac_status); }; } && |
| 14195 | { ac_try='test -s conftest.$ac_objext' |
| 14196 | { (case "(($ac_try" in |
| 14197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14198 | *) ac_try_echo=$ac_try;; |
| 14199 | esac |
| 14200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14201 | (eval "$ac_try") 2>&5 |
| 14202 | ac_status=$? |
| 14203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14204 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14205 | ac_cv_header_sys_wait_h=yes |
| 14206 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14207 | echo "$as_me: failed program was:" >&5 |
| 14208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14209 | |
| 14210 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14211 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14214 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14215 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 14216 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14217 | if test $ac_cv_header_sys_wait_h = yes; then |
| 14218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14219 | cat >>confdefs.h <<\_ACEOF |
| 14220 | #define HAVE_SYS_WAIT_H 1 |
| 14221 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14222 | |
| 14223 | fi |
| 14224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14225 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14226 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 14227 | if test "${ac_cv_header_time+set}" = set; then |
| 14228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14229 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14230 | cat >conftest.$ac_ext <<_ACEOF |
| 14231 | /* confdefs.h. */ |
| 14232 | _ACEOF |
| 14233 | cat confdefs.h >>conftest.$ac_ext |
| 14234 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14235 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14236 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14237 | #include <sys/time.h> |
| 14238 | #include <time.h> |
| 14239 | |
| 14240 | int |
| 14241 | main () |
| 14242 | { |
| 14243 | if ((struct tm *) 0) |
| 14244 | return 0; |
| 14245 | ; |
| 14246 | return 0; |
| 14247 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14248 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14249 | rm -f conftest.$ac_objext |
| 14250 | if { (ac_try="$ac_compile" |
| 14251 | case "(($ac_try" in |
| 14252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14253 | *) ac_try_echo=$ac_try;; |
| 14254 | esac |
| 14255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14256 | (eval "$ac_compile") 2>conftest.er1 |
| 14257 | ac_status=$? |
| 14258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14259 | rm -f conftest.er1 |
| 14260 | cat conftest.err >&5 |
| 14261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14262 | (exit $ac_status); } && |
| 14263 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14264 | { (case "(($ac_try" in |
| 14265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14266 | *) ac_try_echo=$ac_try;; |
| 14267 | esac |
| 14268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14269 | (eval "$ac_try") 2>&5 |
| 14270 | ac_status=$? |
| 14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14272 | (exit $ac_status); }; } && |
| 14273 | { ac_try='test -s conftest.$ac_objext' |
| 14274 | { (case "(($ac_try" in |
| 14275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14276 | *) ac_try_echo=$ac_try;; |
| 14277 | esac |
| 14278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14279 | (eval "$ac_try") 2>&5 |
| 14280 | ac_status=$? |
| 14281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14282 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14283 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14284 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14285 | echo "$as_me: failed program was:" >&5 |
| 14286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14287 | |
| 14288 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14289 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14292 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14293 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14294 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14295 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14296 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14297 | cat >>confdefs.h <<\_ACEOF |
| 14298 | #define TIME_WITH_SYS_TIME 1 |
| 14299 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14300 | |
| 14301 | fi |
| 14302 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14303 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14304 | |
| 14305 | |
| 14306 | |
| 14307 | |
| 14308 | |
| 14309 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14310 | 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] | 14311 | do |
| 14312 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14313 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14314 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14316 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14318 | fi |
| 14319 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14320 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14321 | echo "${ECHO_T}$ac_res" >&6; } |
| 14322 | else |
| 14323 | # Is the header compilable? |
| 14324 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14325 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14326 | cat >conftest.$ac_ext <<_ACEOF |
| 14327 | /* confdefs.h. */ |
| 14328 | _ACEOF |
| 14329 | cat confdefs.h >>conftest.$ac_ext |
| 14330 | cat >>conftest.$ac_ext <<_ACEOF |
| 14331 | /* end confdefs.h. */ |
| 14332 | $ac_includes_default |
| 14333 | #include <$ac_header> |
| 14334 | _ACEOF |
| 14335 | rm -f conftest.$ac_objext |
| 14336 | if { (ac_try="$ac_compile" |
| 14337 | case "(($ac_try" in |
| 14338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14339 | *) ac_try_echo=$ac_try;; |
| 14340 | esac |
| 14341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14342 | (eval "$ac_compile") 2>conftest.er1 |
| 14343 | ac_status=$? |
| 14344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14345 | rm -f conftest.er1 |
| 14346 | cat conftest.err >&5 |
| 14347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14348 | (exit $ac_status); } && |
| 14349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14350 | { (case "(($ac_try" in |
| 14351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14352 | *) ac_try_echo=$ac_try;; |
| 14353 | esac |
| 14354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14355 | (eval "$ac_try") 2>&5 |
| 14356 | ac_status=$? |
| 14357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14358 | (exit $ac_status); }; } && |
| 14359 | { ac_try='test -s conftest.$ac_objext' |
| 14360 | { (case "(($ac_try" in |
| 14361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14362 | *) ac_try_echo=$ac_try;; |
| 14363 | esac |
| 14364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14365 | (eval "$ac_try") 2>&5 |
| 14366 | ac_status=$? |
| 14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14368 | (exit $ac_status); }; }; then |
| 14369 | ac_header_compiler=yes |
| 14370 | else |
| 14371 | echo "$as_me: failed program was:" >&5 |
| 14372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14373 | |
| 14374 | ac_header_compiler=no |
| 14375 | fi |
| 14376 | |
| 14377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14378 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14379 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14380 | |
| 14381 | # Is the header present? |
| 14382 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14384 | cat >conftest.$ac_ext <<_ACEOF |
| 14385 | /* confdefs.h. */ |
| 14386 | _ACEOF |
| 14387 | cat confdefs.h >>conftest.$ac_ext |
| 14388 | cat >>conftest.$ac_ext <<_ACEOF |
| 14389 | /* end confdefs.h. */ |
| 14390 | #include <$ac_header> |
| 14391 | _ACEOF |
| 14392 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14393 | case "(($ac_try" in |
| 14394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14395 | *) ac_try_echo=$ac_try;; |
| 14396 | esac |
| 14397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14398 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14399 | ac_status=$? |
| 14400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14401 | rm -f conftest.er1 |
| 14402 | cat conftest.err >&5 |
| 14403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14404 | (exit $ac_status); } >/dev/null; then |
| 14405 | if test -s conftest.err; then |
| 14406 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14407 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14408 | else |
| 14409 | ac_cpp_err= |
| 14410 | fi |
| 14411 | else |
| 14412 | ac_cpp_err=yes |
| 14413 | fi |
| 14414 | if test -z "$ac_cpp_err"; then |
| 14415 | ac_header_preproc=yes |
| 14416 | else |
| 14417 | echo "$as_me: failed program was:" >&5 |
| 14418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14419 | |
| 14420 | ac_header_preproc=no |
| 14421 | fi |
| 14422 | |
| 14423 | rm -f conftest.err conftest.$ac_ext |
| 14424 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14425 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14426 | |
| 14427 | # So? What about this header? |
| 14428 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14429 | yes:no: ) |
| 14430 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14431 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14432 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14433 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14434 | ac_header_preproc=yes |
| 14435 | ;; |
| 14436 | no:yes:* ) |
| 14437 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14438 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14439 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14440 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14441 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14442 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14443 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14444 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14446 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14447 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14448 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14449 | ( cat <<\_ASBOX |
| 14450 | ## ----------------------------------- ## |
| 14451 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14452 | ## ----------------------------------- ## |
| 14453 | _ASBOX |
| 14454 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14455 | ;; |
| 14456 | esac |
| 14457 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14459 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14461 | else |
| 14462 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14463 | fi |
| 14464 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14465 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14466 | echo "${ECHO_T}$ac_res" >&6; } |
| 14467 | |
| 14468 | fi |
| 14469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14470 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14472 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14473 | |
| 14474 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14475 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14476 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14477 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14478 | |
| 14479 | |
| 14480 | |
| 14481 | |
| 14482 | |
| 14483 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14484 | 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] | 14485 | do |
| 14486 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14487 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14488 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14492 | fi |
| 14493 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14494 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14495 | echo "${ECHO_T}$ac_res" >&6; } |
| 14496 | else |
| 14497 | # Is the header compilable? |
| 14498 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14499 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14500 | cat >conftest.$ac_ext <<_ACEOF |
| 14501 | /* confdefs.h. */ |
| 14502 | _ACEOF |
| 14503 | cat confdefs.h >>conftest.$ac_ext |
| 14504 | cat >>conftest.$ac_ext <<_ACEOF |
| 14505 | /* end confdefs.h. */ |
| 14506 | $ac_includes_default |
| 14507 | #include <$ac_header> |
| 14508 | _ACEOF |
| 14509 | rm -f conftest.$ac_objext |
| 14510 | if { (ac_try="$ac_compile" |
| 14511 | case "(($ac_try" in |
| 14512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14513 | *) ac_try_echo=$ac_try;; |
| 14514 | esac |
| 14515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14516 | (eval "$ac_compile") 2>conftest.er1 |
| 14517 | ac_status=$? |
| 14518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14519 | rm -f conftest.er1 |
| 14520 | cat conftest.err >&5 |
| 14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14522 | (exit $ac_status); } && |
| 14523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14524 | { (case "(($ac_try" in |
| 14525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14526 | *) ac_try_echo=$ac_try;; |
| 14527 | esac |
| 14528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14529 | (eval "$ac_try") 2>&5 |
| 14530 | ac_status=$? |
| 14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14532 | (exit $ac_status); }; } && |
| 14533 | { ac_try='test -s conftest.$ac_objext' |
| 14534 | { (case "(($ac_try" in |
| 14535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14536 | *) ac_try_echo=$ac_try;; |
| 14537 | esac |
| 14538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14539 | (eval "$ac_try") 2>&5 |
| 14540 | ac_status=$? |
| 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14542 | (exit $ac_status); }; }; then |
| 14543 | ac_header_compiler=yes |
| 14544 | else |
| 14545 | echo "$as_me: failed program was:" >&5 |
| 14546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14547 | |
| 14548 | ac_header_compiler=no |
| 14549 | fi |
| 14550 | |
| 14551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14552 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14553 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14554 | |
| 14555 | # Is the header present? |
| 14556 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14557 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14558 | cat >conftest.$ac_ext <<_ACEOF |
| 14559 | /* confdefs.h. */ |
| 14560 | _ACEOF |
| 14561 | cat confdefs.h >>conftest.$ac_ext |
| 14562 | cat >>conftest.$ac_ext <<_ACEOF |
| 14563 | /* end confdefs.h. */ |
| 14564 | #include <$ac_header> |
| 14565 | _ACEOF |
| 14566 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14567 | case "(($ac_try" in |
| 14568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14569 | *) ac_try_echo=$ac_try;; |
| 14570 | esac |
| 14571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14572 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14573 | ac_status=$? |
| 14574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14575 | rm -f conftest.er1 |
| 14576 | cat conftest.err >&5 |
| 14577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14578 | (exit $ac_status); } >/dev/null; then |
| 14579 | if test -s conftest.err; then |
| 14580 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14581 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14582 | else |
| 14583 | ac_cpp_err= |
| 14584 | fi |
| 14585 | else |
| 14586 | ac_cpp_err=yes |
| 14587 | fi |
| 14588 | if test -z "$ac_cpp_err"; then |
| 14589 | ac_header_preproc=yes |
| 14590 | else |
| 14591 | echo "$as_me: failed program was:" >&5 |
| 14592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14593 | |
| 14594 | ac_header_preproc=no |
| 14595 | fi |
| 14596 | |
| 14597 | rm -f conftest.err conftest.$ac_ext |
| 14598 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14599 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14600 | |
| 14601 | # So? What about this header? |
| 14602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14603 | yes:no: ) |
| 14604 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14605 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14607 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14608 | ac_header_preproc=yes |
| 14609 | ;; |
| 14610 | no:yes:* ) |
| 14611 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14612 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14613 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14614 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14615 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14616 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14617 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14618 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14620 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14621 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14622 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14623 | ( cat <<\_ASBOX |
| 14624 | ## ----------------------------------- ## |
| 14625 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14626 | ## ----------------------------------- ## |
| 14627 | _ASBOX |
| 14628 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14629 | ;; |
| 14630 | esac |
| 14631 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14632 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14633 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14635 | else |
| 14636 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14637 | fi |
| 14638 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14639 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14640 | echo "${ECHO_T}$ac_res" >&6; } |
| 14641 | |
| 14642 | fi |
| 14643 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14644 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14645 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14646 | _ACEOF |
| 14647 | |
| 14648 | fi |
| 14649 | |
| 14650 | done |
| 14651 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14652 | |
| 14653 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14654 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14655 | do |
| 14656 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14657 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14658 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14660 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14662 | fi |
| 14663 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14664 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14665 | echo "${ECHO_T}$ac_res" >&6; } |
| 14666 | else |
| 14667 | # Is the header compilable? |
| 14668 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14669 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14670 | cat >conftest.$ac_ext <<_ACEOF |
| 14671 | /* confdefs.h. */ |
| 14672 | _ACEOF |
| 14673 | cat confdefs.h >>conftest.$ac_ext |
| 14674 | cat >>conftest.$ac_ext <<_ACEOF |
| 14675 | /* end confdefs.h. */ |
| 14676 | $ac_includes_default |
| 14677 | #include <$ac_header> |
| 14678 | _ACEOF |
| 14679 | rm -f conftest.$ac_objext |
| 14680 | if { (ac_try="$ac_compile" |
| 14681 | case "(($ac_try" in |
| 14682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14683 | *) ac_try_echo=$ac_try;; |
| 14684 | esac |
| 14685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14686 | (eval "$ac_compile") 2>conftest.er1 |
| 14687 | ac_status=$? |
| 14688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14689 | rm -f conftest.er1 |
| 14690 | cat conftest.err >&5 |
| 14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14692 | (exit $ac_status); } && |
| 14693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14694 | { (case "(($ac_try" in |
| 14695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14696 | *) ac_try_echo=$ac_try;; |
| 14697 | esac |
| 14698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14699 | (eval "$ac_try") 2>&5 |
| 14700 | ac_status=$? |
| 14701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14702 | (exit $ac_status); }; } && |
| 14703 | { ac_try='test -s conftest.$ac_objext' |
| 14704 | { (case "(($ac_try" in |
| 14705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14706 | *) ac_try_echo=$ac_try;; |
| 14707 | esac |
| 14708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14709 | (eval "$ac_try") 2>&5 |
| 14710 | ac_status=$? |
| 14711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14712 | (exit $ac_status); }; }; then |
| 14713 | ac_header_compiler=yes |
| 14714 | else |
| 14715 | echo "$as_me: failed program was:" >&5 |
| 14716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14717 | |
| 14718 | ac_header_compiler=no |
| 14719 | fi |
| 14720 | |
| 14721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14722 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14723 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14724 | |
| 14725 | # Is the header present? |
| 14726 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14727 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14728 | cat >conftest.$ac_ext <<_ACEOF |
| 14729 | /* confdefs.h. */ |
| 14730 | _ACEOF |
| 14731 | cat confdefs.h >>conftest.$ac_ext |
| 14732 | cat >>conftest.$ac_ext <<_ACEOF |
| 14733 | /* end confdefs.h. */ |
| 14734 | #include <$ac_header> |
| 14735 | _ACEOF |
| 14736 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14737 | case "(($ac_try" in |
| 14738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14739 | *) ac_try_echo=$ac_try;; |
| 14740 | esac |
| 14741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14742 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14743 | ac_status=$? |
| 14744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14745 | rm -f conftest.er1 |
| 14746 | cat conftest.err >&5 |
| 14747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14748 | (exit $ac_status); } >/dev/null; then |
| 14749 | if test -s conftest.err; then |
| 14750 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14751 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14752 | else |
| 14753 | ac_cpp_err= |
| 14754 | fi |
| 14755 | else |
| 14756 | ac_cpp_err=yes |
| 14757 | fi |
| 14758 | if test -z "$ac_cpp_err"; then |
| 14759 | ac_header_preproc=yes |
| 14760 | else |
| 14761 | echo "$as_me: failed program was:" >&5 |
| 14762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14763 | |
| 14764 | ac_header_preproc=no |
| 14765 | fi |
| 14766 | |
| 14767 | rm -f conftest.err conftest.$ac_ext |
| 14768 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14769 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14770 | |
| 14771 | # So? What about this header? |
| 14772 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14773 | yes:no: ) |
| 14774 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14775 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14776 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14777 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14778 | ac_header_preproc=yes |
| 14779 | ;; |
| 14780 | no:yes:* ) |
| 14781 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14782 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14783 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14784 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14785 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14786 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14787 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14788 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14789 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14790 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14791 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14792 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14793 | ( cat <<\_ASBOX |
| 14794 | ## ----------------------------------- ## |
| 14795 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14796 | ## ----------------------------------- ## |
| 14797 | _ASBOX |
| 14798 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14799 | ;; |
| 14800 | esac |
| 14801 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14803 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14805 | else |
| 14806 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14807 | fi |
| 14808 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14809 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14810 | echo "${ECHO_T}$ac_res" >&6; } |
| 14811 | |
| 14812 | fi |
| 14813 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14814 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14815 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14816 | _ACEOF |
| 14817 | |
| 14818 | fi |
| 14819 | |
| 14820 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14822 | |
| 14823 | |
| 14824 | |
| 14825 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 14826 | |
| 14827 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14828 | do |
| 14829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14830 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14831 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14833 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14835 | fi |
| 14836 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14837 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14838 | echo "${ECHO_T}$ac_res" >&6; } |
| 14839 | else |
| 14840 | # Is the header compilable? |
| 14841 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14842 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14843 | cat >conftest.$ac_ext <<_ACEOF |
| 14844 | /* confdefs.h. */ |
| 14845 | _ACEOF |
| 14846 | cat confdefs.h >>conftest.$ac_ext |
| 14847 | cat >>conftest.$ac_ext <<_ACEOF |
| 14848 | /* end confdefs.h. */ |
| 14849 | $ac_includes_default |
| 14850 | #include <$ac_header> |
| 14851 | _ACEOF |
| 14852 | rm -f conftest.$ac_objext |
| 14853 | if { (ac_try="$ac_compile" |
| 14854 | case "(($ac_try" in |
| 14855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14856 | *) ac_try_echo=$ac_try;; |
| 14857 | esac |
| 14858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14859 | (eval "$ac_compile") 2>conftest.er1 |
| 14860 | ac_status=$? |
| 14861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14862 | rm -f conftest.er1 |
| 14863 | cat conftest.err >&5 |
| 14864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14865 | (exit $ac_status); } && |
| 14866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14867 | { (case "(($ac_try" in |
| 14868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14869 | *) ac_try_echo=$ac_try;; |
| 14870 | esac |
| 14871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14872 | (eval "$ac_try") 2>&5 |
| 14873 | ac_status=$? |
| 14874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14875 | (exit $ac_status); }; } && |
| 14876 | { ac_try='test -s conftest.$ac_objext' |
| 14877 | { (case "(($ac_try" in |
| 14878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14879 | *) ac_try_echo=$ac_try;; |
| 14880 | esac |
| 14881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14882 | (eval "$ac_try") 2>&5 |
| 14883 | ac_status=$? |
| 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14885 | (exit $ac_status); }; }; then |
| 14886 | ac_header_compiler=yes |
| 14887 | else |
| 14888 | echo "$as_me: failed program was:" >&5 |
| 14889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14890 | |
| 14891 | ac_header_compiler=no |
| 14892 | fi |
| 14893 | |
| 14894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14895 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14896 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14897 | |
| 14898 | # Is the header present? |
| 14899 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14900 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14901 | cat >conftest.$ac_ext <<_ACEOF |
| 14902 | /* confdefs.h. */ |
| 14903 | _ACEOF |
| 14904 | cat confdefs.h >>conftest.$ac_ext |
| 14905 | cat >>conftest.$ac_ext <<_ACEOF |
| 14906 | /* end confdefs.h. */ |
| 14907 | #include <$ac_header> |
| 14908 | _ACEOF |
| 14909 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14910 | case "(($ac_try" in |
| 14911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14912 | *) ac_try_echo=$ac_try;; |
| 14913 | esac |
| 14914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14915 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14916 | ac_status=$? |
| 14917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14918 | rm -f conftest.er1 |
| 14919 | cat conftest.err >&5 |
| 14920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14921 | (exit $ac_status); } >/dev/null; then |
| 14922 | if test -s conftest.err; then |
| 14923 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14924 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14925 | else |
| 14926 | ac_cpp_err= |
| 14927 | fi |
| 14928 | else |
| 14929 | ac_cpp_err=yes |
| 14930 | fi |
| 14931 | if test -z "$ac_cpp_err"; then |
| 14932 | ac_header_preproc=yes |
| 14933 | else |
| 14934 | echo "$as_me: failed program was:" >&5 |
| 14935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14936 | |
| 14937 | ac_header_preproc=no |
| 14938 | fi |
| 14939 | |
| 14940 | rm -f conftest.err conftest.$ac_ext |
| 14941 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14942 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14943 | |
| 14944 | # So? What about this header? |
| 14945 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14946 | yes:no: ) |
| 14947 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14948 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14950 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14951 | ac_header_preproc=yes |
| 14952 | ;; |
| 14953 | no:yes:* ) |
| 14954 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14955 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14956 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14957 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14958 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14959 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14960 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14961 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14963 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14964 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14965 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14966 | ( cat <<\_ASBOX |
| 14967 | ## ----------------------------------- ## |
| 14968 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14969 | ## ----------------------------------- ## |
| 14970 | _ASBOX |
| 14971 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14972 | ;; |
| 14973 | esac |
| 14974 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14975 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14976 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14978 | else |
| 14979 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14980 | fi |
| 14981 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14982 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14983 | echo "${ECHO_T}$ac_res" >&6; } |
| 14984 | |
| 14985 | fi |
| 14986 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14987 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14988 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 14989 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 14990 | |
| 14991 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 14992 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14993 | done |
| 14994 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14995 | |
| 14996 | |
| 14997 | |
| 14998 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 14999 | 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] | 15000 | do |
| 15001 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15003 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15007 | fi |
| 15008 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15009 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15010 | echo "${ECHO_T}$ac_res" >&6; } |
| 15011 | else |
| 15012 | # Is the header compilable? |
| 15013 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15014 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15015 | cat >conftest.$ac_ext <<_ACEOF |
| 15016 | /* confdefs.h. */ |
| 15017 | _ACEOF |
| 15018 | cat confdefs.h >>conftest.$ac_ext |
| 15019 | cat >>conftest.$ac_ext <<_ACEOF |
| 15020 | /* end confdefs.h. */ |
| 15021 | $ac_includes_default |
| 15022 | #include <$ac_header> |
| 15023 | _ACEOF |
| 15024 | rm -f conftest.$ac_objext |
| 15025 | if { (ac_try="$ac_compile" |
| 15026 | case "(($ac_try" in |
| 15027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15028 | *) ac_try_echo=$ac_try;; |
| 15029 | esac |
| 15030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15031 | (eval "$ac_compile") 2>conftest.er1 |
| 15032 | ac_status=$? |
| 15033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15034 | rm -f conftest.er1 |
| 15035 | cat conftest.err >&5 |
| 15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15037 | (exit $ac_status); } && |
| 15038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15039 | { (case "(($ac_try" in |
| 15040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15041 | *) ac_try_echo=$ac_try;; |
| 15042 | esac |
| 15043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15044 | (eval "$ac_try") 2>&5 |
| 15045 | ac_status=$? |
| 15046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15047 | (exit $ac_status); }; } && |
| 15048 | { ac_try='test -s conftest.$ac_objext' |
| 15049 | { (case "(($ac_try" in |
| 15050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15051 | *) ac_try_echo=$ac_try;; |
| 15052 | esac |
| 15053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15054 | (eval "$ac_try") 2>&5 |
| 15055 | ac_status=$? |
| 15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15057 | (exit $ac_status); }; }; then |
| 15058 | ac_header_compiler=yes |
| 15059 | else |
| 15060 | echo "$as_me: failed program was:" >&5 |
| 15061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15062 | |
| 15063 | ac_header_compiler=no |
| 15064 | fi |
| 15065 | |
| 15066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15067 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15068 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15069 | |
| 15070 | # Is the header present? |
| 15071 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15072 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15073 | cat >conftest.$ac_ext <<_ACEOF |
| 15074 | /* confdefs.h. */ |
| 15075 | _ACEOF |
| 15076 | cat confdefs.h >>conftest.$ac_ext |
| 15077 | cat >>conftest.$ac_ext <<_ACEOF |
| 15078 | /* end confdefs.h. */ |
| 15079 | #include <$ac_header> |
| 15080 | _ACEOF |
| 15081 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15082 | case "(($ac_try" in |
| 15083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15084 | *) ac_try_echo=$ac_try;; |
| 15085 | esac |
| 15086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15088 | ac_status=$? |
| 15089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15090 | rm -f conftest.er1 |
| 15091 | cat conftest.err >&5 |
| 15092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15093 | (exit $ac_status); } >/dev/null; then |
| 15094 | if test -s conftest.err; then |
| 15095 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15096 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15097 | else |
| 15098 | ac_cpp_err= |
| 15099 | fi |
| 15100 | else |
| 15101 | ac_cpp_err=yes |
| 15102 | fi |
| 15103 | if test -z "$ac_cpp_err"; then |
| 15104 | ac_header_preproc=yes |
| 15105 | else |
| 15106 | echo "$as_me: failed program was:" >&5 |
| 15107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15108 | |
| 15109 | ac_header_preproc=no |
| 15110 | fi |
| 15111 | |
| 15112 | rm -f conftest.err conftest.$ac_ext |
| 15113 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15114 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15115 | |
| 15116 | # So? What about this header? |
| 15117 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15118 | yes:no: ) |
| 15119 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15120 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15122 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15123 | ac_header_preproc=yes |
| 15124 | ;; |
| 15125 | no:yes:* ) |
| 15126 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15127 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15128 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15129 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15130 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15131 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15132 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15133 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15135 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15136 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15137 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15138 | ( cat <<\_ASBOX |
| 15139 | ## ----------------------------------- ## |
| 15140 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15141 | ## ----------------------------------- ## |
| 15142 | _ASBOX |
| 15143 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15144 | ;; |
| 15145 | esac |
| 15146 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15150 | else |
| 15151 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15152 | fi |
| 15153 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15154 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15155 | echo "${ECHO_T}$ac_res" >&6; } |
| 15156 | |
| 15157 | fi |
| 15158 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15159 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15160 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15161 | _ACEOF |
| 15162 | |
| 15163 | fi |
| 15164 | |
| 15165 | done |
| 15166 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15167 | |
| 15168 | for ac_header in valgrind/valgrind.h |
| 15169 | do |
| 15170 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15172 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15176 | fi |
| 15177 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15178 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15179 | echo "${ECHO_T}$ac_res" >&6; } |
| 15180 | else |
| 15181 | # Is the header compilable? |
| 15182 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15183 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15184 | cat >conftest.$ac_ext <<_ACEOF |
| 15185 | /* confdefs.h. */ |
| 15186 | _ACEOF |
| 15187 | cat confdefs.h >>conftest.$ac_ext |
| 15188 | cat >>conftest.$ac_ext <<_ACEOF |
| 15189 | /* end confdefs.h. */ |
| 15190 | $ac_includes_default |
| 15191 | #include <$ac_header> |
| 15192 | _ACEOF |
| 15193 | rm -f conftest.$ac_objext |
| 15194 | if { (ac_try="$ac_compile" |
| 15195 | case "(($ac_try" in |
| 15196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15197 | *) ac_try_echo=$ac_try;; |
| 15198 | esac |
| 15199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15200 | (eval "$ac_compile") 2>conftest.er1 |
| 15201 | ac_status=$? |
| 15202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15203 | rm -f conftest.er1 |
| 15204 | cat conftest.err >&5 |
| 15205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15206 | (exit $ac_status); } && |
| 15207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15208 | { (case "(($ac_try" in |
| 15209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15210 | *) ac_try_echo=$ac_try;; |
| 15211 | esac |
| 15212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15213 | (eval "$ac_try") 2>&5 |
| 15214 | ac_status=$? |
| 15215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15216 | (exit $ac_status); }; } && |
| 15217 | { ac_try='test -s conftest.$ac_objext' |
| 15218 | { (case "(($ac_try" in |
| 15219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15220 | *) ac_try_echo=$ac_try;; |
| 15221 | esac |
| 15222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15223 | (eval "$ac_try") 2>&5 |
| 15224 | ac_status=$? |
| 15225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15226 | (exit $ac_status); }; }; then |
| 15227 | ac_header_compiler=yes |
| 15228 | else |
| 15229 | echo "$as_me: failed program was:" >&5 |
| 15230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15231 | |
| 15232 | ac_header_compiler=no |
| 15233 | fi |
| 15234 | |
| 15235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15236 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15237 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15238 | |
| 15239 | # Is the header present? |
| 15240 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15241 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15242 | cat >conftest.$ac_ext <<_ACEOF |
| 15243 | /* confdefs.h. */ |
| 15244 | _ACEOF |
| 15245 | cat confdefs.h >>conftest.$ac_ext |
| 15246 | cat >>conftest.$ac_ext <<_ACEOF |
| 15247 | /* end confdefs.h. */ |
| 15248 | #include <$ac_header> |
| 15249 | _ACEOF |
| 15250 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15251 | case "(($ac_try" in |
| 15252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15253 | *) ac_try_echo=$ac_try;; |
| 15254 | esac |
| 15255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15256 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15257 | ac_status=$? |
| 15258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15259 | rm -f conftest.er1 |
| 15260 | cat conftest.err >&5 |
| 15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15262 | (exit $ac_status); } >/dev/null; then |
| 15263 | if test -s conftest.err; then |
| 15264 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15265 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15266 | else |
| 15267 | ac_cpp_err= |
| 15268 | fi |
| 15269 | else |
| 15270 | ac_cpp_err=yes |
| 15271 | fi |
| 15272 | if test -z "$ac_cpp_err"; then |
| 15273 | ac_header_preproc=yes |
| 15274 | else |
| 15275 | echo "$as_me: failed program was:" >&5 |
| 15276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15277 | |
| 15278 | ac_header_preproc=no |
| 15279 | fi |
| 15280 | |
| 15281 | rm -f conftest.err conftest.$ac_ext |
| 15282 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15283 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15284 | |
| 15285 | # So? What about this header? |
| 15286 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15287 | yes:no: ) |
| 15288 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15289 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15291 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15292 | ac_header_preproc=yes |
| 15293 | ;; |
| 15294 | no:yes:* ) |
| 15295 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15296 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15297 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15298 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15299 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15300 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15301 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15302 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15305 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15306 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15307 | ( cat <<\_ASBOX |
| 15308 | ## ----------------------------------- ## |
| 15309 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15310 | ## ----------------------------------- ## |
| 15311 | _ASBOX |
| 15312 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15313 | ;; |
| 15314 | esac |
| 15315 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15317 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15319 | else |
| 15320 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15321 | fi |
| 15322 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15324 | echo "${ECHO_T}$ac_res" >&6; } |
| 15325 | |
| 15326 | fi |
| 15327 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15328 | cat >>confdefs.h <<_ACEOF |
| 15329 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15330 | _ACEOF |
| 15331 | |
| 15332 | fi |
| 15333 | |
| 15334 | done |
| 15335 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15336 | |
| 15337 | for ac_header in fenv.h |
| 15338 | do |
| 15339 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15340 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15341 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15343 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15345 | fi |
| 15346 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15347 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15348 | echo "${ECHO_T}$ac_res" >&6; } |
| 15349 | else |
| 15350 | # Is the header compilable? |
| 15351 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15352 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15353 | cat >conftest.$ac_ext <<_ACEOF |
| 15354 | /* confdefs.h. */ |
| 15355 | _ACEOF |
| 15356 | cat confdefs.h >>conftest.$ac_ext |
| 15357 | cat >>conftest.$ac_ext <<_ACEOF |
| 15358 | /* end confdefs.h. */ |
| 15359 | $ac_includes_default |
| 15360 | #include <$ac_header> |
| 15361 | _ACEOF |
| 15362 | rm -f conftest.$ac_objext |
| 15363 | if { (ac_try="$ac_compile" |
| 15364 | case "(($ac_try" in |
| 15365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15366 | *) ac_try_echo=$ac_try;; |
| 15367 | esac |
| 15368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15369 | (eval "$ac_compile") 2>conftest.er1 |
| 15370 | ac_status=$? |
| 15371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15372 | rm -f conftest.er1 |
| 15373 | cat conftest.err >&5 |
| 15374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15375 | (exit $ac_status); } && |
| 15376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15377 | { (case "(($ac_try" in |
| 15378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15379 | *) ac_try_echo=$ac_try;; |
| 15380 | esac |
| 15381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15382 | (eval "$ac_try") 2>&5 |
| 15383 | ac_status=$? |
| 15384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15385 | (exit $ac_status); }; } && |
| 15386 | { ac_try='test -s conftest.$ac_objext' |
| 15387 | { (case "(($ac_try" in |
| 15388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15389 | *) ac_try_echo=$ac_try;; |
| 15390 | esac |
| 15391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15392 | (eval "$ac_try") 2>&5 |
| 15393 | ac_status=$? |
| 15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15395 | (exit $ac_status); }; }; then |
| 15396 | ac_header_compiler=yes |
| 15397 | else |
| 15398 | echo "$as_me: failed program was:" >&5 |
| 15399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15400 | |
| 15401 | ac_header_compiler=no |
| 15402 | fi |
| 15403 | |
| 15404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15405 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15406 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15407 | |
| 15408 | # Is the header present? |
| 15409 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15410 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15411 | cat >conftest.$ac_ext <<_ACEOF |
| 15412 | /* confdefs.h. */ |
| 15413 | _ACEOF |
| 15414 | cat confdefs.h >>conftest.$ac_ext |
| 15415 | cat >>conftest.$ac_ext <<_ACEOF |
| 15416 | /* end confdefs.h. */ |
| 15417 | #include <$ac_header> |
| 15418 | _ACEOF |
| 15419 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15420 | case "(($ac_try" in |
| 15421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15422 | *) ac_try_echo=$ac_try;; |
| 15423 | esac |
| 15424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15425 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15426 | ac_status=$? |
| 15427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15428 | rm -f conftest.er1 |
| 15429 | cat conftest.err >&5 |
| 15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15431 | (exit $ac_status); } >/dev/null; then |
| 15432 | if test -s conftest.err; then |
| 15433 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15434 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15435 | else |
| 15436 | ac_cpp_err= |
| 15437 | fi |
| 15438 | else |
| 15439 | ac_cpp_err=yes |
| 15440 | fi |
| 15441 | if test -z "$ac_cpp_err"; then |
| 15442 | ac_header_preproc=yes |
| 15443 | else |
| 15444 | echo "$as_me: failed program was:" >&5 |
| 15445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15446 | |
| 15447 | ac_header_preproc=no |
| 15448 | fi |
| 15449 | |
| 15450 | rm -f conftest.err conftest.$ac_ext |
| 15451 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15452 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15453 | |
| 15454 | # So? What about this header? |
| 15455 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15456 | yes:no: ) |
| 15457 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15458 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15460 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15461 | ac_header_preproc=yes |
| 15462 | ;; |
| 15463 | no:yes:* ) |
| 15464 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15465 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15466 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15467 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15468 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15469 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15470 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15471 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15473 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15474 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15475 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15476 | ( cat <<\_ASBOX |
| 15477 | ## ----------------------------------- ## |
| 15478 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15479 | ## ----------------------------------- ## |
| 15480 | _ASBOX |
| 15481 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15482 | ;; |
| 15483 | esac |
| 15484 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15485 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15488 | else |
| 15489 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15490 | fi |
| 15491 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15492 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15493 | echo "${ECHO_T}$ac_res" >&6; } |
| 15494 | |
| 15495 | fi |
| 15496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15497 | cat >>confdefs.h <<_ACEOF |
| 15498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15499 | _ACEOF |
| 15500 | |
| 15501 | fi |
| 15502 | |
| 15503 | done |
| 15504 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 15505 | if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15506 | |
| 15507 | for ac_header in pthread.h |
| 15508 | do |
| 15509 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15510 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15511 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15515 | fi |
| 15516 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15517 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15518 | echo "${ECHO_T}$ac_res" >&6; } |
| 15519 | else |
| 15520 | # Is the header compilable? |
| 15521 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15522 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15523 | cat >conftest.$ac_ext <<_ACEOF |
| 15524 | /* confdefs.h. */ |
| 15525 | _ACEOF |
| 15526 | cat confdefs.h >>conftest.$ac_ext |
| 15527 | cat >>conftest.$ac_ext <<_ACEOF |
| 15528 | /* end confdefs.h. */ |
| 15529 | $ac_includes_default |
| 15530 | #include <$ac_header> |
| 15531 | _ACEOF |
| 15532 | rm -f conftest.$ac_objext |
| 15533 | if { (ac_try="$ac_compile" |
| 15534 | case "(($ac_try" in |
| 15535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15536 | *) ac_try_echo=$ac_try;; |
| 15537 | esac |
| 15538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15539 | (eval "$ac_compile") 2>conftest.er1 |
| 15540 | ac_status=$? |
| 15541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15542 | rm -f conftest.er1 |
| 15543 | cat conftest.err >&5 |
| 15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15545 | (exit $ac_status); } && |
| 15546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15547 | { (case "(($ac_try" in |
| 15548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15549 | *) ac_try_echo=$ac_try;; |
| 15550 | esac |
| 15551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15552 | (eval "$ac_try") 2>&5 |
| 15553 | ac_status=$? |
| 15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15555 | (exit $ac_status); }; } && |
| 15556 | { ac_try='test -s conftest.$ac_objext' |
| 15557 | { (case "(($ac_try" in |
| 15558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15559 | *) ac_try_echo=$ac_try;; |
| 15560 | esac |
| 15561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15562 | (eval "$ac_try") 2>&5 |
| 15563 | ac_status=$? |
| 15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15565 | (exit $ac_status); }; }; then |
| 15566 | ac_header_compiler=yes |
| 15567 | else |
| 15568 | echo "$as_me: failed program was:" >&5 |
| 15569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15570 | |
| 15571 | ac_header_compiler=no |
| 15572 | fi |
| 15573 | |
| 15574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15575 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15576 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15577 | |
| 15578 | # Is the header present? |
| 15579 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15580 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15581 | cat >conftest.$ac_ext <<_ACEOF |
| 15582 | /* confdefs.h. */ |
| 15583 | _ACEOF |
| 15584 | cat confdefs.h >>conftest.$ac_ext |
| 15585 | cat >>conftest.$ac_ext <<_ACEOF |
| 15586 | /* end confdefs.h. */ |
| 15587 | #include <$ac_header> |
| 15588 | _ACEOF |
| 15589 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15590 | case "(($ac_try" in |
| 15591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15592 | *) ac_try_echo=$ac_try;; |
| 15593 | esac |
| 15594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15595 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15596 | ac_status=$? |
| 15597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15598 | rm -f conftest.er1 |
| 15599 | cat conftest.err >&5 |
| 15600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15601 | (exit $ac_status); } >/dev/null; then |
| 15602 | if test -s conftest.err; then |
| 15603 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15604 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15605 | else |
| 15606 | ac_cpp_err= |
| 15607 | fi |
| 15608 | else |
| 15609 | ac_cpp_err=yes |
| 15610 | fi |
| 15611 | if test -z "$ac_cpp_err"; then |
| 15612 | ac_header_preproc=yes |
| 15613 | else |
| 15614 | echo "$as_me: failed program was:" >&5 |
| 15615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15616 | |
| 15617 | ac_header_preproc=no |
| 15618 | fi |
| 15619 | |
| 15620 | rm -f conftest.err conftest.$ac_ext |
| 15621 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15622 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15623 | |
| 15624 | # So? What about this header? |
| 15625 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15626 | yes:no: ) |
| 15627 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15628 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15630 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15631 | ac_header_preproc=yes |
| 15632 | ;; |
| 15633 | no:yes:* ) |
| 15634 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15635 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15636 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15637 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15638 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15639 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15640 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15641 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15643 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15644 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15645 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15646 | ( cat <<\_ASBOX |
| 15647 | ## ----------------------------------- ## |
| 15648 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15649 | ## ----------------------------------- ## |
| 15650 | _ASBOX |
| 15651 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15652 | ;; |
| 15653 | esac |
| 15654 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15655 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15656 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15658 | else |
| 15659 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15660 | fi |
| 15661 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15662 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15663 | echo "${ECHO_T}$ac_res" >&6; } |
| 15664 | |
| 15665 | fi |
| 15666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15667 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15669 | _ACEOF |
| 15670 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15671 | |
| 15672 | else |
| 15673 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15674 | |
| 15675 | fi |
| 15676 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15677 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15678 | |
| 15679 | else |
| 15680 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15681 | |
| 15682 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15683 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15684 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15685 | |
| 15686 | |
| 15687 | for ac_header in ffi.h ffi/ffi.h |
| 15688 | do |
| 15689 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15690 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15691 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15692 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15693 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15695 | fi |
| 15696 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15697 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15698 | echo "${ECHO_T}$ac_res" >&6; } |
| 15699 | else |
| 15700 | # Is the header compilable? |
| 15701 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15702 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15703 | cat >conftest.$ac_ext <<_ACEOF |
| 15704 | /* confdefs.h. */ |
| 15705 | _ACEOF |
| 15706 | cat confdefs.h >>conftest.$ac_ext |
| 15707 | cat >>conftest.$ac_ext <<_ACEOF |
| 15708 | /* end confdefs.h. */ |
| 15709 | $ac_includes_default |
| 15710 | #include <$ac_header> |
| 15711 | _ACEOF |
| 15712 | rm -f conftest.$ac_objext |
| 15713 | if { (ac_try="$ac_compile" |
| 15714 | case "(($ac_try" in |
| 15715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15716 | *) ac_try_echo=$ac_try;; |
| 15717 | esac |
| 15718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15719 | (eval "$ac_compile") 2>conftest.er1 |
| 15720 | ac_status=$? |
| 15721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15722 | rm -f conftest.er1 |
| 15723 | cat conftest.err >&5 |
| 15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15725 | (exit $ac_status); } && |
| 15726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15727 | { (case "(($ac_try" in |
| 15728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15729 | *) ac_try_echo=$ac_try;; |
| 15730 | esac |
| 15731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15732 | (eval "$ac_try") 2>&5 |
| 15733 | ac_status=$? |
| 15734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15735 | (exit $ac_status); }; } && |
| 15736 | { ac_try='test -s conftest.$ac_objext' |
| 15737 | { (case "(($ac_try" in |
| 15738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15739 | *) ac_try_echo=$ac_try;; |
| 15740 | esac |
| 15741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15742 | (eval "$ac_try") 2>&5 |
| 15743 | ac_status=$? |
| 15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15745 | (exit $ac_status); }; }; then |
| 15746 | ac_header_compiler=yes |
| 15747 | else |
| 15748 | echo "$as_me: failed program was:" >&5 |
| 15749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15750 | |
| 15751 | ac_header_compiler=no |
| 15752 | fi |
| 15753 | |
| 15754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15755 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15756 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15757 | |
| 15758 | # Is the header present? |
| 15759 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15760 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15761 | cat >conftest.$ac_ext <<_ACEOF |
| 15762 | /* confdefs.h. */ |
| 15763 | _ACEOF |
| 15764 | cat confdefs.h >>conftest.$ac_ext |
| 15765 | cat >>conftest.$ac_ext <<_ACEOF |
| 15766 | /* end confdefs.h. */ |
| 15767 | #include <$ac_header> |
| 15768 | _ACEOF |
| 15769 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15770 | case "(($ac_try" in |
| 15771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15772 | *) ac_try_echo=$ac_try;; |
| 15773 | esac |
| 15774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15775 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15776 | ac_status=$? |
| 15777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15778 | rm -f conftest.er1 |
| 15779 | cat conftest.err >&5 |
| 15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15781 | (exit $ac_status); } >/dev/null; then |
| 15782 | if test -s conftest.err; then |
| 15783 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15784 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15785 | else |
| 15786 | ac_cpp_err= |
| 15787 | fi |
| 15788 | else |
| 15789 | ac_cpp_err=yes |
| 15790 | fi |
| 15791 | if test -z "$ac_cpp_err"; then |
| 15792 | ac_header_preproc=yes |
| 15793 | else |
| 15794 | echo "$as_me: failed program was:" >&5 |
| 15795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15796 | |
| 15797 | ac_header_preproc=no |
| 15798 | fi |
| 15799 | |
| 15800 | rm -f conftest.err conftest.$ac_ext |
| 15801 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15802 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15803 | |
| 15804 | # So? What about this header? |
| 15805 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15806 | yes:no: ) |
| 15807 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15808 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15810 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15811 | ac_header_preproc=yes |
| 15812 | ;; |
| 15813 | no:yes:* ) |
| 15814 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15815 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15816 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15817 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15818 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15819 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15820 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15821 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15822 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15823 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15824 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15825 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15826 | ( cat <<\_ASBOX |
| 15827 | ## ----------------------------------- ## |
| 15828 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15829 | ## ----------------------------------- ## |
| 15830 | _ASBOX |
| 15831 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15832 | ;; |
| 15833 | esac |
| 15834 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15836 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15838 | else |
| 15839 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15840 | fi |
| 15841 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15842 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15843 | echo "${ECHO_T}$ac_res" >&6; } |
| 15844 | |
| 15845 | fi |
| 15846 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15847 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15848 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15849 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15850 | |
| 15851 | fi |
| 15852 | |
| 15853 | done |
| 15854 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15855 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15856 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 15857 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 15858 | for ac_header in CrashReporterClient.h |
| 15859 | do |
| 15860 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15861 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15862 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15864 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15866 | fi |
| 15867 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15868 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15869 | echo "${ECHO_T}$ac_res" >&6; } |
| 15870 | else |
| 15871 | # Is the header compilable? |
| 15872 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15873 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15874 | cat >conftest.$ac_ext <<_ACEOF |
| 15875 | /* confdefs.h. */ |
| 15876 | _ACEOF |
| 15877 | cat confdefs.h >>conftest.$ac_ext |
| 15878 | cat >>conftest.$ac_ext <<_ACEOF |
| 15879 | /* end confdefs.h. */ |
| 15880 | $ac_includes_default |
| 15881 | #include <$ac_header> |
| 15882 | _ACEOF |
| 15883 | rm -f conftest.$ac_objext |
| 15884 | if { (ac_try="$ac_compile" |
| 15885 | case "(($ac_try" in |
| 15886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15887 | *) ac_try_echo=$ac_try;; |
| 15888 | esac |
| 15889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15890 | (eval "$ac_compile") 2>conftest.er1 |
| 15891 | ac_status=$? |
| 15892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15893 | rm -f conftest.er1 |
| 15894 | cat conftest.err >&5 |
| 15895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15896 | (exit $ac_status); } && |
| 15897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15898 | { (case "(($ac_try" in |
| 15899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15900 | *) ac_try_echo=$ac_try;; |
| 15901 | esac |
| 15902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15903 | (eval "$ac_try") 2>&5 |
| 15904 | ac_status=$? |
| 15905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15906 | (exit $ac_status); }; } && |
| 15907 | { ac_try='test -s conftest.$ac_objext' |
| 15908 | { (case "(($ac_try" in |
| 15909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15910 | *) ac_try_echo=$ac_try;; |
| 15911 | esac |
| 15912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15913 | (eval "$ac_try") 2>&5 |
| 15914 | ac_status=$? |
| 15915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15916 | (exit $ac_status); }; }; then |
| 15917 | ac_header_compiler=yes |
| 15918 | else |
| 15919 | echo "$as_me: failed program was:" >&5 |
| 15920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15921 | |
| 15922 | ac_header_compiler=no |
| 15923 | fi |
| 15924 | |
| 15925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15926 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15927 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15928 | |
| 15929 | # Is the header present? |
| 15930 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15931 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15932 | cat >conftest.$ac_ext <<_ACEOF |
| 15933 | /* confdefs.h. */ |
| 15934 | _ACEOF |
| 15935 | cat confdefs.h >>conftest.$ac_ext |
| 15936 | cat >>conftest.$ac_ext <<_ACEOF |
| 15937 | /* end confdefs.h. */ |
| 15938 | #include <$ac_header> |
| 15939 | _ACEOF |
| 15940 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15941 | case "(($ac_try" in |
| 15942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15943 | *) ac_try_echo=$ac_try;; |
| 15944 | esac |
| 15945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15946 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15947 | ac_status=$? |
| 15948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15949 | rm -f conftest.er1 |
| 15950 | cat conftest.err >&5 |
| 15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15952 | (exit $ac_status); } >/dev/null; then |
| 15953 | if test -s conftest.err; then |
| 15954 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15955 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15956 | else |
| 15957 | ac_cpp_err= |
| 15958 | fi |
| 15959 | else |
| 15960 | ac_cpp_err=yes |
| 15961 | fi |
| 15962 | if test -z "$ac_cpp_err"; then |
| 15963 | ac_header_preproc=yes |
| 15964 | else |
| 15965 | echo "$as_me: failed program was:" >&5 |
| 15966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15967 | |
| 15968 | ac_header_preproc=no |
| 15969 | fi |
| 15970 | |
| 15971 | rm -f conftest.err conftest.$ac_ext |
| 15972 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15973 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15974 | |
| 15975 | # So? What about this header? |
| 15976 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15977 | yes:no: ) |
| 15978 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15979 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15981 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15982 | ac_header_preproc=yes |
| 15983 | ;; |
| 15984 | no:yes:* ) |
| 15985 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15986 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15987 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15988 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15989 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15990 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15991 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15992 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15994 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15995 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15996 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15997 | ( cat <<\_ASBOX |
| 15998 | ## ----------------------------------- ## |
| 15999 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16000 | ## ----------------------------------- ## |
| 16001 | _ASBOX |
| 16002 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16003 | ;; |
| 16004 | esac |
| 16005 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16006 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16007 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16009 | else |
| 16010 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16011 | fi |
| 16012 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16013 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16014 | echo "${ECHO_T}$ac_res" >&6; } |
| 16015 | |
| 16016 | fi |
| 16017 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16018 | cat >>confdefs.h <<_ACEOF |
| 16019 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16020 | _ACEOF |
| 16021 | |
| 16022 | fi |
| 16023 | |
| 16024 | done |
| 16025 | |
| 16026 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16027 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 16028 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16029 | cat >conftest.$ac_ext <<_ACEOF |
| 16030 | /* confdefs.h. */ |
| 16031 | _ACEOF |
| 16032 | cat confdefs.h >>conftest.$ac_ext |
| 16033 | cat >>conftest.$ac_ext <<_ACEOF |
| 16034 | /* end confdefs.h. */ |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16035 | extern const char *__crashreporter_info__; |
| 16036 | int main() { |
| 16037 | __crashreporter_info__ = "test"; |
| 16038 | return 0; |
| 16039 | } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16040 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16041 | _ACEOF |
| 16042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16043 | if { (ac_try="$ac_link" |
| 16044 | case "(($ac_try" in |
| 16045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16046 | *) ac_try_echo=$ac_try;; |
| 16047 | esac |
| 16048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16049 | (eval "$ac_link") 2>conftest.er1 |
| 16050 | ac_status=$? |
| 16051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16052 | rm -f conftest.er1 |
| 16053 | cat conftest.err >&5 |
| 16054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16055 | (exit $ac_status); } && |
| 16056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16057 | { (case "(($ac_try" in |
| 16058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16059 | *) ac_try_echo=$ac_try;; |
| 16060 | esac |
| 16061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16062 | (eval "$ac_try") 2>&5 |
| 16063 | ac_status=$? |
| 16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16065 | (exit $ac_status); }; } && |
| 16066 | { ac_try='test -s conftest$ac_exeext' |
| 16067 | { (case "(($ac_try" in |
| 16068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16069 | *) ac_try_echo=$ac_try;; |
| 16070 | esac |
| 16071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16072 | (eval "$ac_try") 2>&5 |
| 16073 | ac_status=$? |
| 16074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16075 | (exit $ac_status); }; }; then |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16076 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16077 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16078 | |
| 16079 | cat >>confdefs.h <<\_ACEOF |
| 16080 | #define HAVE_CRASHREPORTER_INFO 1 |
| 16081 | _ACEOF |
| 16082 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16083 | else |
| 16084 | echo "$as_me: failed program was:" >&5 |
| 16085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16086 | |
| 16087 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16088 | echo "${ECHO_T}no" >&6; } |
| 16089 | |
| 16090 | cat >>confdefs.h <<\_ACEOF |
| 16091 | #define HAVE_CRASHREPORTER_INFO 0 |
| 16092 | _ACEOF |
| 16093 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16094 | fi |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16095 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16096 | rm -f core conftest.err conftest.$ac_objext \ |
| 16097 | conftest$ac_exeext conftest.$ac_ext |
| 16098 | |
| 16099 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16100 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16101 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16102 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16103 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16104 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16106 | else |
| 16107 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16108 | ac_ext=cpp |
| 16109 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16113 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16114 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16115 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16116 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16117 | ac_cv_huge_val_sanity=yes |
| 16118 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16119 | cat >conftest.$ac_ext <<_ACEOF |
| 16120 | /* confdefs.h. */ |
| 16121 | _ACEOF |
| 16122 | cat confdefs.h >>conftest.$ac_ext |
| 16123 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16124 | /* end confdefs.h. */ |
| 16125 | #include <math.h> |
| 16126 | int |
| 16127 | main () |
| 16128 | { |
| 16129 | double x = HUGE_VAL; return x != x; |
| 16130 | ; |
| 16131 | return 0; |
| 16132 | } |
| 16133 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16134 | rm -f conftest$ac_exeext |
| 16135 | if { (ac_try="$ac_link" |
| 16136 | case "(($ac_try" in |
| 16137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16138 | *) ac_try_echo=$ac_try;; |
| 16139 | esac |
| 16140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16141 | (eval "$ac_link") 2>&5 |
| 16142 | ac_status=$? |
| 16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16144 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16145 | { (case "(($ac_try" in |
| 16146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16147 | *) ac_try_echo=$ac_try;; |
| 16148 | esac |
| 16149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16150 | (eval "$ac_try") 2>&5 |
| 16151 | ac_status=$? |
| 16152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16153 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16154 | ac_cv_huge_val_sanity=yes |
| 16155 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16156 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16157 | echo "$as_me: failed program was:" >&5 |
| 16158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16159 | |
| 16160 | ( exit $ac_status ) |
| 16161 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16162 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16163 | 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] | 16164 | fi |
| 16165 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16166 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16167 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16168 | ac_ext=c |
| 16169 | ac_cpp='$CPP $CPPFLAGS' |
| 16170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16173 | |
| 16174 | |
| 16175 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16176 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16177 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16178 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16179 | |
| 16180 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16181 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16182 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16183 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16185 | else |
| 16186 | cat >conftest.$ac_ext <<_ACEOF |
| 16187 | /* confdefs.h. */ |
| 16188 | _ACEOF |
| 16189 | cat confdefs.h >>conftest.$ac_ext |
| 16190 | cat >>conftest.$ac_ext <<_ACEOF |
| 16191 | /* end confdefs.h. */ |
| 16192 | $ac_includes_default |
| 16193 | typedef pid_t ac__type_new_; |
| 16194 | int |
| 16195 | main () |
| 16196 | { |
| 16197 | if ((ac__type_new_ *) 0) |
| 16198 | return 0; |
| 16199 | if (sizeof (ac__type_new_)) |
| 16200 | return 0; |
| 16201 | ; |
| 16202 | return 0; |
| 16203 | } |
| 16204 | _ACEOF |
| 16205 | rm -f conftest.$ac_objext |
| 16206 | if { (ac_try="$ac_compile" |
| 16207 | case "(($ac_try" in |
| 16208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16209 | *) ac_try_echo=$ac_try;; |
| 16210 | esac |
| 16211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16212 | (eval "$ac_compile") 2>conftest.er1 |
| 16213 | ac_status=$? |
| 16214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16215 | rm -f conftest.er1 |
| 16216 | cat conftest.err >&5 |
| 16217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16218 | (exit $ac_status); } && |
| 16219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16220 | { (case "(($ac_try" in |
| 16221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16222 | *) ac_try_echo=$ac_try;; |
| 16223 | esac |
| 16224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16225 | (eval "$ac_try") 2>&5 |
| 16226 | ac_status=$? |
| 16227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16228 | (exit $ac_status); }; } && |
| 16229 | { ac_try='test -s conftest.$ac_objext' |
| 16230 | { (case "(($ac_try" in |
| 16231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16232 | *) ac_try_echo=$ac_try;; |
| 16233 | esac |
| 16234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16235 | (eval "$ac_try") 2>&5 |
| 16236 | ac_status=$? |
| 16237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16238 | (exit $ac_status); }; }; then |
| 16239 | ac_cv_type_pid_t=yes |
| 16240 | else |
| 16241 | echo "$as_me: failed program was:" >&5 |
| 16242 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16243 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16244 | ac_cv_type_pid_t=no |
| 16245 | fi |
| 16246 | |
| 16247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16248 | fi |
| 16249 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16250 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16251 | if test $ac_cv_type_pid_t = yes; then |
| 16252 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16253 | else |
| 16254 | |
| 16255 | cat >>confdefs.h <<_ACEOF |
| 16256 | #define pid_t int |
| 16257 | _ACEOF |
| 16258 | |
| 16259 | fi |
| 16260 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16261 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16262 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16263 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16265 | else |
| 16266 | cat >conftest.$ac_ext <<_ACEOF |
| 16267 | /* confdefs.h. */ |
| 16268 | _ACEOF |
| 16269 | cat confdefs.h >>conftest.$ac_ext |
| 16270 | cat >>conftest.$ac_ext <<_ACEOF |
| 16271 | /* end confdefs.h. */ |
| 16272 | $ac_includes_default |
| 16273 | typedef size_t ac__type_new_; |
| 16274 | int |
| 16275 | main () |
| 16276 | { |
| 16277 | if ((ac__type_new_ *) 0) |
| 16278 | return 0; |
| 16279 | if (sizeof (ac__type_new_)) |
| 16280 | return 0; |
| 16281 | ; |
| 16282 | return 0; |
| 16283 | } |
| 16284 | _ACEOF |
| 16285 | rm -f conftest.$ac_objext |
| 16286 | if { (ac_try="$ac_compile" |
| 16287 | case "(($ac_try" in |
| 16288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16289 | *) ac_try_echo=$ac_try;; |
| 16290 | esac |
| 16291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16292 | (eval "$ac_compile") 2>conftest.er1 |
| 16293 | ac_status=$? |
| 16294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16295 | rm -f conftest.er1 |
| 16296 | cat conftest.err >&5 |
| 16297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16298 | (exit $ac_status); } && |
| 16299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16300 | { (case "(($ac_try" in |
| 16301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16302 | *) ac_try_echo=$ac_try;; |
| 16303 | esac |
| 16304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16305 | (eval "$ac_try") 2>&5 |
| 16306 | ac_status=$? |
| 16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16308 | (exit $ac_status); }; } && |
| 16309 | { ac_try='test -s conftest.$ac_objext' |
| 16310 | { (case "(($ac_try" in |
| 16311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16312 | *) ac_try_echo=$ac_try;; |
| 16313 | esac |
| 16314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16315 | (eval "$ac_try") 2>&5 |
| 16316 | ac_status=$? |
| 16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16318 | (exit $ac_status); }; }; then |
| 16319 | ac_cv_type_size_t=yes |
| 16320 | else |
| 16321 | echo "$as_me: failed program was:" >&5 |
| 16322 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16323 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16324 | ac_cv_type_size_t=no |
| 16325 | fi |
| 16326 | |
| 16327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16328 | fi |
| 16329 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16330 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16331 | if test $ac_cv_type_size_t = yes; then |
| 16332 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16333 | else |
| 16334 | |
| 16335 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16336 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16337 | _ACEOF |
| 16338 | |
| 16339 | fi |
| 16340 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16341 | |
| 16342 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16343 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16344 | _ACEOF |
| 16345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16346 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16347 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16348 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16350 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16351 | cat >conftest.$ac_ext <<_ACEOF |
| 16352 | /* confdefs.h. */ |
| 16353 | _ACEOF |
| 16354 | cat confdefs.h >>conftest.$ac_ext |
| 16355 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16356 | /* end confdefs.h. */ |
| 16357 | #include <sys/types.h> |
| 16358 | #include <time.h> |
| 16359 | |
| 16360 | int |
| 16361 | main () |
| 16362 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16363 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16364 | ; |
| 16365 | return 0; |
| 16366 | } |
| 16367 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16368 | rm -f conftest.$ac_objext |
| 16369 | if { (ac_try="$ac_compile" |
| 16370 | case "(($ac_try" in |
| 16371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16372 | *) ac_try_echo=$ac_try;; |
| 16373 | esac |
| 16374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16375 | (eval "$ac_compile") 2>conftest.er1 |
| 16376 | ac_status=$? |
| 16377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16378 | rm -f conftest.er1 |
| 16379 | cat conftest.err >&5 |
| 16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16381 | (exit $ac_status); } && |
| 16382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16383 | { (case "(($ac_try" in |
| 16384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16385 | *) ac_try_echo=$ac_try;; |
| 16386 | esac |
| 16387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16388 | (eval "$ac_try") 2>&5 |
| 16389 | ac_status=$? |
| 16390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16391 | (exit $ac_status); }; } && |
| 16392 | { ac_try='test -s conftest.$ac_objext' |
| 16393 | { (case "(($ac_try" in |
| 16394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16395 | *) ac_try_echo=$ac_try;; |
| 16396 | esac |
| 16397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16398 | (eval "$ac_try") 2>&5 |
| 16399 | ac_status=$? |
| 16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16401 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16402 | ac_cv_struct_tm=time.h |
| 16403 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16404 | echo "$as_me: failed program was:" >&5 |
| 16405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16406 | |
| 16407 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16408 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16411 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16412 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16413 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16414 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16415 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16416 | cat >>confdefs.h <<\_ACEOF |
| 16417 | #define TM_IN_SYS_TIME 1 |
| 16418 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16419 | |
| 16420 | fi |
| 16421 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16422 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16423 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16424 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16426 | else |
| 16427 | cat >conftest.$ac_ext <<_ACEOF |
| 16428 | /* confdefs.h. */ |
| 16429 | _ACEOF |
| 16430 | cat confdefs.h >>conftest.$ac_ext |
| 16431 | cat >>conftest.$ac_ext <<_ACEOF |
| 16432 | /* end confdefs.h. */ |
| 16433 | $ac_includes_default |
| 16434 | typedef int64_t ac__type_new_; |
| 16435 | int |
| 16436 | main () |
| 16437 | { |
| 16438 | if ((ac__type_new_ *) 0) |
| 16439 | return 0; |
| 16440 | if (sizeof (ac__type_new_)) |
| 16441 | return 0; |
| 16442 | ; |
| 16443 | return 0; |
| 16444 | } |
| 16445 | _ACEOF |
| 16446 | rm -f conftest.$ac_objext |
| 16447 | if { (ac_try="$ac_compile" |
| 16448 | case "(($ac_try" in |
| 16449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16450 | *) ac_try_echo=$ac_try;; |
| 16451 | esac |
| 16452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16453 | (eval "$ac_compile") 2>conftest.er1 |
| 16454 | ac_status=$? |
| 16455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16456 | rm -f conftest.er1 |
| 16457 | cat conftest.err >&5 |
| 16458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16459 | (exit $ac_status); } && |
| 16460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 16467 | ac_status=$? |
| 16468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16469 | (exit $ac_status); }; } && |
| 16470 | { ac_try='test -s conftest.$ac_objext' |
| 16471 | { (case "(($ac_try" in |
| 16472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16473 | *) ac_try_echo=$ac_try;; |
| 16474 | esac |
| 16475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16476 | (eval "$ac_try") 2>&5 |
| 16477 | ac_status=$? |
| 16478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16479 | (exit $ac_status); }; }; then |
| 16480 | ac_cv_type_int64_t=yes |
| 16481 | else |
| 16482 | echo "$as_me: failed program was:" >&5 |
| 16483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16484 | |
| 16485 | ac_cv_type_int64_t=no |
| 16486 | fi |
| 16487 | |
| 16488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16489 | fi |
| 16490 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16491 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16492 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16493 | |
| 16494 | cat >>confdefs.h <<_ACEOF |
| 16495 | #define HAVE_INT64_T 1 |
| 16496 | _ACEOF |
| 16497 | |
| 16498 | |
| 16499 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16500 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16501 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16502 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16503 | fi |
| 16504 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16505 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16506 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16507 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16509 | else |
| 16510 | cat >conftest.$ac_ext <<_ACEOF |
| 16511 | /* confdefs.h. */ |
| 16512 | _ACEOF |
| 16513 | cat confdefs.h >>conftest.$ac_ext |
| 16514 | cat >>conftest.$ac_ext <<_ACEOF |
| 16515 | /* end confdefs.h. */ |
| 16516 | $ac_includes_default |
| 16517 | typedef uint64_t ac__type_new_; |
| 16518 | int |
| 16519 | main () |
| 16520 | { |
| 16521 | if ((ac__type_new_ *) 0) |
| 16522 | return 0; |
| 16523 | if (sizeof (ac__type_new_)) |
| 16524 | return 0; |
| 16525 | ; |
| 16526 | return 0; |
| 16527 | } |
| 16528 | _ACEOF |
| 16529 | rm -f conftest.$ac_objext |
| 16530 | if { (ac_try="$ac_compile" |
| 16531 | case "(($ac_try" in |
| 16532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16533 | *) ac_try_echo=$ac_try;; |
| 16534 | esac |
| 16535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16536 | (eval "$ac_compile") 2>conftest.er1 |
| 16537 | ac_status=$? |
| 16538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16539 | rm -f conftest.er1 |
| 16540 | cat conftest.err >&5 |
| 16541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16542 | (exit $ac_status); } && |
| 16543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16544 | { (case "(($ac_try" in |
| 16545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16546 | *) ac_try_echo=$ac_try;; |
| 16547 | esac |
| 16548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16549 | (eval "$ac_try") 2>&5 |
| 16550 | ac_status=$? |
| 16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16552 | (exit $ac_status); }; } && |
| 16553 | { ac_try='test -s conftest.$ac_objext' |
| 16554 | { (case "(($ac_try" in |
| 16555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16556 | *) ac_try_echo=$ac_try;; |
| 16557 | esac |
| 16558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16559 | (eval "$ac_try") 2>&5 |
| 16560 | ac_status=$? |
| 16561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16562 | (exit $ac_status); }; }; then |
| 16563 | ac_cv_type_uint64_t=yes |
| 16564 | else |
| 16565 | echo "$as_me: failed program was:" >&5 |
| 16566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16567 | |
| 16568 | ac_cv_type_uint64_t=no |
| 16569 | fi |
| 16570 | |
| 16571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16572 | fi |
| 16573 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16574 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16575 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16576 | |
| 16577 | cat >>confdefs.h <<_ACEOF |
| 16578 | #define HAVE_UINT64_T 1 |
| 16579 | _ACEOF |
| 16580 | |
| 16581 | |
| 16582 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16583 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16584 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16585 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16587 | else |
| 16588 | cat >conftest.$ac_ext <<_ACEOF |
| 16589 | /* confdefs.h. */ |
| 16590 | _ACEOF |
| 16591 | cat confdefs.h >>conftest.$ac_ext |
| 16592 | cat >>conftest.$ac_ext <<_ACEOF |
| 16593 | /* end confdefs.h. */ |
| 16594 | $ac_includes_default |
| 16595 | typedef u_int64_t ac__type_new_; |
| 16596 | int |
| 16597 | main () |
| 16598 | { |
| 16599 | if ((ac__type_new_ *) 0) |
| 16600 | return 0; |
| 16601 | if (sizeof (ac__type_new_)) |
| 16602 | return 0; |
| 16603 | ; |
| 16604 | return 0; |
| 16605 | } |
| 16606 | _ACEOF |
| 16607 | rm -f conftest.$ac_objext |
| 16608 | if { (ac_try="$ac_compile" |
| 16609 | case "(($ac_try" in |
| 16610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16611 | *) ac_try_echo=$ac_try;; |
| 16612 | esac |
| 16613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16614 | (eval "$ac_compile") 2>conftest.er1 |
| 16615 | ac_status=$? |
| 16616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16617 | rm -f conftest.er1 |
| 16618 | cat conftest.err >&5 |
| 16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16620 | (exit $ac_status); } && |
| 16621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16622 | { (case "(($ac_try" in |
| 16623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16624 | *) ac_try_echo=$ac_try;; |
| 16625 | esac |
| 16626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16627 | (eval "$ac_try") 2>&5 |
| 16628 | ac_status=$? |
| 16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16630 | (exit $ac_status); }; } && |
| 16631 | { ac_try='test -s conftest.$ac_objext' |
| 16632 | { (case "(($ac_try" in |
| 16633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16634 | *) ac_try_echo=$ac_try;; |
| 16635 | esac |
| 16636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16637 | (eval "$ac_try") 2>&5 |
| 16638 | ac_status=$? |
| 16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16640 | (exit $ac_status); }; }; then |
| 16641 | ac_cv_type_u_int64_t=yes |
| 16642 | else |
| 16643 | echo "$as_me: failed program was:" >&5 |
| 16644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16645 | |
| 16646 | ac_cv_type_u_int64_t=no |
| 16647 | fi |
| 16648 | |
| 16649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16650 | fi |
| 16651 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16652 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16653 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16654 | |
| 16655 | cat >>confdefs.h <<_ACEOF |
| 16656 | #define HAVE_U_INT64_T 1 |
| 16657 | _ACEOF |
| 16658 | |
| 16659 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16660 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16661 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16662 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16663 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16664 | fi |
| 16665 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16666 | fi |
| 16667 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16668 | |
| 16669 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16670 | |
| 16671 | |
| 16672 | |
| 16673 | |
| 16674 | |
| 16675 | |
| 16676 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16677 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16678 | do |
| 16679 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16680 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16681 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16682 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16684 | else |
| 16685 | cat >conftest.$ac_ext <<_ACEOF |
| 16686 | /* confdefs.h. */ |
| 16687 | _ACEOF |
| 16688 | cat confdefs.h >>conftest.$ac_ext |
| 16689 | cat >>conftest.$ac_ext <<_ACEOF |
| 16690 | /* end confdefs.h. */ |
| 16691 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16692 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16693 | #define $ac_func innocuous_$ac_func |
| 16694 | |
| 16695 | /* System header to define __stub macros and hopefully few prototypes, |
| 16696 | which can conflict with char $ac_func (); below. |
| 16697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16698 | <limits.h> exists even on freestanding compilers. */ |
| 16699 | |
| 16700 | #ifdef __STDC__ |
| 16701 | # include <limits.h> |
| 16702 | #else |
| 16703 | # include <assert.h> |
| 16704 | #endif |
| 16705 | |
| 16706 | #undef $ac_func |
| 16707 | |
| 16708 | /* Override any GCC internal prototype to avoid an error. |
| 16709 | Use char because int might match the return type of a GCC |
| 16710 | builtin and then its argument prototype would still apply. */ |
| 16711 | #ifdef __cplusplus |
| 16712 | extern "C" |
| 16713 | #endif |
| 16714 | char $ac_func (); |
| 16715 | /* The GNU C library defines this for functions which it implements |
| 16716 | to always fail with ENOSYS. Some functions are actually named |
| 16717 | something starting with __ and the normal name is an alias. */ |
| 16718 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16719 | choke me |
| 16720 | #endif |
| 16721 | |
| 16722 | int |
| 16723 | main () |
| 16724 | { |
| 16725 | return $ac_func (); |
| 16726 | ; |
| 16727 | return 0; |
| 16728 | } |
| 16729 | _ACEOF |
| 16730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16731 | if { (ac_try="$ac_link" |
| 16732 | case "(($ac_try" in |
| 16733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16734 | *) ac_try_echo=$ac_try;; |
| 16735 | esac |
| 16736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16737 | (eval "$ac_link") 2>conftest.er1 |
| 16738 | ac_status=$? |
| 16739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16740 | rm -f conftest.er1 |
| 16741 | cat conftest.err >&5 |
| 16742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16743 | (exit $ac_status); } && |
| 16744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16745 | { (case "(($ac_try" in |
| 16746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16747 | *) ac_try_echo=$ac_try;; |
| 16748 | esac |
| 16749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16750 | (eval "$ac_try") 2>&5 |
| 16751 | ac_status=$? |
| 16752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16753 | (exit $ac_status); }; } && |
| 16754 | { ac_try='test -s conftest$ac_exeext' |
| 16755 | { (case "(($ac_try" in |
| 16756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16757 | *) ac_try_echo=$ac_try;; |
| 16758 | esac |
| 16759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16760 | (eval "$ac_try") 2>&5 |
| 16761 | ac_status=$? |
| 16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16763 | (exit $ac_status); }; }; then |
| 16764 | eval "$as_ac_var=yes" |
| 16765 | else |
| 16766 | echo "$as_me: failed program was:" >&5 |
| 16767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16768 | |
| 16769 | eval "$as_ac_var=no" |
| 16770 | fi |
| 16771 | |
| 16772 | rm -f core conftest.err conftest.$ac_objext \ |
| 16773 | conftest$ac_exeext conftest.$ac_ext |
| 16774 | fi |
| 16775 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16776 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16777 | echo "${ECHO_T}$ac_res" >&6; } |
| 16778 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16779 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16780 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16781 | _ACEOF |
| 16782 | |
| 16783 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16784 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16785 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16786 | |
| 16787 | |
| 16788 | |
| 16789 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16790 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16791 | do |
| 16792 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16793 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16794 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16795 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16797 | else |
| 16798 | cat >conftest.$ac_ext <<_ACEOF |
| 16799 | /* confdefs.h. */ |
| 16800 | _ACEOF |
| 16801 | cat confdefs.h >>conftest.$ac_ext |
| 16802 | cat >>conftest.$ac_ext <<_ACEOF |
| 16803 | /* end confdefs.h. */ |
| 16804 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16805 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16806 | #define $ac_func innocuous_$ac_func |
| 16807 | |
| 16808 | /* System header to define __stub macros and hopefully few prototypes, |
| 16809 | which can conflict with char $ac_func (); below. |
| 16810 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16811 | <limits.h> exists even on freestanding compilers. */ |
| 16812 | |
| 16813 | #ifdef __STDC__ |
| 16814 | # include <limits.h> |
| 16815 | #else |
| 16816 | # include <assert.h> |
| 16817 | #endif |
| 16818 | |
| 16819 | #undef $ac_func |
| 16820 | |
| 16821 | /* Override any GCC internal prototype to avoid an error. |
| 16822 | Use char because int might match the return type of a GCC |
| 16823 | builtin and then its argument prototype would still apply. */ |
| 16824 | #ifdef __cplusplus |
| 16825 | extern "C" |
| 16826 | #endif |
| 16827 | char $ac_func (); |
| 16828 | /* The GNU C library defines this for functions which it implements |
| 16829 | to always fail with ENOSYS. Some functions are actually named |
| 16830 | something starting with __ and the normal name is an alias. */ |
| 16831 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16832 | choke me |
| 16833 | #endif |
| 16834 | |
| 16835 | int |
| 16836 | main () |
| 16837 | { |
| 16838 | return $ac_func (); |
| 16839 | ; |
| 16840 | return 0; |
| 16841 | } |
| 16842 | _ACEOF |
| 16843 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16844 | if { (ac_try="$ac_link" |
| 16845 | case "(($ac_try" in |
| 16846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16847 | *) ac_try_echo=$ac_try;; |
| 16848 | esac |
| 16849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16850 | (eval "$ac_link") 2>conftest.er1 |
| 16851 | ac_status=$? |
| 16852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16853 | rm -f conftest.er1 |
| 16854 | cat conftest.err >&5 |
| 16855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16856 | (exit $ac_status); } && |
| 16857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16858 | { (case "(($ac_try" in |
| 16859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16860 | *) ac_try_echo=$ac_try;; |
| 16861 | esac |
| 16862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16863 | (eval "$ac_try") 2>&5 |
| 16864 | ac_status=$? |
| 16865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16866 | (exit $ac_status); }; } && |
| 16867 | { ac_try='test -s conftest$ac_exeext' |
| 16868 | { (case "(($ac_try" in |
| 16869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16870 | *) ac_try_echo=$ac_try;; |
| 16871 | esac |
| 16872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16873 | (eval "$ac_try") 2>&5 |
| 16874 | ac_status=$? |
| 16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16876 | (exit $ac_status); }; }; then |
| 16877 | eval "$as_ac_var=yes" |
| 16878 | else |
| 16879 | echo "$as_me: failed program was:" >&5 |
| 16880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16881 | |
| 16882 | eval "$as_ac_var=no" |
| 16883 | fi |
| 16884 | |
| 16885 | rm -f core conftest.err conftest.$ac_objext \ |
| 16886 | conftest$ac_exeext conftest.$ac_ext |
| 16887 | fi |
| 16888 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16889 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16890 | echo "${ECHO_T}$ac_res" >&6; } |
| 16891 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16892 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16893 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16894 | _ACEOF |
| 16895 | |
| 16896 | fi |
| 16897 | done |
| 16898 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16899 | |
| 16900 | |
| 16901 | |
| 16902 | |
| 16903 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 16904 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16905 | do |
| 16906 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16907 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16908 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16909 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16911 | else |
| 16912 | cat >conftest.$ac_ext <<_ACEOF |
| 16913 | /* confdefs.h. */ |
| 16914 | _ACEOF |
| 16915 | cat confdefs.h >>conftest.$ac_ext |
| 16916 | cat >>conftest.$ac_ext <<_ACEOF |
| 16917 | /* end confdefs.h. */ |
| 16918 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16920 | #define $ac_func innocuous_$ac_func |
| 16921 | |
| 16922 | /* System header to define __stub macros and hopefully few prototypes, |
| 16923 | which can conflict with char $ac_func (); below. |
| 16924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16925 | <limits.h> exists even on freestanding compilers. */ |
| 16926 | |
| 16927 | #ifdef __STDC__ |
| 16928 | # include <limits.h> |
| 16929 | #else |
| 16930 | # include <assert.h> |
| 16931 | #endif |
| 16932 | |
| 16933 | #undef $ac_func |
| 16934 | |
| 16935 | /* Override any GCC internal prototype to avoid an error. |
| 16936 | Use char because int might match the return type of a GCC |
| 16937 | builtin and then its argument prototype would still apply. */ |
| 16938 | #ifdef __cplusplus |
| 16939 | extern "C" |
| 16940 | #endif |
| 16941 | char $ac_func (); |
| 16942 | /* The GNU C library defines this for functions which it implements |
| 16943 | to always fail with ENOSYS. Some functions are actually named |
| 16944 | something starting with __ and the normal name is an alias. */ |
| 16945 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16946 | choke me |
| 16947 | #endif |
| 16948 | |
| 16949 | int |
| 16950 | main () |
| 16951 | { |
| 16952 | return $ac_func (); |
| 16953 | ; |
| 16954 | return 0; |
| 16955 | } |
| 16956 | _ACEOF |
| 16957 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16958 | if { (ac_try="$ac_link" |
| 16959 | case "(($ac_try" in |
| 16960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16961 | *) ac_try_echo=$ac_try;; |
| 16962 | esac |
| 16963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16964 | (eval "$ac_link") 2>conftest.er1 |
| 16965 | ac_status=$? |
| 16966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16967 | rm -f conftest.er1 |
| 16968 | cat conftest.err >&5 |
| 16969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16970 | (exit $ac_status); } && |
| 16971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16972 | { (case "(($ac_try" in |
| 16973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16974 | *) ac_try_echo=$ac_try;; |
| 16975 | esac |
| 16976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16977 | (eval "$ac_try") 2>&5 |
| 16978 | ac_status=$? |
| 16979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16980 | (exit $ac_status); }; } && |
| 16981 | { ac_try='test -s conftest$ac_exeext' |
| 16982 | { (case "(($ac_try" in |
| 16983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16984 | *) ac_try_echo=$ac_try;; |
| 16985 | esac |
| 16986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16987 | (eval "$ac_try") 2>&5 |
| 16988 | ac_status=$? |
| 16989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16990 | (exit $ac_status); }; }; then |
| 16991 | eval "$as_ac_var=yes" |
| 16992 | else |
| 16993 | echo "$as_me: failed program was:" >&5 |
| 16994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16995 | |
| 16996 | eval "$as_ac_var=no" |
| 16997 | fi |
| 16998 | |
| 16999 | rm -f core conftest.err conftest.$ac_objext \ |
| 17000 | conftest$ac_exeext conftest.$ac_ext |
| 17001 | fi |
| 17002 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17003 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17004 | echo "${ECHO_T}$ac_res" >&6; } |
| 17005 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17006 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17007 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17008 | _ACEOF |
| 17009 | |
| 17010 | fi |
| 17011 | done |
| 17012 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17013 | |
| 17014 | |
| 17015 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17016 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17017 | do |
| 17018 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17019 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17020 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17021 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17023 | else |
| 17024 | cat >conftest.$ac_ext <<_ACEOF |
| 17025 | /* confdefs.h. */ |
| 17026 | _ACEOF |
| 17027 | cat confdefs.h >>conftest.$ac_ext |
| 17028 | cat >>conftest.$ac_ext <<_ACEOF |
| 17029 | /* end confdefs.h. */ |
| 17030 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17032 | #define $ac_func innocuous_$ac_func |
| 17033 | |
| 17034 | /* System header to define __stub macros and hopefully few prototypes, |
| 17035 | which can conflict with char $ac_func (); below. |
| 17036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17037 | <limits.h> exists even on freestanding compilers. */ |
| 17038 | |
| 17039 | #ifdef __STDC__ |
| 17040 | # include <limits.h> |
| 17041 | #else |
| 17042 | # include <assert.h> |
| 17043 | #endif |
| 17044 | |
| 17045 | #undef $ac_func |
| 17046 | |
| 17047 | /* Override any GCC internal prototype to avoid an error. |
| 17048 | Use char because int might match the return type of a GCC |
| 17049 | builtin and then its argument prototype would still apply. */ |
| 17050 | #ifdef __cplusplus |
| 17051 | extern "C" |
| 17052 | #endif |
| 17053 | char $ac_func (); |
| 17054 | /* The GNU C library defines this for functions which it implements |
| 17055 | to always fail with ENOSYS. Some functions are actually named |
| 17056 | something starting with __ and the normal name is an alias. */ |
| 17057 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17058 | choke me |
| 17059 | #endif |
| 17060 | |
| 17061 | int |
| 17062 | main () |
| 17063 | { |
| 17064 | return $ac_func (); |
| 17065 | ; |
| 17066 | return 0; |
| 17067 | } |
| 17068 | _ACEOF |
| 17069 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17070 | if { (ac_try="$ac_link" |
| 17071 | case "(($ac_try" in |
| 17072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17073 | *) ac_try_echo=$ac_try;; |
| 17074 | esac |
| 17075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17076 | (eval "$ac_link") 2>conftest.er1 |
| 17077 | ac_status=$? |
| 17078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17079 | rm -f conftest.er1 |
| 17080 | cat conftest.err >&5 |
| 17081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17082 | (exit $ac_status); } && |
| 17083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17084 | { (case "(($ac_try" in |
| 17085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17086 | *) ac_try_echo=$ac_try;; |
| 17087 | esac |
| 17088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17089 | (eval "$ac_try") 2>&5 |
| 17090 | ac_status=$? |
| 17091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17092 | (exit $ac_status); }; } && |
| 17093 | { ac_try='test -s conftest$ac_exeext' |
| 17094 | { (case "(($ac_try" in |
| 17095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17096 | *) ac_try_echo=$ac_try;; |
| 17097 | esac |
| 17098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17099 | (eval "$ac_try") 2>&5 |
| 17100 | ac_status=$? |
| 17101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17102 | (exit $ac_status); }; }; then |
| 17103 | eval "$as_ac_var=yes" |
| 17104 | else |
| 17105 | echo "$as_me: failed program was:" >&5 |
| 17106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17107 | |
| 17108 | eval "$as_ac_var=no" |
| 17109 | fi |
| 17110 | |
| 17111 | rm -f core conftest.err conftest.$ac_objext \ |
| 17112 | conftest$ac_exeext conftest.$ac_ext |
| 17113 | fi |
| 17114 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17115 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17116 | echo "${ECHO_T}$ac_res" >&6; } |
| 17117 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17118 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17119 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17120 | _ACEOF |
| 17121 | |
| 17122 | fi |
| 17123 | done |
| 17124 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17125 | |
| 17126 | |
| 17127 | |
| 17128 | |
| 17129 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17130 | |
| 17131 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17132 | do |
| 17133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17134 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17136 | if { as_var=$as_ac_var; eval "test \"\${$as_var+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 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17147 | #define $ac_func innocuous_$ac_func |
| 17148 | |
| 17149 | /* System header to define __stub macros and hopefully few prototypes, |
| 17150 | which can conflict with char $ac_func (); below. |
| 17151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17152 | <limits.h> exists even on freestanding compilers. */ |
| 17153 | |
| 17154 | #ifdef __STDC__ |
| 17155 | # include <limits.h> |
| 17156 | #else |
| 17157 | # include <assert.h> |
| 17158 | #endif |
| 17159 | |
| 17160 | #undef $ac_func |
| 17161 | |
| 17162 | /* Override any GCC internal prototype to avoid an error. |
| 17163 | Use char because int might match the return type of a GCC |
| 17164 | builtin and then its argument prototype would still apply. */ |
| 17165 | #ifdef __cplusplus |
| 17166 | extern "C" |
| 17167 | #endif |
| 17168 | char $ac_func (); |
| 17169 | /* The GNU C library defines this for functions which it implements |
| 17170 | to always fail with ENOSYS. Some functions are actually named |
| 17171 | something starting with __ and the normal name is an alias. */ |
| 17172 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17173 | choke me |
| 17174 | #endif |
| 17175 | |
| 17176 | int |
| 17177 | main () |
| 17178 | { |
| 17179 | return $ac_func (); |
| 17180 | ; |
| 17181 | return 0; |
| 17182 | } |
| 17183 | _ACEOF |
| 17184 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17185 | if { (ac_try="$ac_link" |
| 17186 | case "(($ac_try" in |
| 17187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17188 | *) ac_try_echo=$ac_try;; |
| 17189 | esac |
| 17190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17191 | (eval "$ac_link") 2>conftest.er1 |
| 17192 | ac_status=$? |
| 17193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17194 | rm -f conftest.er1 |
| 17195 | cat conftest.err >&5 |
| 17196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17197 | (exit $ac_status); } && |
| 17198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17199 | { (case "(($ac_try" in |
| 17200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17201 | *) ac_try_echo=$ac_try;; |
| 17202 | esac |
| 17203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17204 | (eval "$ac_try") 2>&5 |
| 17205 | ac_status=$? |
| 17206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17207 | (exit $ac_status); }; } && |
| 17208 | { ac_try='test -s conftest$ac_exeext' |
| 17209 | { (case "(($ac_try" in |
| 17210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17211 | *) ac_try_echo=$ac_try;; |
| 17212 | esac |
| 17213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17214 | (eval "$ac_try") 2>&5 |
| 17215 | ac_status=$? |
| 17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17217 | (exit $ac_status); }; }; then |
| 17218 | eval "$as_ac_var=yes" |
| 17219 | else |
| 17220 | echo "$as_me: failed program was:" >&5 |
| 17221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17222 | |
| 17223 | eval "$as_ac_var=no" |
| 17224 | fi |
| 17225 | |
| 17226 | rm -f core conftest.err conftest.$ac_objext \ |
| 17227 | conftest$ac_exeext conftest.$ac_ext |
| 17228 | fi |
| 17229 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17230 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17231 | echo "${ECHO_T}$ac_res" >&6; } |
| 17232 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17233 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17234 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17235 | _ACEOF |
| 17236 | |
| 17237 | fi |
| 17238 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17239 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17240 | |
| 17241 | |
| 17242 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17243 | for ac_func in strerror strerror_r setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17244 | do |
| 17245 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17246 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17247 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17248 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17250 | else |
| 17251 | cat >conftest.$ac_ext <<_ACEOF |
| 17252 | /* confdefs.h. */ |
| 17253 | _ACEOF |
| 17254 | cat confdefs.h >>conftest.$ac_ext |
| 17255 | cat >>conftest.$ac_ext <<_ACEOF |
| 17256 | /* end confdefs.h. */ |
| 17257 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17259 | #define $ac_func innocuous_$ac_func |
| 17260 | |
| 17261 | /* System header to define __stub macros and hopefully few prototypes, |
| 17262 | which can conflict with char $ac_func (); below. |
| 17263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17264 | <limits.h> exists even on freestanding compilers. */ |
| 17265 | |
| 17266 | #ifdef __STDC__ |
| 17267 | # include <limits.h> |
| 17268 | #else |
| 17269 | # include <assert.h> |
| 17270 | #endif |
| 17271 | |
| 17272 | #undef $ac_func |
| 17273 | |
| 17274 | /* Override any GCC internal prototype to avoid an error. |
| 17275 | Use char because int might match the return type of a GCC |
| 17276 | builtin and then its argument prototype would still apply. */ |
| 17277 | #ifdef __cplusplus |
| 17278 | extern "C" |
| 17279 | #endif |
| 17280 | char $ac_func (); |
| 17281 | /* The GNU C library defines this for functions which it implements |
| 17282 | to always fail with ENOSYS. Some functions are actually named |
| 17283 | something starting with __ and the normal name is an alias. */ |
| 17284 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17285 | choke me |
| 17286 | #endif |
| 17287 | |
| 17288 | int |
| 17289 | main () |
| 17290 | { |
| 17291 | return $ac_func (); |
| 17292 | ; |
| 17293 | return 0; |
| 17294 | } |
| 17295 | _ACEOF |
| 17296 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17297 | if { (ac_try="$ac_link" |
| 17298 | case "(($ac_try" in |
| 17299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17300 | *) ac_try_echo=$ac_try;; |
| 17301 | esac |
| 17302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17303 | (eval "$ac_link") 2>conftest.er1 |
| 17304 | ac_status=$? |
| 17305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17306 | rm -f conftest.er1 |
| 17307 | cat conftest.err >&5 |
| 17308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17309 | (exit $ac_status); } && |
| 17310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17311 | { (case "(($ac_try" in |
| 17312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17313 | *) ac_try_echo=$ac_try;; |
| 17314 | esac |
| 17315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17316 | (eval "$ac_try") 2>&5 |
| 17317 | ac_status=$? |
| 17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17319 | (exit $ac_status); }; } && |
| 17320 | { ac_try='test -s conftest$ac_exeext' |
| 17321 | { (case "(($ac_try" in |
| 17322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17323 | *) ac_try_echo=$ac_try;; |
| 17324 | esac |
| 17325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17326 | (eval "$ac_try") 2>&5 |
| 17327 | ac_status=$? |
| 17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17329 | (exit $ac_status); }; }; then |
| 17330 | eval "$as_ac_var=yes" |
| 17331 | else |
| 17332 | echo "$as_me: failed program was:" >&5 |
| 17333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17334 | |
| 17335 | eval "$as_ac_var=no" |
| 17336 | fi |
| 17337 | |
| 17338 | rm -f core conftest.err conftest.$ac_objext \ |
| 17339 | conftest$ac_exeext conftest.$ac_ext |
| 17340 | fi |
| 17341 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17343 | echo "${ECHO_T}$ac_res" >&6; } |
| 17344 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17345 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17346 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17347 | _ACEOF |
| 17348 | |
| 17349 | fi |
| 17350 | done |
| 17351 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17352 | |
| 17353 | |
| 17354 | |
| 17355 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17356 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17357 | do |
| 17358 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17359 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17360 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17361 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17363 | else |
| 17364 | cat >conftest.$ac_ext <<_ACEOF |
| 17365 | /* confdefs.h. */ |
| 17366 | _ACEOF |
| 17367 | cat confdefs.h >>conftest.$ac_ext |
| 17368 | cat >>conftest.$ac_ext <<_ACEOF |
| 17369 | /* end confdefs.h. */ |
| 17370 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17371 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17372 | #define $ac_func innocuous_$ac_func |
| 17373 | |
| 17374 | /* System header to define __stub macros and hopefully few prototypes, |
| 17375 | which can conflict with char $ac_func (); below. |
| 17376 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17377 | <limits.h> exists even on freestanding compilers. */ |
| 17378 | |
| 17379 | #ifdef __STDC__ |
| 17380 | # include <limits.h> |
| 17381 | #else |
| 17382 | # include <assert.h> |
| 17383 | #endif |
| 17384 | |
| 17385 | #undef $ac_func |
| 17386 | |
| 17387 | /* Override any GCC internal prototype to avoid an error. |
| 17388 | Use char because int might match the return type of a GCC |
| 17389 | builtin and then its argument prototype would still apply. */ |
| 17390 | #ifdef __cplusplus |
| 17391 | extern "C" |
| 17392 | #endif |
| 17393 | char $ac_func (); |
| 17394 | /* The GNU C library defines this for functions which it implements |
| 17395 | to always fail with ENOSYS. Some functions are actually named |
| 17396 | something starting with __ and the normal name is an alias. */ |
| 17397 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17398 | choke me |
| 17399 | #endif |
| 17400 | |
| 17401 | int |
| 17402 | main () |
| 17403 | { |
| 17404 | return $ac_func (); |
| 17405 | ; |
| 17406 | return 0; |
| 17407 | } |
| 17408 | _ACEOF |
| 17409 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17410 | if { (ac_try="$ac_link" |
| 17411 | case "(($ac_try" in |
| 17412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17413 | *) ac_try_echo=$ac_try;; |
| 17414 | esac |
| 17415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17416 | (eval "$ac_link") 2>conftest.er1 |
| 17417 | ac_status=$? |
| 17418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17419 | rm -f conftest.er1 |
| 17420 | cat conftest.err >&5 |
| 17421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17422 | (exit $ac_status); } && |
| 17423 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17424 | { (case "(($ac_try" in |
| 17425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17426 | *) ac_try_echo=$ac_try;; |
| 17427 | esac |
| 17428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17429 | (eval "$ac_try") 2>&5 |
| 17430 | ac_status=$? |
| 17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17432 | (exit $ac_status); }; } && |
| 17433 | { ac_try='test -s conftest$ac_exeext' |
| 17434 | { (case "(($ac_try" in |
| 17435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17436 | *) ac_try_echo=$ac_try;; |
| 17437 | esac |
| 17438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17439 | (eval "$ac_try") 2>&5 |
| 17440 | ac_status=$? |
| 17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17442 | (exit $ac_status); }; }; then |
| 17443 | eval "$as_ac_var=yes" |
| 17444 | else |
| 17445 | echo "$as_me: failed program was:" >&5 |
| 17446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17447 | |
| 17448 | eval "$as_ac_var=no" |
| 17449 | fi |
| 17450 | |
| 17451 | rm -f core conftest.err conftest.$ac_objext \ |
| 17452 | conftest$ac_exeext conftest.$ac_ext |
| 17453 | fi |
| 17454 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17455 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17456 | echo "${ECHO_T}$ac_res" >&6; } |
| 17457 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17458 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17459 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17460 | _ACEOF |
| 17461 | |
| 17462 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17463 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17464 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17465 | |
| 17466 | |
| 17467 | |
| 17468 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17469 | |
| 17470 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17471 | do |
| 17472 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17473 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17474 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17475 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17477 | else |
| 17478 | cat >conftest.$ac_ext <<_ACEOF |
| 17479 | /* confdefs.h. */ |
| 17480 | _ACEOF |
| 17481 | cat confdefs.h >>conftest.$ac_ext |
| 17482 | cat >>conftest.$ac_ext <<_ACEOF |
| 17483 | /* end confdefs.h. */ |
| 17484 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17485 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17486 | #define $ac_func innocuous_$ac_func |
| 17487 | |
| 17488 | /* System header to define __stub macros and hopefully few prototypes, |
| 17489 | which can conflict with char $ac_func (); below. |
| 17490 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17491 | <limits.h> exists even on freestanding compilers. */ |
| 17492 | |
| 17493 | #ifdef __STDC__ |
| 17494 | # include <limits.h> |
| 17495 | #else |
| 17496 | # include <assert.h> |
| 17497 | #endif |
| 17498 | |
| 17499 | #undef $ac_func |
| 17500 | |
| 17501 | /* Override any GCC internal prototype to avoid an error. |
| 17502 | Use char because int might match the return type of a GCC |
| 17503 | builtin and then its argument prototype would still apply. */ |
| 17504 | #ifdef __cplusplus |
| 17505 | extern "C" |
| 17506 | #endif |
| 17507 | char $ac_func (); |
| 17508 | /* The GNU C library defines this for functions which it implements |
| 17509 | to always fail with ENOSYS. Some functions are actually named |
| 17510 | something starting with __ and the normal name is an alias. */ |
| 17511 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17512 | choke me |
| 17513 | #endif |
| 17514 | |
| 17515 | int |
| 17516 | main () |
| 17517 | { |
| 17518 | return $ac_func (); |
| 17519 | ; |
| 17520 | return 0; |
| 17521 | } |
| 17522 | _ACEOF |
| 17523 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17524 | if { (ac_try="$ac_link" |
| 17525 | case "(($ac_try" in |
| 17526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17527 | *) ac_try_echo=$ac_try;; |
| 17528 | esac |
| 17529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17530 | (eval "$ac_link") 2>conftest.er1 |
| 17531 | ac_status=$? |
| 17532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17533 | rm -f conftest.er1 |
| 17534 | cat conftest.err >&5 |
| 17535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17536 | (exit $ac_status); } && |
| 17537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17538 | { (case "(($ac_try" in |
| 17539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17540 | *) ac_try_echo=$ac_try;; |
| 17541 | esac |
| 17542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17543 | (eval "$ac_try") 2>&5 |
| 17544 | ac_status=$? |
| 17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17546 | (exit $ac_status); }; } && |
| 17547 | { ac_try='test -s conftest$ac_exeext' |
| 17548 | { (case "(($ac_try" in |
| 17549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17550 | *) ac_try_echo=$ac_try;; |
| 17551 | esac |
| 17552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17553 | (eval "$ac_try") 2>&5 |
| 17554 | ac_status=$? |
| 17555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17556 | (exit $ac_status); }; }; then |
| 17557 | eval "$as_ac_var=yes" |
| 17558 | else |
| 17559 | echo "$as_me: failed program was:" >&5 |
| 17560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17561 | |
| 17562 | eval "$as_ac_var=no" |
| 17563 | fi |
| 17564 | |
| 17565 | rm -f core conftest.err conftest.$ac_objext \ |
| 17566 | conftest$ac_exeext conftest.$ac_ext |
| 17567 | fi |
| 17568 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17569 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17570 | echo "${ECHO_T}$ac_res" >&6; } |
| 17571 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17572 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17573 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17574 | _ACEOF |
| 17575 | |
| 17576 | fi |
| 17577 | done |
| 17578 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17579 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17580 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17581 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17583 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17584 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17585 | ac_cpp='$CPP $CPPFLAGS' |
| 17586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17589 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17590 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17591 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17592 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17593 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17594 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17595 | /* confdefs.h. */ |
| 17596 | _ACEOF |
| 17597 | cat confdefs.h >>conftest.$ac_ext |
| 17598 | cat >>conftest.$ac_ext <<_ACEOF |
| 17599 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17600 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17601 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17602 | #include <stdlib.h> |
| 17603 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17604 | int |
| 17605 | main () |
| 17606 | { |
| 17607 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17608 | volatile double A, B; |
| 17609 | char Buffer[100]; |
| 17610 | A = 1; |
| 17611 | A /= 10.0; |
| 17612 | sprintf(Buffer, "%a", A); |
| 17613 | B = atof(Buffer); |
| 17614 | if (A != B) |
| 17615 | return (1); |
| 17616 | if (A != 0x1.999999999999ap-4) |
| 17617 | return (1); |
| 17618 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17619 | ; |
| 17620 | return 0; |
| 17621 | } |
| 17622 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17623 | rm -f conftest$ac_exeext |
| 17624 | if { (ac_try="$ac_link" |
| 17625 | case "(($ac_try" in |
| 17626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17627 | *) ac_try_echo=$ac_try;; |
| 17628 | esac |
| 17629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17630 | (eval "$ac_link") 2>&5 |
| 17631 | ac_status=$? |
| 17632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17633 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17634 | { (case "(($ac_try" in |
| 17635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17636 | *) ac_try_echo=$ac_try;; |
| 17637 | esac |
| 17638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17639 | (eval "$ac_try") 2>&5 |
| 17640 | ac_status=$? |
| 17641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17642 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17643 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17644 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17645 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17646 | echo "$as_me: failed program was:" >&5 |
| 17647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17648 | |
| 17649 | ( exit $ac_status ) |
| 17650 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17651 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17652 | 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] | 17653 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17654 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17655 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17656 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17657 | ac_cpp='$CPP $CPPFLAGS' |
| 17658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17661 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17662 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17663 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17664 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17665 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17666 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17667 | cat >>confdefs.h <<\_ACEOF |
| 17668 | #define HAVE_PRINTF_A 1 |
| 17669 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17670 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17671 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17672 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17673 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17674 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17675 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17676 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17678 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17679 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17680 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17681 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17682 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17683 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17685 | cat >conftest.$ac_ext <<_ACEOF |
| 17686 | /* confdefs.h. */ |
| 17687 | _ACEOF |
| 17688 | cat confdefs.h >>conftest.$ac_ext |
| 17689 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17690 | /* end confdefs.h. */ |
| 17691 | #include <stdlib.h> |
| 17692 | int |
| 17693 | main () |
| 17694 | { |
| 17695 | srand48(0);lrand48();drand48(); |
| 17696 | ; |
| 17697 | return 0; |
| 17698 | } |
| 17699 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17700 | rm -f conftest.$ac_objext |
| 17701 | if { (ac_try="$ac_compile" |
| 17702 | case "(($ac_try" in |
| 17703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17704 | *) ac_try_echo=$ac_try;; |
| 17705 | esac |
| 17706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17707 | (eval "$ac_compile") 2>conftest.er1 |
| 17708 | ac_status=$? |
| 17709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17710 | rm -f conftest.er1 |
| 17711 | cat conftest.err >&5 |
| 17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17713 | (exit $ac_status); } && |
| 17714 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 17715 | { (case "(($ac_try" in |
| 17716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17717 | *) ac_try_echo=$ac_try;; |
| 17718 | esac |
| 17719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17720 | (eval "$ac_try") 2>&5 |
| 17721 | ac_status=$? |
| 17722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17723 | (exit $ac_status); }; } && |
| 17724 | { ac_try='test -s conftest.$ac_objext' |
| 17725 | { (case "(($ac_try" in |
| 17726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17727 | *) ac_try_echo=$ac_try;; |
| 17728 | esac |
| 17729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17730 | (eval "$ac_try") 2>&5 |
| 17731 | ac_status=$? |
| 17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17733 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17734 | ac_cv_func_rand48=yes |
| 17735 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17736 | echo "$as_me: failed program was:" >&5 |
| 17737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17738 | |
| 17739 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17740 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17743 | ac_ext=c |
| 17744 | ac_cpp='$CPP $CPPFLAGS' |
| 17745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17748 | |
| 17749 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17750 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 17751 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17752 | |
| 17753 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 17754 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17755 | cat >>confdefs.h <<\_ACEOF |
| 17756 | #define HAVE_RAND48 1 |
| 17757 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17758 | |
| 17759 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 17760 | |
| 17761 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17762 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 17763 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 17764 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 17765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17766 | else |
| 17767 | cat >conftest.$ac_ext <<_ACEOF |
| 17768 | /* confdefs.h. */ |
| 17769 | _ACEOF |
| 17770 | cat confdefs.h >>conftest.$ac_ext |
| 17771 | cat >>conftest.$ac_ext <<_ACEOF |
| 17772 | /* end confdefs.h. */ |
| 17773 | $ac_includes_default |
| 17774 | int |
| 17775 | main () |
| 17776 | { |
| 17777 | #ifndef strerror_s |
| 17778 | char *p = (char *) strerror_s; |
| 17779 | return !p; |
| 17780 | #endif |
| 17781 | |
| 17782 | ; |
| 17783 | return 0; |
| 17784 | } |
| 17785 | _ACEOF |
| 17786 | rm -f conftest.$ac_objext |
| 17787 | if { (ac_try="$ac_compile" |
| 17788 | case "(($ac_try" in |
| 17789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17790 | *) ac_try_echo=$ac_try;; |
| 17791 | esac |
| 17792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17793 | (eval "$ac_compile") 2>conftest.er1 |
| 17794 | ac_status=$? |
| 17795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17796 | rm -f conftest.er1 |
| 17797 | cat conftest.err >&5 |
| 17798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17799 | (exit $ac_status); } && |
| 17800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17801 | { (case "(($ac_try" in |
| 17802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17803 | *) ac_try_echo=$ac_try;; |
| 17804 | esac |
| 17805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17806 | (eval "$ac_try") 2>&5 |
| 17807 | ac_status=$? |
| 17808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17809 | (exit $ac_status); }; } && |
| 17810 | { ac_try='test -s conftest.$ac_objext' |
| 17811 | { (case "(($ac_try" in |
| 17812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17813 | *) ac_try_echo=$ac_try;; |
| 17814 | esac |
| 17815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17816 | (eval "$ac_try") 2>&5 |
| 17817 | ac_status=$? |
| 17818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17819 | (exit $ac_status); }; }; then |
| 17820 | ac_cv_have_decl_strerror_s=yes |
| 17821 | else |
| 17822 | echo "$as_me: failed program was:" >&5 |
| 17823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17824 | |
| 17825 | ac_cv_have_decl_strerror_s=no |
| 17826 | fi |
| 17827 | |
| 17828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17829 | fi |
| 17830 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 17831 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 17832 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 17833 | |
| 17834 | cat >>confdefs.h <<_ACEOF |
| 17835 | #define HAVE_DECL_STRERROR_S 1 |
| 17836 | _ACEOF |
| 17837 | |
| 17838 | |
| 17839 | else |
| 17840 | cat >>confdefs.h <<_ACEOF |
| 17841 | #define HAVE_DECL_STRERROR_S 0 |
| 17842 | _ACEOF |
| 17843 | |
| 17844 | |
| 17845 | fi |
| 17846 | |
| 17847 | |
| 17848 | |
NAKAMURA Takumi | 1f6832a | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 17849 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 17850 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 17851 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 17852 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 17853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17854 | else |
| 17855 | ac_check_lib_save_LIBS=$LIBS |
| 17856 | LIBS="-lgcc $LIBS" |
| 17857 | cat >conftest.$ac_ext <<_ACEOF |
| 17858 | /* confdefs.h. */ |
| 17859 | _ACEOF |
| 17860 | cat confdefs.h >>conftest.$ac_ext |
| 17861 | cat >>conftest.$ac_ext <<_ACEOF |
| 17862 | /* end confdefs.h. */ |
| 17863 | |
| 17864 | /* Override any GCC internal prototype to avoid an error. |
| 17865 | Use char because int might match the return type of a GCC |
| 17866 | builtin and then its argument prototype would still apply. */ |
| 17867 | #ifdef __cplusplus |
| 17868 | extern "C" |
| 17869 | #endif |
| 17870 | char _alloca (); |
| 17871 | int |
| 17872 | main () |
| 17873 | { |
| 17874 | return _alloca (); |
| 17875 | ; |
| 17876 | return 0; |
| 17877 | } |
| 17878 | _ACEOF |
| 17879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17880 | if { (ac_try="$ac_link" |
| 17881 | case "(($ac_try" in |
| 17882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17883 | *) ac_try_echo=$ac_try;; |
| 17884 | esac |
| 17885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17886 | (eval "$ac_link") 2>conftest.er1 |
| 17887 | ac_status=$? |
| 17888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17889 | rm -f conftest.er1 |
| 17890 | cat conftest.err >&5 |
| 17891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17892 | (exit $ac_status); } && |
| 17893 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17894 | { (case "(($ac_try" in |
| 17895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17896 | *) ac_try_echo=$ac_try;; |
| 17897 | esac |
| 17898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17899 | (eval "$ac_try") 2>&5 |
| 17900 | ac_status=$? |
| 17901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17902 | (exit $ac_status); }; } && |
| 17903 | { ac_try='test -s conftest$ac_exeext' |
| 17904 | { (case "(($ac_try" in |
| 17905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17906 | *) ac_try_echo=$ac_try;; |
| 17907 | esac |
| 17908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17909 | (eval "$ac_try") 2>&5 |
| 17910 | ac_status=$? |
| 17911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17912 | (exit $ac_status); }; }; then |
| 17913 | ac_cv_lib_gcc__alloca=yes |
| 17914 | else |
| 17915 | echo "$as_me: failed program was:" >&5 |
| 17916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17917 | |
| 17918 | ac_cv_lib_gcc__alloca=no |
| 17919 | fi |
| 17920 | |
| 17921 | rm -f core conftest.err conftest.$ac_objext \ |
| 17922 | conftest$ac_exeext conftest.$ac_ext |
| 17923 | LIBS=$ac_check_lib_save_LIBS |
| 17924 | fi |
| 17925 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 17926 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 17927 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 17928 | |
| 17929 | cat >>confdefs.h <<\_ACEOF |
| 17930 | #define HAVE__ALLOCA 1 |
| 17931 | _ACEOF |
| 17932 | |
| 17933 | fi |
| 17934 | |
| 17935 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 17936 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 17937 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 17938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17939 | else |
| 17940 | ac_check_lib_save_LIBS=$LIBS |
| 17941 | LIBS="-lgcc $LIBS" |
| 17942 | cat >conftest.$ac_ext <<_ACEOF |
| 17943 | /* confdefs.h. */ |
| 17944 | _ACEOF |
| 17945 | cat confdefs.h >>conftest.$ac_ext |
| 17946 | cat >>conftest.$ac_ext <<_ACEOF |
| 17947 | /* end confdefs.h. */ |
| 17948 | |
| 17949 | /* Override any GCC internal prototype to avoid an error. |
| 17950 | Use char because int might match the return type of a GCC |
| 17951 | builtin and then its argument prototype would still apply. */ |
| 17952 | #ifdef __cplusplus |
| 17953 | extern "C" |
| 17954 | #endif |
| 17955 | char __alloca (); |
| 17956 | int |
| 17957 | main () |
| 17958 | { |
| 17959 | return __alloca (); |
| 17960 | ; |
| 17961 | return 0; |
| 17962 | } |
| 17963 | _ACEOF |
| 17964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17965 | if { (ac_try="$ac_link" |
| 17966 | case "(($ac_try" in |
| 17967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17968 | *) ac_try_echo=$ac_try;; |
| 17969 | esac |
| 17970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17971 | (eval "$ac_link") 2>conftest.er1 |
| 17972 | ac_status=$? |
| 17973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17974 | rm -f conftest.er1 |
| 17975 | cat conftest.err >&5 |
| 17976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17977 | (exit $ac_status); } && |
| 17978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17979 | { (case "(($ac_try" in |
| 17980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17981 | *) ac_try_echo=$ac_try;; |
| 17982 | esac |
| 17983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17984 | (eval "$ac_try") 2>&5 |
| 17985 | ac_status=$? |
| 17986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17987 | (exit $ac_status); }; } && |
| 17988 | { ac_try='test -s conftest$ac_exeext' |
| 17989 | { (case "(($ac_try" in |
| 17990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17991 | *) ac_try_echo=$ac_try;; |
| 17992 | esac |
| 17993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17994 | (eval "$ac_try") 2>&5 |
| 17995 | ac_status=$? |
| 17996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17997 | (exit $ac_status); }; }; then |
| 17998 | ac_cv_lib_gcc___alloca=yes |
| 17999 | else |
| 18000 | echo "$as_me: failed program was:" >&5 |
| 18001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18002 | |
| 18003 | ac_cv_lib_gcc___alloca=no |
| 18004 | fi |
| 18005 | |
| 18006 | rm -f core conftest.err conftest.$ac_objext \ |
| 18007 | conftest$ac_exeext conftest.$ac_ext |
| 18008 | LIBS=$ac_check_lib_save_LIBS |
| 18009 | fi |
| 18010 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 18011 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 18012 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 18013 | |
| 18014 | cat >>confdefs.h <<\_ACEOF |
| 18015 | #define HAVE___ALLOCA 1 |
| 18016 | _ACEOF |
| 18017 | |
| 18018 | fi |
| 18019 | |
| 18020 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 18021 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 18022 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 18023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18024 | else |
| 18025 | ac_check_lib_save_LIBS=$LIBS |
| 18026 | LIBS="-lgcc $LIBS" |
| 18027 | cat >conftest.$ac_ext <<_ACEOF |
| 18028 | /* confdefs.h. */ |
| 18029 | _ACEOF |
| 18030 | cat confdefs.h >>conftest.$ac_ext |
| 18031 | cat >>conftest.$ac_ext <<_ACEOF |
| 18032 | /* end confdefs.h. */ |
| 18033 | |
| 18034 | /* Override any GCC internal prototype to avoid an error. |
| 18035 | Use char because int might match the return type of a GCC |
| 18036 | builtin and then its argument prototype would still apply. */ |
| 18037 | #ifdef __cplusplus |
| 18038 | extern "C" |
| 18039 | #endif |
| 18040 | char __chkstk (); |
| 18041 | int |
| 18042 | main () |
| 18043 | { |
| 18044 | return __chkstk (); |
| 18045 | ; |
| 18046 | return 0; |
| 18047 | } |
| 18048 | _ACEOF |
| 18049 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18050 | if { (ac_try="$ac_link" |
| 18051 | case "(($ac_try" in |
| 18052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18053 | *) ac_try_echo=$ac_try;; |
| 18054 | esac |
| 18055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18056 | (eval "$ac_link") 2>conftest.er1 |
| 18057 | ac_status=$? |
| 18058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18059 | rm -f conftest.er1 |
| 18060 | cat conftest.err >&5 |
| 18061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18062 | (exit $ac_status); } && |
| 18063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 18073 | { ac_try='test -s conftest$ac_exeext' |
| 18074 | { (case "(($ac_try" in |
| 18075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18076 | *) ac_try_echo=$ac_try;; |
| 18077 | esac |
| 18078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18079 | (eval "$ac_try") 2>&5 |
| 18080 | ac_status=$? |
| 18081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18082 | (exit $ac_status); }; }; then |
| 18083 | ac_cv_lib_gcc___chkstk=yes |
| 18084 | else |
| 18085 | echo "$as_me: failed program was:" >&5 |
| 18086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18087 | |
| 18088 | ac_cv_lib_gcc___chkstk=no |
| 18089 | fi |
| 18090 | |
| 18091 | rm -f core conftest.err conftest.$ac_objext \ |
| 18092 | conftest$ac_exeext conftest.$ac_ext |
| 18093 | LIBS=$ac_check_lib_save_LIBS |
| 18094 | fi |
| 18095 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 18096 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 18097 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 18098 | |
| 18099 | cat >>confdefs.h <<\_ACEOF |
| 18100 | #define HAVE___CHKSTK 1 |
| 18101 | _ACEOF |
| 18102 | |
| 18103 | fi |
| 18104 | |
| 18105 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 18106 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 18107 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 18108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18109 | else |
| 18110 | ac_check_lib_save_LIBS=$LIBS |
| 18111 | LIBS="-lgcc $LIBS" |
| 18112 | cat >conftest.$ac_ext <<_ACEOF |
| 18113 | /* confdefs.h. */ |
| 18114 | _ACEOF |
| 18115 | cat confdefs.h >>conftest.$ac_ext |
| 18116 | cat >>conftest.$ac_ext <<_ACEOF |
| 18117 | /* end confdefs.h. */ |
| 18118 | |
| 18119 | /* Override any GCC internal prototype to avoid an error. |
| 18120 | Use char because int might match the return type of a GCC |
| 18121 | builtin and then its argument prototype would still apply. */ |
| 18122 | #ifdef __cplusplus |
| 18123 | extern "C" |
| 18124 | #endif |
| 18125 | char ___chkstk (); |
| 18126 | int |
| 18127 | main () |
| 18128 | { |
| 18129 | return ___chkstk (); |
| 18130 | ; |
| 18131 | return 0; |
| 18132 | } |
| 18133 | _ACEOF |
| 18134 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18135 | if { (ac_try="$ac_link" |
| 18136 | case "(($ac_try" in |
| 18137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18138 | *) ac_try_echo=$ac_try;; |
| 18139 | esac |
| 18140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18141 | (eval "$ac_link") 2>conftest.er1 |
| 18142 | ac_status=$? |
| 18143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18144 | rm -f conftest.er1 |
| 18145 | cat conftest.err >&5 |
| 18146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18147 | (exit $ac_status); } && |
| 18148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18149 | { (case "(($ac_try" in |
| 18150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18151 | *) ac_try_echo=$ac_try;; |
| 18152 | esac |
| 18153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18154 | (eval "$ac_try") 2>&5 |
| 18155 | ac_status=$? |
| 18156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18157 | (exit $ac_status); }; } && |
| 18158 | { ac_try='test -s conftest$ac_exeext' |
| 18159 | { (case "(($ac_try" in |
| 18160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18161 | *) ac_try_echo=$ac_try;; |
| 18162 | esac |
| 18163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18164 | (eval "$ac_try") 2>&5 |
| 18165 | ac_status=$? |
| 18166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18167 | (exit $ac_status); }; }; then |
| 18168 | ac_cv_lib_gcc____chkstk=yes |
| 18169 | else |
| 18170 | echo "$as_me: failed program was:" >&5 |
| 18171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18172 | |
| 18173 | ac_cv_lib_gcc____chkstk=no |
| 18174 | fi |
| 18175 | |
| 18176 | rm -f core conftest.err conftest.$ac_objext \ |
| 18177 | conftest$ac_exeext conftest.$ac_ext |
| 18178 | LIBS=$ac_check_lib_save_LIBS |
| 18179 | fi |
| 18180 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 18181 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 18182 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 18183 | |
| 18184 | cat >>confdefs.h <<\_ACEOF |
| 18185 | #define HAVE____CHKSTK 1 |
| 18186 | _ACEOF |
| 18187 | |
| 18188 | fi |
| 18189 | |
| 18190 | |
| 18191 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 18192 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 18193 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 18194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18195 | else |
| 18196 | ac_check_lib_save_LIBS=$LIBS |
| 18197 | LIBS="-lgcc $LIBS" |
| 18198 | cat >conftest.$ac_ext <<_ACEOF |
| 18199 | /* confdefs.h. */ |
| 18200 | _ACEOF |
| 18201 | cat confdefs.h >>conftest.$ac_ext |
| 18202 | cat >>conftest.$ac_ext <<_ACEOF |
| 18203 | /* end confdefs.h. */ |
| 18204 | |
| 18205 | /* Override any GCC internal prototype to avoid an error. |
| 18206 | Use char because int might match the return type of a GCC |
| 18207 | builtin and then its argument prototype would still apply. */ |
| 18208 | #ifdef __cplusplus |
| 18209 | extern "C" |
| 18210 | #endif |
| 18211 | char __ashldi3 (); |
| 18212 | int |
| 18213 | main () |
| 18214 | { |
| 18215 | return __ashldi3 (); |
| 18216 | ; |
| 18217 | return 0; |
| 18218 | } |
| 18219 | _ACEOF |
| 18220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18221 | if { (ac_try="$ac_link" |
| 18222 | case "(($ac_try" in |
| 18223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18224 | *) ac_try_echo=$ac_try;; |
| 18225 | esac |
| 18226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18227 | (eval "$ac_link") 2>conftest.er1 |
| 18228 | ac_status=$? |
| 18229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18230 | rm -f conftest.er1 |
| 18231 | cat conftest.err >&5 |
| 18232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18233 | (exit $ac_status); } && |
| 18234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18235 | { (case "(($ac_try" in |
| 18236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18237 | *) ac_try_echo=$ac_try;; |
| 18238 | esac |
| 18239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18240 | (eval "$ac_try") 2>&5 |
| 18241 | ac_status=$? |
| 18242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18243 | (exit $ac_status); }; } && |
| 18244 | { ac_try='test -s conftest$ac_exeext' |
| 18245 | { (case "(($ac_try" in |
| 18246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18247 | *) ac_try_echo=$ac_try;; |
| 18248 | esac |
| 18249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18250 | (eval "$ac_try") 2>&5 |
| 18251 | ac_status=$? |
| 18252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18253 | (exit $ac_status); }; }; then |
| 18254 | ac_cv_lib_gcc___ashldi3=yes |
| 18255 | else |
| 18256 | echo "$as_me: failed program was:" >&5 |
| 18257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18258 | |
| 18259 | ac_cv_lib_gcc___ashldi3=no |
| 18260 | fi |
| 18261 | |
| 18262 | rm -f core conftest.err conftest.$ac_objext \ |
| 18263 | conftest$ac_exeext conftest.$ac_ext |
| 18264 | LIBS=$ac_check_lib_save_LIBS |
| 18265 | fi |
| 18266 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 18267 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 18268 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 18269 | |
| 18270 | cat >>confdefs.h <<\_ACEOF |
| 18271 | #define HAVE___ASHLDI3 1 |
| 18272 | _ACEOF |
| 18273 | |
| 18274 | fi |
| 18275 | |
| 18276 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 18277 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18278 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 18279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18280 | else |
| 18281 | ac_check_lib_save_LIBS=$LIBS |
| 18282 | LIBS="-lgcc $LIBS" |
| 18283 | cat >conftest.$ac_ext <<_ACEOF |
| 18284 | /* confdefs.h. */ |
| 18285 | _ACEOF |
| 18286 | cat confdefs.h >>conftest.$ac_ext |
| 18287 | cat >>conftest.$ac_ext <<_ACEOF |
| 18288 | /* end confdefs.h. */ |
| 18289 | |
| 18290 | /* Override any GCC internal prototype to avoid an error. |
| 18291 | Use char because int might match the return type of a GCC |
| 18292 | builtin and then its argument prototype would still apply. */ |
| 18293 | #ifdef __cplusplus |
| 18294 | extern "C" |
| 18295 | #endif |
| 18296 | char __ashrdi3 (); |
| 18297 | int |
| 18298 | main () |
| 18299 | { |
| 18300 | return __ashrdi3 (); |
| 18301 | ; |
| 18302 | return 0; |
| 18303 | } |
| 18304 | _ACEOF |
| 18305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18306 | if { (ac_try="$ac_link" |
| 18307 | case "(($ac_try" in |
| 18308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18309 | *) ac_try_echo=$ac_try;; |
| 18310 | esac |
| 18311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18312 | (eval "$ac_link") 2>conftest.er1 |
| 18313 | ac_status=$? |
| 18314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18315 | rm -f conftest.er1 |
| 18316 | cat conftest.err >&5 |
| 18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18318 | (exit $ac_status); } && |
| 18319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18320 | { (case "(($ac_try" in |
| 18321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18322 | *) ac_try_echo=$ac_try;; |
| 18323 | esac |
| 18324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18325 | (eval "$ac_try") 2>&5 |
| 18326 | ac_status=$? |
| 18327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18328 | (exit $ac_status); }; } && |
| 18329 | { ac_try='test -s conftest$ac_exeext' |
| 18330 | { (case "(($ac_try" in |
| 18331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18332 | *) ac_try_echo=$ac_try;; |
| 18333 | esac |
| 18334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18335 | (eval "$ac_try") 2>&5 |
| 18336 | ac_status=$? |
| 18337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18338 | (exit $ac_status); }; }; then |
| 18339 | ac_cv_lib_gcc___ashrdi3=yes |
| 18340 | else |
| 18341 | echo "$as_me: failed program was:" >&5 |
| 18342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18343 | |
| 18344 | ac_cv_lib_gcc___ashrdi3=no |
| 18345 | fi |
| 18346 | |
| 18347 | rm -f core conftest.err conftest.$ac_objext \ |
| 18348 | conftest$ac_exeext conftest.$ac_ext |
| 18349 | LIBS=$ac_check_lib_save_LIBS |
| 18350 | fi |
| 18351 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 18352 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 18353 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 18354 | |
| 18355 | cat >>confdefs.h <<\_ACEOF |
| 18356 | #define HAVE___ASHRDI3 1 |
| 18357 | _ACEOF |
| 18358 | |
| 18359 | fi |
| 18360 | |
| 18361 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 18362 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 18363 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 18364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18365 | else |
| 18366 | ac_check_lib_save_LIBS=$LIBS |
| 18367 | LIBS="-lgcc $LIBS" |
| 18368 | cat >conftest.$ac_ext <<_ACEOF |
| 18369 | /* confdefs.h. */ |
| 18370 | _ACEOF |
| 18371 | cat confdefs.h >>conftest.$ac_ext |
| 18372 | cat >>conftest.$ac_ext <<_ACEOF |
| 18373 | /* end confdefs.h. */ |
| 18374 | |
| 18375 | /* Override any GCC internal prototype to avoid an error. |
| 18376 | Use char because int might match the return type of a GCC |
| 18377 | builtin and then its argument prototype would still apply. */ |
| 18378 | #ifdef __cplusplus |
| 18379 | extern "C" |
| 18380 | #endif |
| 18381 | char __divdi3 (); |
| 18382 | int |
| 18383 | main () |
| 18384 | { |
| 18385 | return __divdi3 (); |
| 18386 | ; |
| 18387 | return 0; |
| 18388 | } |
| 18389 | _ACEOF |
| 18390 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18391 | if { (ac_try="$ac_link" |
| 18392 | case "(($ac_try" in |
| 18393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18394 | *) ac_try_echo=$ac_try;; |
| 18395 | esac |
| 18396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18397 | (eval "$ac_link") 2>conftest.er1 |
| 18398 | ac_status=$? |
| 18399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18400 | rm -f conftest.er1 |
| 18401 | cat conftest.err >&5 |
| 18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18403 | (exit $ac_status); } && |
| 18404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18405 | { (case "(($ac_try" in |
| 18406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18407 | *) ac_try_echo=$ac_try;; |
| 18408 | esac |
| 18409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18410 | (eval "$ac_try") 2>&5 |
| 18411 | ac_status=$? |
| 18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18413 | (exit $ac_status); }; } && |
| 18414 | { ac_try='test -s conftest$ac_exeext' |
| 18415 | { (case "(($ac_try" in |
| 18416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18417 | *) ac_try_echo=$ac_try;; |
| 18418 | esac |
| 18419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18420 | (eval "$ac_try") 2>&5 |
| 18421 | ac_status=$? |
| 18422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18423 | (exit $ac_status); }; }; then |
| 18424 | ac_cv_lib_gcc___divdi3=yes |
| 18425 | else |
| 18426 | echo "$as_me: failed program was:" >&5 |
| 18427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18428 | |
| 18429 | ac_cv_lib_gcc___divdi3=no |
| 18430 | fi |
| 18431 | |
| 18432 | rm -f core conftest.err conftest.$ac_objext \ |
| 18433 | conftest$ac_exeext conftest.$ac_ext |
| 18434 | LIBS=$ac_check_lib_save_LIBS |
| 18435 | fi |
| 18436 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 18437 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 18438 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 18439 | |
| 18440 | cat >>confdefs.h <<\_ACEOF |
| 18441 | #define HAVE___DIVDI3 1 |
| 18442 | _ACEOF |
| 18443 | |
| 18444 | fi |
| 18445 | |
| 18446 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 18447 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 18448 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 18449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18450 | else |
| 18451 | ac_check_lib_save_LIBS=$LIBS |
| 18452 | LIBS="-lgcc $LIBS" |
| 18453 | cat >conftest.$ac_ext <<_ACEOF |
| 18454 | /* confdefs.h. */ |
| 18455 | _ACEOF |
| 18456 | cat confdefs.h >>conftest.$ac_ext |
| 18457 | cat >>conftest.$ac_ext <<_ACEOF |
| 18458 | /* end confdefs.h. */ |
| 18459 | |
| 18460 | /* Override any GCC internal prototype to avoid an error. |
| 18461 | Use char because int might match the return type of a GCC |
| 18462 | builtin and then its argument prototype would still apply. */ |
| 18463 | #ifdef __cplusplus |
| 18464 | extern "C" |
| 18465 | #endif |
| 18466 | char __fixdfdi (); |
| 18467 | int |
| 18468 | main () |
| 18469 | { |
| 18470 | return __fixdfdi (); |
| 18471 | ; |
| 18472 | return 0; |
| 18473 | } |
| 18474 | _ACEOF |
| 18475 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18476 | if { (ac_try="$ac_link" |
| 18477 | case "(($ac_try" in |
| 18478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18479 | *) ac_try_echo=$ac_try;; |
| 18480 | esac |
| 18481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18482 | (eval "$ac_link") 2>conftest.er1 |
| 18483 | ac_status=$? |
| 18484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18485 | rm -f conftest.er1 |
| 18486 | cat conftest.err >&5 |
| 18487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18488 | (exit $ac_status); } && |
| 18489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18490 | { (case "(($ac_try" in |
| 18491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18492 | *) ac_try_echo=$ac_try;; |
| 18493 | esac |
| 18494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18495 | (eval "$ac_try") 2>&5 |
| 18496 | ac_status=$? |
| 18497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18498 | (exit $ac_status); }; } && |
| 18499 | { ac_try='test -s conftest$ac_exeext' |
| 18500 | { (case "(($ac_try" in |
| 18501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18502 | *) ac_try_echo=$ac_try;; |
| 18503 | esac |
| 18504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18505 | (eval "$ac_try") 2>&5 |
| 18506 | ac_status=$? |
| 18507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18508 | (exit $ac_status); }; }; then |
| 18509 | ac_cv_lib_gcc___fixdfdi=yes |
| 18510 | else |
| 18511 | echo "$as_me: failed program was:" >&5 |
| 18512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18513 | |
| 18514 | ac_cv_lib_gcc___fixdfdi=no |
| 18515 | fi |
| 18516 | |
| 18517 | rm -f core conftest.err conftest.$ac_objext \ |
| 18518 | conftest$ac_exeext conftest.$ac_ext |
| 18519 | LIBS=$ac_check_lib_save_LIBS |
| 18520 | fi |
| 18521 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 18522 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 18523 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 18524 | |
| 18525 | cat >>confdefs.h <<\_ACEOF |
| 18526 | #define HAVE___FIXDFDI 1 |
| 18527 | _ACEOF |
| 18528 | |
| 18529 | fi |
| 18530 | |
| 18531 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 18532 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 18533 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 18534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18535 | else |
| 18536 | ac_check_lib_save_LIBS=$LIBS |
| 18537 | LIBS="-lgcc $LIBS" |
| 18538 | cat >conftest.$ac_ext <<_ACEOF |
| 18539 | /* confdefs.h. */ |
| 18540 | _ACEOF |
| 18541 | cat confdefs.h >>conftest.$ac_ext |
| 18542 | cat >>conftest.$ac_ext <<_ACEOF |
| 18543 | /* end confdefs.h. */ |
| 18544 | |
| 18545 | /* Override any GCC internal prototype to avoid an error. |
| 18546 | Use char because int might match the return type of a GCC |
| 18547 | builtin and then its argument prototype would still apply. */ |
| 18548 | #ifdef __cplusplus |
| 18549 | extern "C" |
| 18550 | #endif |
| 18551 | char __fixsfdi (); |
| 18552 | int |
| 18553 | main () |
| 18554 | { |
| 18555 | return __fixsfdi (); |
| 18556 | ; |
| 18557 | return 0; |
| 18558 | } |
| 18559 | _ACEOF |
| 18560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18561 | if { (ac_try="$ac_link" |
| 18562 | case "(($ac_try" in |
| 18563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18564 | *) ac_try_echo=$ac_try;; |
| 18565 | esac |
| 18566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18567 | (eval "$ac_link") 2>conftest.er1 |
| 18568 | ac_status=$? |
| 18569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18570 | rm -f conftest.er1 |
| 18571 | cat conftest.err >&5 |
| 18572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18573 | (exit $ac_status); } && |
| 18574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18575 | { (case "(($ac_try" in |
| 18576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18577 | *) ac_try_echo=$ac_try;; |
| 18578 | esac |
| 18579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18580 | (eval "$ac_try") 2>&5 |
| 18581 | ac_status=$? |
| 18582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18583 | (exit $ac_status); }; } && |
| 18584 | { ac_try='test -s conftest$ac_exeext' |
| 18585 | { (case "(($ac_try" in |
| 18586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18587 | *) ac_try_echo=$ac_try;; |
| 18588 | esac |
| 18589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18590 | (eval "$ac_try") 2>&5 |
| 18591 | ac_status=$? |
| 18592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18593 | (exit $ac_status); }; }; then |
| 18594 | ac_cv_lib_gcc___fixsfdi=yes |
| 18595 | else |
| 18596 | echo "$as_me: failed program was:" >&5 |
| 18597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18598 | |
| 18599 | ac_cv_lib_gcc___fixsfdi=no |
| 18600 | fi |
| 18601 | |
| 18602 | rm -f core conftest.err conftest.$ac_objext \ |
| 18603 | conftest$ac_exeext conftest.$ac_ext |
| 18604 | LIBS=$ac_check_lib_save_LIBS |
| 18605 | fi |
| 18606 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 18607 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 18608 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 18609 | |
| 18610 | cat >>confdefs.h <<\_ACEOF |
| 18611 | #define HAVE___FIXSFDI 1 |
| 18612 | _ACEOF |
| 18613 | |
| 18614 | fi |
| 18615 | |
| 18616 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 18617 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 18618 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 18619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18620 | else |
| 18621 | ac_check_lib_save_LIBS=$LIBS |
| 18622 | LIBS="-lgcc $LIBS" |
| 18623 | cat >conftest.$ac_ext <<_ACEOF |
| 18624 | /* confdefs.h. */ |
| 18625 | _ACEOF |
| 18626 | cat confdefs.h >>conftest.$ac_ext |
| 18627 | cat >>conftest.$ac_ext <<_ACEOF |
| 18628 | /* end confdefs.h. */ |
| 18629 | |
| 18630 | /* Override any GCC internal prototype to avoid an error. |
| 18631 | Use char because int might match the return type of a GCC |
| 18632 | builtin and then its argument prototype would still apply. */ |
| 18633 | #ifdef __cplusplus |
| 18634 | extern "C" |
| 18635 | #endif |
| 18636 | char __floatdidf (); |
| 18637 | int |
| 18638 | main () |
| 18639 | { |
| 18640 | return __floatdidf (); |
| 18641 | ; |
| 18642 | return 0; |
| 18643 | } |
| 18644 | _ACEOF |
| 18645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18646 | if { (ac_try="$ac_link" |
| 18647 | case "(($ac_try" in |
| 18648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18649 | *) ac_try_echo=$ac_try;; |
| 18650 | esac |
| 18651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18652 | (eval "$ac_link") 2>conftest.er1 |
| 18653 | ac_status=$? |
| 18654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18655 | rm -f conftest.er1 |
| 18656 | cat conftest.err >&5 |
| 18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18658 | (exit $ac_status); } && |
| 18659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18660 | { (case "(($ac_try" in |
| 18661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18662 | *) ac_try_echo=$ac_try;; |
| 18663 | esac |
| 18664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18665 | (eval "$ac_try") 2>&5 |
| 18666 | ac_status=$? |
| 18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18668 | (exit $ac_status); }; } && |
| 18669 | { ac_try='test -s conftest$ac_exeext' |
| 18670 | { (case "(($ac_try" in |
| 18671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18672 | *) ac_try_echo=$ac_try;; |
| 18673 | esac |
| 18674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18675 | (eval "$ac_try") 2>&5 |
| 18676 | ac_status=$? |
| 18677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18678 | (exit $ac_status); }; }; then |
| 18679 | ac_cv_lib_gcc___floatdidf=yes |
| 18680 | else |
| 18681 | echo "$as_me: failed program was:" >&5 |
| 18682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18683 | |
| 18684 | ac_cv_lib_gcc___floatdidf=no |
| 18685 | fi |
| 18686 | |
| 18687 | rm -f core conftest.err conftest.$ac_objext \ |
| 18688 | conftest$ac_exeext conftest.$ac_ext |
| 18689 | LIBS=$ac_check_lib_save_LIBS |
| 18690 | fi |
| 18691 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 18692 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 18693 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 18694 | |
| 18695 | cat >>confdefs.h <<\_ACEOF |
| 18696 | #define HAVE___FLOATDIDF 1 |
| 18697 | _ACEOF |
| 18698 | |
| 18699 | fi |
| 18700 | |
| 18701 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 18702 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18703 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 18704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18705 | else |
| 18706 | ac_check_lib_save_LIBS=$LIBS |
| 18707 | LIBS="-lgcc $LIBS" |
| 18708 | cat >conftest.$ac_ext <<_ACEOF |
| 18709 | /* confdefs.h. */ |
| 18710 | _ACEOF |
| 18711 | cat confdefs.h >>conftest.$ac_ext |
| 18712 | cat >>conftest.$ac_ext <<_ACEOF |
| 18713 | /* end confdefs.h. */ |
| 18714 | |
| 18715 | /* Override any GCC internal prototype to avoid an error. |
| 18716 | Use char because int might match the return type of a GCC |
| 18717 | builtin and then its argument prototype would still apply. */ |
| 18718 | #ifdef __cplusplus |
| 18719 | extern "C" |
| 18720 | #endif |
| 18721 | char __lshrdi3 (); |
| 18722 | int |
| 18723 | main () |
| 18724 | { |
| 18725 | return __lshrdi3 (); |
| 18726 | ; |
| 18727 | return 0; |
| 18728 | } |
| 18729 | _ACEOF |
| 18730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18731 | if { (ac_try="$ac_link" |
| 18732 | case "(($ac_try" in |
| 18733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18734 | *) ac_try_echo=$ac_try;; |
| 18735 | esac |
| 18736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18737 | (eval "$ac_link") 2>conftest.er1 |
| 18738 | ac_status=$? |
| 18739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18740 | rm -f conftest.er1 |
| 18741 | cat conftest.err >&5 |
| 18742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18743 | (exit $ac_status); } && |
| 18744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18745 | { (case "(($ac_try" in |
| 18746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18747 | *) ac_try_echo=$ac_try;; |
| 18748 | esac |
| 18749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18750 | (eval "$ac_try") 2>&5 |
| 18751 | ac_status=$? |
| 18752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18753 | (exit $ac_status); }; } && |
| 18754 | { ac_try='test -s conftest$ac_exeext' |
| 18755 | { (case "(($ac_try" in |
| 18756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18757 | *) ac_try_echo=$ac_try;; |
| 18758 | esac |
| 18759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18760 | (eval "$ac_try") 2>&5 |
| 18761 | ac_status=$? |
| 18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18763 | (exit $ac_status); }; }; then |
| 18764 | ac_cv_lib_gcc___lshrdi3=yes |
| 18765 | else |
| 18766 | echo "$as_me: failed program was:" >&5 |
| 18767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18768 | |
| 18769 | ac_cv_lib_gcc___lshrdi3=no |
| 18770 | fi |
| 18771 | |
| 18772 | rm -f core conftest.err conftest.$ac_objext \ |
| 18773 | conftest$ac_exeext conftest.$ac_ext |
| 18774 | LIBS=$ac_check_lib_save_LIBS |
| 18775 | fi |
| 18776 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 18777 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 18778 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 18779 | |
| 18780 | cat >>confdefs.h <<\_ACEOF |
| 18781 | #define HAVE___LSHRDI3 1 |
| 18782 | _ACEOF |
| 18783 | |
| 18784 | fi |
| 18785 | |
| 18786 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 18787 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 18788 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 18789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18790 | else |
| 18791 | ac_check_lib_save_LIBS=$LIBS |
| 18792 | LIBS="-lgcc $LIBS" |
| 18793 | cat >conftest.$ac_ext <<_ACEOF |
| 18794 | /* confdefs.h. */ |
| 18795 | _ACEOF |
| 18796 | cat confdefs.h >>conftest.$ac_ext |
| 18797 | cat >>conftest.$ac_ext <<_ACEOF |
| 18798 | /* end confdefs.h. */ |
| 18799 | |
| 18800 | /* Override any GCC internal prototype to avoid an error. |
| 18801 | Use char because int might match the return type of a GCC |
| 18802 | builtin and then its argument prototype would still apply. */ |
| 18803 | #ifdef __cplusplus |
| 18804 | extern "C" |
| 18805 | #endif |
| 18806 | char __moddi3 (); |
| 18807 | int |
| 18808 | main () |
| 18809 | { |
| 18810 | return __moddi3 (); |
| 18811 | ; |
| 18812 | return 0; |
| 18813 | } |
| 18814 | _ACEOF |
| 18815 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18816 | if { (ac_try="$ac_link" |
| 18817 | case "(($ac_try" in |
| 18818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18819 | *) ac_try_echo=$ac_try;; |
| 18820 | esac |
| 18821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18822 | (eval "$ac_link") 2>conftest.er1 |
| 18823 | ac_status=$? |
| 18824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18825 | rm -f conftest.er1 |
| 18826 | cat conftest.err >&5 |
| 18827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18828 | (exit $ac_status); } && |
| 18829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18830 | { (case "(($ac_try" in |
| 18831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18832 | *) ac_try_echo=$ac_try;; |
| 18833 | esac |
| 18834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18835 | (eval "$ac_try") 2>&5 |
| 18836 | ac_status=$? |
| 18837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18838 | (exit $ac_status); }; } && |
| 18839 | { ac_try='test -s conftest$ac_exeext' |
| 18840 | { (case "(($ac_try" in |
| 18841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18842 | *) ac_try_echo=$ac_try;; |
| 18843 | esac |
| 18844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18845 | (eval "$ac_try") 2>&5 |
| 18846 | ac_status=$? |
| 18847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18848 | (exit $ac_status); }; }; then |
| 18849 | ac_cv_lib_gcc___moddi3=yes |
| 18850 | else |
| 18851 | echo "$as_me: failed program was:" >&5 |
| 18852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18853 | |
| 18854 | ac_cv_lib_gcc___moddi3=no |
| 18855 | fi |
| 18856 | |
| 18857 | rm -f core conftest.err conftest.$ac_objext \ |
| 18858 | conftest$ac_exeext conftest.$ac_ext |
| 18859 | LIBS=$ac_check_lib_save_LIBS |
| 18860 | fi |
| 18861 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 18862 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 18863 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 18864 | |
| 18865 | cat >>confdefs.h <<\_ACEOF |
| 18866 | #define HAVE___MODDI3 1 |
| 18867 | _ACEOF |
| 18868 | |
| 18869 | fi |
| 18870 | |
| 18871 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 18872 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 18873 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 18874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18875 | else |
| 18876 | ac_check_lib_save_LIBS=$LIBS |
| 18877 | LIBS="-lgcc $LIBS" |
| 18878 | cat >conftest.$ac_ext <<_ACEOF |
| 18879 | /* confdefs.h. */ |
| 18880 | _ACEOF |
| 18881 | cat confdefs.h >>conftest.$ac_ext |
| 18882 | cat >>conftest.$ac_ext <<_ACEOF |
| 18883 | /* end confdefs.h. */ |
| 18884 | |
| 18885 | /* Override any GCC internal prototype to avoid an error. |
| 18886 | Use char because int might match the return type of a GCC |
| 18887 | builtin and then its argument prototype would still apply. */ |
| 18888 | #ifdef __cplusplus |
| 18889 | extern "C" |
| 18890 | #endif |
| 18891 | char __udivdi3 (); |
| 18892 | int |
| 18893 | main () |
| 18894 | { |
| 18895 | return __udivdi3 (); |
| 18896 | ; |
| 18897 | return 0; |
| 18898 | } |
| 18899 | _ACEOF |
| 18900 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18901 | if { (ac_try="$ac_link" |
| 18902 | case "(($ac_try" in |
| 18903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18904 | *) ac_try_echo=$ac_try;; |
| 18905 | esac |
| 18906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18907 | (eval "$ac_link") 2>conftest.er1 |
| 18908 | ac_status=$? |
| 18909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18910 | rm -f conftest.er1 |
| 18911 | cat conftest.err >&5 |
| 18912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18913 | (exit $ac_status); } && |
| 18914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18915 | { (case "(($ac_try" in |
| 18916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18917 | *) ac_try_echo=$ac_try;; |
| 18918 | esac |
| 18919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18920 | (eval "$ac_try") 2>&5 |
| 18921 | ac_status=$? |
| 18922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18923 | (exit $ac_status); }; } && |
| 18924 | { ac_try='test -s conftest$ac_exeext' |
| 18925 | { (case "(($ac_try" in |
| 18926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18927 | *) ac_try_echo=$ac_try;; |
| 18928 | esac |
| 18929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18930 | (eval "$ac_try") 2>&5 |
| 18931 | ac_status=$? |
| 18932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18933 | (exit $ac_status); }; }; then |
| 18934 | ac_cv_lib_gcc___udivdi3=yes |
| 18935 | else |
| 18936 | echo "$as_me: failed program was:" >&5 |
| 18937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18938 | |
| 18939 | ac_cv_lib_gcc___udivdi3=no |
| 18940 | fi |
| 18941 | |
| 18942 | rm -f core conftest.err conftest.$ac_objext \ |
| 18943 | conftest$ac_exeext conftest.$ac_ext |
| 18944 | LIBS=$ac_check_lib_save_LIBS |
| 18945 | fi |
| 18946 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 18947 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 18948 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 18949 | |
| 18950 | cat >>confdefs.h <<\_ACEOF |
| 18951 | #define HAVE___UDIVDI3 1 |
| 18952 | _ACEOF |
| 18953 | |
| 18954 | fi |
| 18955 | |
| 18956 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 18957 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 18958 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 18959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18960 | else |
| 18961 | ac_check_lib_save_LIBS=$LIBS |
| 18962 | LIBS="-lgcc $LIBS" |
| 18963 | cat >conftest.$ac_ext <<_ACEOF |
| 18964 | /* confdefs.h. */ |
| 18965 | _ACEOF |
| 18966 | cat confdefs.h >>conftest.$ac_ext |
| 18967 | cat >>conftest.$ac_ext <<_ACEOF |
| 18968 | /* end confdefs.h. */ |
| 18969 | |
| 18970 | /* Override any GCC internal prototype to avoid an error. |
| 18971 | Use char because int might match the return type of a GCC |
| 18972 | builtin and then its argument prototype would still apply. */ |
| 18973 | #ifdef __cplusplus |
| 18974 | extern "C" |
| 18975 | #endif |
| 18976 | char __umoddi3 (); |
| 18977 | int |
| 18978 | main () |
| 18979 | { |
| 18980 | return __umoddi3 (); |
| 18981 | ; |
| 18982 | return 0; |
| 18983 | } |
| 18984 | _ACEOF |
| 18985 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18986 | if { (ac_try="$ac_link" |
| 18987 | case "(($ac_try" in |
| 18988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18989 | *) ac_try_echo=$ac_try;; |
| 18990 | esac |
| 18991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18992 | (eval "$ac_link") 2>conftest.er1 |
| 18993 | ac_status=$? |
| 18994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18995 | rm -f conftest.er1 |
| 18996 | cat conftest.err >&5 |
| 18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18998 | (exit $ac_status); } && |
| 18999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19000 | { (case "(($ac_try" in |
| 19001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19002 | *) ac_try_echo=$ac_try;; |
| 19003 | esac |
| 19004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19005 | (eval "$ac_try") 2>&5 |
| 19006 | ac_status=$? |
| 19007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19008 | (exit $ac_status); }; } && |
| 19009 | { ac_try='test -s conftest$ac_exeext' |
| 19010 | { (case "(($ac_try" in |
| 19011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19012 | *) ac_try_echo=$ac_try;; |
| 19013 | esac |
| 19014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19015 | (eval "$ac_try") 2>&5 |
| 19016 | ac_status=$? |
| 19017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19018 | (exit $ac_status); }; }; then |
| 19019 | ac_cv_lib_gcc___umoddi3=yes |
| 19020 | else |
| 19021 | echo "$as_me: failed program was:" >&5 |
| 19022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19023 | |
| 19024 | ac_cv_lib_gcc___umoddi3=no |
| 19025 | fi |
| 19026 | |
| 19027 | rm -f core conftest.err conftest.$ac_objext \ |
| 19028 | conftest$ac_exeext conftest.$ac_ext |
| 19029 | LIBS=$ac_check_lib_save_LIBS |
| 19030 | fi |
| 19031 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 19032 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 19033 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 19034 | |
| 19035 | cat >>confdefs.h <<\_ACEOF |
| 19036 | #define HAVE___UMODDI3 1 |
| 19037 | _ACEOF |
| 19038 | |
| 19039 | fi |
| 19040 | |
| 19041 | |
| 19042 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 19043 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 19044 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 19045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19046 | else |
| 19047 | ac_check_lib_save_LIBS=$LIBS |
| 19048 | LIBS="-lgcc $LIBS" |
| 19049 | cat >conftest.$ac_ext <<_ACEOF |
| 19050 | /* confdefs.h. */ |
| 19051 | _ACEOF |
| 19052 | cat confdefs.h >>conftest.$ac_ext |
| 19053 | cat >>conftest.$ac_ext <<_ACEOF |
| 19054 | /* end confdefs.h. */ |
| 19055 | |
| 19056 | /* Override any GCC internal prototype to avoid an error. |
| 19057 | Use char because int might match the return type of a GCC |
| 19058 | builtin and then its argument prototype would still apply. */ |
| 19059 | #ifdef __cplusplus |
| 19060 | extern "C" |
| 19061 | #endif |
| 19062 | char __main (); |
| 19063 | int |
| 19064 | main () |
| 19065 | { |
| 19066 | return __main (); |
| 19067 | ; |
| 19068 | return 0; |
| 19069 | } |
| 19070 | _ACEOF |
| 19071 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19072 | if { (ac_try="$ac_link" |
| 19073 | case "(($ac_try" in |
| 19074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19075 | *) ac_try_echo=$ac_try;; |
| 19076 | esac |
| 19077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19078 | (eval "$ac_link") 2>conftest.er1 |
| 19079 | ac_status=$? |
| 19080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19081 | rm -f conftest.er1 |
| 19082 | cat conftest.err >&5 |
| 19083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19084 | (exit $ac_status); } && |
| 19085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19086 | { (case "(($ac_try" in |
| 19087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19088 | *) ac_try_echo=$ac_try;; |
| 19089 | esac |
| 19090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19091 | (eval "$ac_try") 2>&5 |
| 19092 | ac_status=$? |
| 19093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19094 | (exit $ac_status); }; } && |
| 19095 | { ac_try='test -s conftest$ac_exeext' |
| 19096 | { (case "(($ac_try" in |
| 19097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19098 | *) ac_try_echo=$ac_try;; |
| 19099 | esac |
| 19100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19101 | (eval "$ac_try") 2>&5 |
| 19102 | ac_status=$? |
| 19103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19104 | (exit $ac_status); }; }; then |
| 19105 | ac_cv_lib_gcc___main=yes |
| 19106 | else |
| 19107 | echo "$as_me: failed program was:" >&5 |
| 19108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19109 | |
| 19110 | ac_cv_lib_gcc___main=no |
| 19111 | fi |
| 19112 | |
| 19113 | rm -f core conftest.err conftest.$ac_objext \ |
| 19114 | conftest$ac_exeext conftest.$ac_ext |
| 19115 | LIBS=$ac_check_lib_save_LIBS |
| 19116 | fi |
| 19117 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 19118 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 19119 | if test $ac_cv_lib_gcc___main = yes; then |
| 19120 | |
| 19121 | cat >>confdefs.h <<\_ACEOF |
| 19122 | #define HAVE___MAIN 1 |
| 19123 | _ACEOF |
| 19124 | |
| 19125 | fi |
| 19126 | |
| 19127 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 19128 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 19129 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 19130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19131 | else |
| 19132 | ac_check_lib_save_LIBS=$LIBS |
| 19133 | LIBS="-lgcc $LIBS" |
| 19134 | cat >conftest.$ac_ext <<_ACEOF |
| 19135 | /* confdefs.h. */ |
| 19136 | _ACEOF |
| 19137 | cat confdefs.h >>conftest.$ac_ext |
| 19138 | cat >>conftest.$ac_ext <<_ACEOF |
| 19139 | /* end confdefs.h. */ |
| 19140 | |
| 19141 | /* Override any GCC internal prototype to avoid an error. |
| 19142 | Use char because int might match the return type of a GCC |
| 19143 | builtin and then its argument prototype would still apply. */ |
| 19144 | #ifdef __cplusplus |
| 19145 | extern "C" |
| 19146 | #endif |
| 19147 | char __cmpdi2 (); |
| 19148 | int |
| 19149 | main () |
| 19150 | { |
| 19151 | return __cmpdi2 (); |
| 19152 | ; |
| 19153 | return 0; |
| 19154 | } |
| 19155 | _ACEOF |
| 19156 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19157 | if { (ac_try="$ac_link" |
| 19158 | case "(($ac_try" in |
| 19159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19160 | *) ac_try_echo=$ac_try;; |
| 19161 | esac |
| 19162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19163 | (eval "$ac_link") 2>conftest.er1 |
| 19164 | ac_status=$? |
| 19165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19166 | rm -f conftest.er1 |
| 19167 | cat conftest.err >&5 |
| 19168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19169 | (exit $ac_status); } && |
| 19170 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19171 | { (case "(($ac_try" in |
| 19172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19173 | *) ac_try_echo=$ac_try;; |
| 19174 | esac |
| 19175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19176 | (eval "$ac_try") 2>&5 |
| 19177 | ac_status=$? |
| 19178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19179 | (exit $ac_status); }; } && |
| 19180 | { ac_try='test -s conftest$ac_exeext' |
| 19181 | { (case "(($ac_try" in |
| 19182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19183 | *) ac_try_echo=$ac_try;; |
| 19184 | esac |
| 19185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19186 | (eval "$ac_try") 2>&5 |
| 19187 | ac_status=$? |
| 19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19189 | (exit $ac_status); }; }; then |
| 19190 | ac_cv_lib_gcc___cmpdi2=yes |
| 19191 | else |
| 19192 | echo "$as_me: failed program was:" >&5 |
| 19193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19194 | |
| 19195 | ac_cv_lib_gcc___cmpdi2=no |
| 19196 | fi |
| 19197 | |
| 19198 | rm -f core conftest.err conftest.$ac_objext \ |
| 19199 | conftest$ac_exeext conftest.$ac_ext |
| 19200 | LIBS=$ac_check_lib_save_LIBS |
| 19201 | fi |
| 19202 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 19203 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 19204 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 19205 | |
| 19206 | cat >>confdefs.h <<\_ACEOF |
| 19207 | #define HAVE___CMPDI2 1 |
| 19208 | _ACEOF |
| 19209 | |
| 19210 | fi |
| 19211 | |
| 19212 | fi |
| 19213 | |
NAKAMURA Takumi | 6073a05 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19214 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19215 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 19216 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 19217 | cat >conftest.$ac_ext <<_ACEOF |
| 19218 | #include <windows.h> |
| 19219 | #include <imagehlp.h> |
| 19220 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 19221 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 19222 | _ACEOF |
| 19223 | rm -f conftest.$ac_objext |
| 19224 | if { (ac_try="$ac_compile" |
| 19225 | case "(($ac_try" in |
| 19226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19227 | *) ac_try_echo=$ac_try;; |
| 19228 | esac |
| 19229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19230 | (eval "$ac_compile") 2>conftest.er1 |
| 19231 | ac_status=$? |
| 19232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19233 | rm -f conftest.er1 |
| 19234 | cat conftest.err >&5 |
| 19235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19236 | (exit $ac_status); } && |
| 19237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19238 | { (case "(($ac_try" in |
| 19239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19240 | *) ac_try_echo=$ac_try;; |
| 19241 | esac |
| 19242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19243 | (eval "$ac_try") 2>&5 |
| 19244 | ac_status=$? |
| 19245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19246 | (exit $ac_status); }; } && |
| 19247 | { ac_try='test -s conftest.$ac_objext' |
| 19248 | { (case "(($ac_try" in |
| 19249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19250 | *) ac_try_echo=$ac_try;; |
| 19251 | esac |
| 19252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19253 | (eval "$ac_try") 2>&5 |
| 19254 | ac_status=$? |
| 19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19256 | (exit $ac_status); }; }; then |
| 19257 | |
| 19258 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19259 | echo "${ECHO_T}yes" >&6; } |
| 19260 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 19261 | |
| 19262 | else |
| 19263 | echo "$as_me: failed program was:" >&5 |
| 19264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19265 | |
| 19266 | |
| 19267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19268 | echo "${ECHO_T}no" >&6; } |
| 19269 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 19270 | |
| 19271 | fi |
| 19272 | |
| 19273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19274 | |
| 19275 | cat >>confdefs.h <<_ACEOF |
| 19276 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 19277 | _ACEOF |
| 19278 | |
| 19279 | fi |
| 19280 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19281 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19282 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 19283 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 19284 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 19285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19286 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19287 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19288 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19289 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19290 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19291 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19292 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19293 | cat >conftest.$ac_ext <<_ACEOF |
| 19294 | /* confdefs.h. */ |
| 19295 | _ACEOF |
| 19296 | cat confdefs.h >>conftest.$ac_ext |
| 19297 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19298 | /* end confdefs.h. */ |
| 19299 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19300 | int |
| 19301 | main () |
| 19302 | { |
| 19303 | float f; isnan(f); |
| 19304 | ; |
| 19305 | return 0; |
| 19306 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19307 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19308 | rm -f conftest.$ac_objext |
| 19309 | if { (ac_try="$ac_compile" |
| 19310 | case "(($ac_try" in |
| 19311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19312 | *) ac_try_echo=$ac_try;; |
| 19313 | esac |
| 19314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19315 | (eval "$ac_compile") 2>conftest.er1 |
| 19316 | ac_status=$? |
| 19317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19318 | rm -f conftest.er1 |
| 19319 | cat conftest.err >&5 |
| 19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19321 | (exit $ac_status); } && |
| 19322 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19323 | { (case "(($ac_try" in |
| 19324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19325 | *) ac_try_echo=$ac_try;; |
| 19326 | esac |
| 19327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19328 | (eval "$ac_try") 2>&5 |
| 19329 | ac_status=$? |
| 19330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19331 | (exit $ac_status); }; } && |
| 19332 | { ac_try='test -s conftest.$ac_objext' |
| 19333 | { (case "(($ac_try" in |
| 19334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19335 | *) ac_try_echo=$ac_try;; |
| 19336 | esac |
| 19337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19338 | (eval "$ac_try") 2>&5 |
| 19339 | ac_status=$? |
| 19340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19341 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19342 | ac_cv_func_isnan_in_math_h=yes |
| 19343 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19344 | echo "$as_me: failed program was:" >&5 |
| 19345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19346 | |
| 19347 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19348 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19351 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19352 | ac_cpp='$CPP $CPPFLAGS' |
| 19353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19356 | |
| 19357 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19358 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19359 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19360 | |
| 19361 | |
| 19362 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19363 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19364 | cat >>confdefs.h <<\_ACEOF |
| 19365 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19366 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19367 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19368 | fi |
| 19369 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19370 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19371 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19372 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19374 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19375 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19376 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19377 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19378 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19379 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19380 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19381 | cat >conftest.$ac_ext <<_ACEOF |
| 19382 | /* confdefs.h. */ |
| 19383 | _ACEOF |
| 19384 | cat confdefs.h >>conftest.$ac_ext |
| 19385 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19386 | /* end confdefs.h. */ |
| 19387 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19388 | int |
| 19389 | main () |
| 19390 | { |
| 19391 | float f; isnan(f); |
| 19392 | ; |
| 19393 | return 0; |
| 19394 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19395 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19396 | rm -f conftest.$ac_objext |
| 19397 | if { (ac_try="$ac_compile" |
| 19398 | case "(($ac_try" in |
| 19399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19400 | *) ac_try_echo=$ac_try;; |
| 19401 | esac |
| 19402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19403 | (eval "$ac_compile") 2>conftest.er1 |
| 19404 | ac_status=$? |
| 19405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19406 | rm -f conftest.er1 |
| 19407 | cat conftest.err >&5 |
| 19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19409 | (exit $ac_status); } && |
| 19410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19411 | { (case "(($ac_try" in |
| 19412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19413 | *) ac_try_echo=$ac_try;; |
| 19414 | esac |
| 19415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19416 | (eval "$ac_try") 2>&5 |
| 19417 | ac_status=$? |
| 19418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19419 | (exit $ac_status); }; } && |
| 19420 | { ac_try='test -s conftest.$ac_objext' |
| 19421 | { (case "(($ac_try" in |
| 19422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19423 | *) ac_try_echo=$ac_try;; |
| 19424 | esac |
| 19425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19426 | (eval "$ac_try") 2>&5 |
| 19427 | ac_status=$? |
| 19428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19429 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19430 | ac_cv_func_isnan_in_cmath=yes |
| 19431 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19432 | echo "$as_me: failed program was:" >&5 |
| 19433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19434 | |
| 19435 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19436 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19439 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19440 | ac_cpp='$CPP $CPPFLAGS' |
| 19441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19444 | |
| 19445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19446 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19447 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19448 | |
| 19449 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19450 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19451 | cat >>confdefs.h <<\_ACEOF |
| 19452 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19453 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19454 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19455 | fi |
| 19456 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19457 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19458 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19459 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19461 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19462 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19463 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19464 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19465 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19466 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19467 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19468 | cat >conftest.$ac_ext <<_ACEOF |
| 19469 | /* confdefs.h. */ |
| 19470 | _ACEOF |
| 19471 | cat confdefs.h >>conftest.$ac_ext |
| 19472 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19473 | /* end confdefs.h. */ |
| 19474 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19475 | int |
| 19476 | main () |
| 19477 | { |
| 19478 | float f; std::isnan(f); |
| 19479 | ; |
| 19480 | return 0; |
| 19481 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19482 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19483 | rm -f conftest.$ac_objext |
| 19484 | if { (ac_try="$ac_compile" |
| 19485 | case "(($ac_try" in |
| 19486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19487 | *) ac_try_echo=$ac_try;; |
| 19488 | esac |
| 19489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19490 | (eval "$ac_compile") 2>conftest.er1 |
| 19491 | ac_status=$? |
| 19492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19493 | rm -f conftest.er1 |
| 19494 | cat conftest.err >&5 |
| 19495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19496 | (exit $ac_status); } && |
| 19497 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19498 | { (case "(($ac_try" in |
| 19499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19500 | *) ac_try_echo=$ac_try;; |
| 19501 | esac |
| 19502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19503 | (eval "$ac_try") 2>&5 |
| 19504 | ac_status=$? |
| 19505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19506 | (exit $ac_status); }; } && |
| 19507 | { ac_try='test -s conftest.$ac_objext' |
| 19508 | { (case "(($ac_try" in |
| 19509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19510 | *) ac_try_echo=$ac_try;; |
| 19511 | esac |
| 19512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19513 | (eval "$ac_try") 2>&5 |
| 19514 | ac_status=$? |
| 19515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19516 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19517 | ac_cv_func_std_isnan_in_cmath=yes |
| 19518 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19519 | echo "$as_me: failed program was:" >&5 |
| 19520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19521 | |
| 19522 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19523 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19524 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19526 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19527 | ac_cpp='$CPP $CPPFLAGS' |
| 19528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19531 | |
| 19532 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19533 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19534 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19535 | |
| 19536 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19537 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19538 | cat >>confdefs.h <<\_ACEOF |
| 19539 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19540 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19541 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19542 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19543 | |
| 19544 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19545 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19546 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19547 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19549 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19550 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19551 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19552 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19553 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19554 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19555 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19556 | cat >conftest.$ac_ext <<_ACEOF |
| 19557 | /* confdefs.h. */ |
| 19558 | _ACEOF |
| 19559 | cat confdefs.h >>conftest.$ac_ext |
| 19560 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19561 | /* end confdefs.h. */ |
| 19562 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19563 | int |
| 19564 | main () |
| 19565 | { |
| 19566 | float f; isinf(f); |
| 19567 | ; |
| 19568 | return 0; |
| 19569 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19570 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19571 | rm -f conftest.$ac_objext |
| 19572 | if { (ac_try="$ac_compile" |
| 19573 | case "(($ac_try" in |
| 19574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19575 | *) ac_try_echo=$ac_try;; |
| 19576 | esac |
| 19577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19578 | (eval "$ac_compile") 2>conftest.er1 |
| 19579 | ac_status=$? |
| 19580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19581 | rm -f conftest.er1 |
| 19582 | cat conftest.err >&5 |
| 19583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19584 | (exit $ac_status); } && |
| 19585 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19586 | { (case "(($ac_try" in |
| 19587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19588 | *) ac_try_echo=$ac_try;; |
| 19589 | esac |
| 19590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19591 | (eval "$ac_try") 2>&5 |
| 19592 | ac_status=$? |
| 19593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19594 | (exit $ac_status); }; } && |
| 19595 | { ac_try='test -s conftest.$ac_objext' |
| 19596 | { (case "(($ac_try" in |
| 19597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19598 | *) ac_try_echo=$ac_try;; |
| 19599 | esac |
| 19600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19601 | (eval "$ac_try") 2>&5 |
| 19602 | ac_status=$? |
| 19603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19604 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19605 | ac_cv_func_isinf_in_math_h=yes |
| 19606 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19607 | echo "$as_me: failed program was:" >&5 |
| 19608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19609 | |
| 19610 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19611 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19612 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19614 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19615 | ac_cpp='$CPP $CPPFLAGS' |
| 19616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19619 | |
| 19620 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19621 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19622 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19623 | |
| 19624 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19625 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19626 | cat >>confdefs.h <<\_ACEOF |
| 19627 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19628 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19629 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19630 | fi |
| 19631 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19632 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19633 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19634 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19636 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19637 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19638 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19639 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19640 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19641 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19642 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19643 | cat >conftest.$ac_ext <<_ACEOF |
| 19644 | /* confdefs.h. */ |
| 19645 | _ACEOF |
| 19646 | cat confdefs.h >>conftest.$ac_ext |
| 19647 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19648 | /* end confdefs.h. */ |
| 19649 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19650 | int |
| 19651 | main () |
| 19652 | { |
| 19653 | float f; isinf(f); |
| 19654 | ; |
| 19655 | return 0; |
| 19656 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19657 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19658 | rm -f conftest.$ac_objext |
| 19659 | if { (ac_try="$ac_compile" |
| 19660 | case "(($ac_try" in |
| 19661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19662 | *) ac_try_echo=$ac_try;; |
| 19663 | esac |
| 19664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19665 | (eval "$ac_compile") 2>conftest.er1 |
| 19666 | ac_status=$? |
| 19667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19668 | rm -f conftest.er1 |
| 19669 | cat conftest.err >&5 |
| 19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19671 | (exit $ac_status); } && |
| 19672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19673 | { (case "(($ac_try" in |
| 19674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19675 | *) ac_try_echo=$ac_try;; |
| 19676 | esac |
| 19677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19678 | (eval "$ac_try") 2>&5 |
| 19679 | ac_status=$? |
| 19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19681 | (exit $ac_status); }; } && |
| 19682 | { ac_try='test -s conftest.$ac_objext' |
| 19683 | { (case "(($ac_try" in |
| 19684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19685 | *) ac_try_echo=$ac_try;; |
| 19686 | esac |
| 19687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19688 | (eval "$ac_try") 2>&5 |
| 19689 | ac_status=$? |
| 19690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19691 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19692 | ac_cv_func_isinf_in_cmath=yes |
| 19693 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19694 | echo "$as_me: failed program was:" >&5 |
| 19695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19696 | |
| 19697 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19698 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19701 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19702 | ac_cpp='$CPP $CPPFLAGS' |
| 19703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19706 | |
| 19707 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19708 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19709 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19710 | |
| 19711 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19712 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19713 | cat >>confdefs.h <<\_ACEOF |
| 19714 | #define HAVE_ISINF_IN_CMATH 1 |
| 19715 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19716 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19717 | fi |
| 19718 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19719 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19720 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19721 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19723 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19724 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19725 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19726 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19727 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19728 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19730 | cat >conftest.$ac_ext <<_ACEOF |
| 19731 | /* confdefs.h. */ |
| 19732 | _ACEOF |
| 19733 | cat confdefs.h >>conftest.$ac_ext |
| 19734 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19735 | /* end confdefs.h. */ |
| 19736 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19737 | int |
| 19738 | main () |
| 19739 | { |
| 19740 | float f; std::isinf(f)} |
| 19741 | ; |
| 19742 | return 0; |
| 19743 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19744 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19745 | rm -f conftest.$ac_objext |
| 19746 | if { (ac_try="$ac_compile" |
| 19747 | case "(($ac_try" in |
| 19748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19749 | *) ac_try_echo=$ac_try;; |
| 19750 | esac |
| 19751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19752 | (eval "$ac_compile") 2>conftest.er1 |
| 19753 | ac_status=$? |
| 19754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19755 | rm -f conftest.er1 |
| 19756 | cat conftest.err >&5 |
| 19757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19758 | (exit $ac_status); } && |
| 19759 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19760 | { (case "(($ac_try" in |
| 19761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19762 | *) ac_try_echo=$ac_try;; |
| 19763 | esac |
| 19764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19765 | (eval "$ac_try") 2>&5 |
| 19766 | ac_status=$? |
| 19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19768 | (exit $ac_status); }; } && |
| 19769 | { ac_try='test -s conftest.$ac_objext' |
| 19770 | { (case "(($ac_try" in |
| 19771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19772 | *) ac_try_echo=$ac_try;; |
| 19773 | esac |
| 19774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19775 | (eval "$ac_try") 2>&5 |
| 19776 | ac_status=$? |
| 19777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19778 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19779 | ac_cv_func_std_isinf_in_cmath=yes |
| 19780 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19781 | echo "$as_me: failed program was:" >&5 |
| 19782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19783 | |
| 19784 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19785 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19786 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19788 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19789 | ac_cpp='$CPP $CPPFLAGS' |
| 19790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19793 | |
| 19794 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19795 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19796 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19797 | |
| 19798 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19799 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19800 | cat >>confdefs.h <<\_ACEOF |
| 19801 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19802 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19803 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19804 | fi |
| 19805 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19806 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19807 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19808 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19810 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19811 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19812 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19813 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19814 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19815 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19816 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19817 | cat >conftest.$ac_ext <<_ACEOF |
| 19818 | /* confdefs.h. */ |
| 19819 | _ACEOF |
| 19820 | cat confdefs.h >>conftest.$ac_ext |
| 19821 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19822 | /* end confdefs.h. */ |
| 19823 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19824 | int |
| 19825 | main () |
| 19826 | { |
| 19827 | float f; finite(f); |
| 19828 | ; |
| 19829 | return 0; |
| 19830 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19831 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19832 | rm -f conftest.$ac_objext |
| 19833 | if { (ac_try="$ac_compile" |
| 19834 | case "(($ac_try" in |
| 19835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19836 | *) ac_try_echo=$ac_try;; |
| 19837 | esac |
| 19838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19839 | (eval "$ac_compile") 2>conftest.er1 |
| 19840 | ac_status=$? |
| 19841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19842 | rm -f conftest.er1 |
| 19843 | cat conftest.err >&5 |
| 19844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19845 | (exit $ac_status); } && |
| 19846 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19847 | { (case "(($ac_try" in |
| 19848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19849 | *) ac_try_echo=$ac_try;; |
| 19850 | esac |
| 19851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19852 | (eval "$ac_try") 2>&5 |
| 19853 | ac_status=$? |
| 19854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19855 | (exit $ac_status); }; } && |
| 19856 | { ac_try='test -s conftest.$ac_objext' |
| 19857 | { (case "(($ac_try" in |
| 19858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19859 | *) ac_try_echo=$ac_try;; |
| 19860 | esac |
| 19861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19862 | (eval "$ac_try") 2>&5 |
| 19863 | ac_status=$? |
| 19864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19865 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19866 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19867 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19868 | echo "$as_me: failed program was:" >&5 |
| 19869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19870 | |
| 19871 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19872 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19875 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19876 | ac_cpp='$CPP $CPPFLAGS' |
| 19877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19880 | |
| 19881 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19882 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19883 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19884 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19885 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19886 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19887 | cat >>confdefs.h <<\_ACEOF |
| 19888 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19889 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19890 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19891 | fi |
| 19892 | |
| 19893 | |
| 19894 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19895 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19896 | |
| 19897 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19898 | for ac_header in stdlib.h unistd.h |
| 19899 | do |
| 19900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19901 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19902 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19904 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19906 | fi |
| 19907 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19908 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19909 | echo "${ECHO_T}$ac_res" >&6; } |
| 19910 | else |
| 19911 | # Is the header compilable? |
| 19912 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19914 | cat >conftest.$ac_ext <<_ACEOF |
| 19915 | /* confdefs.h. */ |
| 19916 | _ACEOF |
| 19917 | cat confdefs.h >>conftest.$ac_ext |
| 19918 | cat >>conftest.$ac_ext <<_ACEOF |
| 19919 | /* end confdefs.h. */ |
| 19920 | $ac_includes_default |
| 19921 | #include <$ac_header> |
| 19922 | _ACEOF |
| 19923 | rm -f conftest.$ac_objext |
| 19924 | if { (ac_try="$ac_compile" |
| 19925 | case "(($ac_try" in |
| 19926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19927 | *) ac_try_echo=$ac_try;; |
| 19928 | esac |
| 19929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19930 | (eval "$ac_compile") 2>conftest.er1 |
| 19931 | ac_status=$? |
| 19932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19933 | rm -f conftest.er1 |
| 19934 | cat conftest.err >&5 |
| 19935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19936 | (exit $ac_status); } && |
| 19937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19938 | { (case "(($ac_try" in |
| 19939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19940 | *) ac_try_echo=$ac_try;; |
| 19941 | esac |
| 19942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19943 | (eval "$ac_try") 2>&5 |
| 19944 | ac_status=$? |
| 19945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19946 | (exit $ac_status); }; } && |
| 19947 | { ac_try='test -s conftest.$ac_objext' |
| 19948 | { (case "(($ac_try" in |
| 19949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19950 | *) ac_try_echo=$ac_try;; |
| 19951 | esac |
| 19952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19953 | (eval "$ac_try") 2>&5 |
| 19954 | ac_status=$? |
| 19955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19956 | (exit $ac_status); }; }; then |
| 19957 | ac_header_compiler=yes |
| 19958 | else |
| 19959 | echo "$as_me: failed program was:" >&5 |
| 19960 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19961 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19962 | ac_header_compiler=no |
| 19963 | fi |
| 19964 | |
| 19965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19966 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19967 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19968 | |
| 19969 | # Is the header present? |
| 19970 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19971 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19972 | cat >conftest.$ac_ext <<_ACEOF |
| 19973 | /* confdefs.h. */ |
| 19974 | _ACEOF |
| 19975 | cat confdefs.h >>conftest.$ac_ext |
| 19976 | cat >>conftest.$ac_ext <<_ACEOF |
| 19977 | /* end confdefs.h. */ |
| 19978 | #include <$ac_header> |
| 19979 | _ACEOF |
| 19980 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19981 | case "(($ac_try" in |
| 19982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19983 | *) ac_try_echo=$ac_try;; |
| 19984 | esac |
| 19985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19986 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19987 | ac_status=$? |
| 19988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19989 | rm -f conftest.er1 |
| 19990 | cat conftest.err >&5 |
| 19991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19992 | (exit $ac_status); } >/dev/null; then |
| 19993 | if test -s conftest.err; then |
| 19994 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19995 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19996 | else |
| 19997 | ac_cpp_err= |
| 19998 | fi |
| 19999 | else |
| 20000 | ac_cpp_err=yes |
| 20001 | fi |
| 20002 | if test -z "$ac_cpp_err"; then |
| 20003 | ac_header_preproc=yes |
| 20004 | else |
| 20005 | echo "$as_me: failed program was:" >&5 |
| 20006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20007 | |
| 20008 | ac_header_preproc=no |
| 20009 | fi |
| 20010 | |
| 20011 | rm -f conftest.err conftest.$ac_ext |
| 20012 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20013 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20014 | |
| 20015 | # So? What about this header? |
| 20016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20017 | yes:no: ) |
| 20018 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20019 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20021 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20022 | ac_header_preproc=yes |
| 20023 | ;; |
| 20024 | no:yes:* ) |
| 20025 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20026 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20027 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20028 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20029 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20030 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20031 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20032 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20034 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20035 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20036 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20037 | ( cat <<\_ASBOX |
| 20038 | ## ----------------------------------- ## |
| 20039 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 20040 | ## ----------------------------------- ## |
| 20041 | _ASBOX |
| 20042 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 20043 | ;; |
| 20044 | esac |
| 20045 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20047 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20049 | else |
| 20050 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20051 | fi |
| 20052 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20053 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20054 | echo "${ECHO_T}$ac_res" >&6; } |
| 20055 | |
| 20056 | fi |
| 20057 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20058 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20059 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20060 | _ACEOF |
| 20061 | |
| 20062 | fi |
| 20063 | |
| 20064 | done |
| 20065 | |
| 20066 | |
| 20067 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20068 | do |
| 20069 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20070 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20071 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20072 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20074 | else |
| 20075 | cat >conftest.$ac_ext <<_ACEOF |
| 20076 | /* confdefs.h. */ |
| 20077 | _ACEOF |
| 20078 | cat confdefs.h >>conftest.$ac_ext |
| 20079 | cat >>conftest.$ac_ext <<_ACEOF |
| 20080 | /* end confdefs.h. */ |
| 20081 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20083 | #define $ac_func innocuous_$ac_func |
| 20084 | |
| 20085 | /* System header to define __stub macros and hopefully few prototypes, |
| 20086 | which can conflict with char $ac_func (); below. |
| 20087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20088 | <limits.h> exists even on freestanding compilers. */ |
| 20089 | |
| 20090 | #ifdef __STDC__ |
| 20091 | # include <limits.h> |
| 20092 | #else |
| 20093 | # include <assert.h> |
| 20094 | #endif |
| 20095 | |
| 20096 | #undef $ac_func |
| 20097 | |
| 20098 | /* Override any GCC internal prototype to avoid an error. |
| 20099 | Use char because int might match the return type of a GCC |
| 20100 | builtin and then its argument prototype would still apply. */ |
| 20101 | #ifdef __cplusplus |
| 20102 | extern "C" |
| 20103 | #endif |
| 20104 | char $ac_func (); |
| 20105 | /* The GNU C library defines this for functions which it implements |
| 20106 | to always fail with ENOSYS. Some functions are actually named |
| 20107 | something starting with __ and the normal name is an alias. */ |
| 20108 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20109 | choke me |
| 20110 | #endif |
| 20111 | |
| 20112 | int |
| 20113 | main () |
| 20114 | { |
| 20115 | return $ac_func (); |
| 20116 | ; |
| 20117 | return 0; |
| 20118 | } |
| 20119 | _ACEOF |
| 20120 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20121 | if { (ac_try="$ac_link" |
| 20122 | case "(($ac_try" in |
| 20123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20124 | *) ac_try_echo=$ac_try;; |
| 20125 | esac |
| 20126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20127 | (eval "$ac_link") 2>conftest.er1 |
| 20128 | ac_status=$? |
| 20129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20130 | rm -f conftest.er1 |
| 20131 | cat conftest.err >&5 |
| 20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20133 | (exit $ac_status); } && |
| 20134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20135 | { (case "(($ac_try" in |
| 20136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20137 | *) ac_try_echo=$ac_try;; |
| 20138 | esac |
| 20139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20140 | (eval "$ac_try") 2>&5 |
| 20141 | ac_status=$? |
| 20142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20143 | (exit $ac_status); }; } && |
| 20144 | { ac_try='test -s conftest$ac_exeext' |
| 20145 | { (case "(($ac_try" in |
| 20146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20147 | *) ac_try_echo=$ac_try;; |
| 20148 | esac |
| 20149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20150 | (eval "$ac_try") 2>&5 |
| 20151 | ac_status=$? |
| 20152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20153 | (exit $ac_status); }; }; then |
| 20154 | eval "$as_ac_var=yes" |
| 20155 | else |
| 20156 | echo "$as_me: failed program was:" >&5 |
| 20157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20158 | |
| 20159 | eval "$as_ac_var=no" |
| 20160 | fi |
| 20161 | |
| 20162 | rm -f core conftest.err conftest.$ac_objext \ |
| 20163 | conftest$ac_exeext conftest.$ac_ext |
| 20164 | fi |
| 20165 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20166 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20167 | echo "${ECHO_T}$ac_res" >&6; } |
| 20168 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20169 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20170 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20171 | _ACEOF |
| 20172 | |
| 20173 | fi |
| 20174 | done |
| 20175 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20176 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 20177 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 20178 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 20179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20180 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20181 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20182 | ac_cv_func_mmap_fixed_mapped=no |
| 20183 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20184 | cat >conftest.$ac_ext <<_ACEOF |
| 20185 | /* confdefs.h. */ |
| 20186 | _ACEOF |
| 20187 | cat confdefs.h >>conftest.$ac_ext |
| 20188 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20189 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20190 | $ac_includes_default |
| 20191 | /* malloc might have been renamed as rpl_malloc. */ |
| 20192 | #undef malloc |
| 20193 | |
| 20194 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 20195 | Here is a matrix of mmap possibilities: |
| 20196 | mmap private not fixed |
| 20197 | mmap private fixed at somewhere currently unmapped |
| 20198 | mmap private fixed at somewhere already mapped |
| 20199 | mmap shared not fixed |
| 20200 | mmap shared fixed at somewhere currently unmapped |
| 20201 | mmap shared fixed at somewhere already mapped |
| 20202 | For private mappings, we should verify that changes cannot be read() |
| 20203 | back from the file, nor mmap's back from the file at a different |
| 20204 | address. (There have been systems where private was not correctly |
| 20205 | implemented like the infamous i386 svr4.0, and systems where the |
| 20206 | VM page cache was not coherent with the file system buffer cache |
| 20207 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 20208 | For shared mappings, we should conversely verify that changes get |
| 20209 | propagated back to all the places they're supposed to be. |
| 20210 | |
| 20211 | Grep wants private fixed already mapped. |
| 20212 | The main things grep needs to know about mmap are: |
| 20213 | * does it exist and is it safe to write into the mmap'd area |
| 20214 | * how to use it (BSD variants) */ |
| 20215 | |
| 20216 | #include <fcntl.h> |
| 20217 | #include <sys/mman.h> |
| 20218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20219 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20220 | char *malloc (); |
| 20221 | #endif |
| 20222 | |
| 20223 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20224 | #if !HAVE_GETPAGESIZE |
| 20225 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20226 | # if !HAVE_SYS_PARAM_H |
| 20227 | # define HAVE_SYS_PARAM_H 1 |
| 20228 | # endif |
| 20229 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20230 | # ifdef _SC_PAGESIZE |
| 20231 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20232 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20233 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20234 | # include <sys/param.h> |
| 20235 | # ifdef EXEC_PAGESIZE |
| 20236 | # define getpagesize() EXEC_PAGESIZE |
| 20237 | # else /* no EXEC_PAGESIZE */ |
| 20238 | # ifdef NBPG |
| 20239 | # define getpagesize() NBPG * CLSIZE |
| 20240 | # ifndef CLSIZE |
| 20241 | # define CLSIZE 1 |
| 20242 | # endif /* no CLSIZE */ |
| 20243 | # else /* no NBPG */ |
| 20244 | # ifdef NBPC |
| 20245 | # define getpagesize() NBPC |
| 20246 | # else /* no NBPC */ |
| 20247 | # ifdef PAGESIZE |
| 20248 | # define getpagesize() PAGESIZE |
| 20249 | # endif /* PAGESIZE */ |
| 20250 | # endif /* no NBPC */ |
| 20251 | # endif /* no NBPG */ |
| 20252 | # endif /* no EXEC_PAGESIZE */ |
| 20253 | # else /* no HAVE_SYS_PARAM_H */ |
| 20254 | # define getpagesize() 8192 /* punt totally */ |
| 20255 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20256 | # endif /* no _SC_PAGESIZE */ |
| 20257 | |
| 20258 | #endif /* no HAVE_GETPAGESIZE */ |
| 20259 | |
| 20260 | int |
| 20261 | main () |
| 20262 | { |
| 20263 | char *data, *data2, *data3; |
| 20264 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20265 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20266 | |
| 20267 | pagesize = getpagesize (); |
| 20268 | |
| 20269 | /* First, make a file with some known garbage in it. */ |
| 20270 | data = (char *) malloc (pagesize); |
| 20271 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20272 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20273 | for (i = 0; i < pagesize; ++i) |
| 20274 | *(data + i) = rand (); |
| 20275 | umask (0); |
| 20276 | fd = creat ("conftest.mmap", 0600); |
| 20277 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20278 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20279 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20280 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20281 | close (fd); |
| 20282 | |
| 20283 | /* Next, try to mmap the file at a fixed address which already has |
| 20284 | something else allocated at it. If we can, also make sure that |
| 20285 | we see the same garbage. */ |
| 20286 | fd = open ("conftest.mmap", O_RDWR); |
| 20287 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20288 | return 1; |
| 20289 | data2 = (char *) malloc (2 * pagesize); |
| 20290 | if (!data2) |
| 20291 | return 1; |
| 20292 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20293 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20294 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20295 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20296 | for (i = 0; i < pagesize; ++i) |
| 20297 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20298 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20299 | |
| 20300 | /* Finally, make sure that changes to the mapped area do not |
| 20301 | percolate back to the file as seen by read(). (This is a bug on |
| 20302 | some variants of i386 svr4.0.) */ |
| 20303 | for (i = 0; i < pagesize; ++i) |
| 20304 | *(data2 + i) = *(data2 + i) + 1; |
| 20305 | data3 = (char *) malloc (pagesize); |
| 20306 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20307 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20308 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20309 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20310 | for (i = 0; i < pagesize; ++i) |
| 20311 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20312 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20313 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20314 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20315 | } |
| 20316 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20317 | rm -f conftest$ac_exeext |
| 20318 | if { (ac_try="$ac_link" |
| 20319 | case "(($ac_try" in |
| 20320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20321 | *) ac_try_echo=$ac_try;; |
| 20322 | esac |
| 20323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20324 | (eval "$ac_link") 2>&5 |
| 20325 | ac_status=$? |
| 20326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20328 | { (case "(($ac_try" in |
| 20329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20330 | *) ac_try_echo=$ac_try;; |
| 20331 | esac |
| 20332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20333 | (eval "$ac_try") 2>&5 |
| 20334 | ac_status=$? |
| 20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20336 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20337 | ac_cv_func_mmap_fixed_mapped=yes |
| 20338 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20339 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20340 | echo "$as_me: failed program was:" >&5 |
| 20341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20342 | |
| 20343 | ( exit $ac_status ) |
| 20344 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20345 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20346 | 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] | 20347 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20348 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20349 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20350 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20351 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20352 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20353 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20354 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20355 | cat >>confdefs.h <<\_ACEOF |
| 20356 | #define HAVE_MMAP 1 |
| 20357 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20358 | |
| 20359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20360 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20361 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20362 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20363 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20364 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20366 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20367 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20368 | ac_cpp='$CPP $CPPFLAGS' |
| 20369 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20370 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20371 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20373 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20374 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20375 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20376 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20377 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20378 | /* confdefs.h. */ |
| 20379 | _ACEOF |
| 20380 | cat confdefs.h >>conftest.$ac_ext |
| 20381 | cat >>conftest.$ac_ext <<_ACEOF |
| 20382 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20383 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20384 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20385 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20386 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20387 | |
| 20388 | int |
| 20389 | main () |
| 20390 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20391 | |
| 20392 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20393 | fd = creat ("foo",0777); |
| 20394 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20395 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20396 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20397 | ; |
| 20398 | return 0; |
| 20399 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20400 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20401 | rm -f conftest$ac_exeext |
| 20402 | if { (ac_try="$ac_link" |
| 20403 | case "(($ac_try" in |
| 20404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20405 | *) ac_try_echo=$ac_try;; |
| 20406 | esac |
| 20407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20408 | (eval "$ac_link") 2>&5 |
| 20409 | ac_status=$? |
| 20410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20411 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20412 | { (case "(($ac_try" in |
| 20413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20414 | *) ac_try_echo=$ac_try;; |
| 20415 | esac |
| 20416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20417 | (eval "$ac_try") 2>&5 |
| 20418 | ac_status=$? |
| 20419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20420 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20421 | ac_cv_func_mmap_file=yes |
| 20422 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20423 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20424 | echo "$as_me: failed program was:" >&5 |
| 20425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20426 | |
| 20427 | ( exit $ac_status ) |
| 20428 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20429 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20430 | 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] | 20431 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20432 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20433 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20434 | ac_ext=c |
| 20435 | ac_cpp='$CPP $CPPFLAGS' |
| 20436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20439 | |
| 20440 | |
| 20441 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20442 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20443 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20444 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20445 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20446 | cat >>confdefs.h <<\_ACEOF |
| 20447 | #define HAVE_MMAP_FILE |
| 20448 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20449 | |
| 20450 | MMAP_FILE=yes |
| 20451 | |
| 20452 | fi |
| 20453 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20454 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20455 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20456 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20458 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20459 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20460 | ac_cv_need_dev_zero_for_mmap=yes |
| 20461 | else |
| 20462 | ac_cv_need_dev_zero_for_mmap=no |
| 20463 | fi |
| 20464 | |
| 20465 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20466 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20467 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20468 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20469 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20470 | cat >>confdefs.h <<\_ACEOF |
| 20471 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20472 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20473 | |
| 20474 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20475 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20476 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20477 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20478 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20479 | 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] | 20480 | fi |
| 20481 | if test "$ac_cv_func_mmap_file" = "no" |
| 20482 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20483 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20484 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20485 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20486 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20487 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20488 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20489 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20490 | ac_ext=cpp |
| 20491 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20492 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20493 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20494 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20495 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20496 | cat >conftest.$ac_ext <<_ACEOF |
| 20497 | /* confdefs.h. */ |
| 20498 | _ACEOF |
| 20499 | cat confdefs.h >>conftest.$ac_ext |
| 20500 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20501 | /* end confdefs.h. */ |
| 20502 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20503 | volatile unsigned long val = 1; |
| 20504 | __sync_synchronize(); |
| 20505 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20506 | __sync_add_and_fetch(&val, 1); |
| 20507 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20508 | return 0; |
| 20509 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20510 | |
| 20511 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20513 | if { (ac_try="$ac_link" |
| 20514 | case "(($ac_try" in |
| 20515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20516 | *) ac_try_echo=$ac_try;; |
| 20517 | esac |
| 20518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20519 | (eval "$ac_link") 2>conftest.er1 |
| 20520 | ac_status=$? |
| 20521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20522 | rm -f conftest.er1 |
| 20523 | cat conftest.err >&5 |
| 20524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20525 | (exit $ac_status); } && |
| 20526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20527 | { (case "(($ac_try" in |
| 20528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20529 | *) ac_try_echo=$ac_try;; |
| 20530 | esac |
| 20531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20532 | (eval "$ac_try") 2>&5 |
| 20533 | ac_status=$? |
| 20534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20535 | (exit $ac_status); }; } && |
| 20536 | { ac_try='test -s conftest$ac_exeext' |
| 20537 | { (case "(($ac_try" in |
| 20538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20539 | *) ac_try_echo=$ac_try;; |
| 20540 | esac |
| 20541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20542 | (eval "$ac_try") 2>&5 |
| 20543 | ac_status=$? |
| 20544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20545 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20546 | ac_ext=c |
| 20547 | ac_cpp='$CPP $CPPFLAGS' |
| 20548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20549 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20550 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20551 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20552 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20553 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20554 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20555 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20556 | #define LLVM_HAS_ATOMICS 1 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20557 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20558 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20559 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20560 | echo "$as_me: failed program was:" >&5 |
| 20561 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20562 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20563 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20564 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20566 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20567 | #define LLVM_HAS_ATOMICS 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20568 | _ACEOF |
| 20569 | |
| 20570 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20571 | 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] | 20572 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20573 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20574 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20575 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20576 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20577 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20578 | 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] | 20579 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20580 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20581 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20583 | else |
| 20584 | ac_ext=c |
| 20585 | ac_cpp='$CPP $CPPFLAGS' |
| 20586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20589 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20590 | cat >conftest.$ac_ext <<_ACEOF |
| 20591 | /* confdefs.h. */ |
| 20592 | _ACEOF |
| 20593 | cat confdefs.h >>conftest.$ac_ext |
| 20594 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20595 | /* end confdefs.h. */ |
| 20596 | #ifndef __x86_64__ |
| 20597 | error: Not x86-64 even if uname says so! |
| 20598 | #endif |
| 20599 | |
| 20600 | int |
| 20601 | main () |
| 20602 | { |
| 20603 | |
| 20604 | ; |
| 20605 | return 0; |
| 20606 | } |
| 20607 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20608 | rm -f conftest.$ac_objext |
| 20609 | if { (ac_try="$ac_compile" |
| 20610 | case "(($ac_try" in |
| 20611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20612 | *) ac_try_echo=$ac_try;; |
| 20613 | esac |
| 20614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20615 | (eval "$ac_compile") 2>conftest.er1 |
| 20616 | ac_status=$? |
| 20617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20618 | rm -f conftest.er1 |
| 20619 | cat conftest.err >&5 |
| 20620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20621 | (exit $ac_status); } && |
| 20622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20623 | { (case "(($ac_try" in |
| 20624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20625 | *) ac_try_echo=$ac_try;; |
| 20626 | esac |
| 20627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20628 | (eval "$ac_try") 2>&5 |
| 20629 | ac_status=$? |
| 20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20631 | (exit $ac_status); }; } && |
| 20632 | { ac_try='test -s conftest.$ac_objext' |
| 20633 | { (case "(($ac_try" in |
| 20634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20635 | *) ac_try_echo=$ac_try;; |
| 20636 | esac |
| 20637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20638 | (eval "$ac_try") 2>&5 |
| 20639 | ac_status=$? |
| 20640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20641 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20642 | llvm_cv_linux_mixed=no |
| 20643 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20644 | echo "$as_me: failed program was:" >&5 |
| 20645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20646 | |
| 20647 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20648 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20649 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20651 | ac_ext=c |
| 20652 | ac_cpp='$CPP $CPPFLAGS' |
| 20653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20656 | |
| 20657 | |
| 20658 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20659 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20660 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20661 | |
| 20662 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20663 | llvm_cv_target_arch="x86" |
| 20664 | ARCH="x86" |
| 20665 | fi |
| 20666 | fi |
| 20667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20668 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20669 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20670 | do |
| 20671 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20672 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20673 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20674 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20676 | else |
| 20677 | cat >conftest.$ac_ext <<_ACEOF |
| 20678 | /* confdefs.h. */ |
| 20679 | _ACEOF |
| 20680 | cat confdefs.h >>conftest.$ac_ext |
| 20681 | cat >>conftest.$ac_ext <<_ACEOF |
| 20682 | /* end confdefs.h. */ |
| 20683 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20684 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20685 | #define $ac_func innocuous_$ac_func |
| 20686 | |
| 20687 | /* System header to define __stub macros and hopefully few prototypes, |
| 20688 | which can conflict with char $ac_func (); below. |
| 20689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20690 | <limits.h> exists even on freestanding compilers. */ |
| 20691 | |
| 20692 | #ifdef __STDC__ |
| 20693 | # include <limits.h> |
| 20694 | #else |
| 20695 | # include <assert.h> |
| 20696 | #endif |
| 20697 | |
| 20698 | #undef $ac_func |
| 20699 | |
| 20700 | /* Override any GCC internal prototype to avoid an error. |
| 20701 | Use char because int might match the return type of a GCC |
| 20702 | builtin and then its argument prototype would still apply. */ |
| 20703 | #ifdef __cplusplus |
| 20704 | extern "C" |
| 20705 | #endif |
| 20706 | char $ac_func (); |
| 20707 | /* The GNU C library defines this for functions which it implements |
| 20708 | to always fail with ENOSYS. Some functions are actually named |
| 20709 | something starting with __ and the normal name is an alias. */ |
| 20710 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20711 | choke me |
| 20712 | #endif |
| 20713 | |
| 20714 | int |
| 20715 | main () |
| 20716 | { |
| 20717 | return $ac_func (); |
| 20718 | ; |
| 20719 | return 0; |
| 20720 | } |
| 20721 | _ACEOF |
| 20722 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20723 | if { (ac_try="$ac_link" |
| 20724 | case "(($ac_try" in |
| 20725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20726 | *) ac_try_echo=$ac_try;; |
| 20727 | esac |
| 20728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20729 | (eval "$ac_link") 2>conftest.er1 |
| 20730 | ac_status=$? |
| 20731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20732 | rm -f conftest.er1 |
| 20733 | cat conftest.err >&5 |
| 20734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20735 | (exit $ac_status); } && |
| 20736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20737 | { (case "(($ac_try" in |
| 20738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20739 | *) ac_try_echo=$ac_try;; |
| 20740 | esac |
| 20741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20742 | (eval "$ac_try") 2>&5 |
| 20743 | ac_status=$? |
| 20744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20745 | (exit $ac_status); }; } && |
| 20746 | { ac_try='test -s conftest$ac_exeext' |
| 20747 | { (case "(($ac_try" in |
| 20748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20749 | *) ac_try_echo=$ac_try;; |
| 20750 | esac |
| 20751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20752 | (eval "$ac_try") 2>&5 |
| 20753 | ac_status=$? |
| 20754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20755 | (exit $ac_status); }; }; then |
| 20756 | eval "$as_ac_var=yes" |
| 20757 | else |
| 20758 | echo "$as_me: failed program was:" >&5 |
| 20759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20760 | |
| 20761 | eval "$as_ac_var=no" |
| 20762 | fi |
| 20763 | |
| 20764 | rm -f core conftest.err conftest.$ac_objext \ |
| 20765 | conftest$ac_exeext conftest.$ac_ext |
| 20766 | fi |
| 20767 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20769 | echo "${ECHO_T}$ac_res" >&6; } |
| 20770 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20771 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20772 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20773 | _ACEOF |
| 20774 | |
| 20775 | fi |
| 20776 | done |
| 20777 | |
| 20778 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20779 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20780 | |
| 20781 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20782 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20783 | |
| 20784 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20785 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20786 | # information into substitutions that will end up in Makefile.config.in |
| 20787 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20788 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20789 | prefix="/usr/local" |
| 20790 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20791 | eval LLVM_PREFIX="${prefix}"; |
| 20792 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20793 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20794 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20795 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20796 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20797 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20798 | eval LLVM_INFODIR="${prefix}/info"; |
| 20799 | eval LLVM_MANDIR="${prefix}/man"; |
| 20800 | LLVM_CONFIGTIME=`date` |
| 20801 | |
| 20802 | |
| 20803 | |
| 20804 | |
| 20805 | |
| 20806 | |
| 20807 | |
| 20808 | |
| 20809 | |
| 20810 | |
| 20811 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20812 | # Place the various directores into the config.h file as #defines so that we |
| 20813 | # can know about the installation paths within LLVM. |
| 20814 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20815 | cat >>confdefs.h <<_ACEOF |
| 20816 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20817 | _ACEOF |
| 20818 | |
| 20819 | |
| 20820 | cat >>confdefs.h <<_ACEOF |
| 20821 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20822 | _ACEOF |
| 20823 | |
| 20824 | |
| 20825 | cat >>confdefs.h <<_ACEOF |
| 20826 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20827 | _ACEOF |
| 20828 | |
| 20829 | |
| 20830 | cat >>confdefs.h <<_ACEOF |
| 20831 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20832 | _ACEOF |
| 20833 | |
| 20834 | |
| 20835 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20836 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20837 | _ACEOF |
| 20838 | |
| 20839 | |
| 20840 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20841 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20842 | _ACEOF |
| 20843 | |
| 20844 | |
| 20845 | cat >>confdefs.h <<_ACEOF |
| 20846 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20847 | _ACEOF |
| 20848 | |
| 20849 | |
| 20850 | cat >>confdefs.h <<_ACEOF |
| 20851 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20852 | _ACEOF |
| 20853 | |
| 20854 | |
| 20855 | cat >>confdefs.h <<_ACEOF |
| 20856 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20857 | _ACEOF |
| 20858 | |
| 20859 | |
| 20860 | cat >>confdefs.h <<_ACEOF |
| 20861 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20862 | _ACEOF |
| 20863 | |
| 20864 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20865 | cat >>confdefs.h <<_ACEOF |
| 20866 | #define LLVM_HOSTTRIPLE "$host" |
| 20867 | _ACEOF |
| 20868 | |
| 20869 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20870 | # Determine which bindings to build. |
| 20871 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20872 | BINDINGS_TO_BUILD="" |
| 20873 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20874 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20875 | fi |
| 20876 | fi |
| 20877 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20878 | |
| 20879 | |
| 20880 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20881 | # other files. |
| 20882 | ALL_BINDINGS=ocaml |
| 20883 | |
| 20884 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20885 | # Do any work necessary to ensure that bindings have what they need. |
| 20886 | binding_prereqs_failed=0 |
| 20887 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20888 | case "$a_binding" in |
| 20889 | ocaml) |
| 20890 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20891 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20892 | 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] | 20893 | binding_prereqs_failed=1 |
| 20894 | fi |
| 20895 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20896 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20897 | 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] | 20898 | binding_prereqs_failed=1 |
| 20899 | fi |
| 20900 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20901 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20902 | 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] | 20903 | fi |
| 20904 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20905 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20906 | |
| 20907 | else |
| 20908 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20909 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20910 | then |
| 20911 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20912 | OCAML_LIBDIR=$ocaml_stdlib |
| 20913 | |
| 20914 | else |
| 20915 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20916 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20917 | |
| 20918 | fi |
| 20919 | fi |
| 20920 | ;; |
| 20921 | esac |
| 20922 | done |
| 20923 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20924 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20925 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20926 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20927 | fi |
| 20928 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20929 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20930 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20931 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20933 | else |
| 20934 | ac_ext=cpp |
| 20935 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20936 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20937 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20938 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20939 | |
| 20940 | oldcxxflags="$CXXFLAGS" |
| 20941 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20942 | cat >conftest.$ac_ext <<_ACEOF |
| 20943 | /* confdefs.h. */ |
| 20944 | _ACEOF |
| 20945 | cat confdefs.h >>conftest.$ac_ext |
| 20946 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20947 | /* end confdefs.h. */ |
| 20948 | |
| 20949 | int |
| 20950 | main () |
| 20951 | { |
| 20952 | |
| 20953 | ; |
| 20954 | return 0; |
| 20955 | } |
| 20956 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20957 | rm -f conftest.$ac_objext |
| 20958 | if { (ac_try="$ac_compile" |
| 20959 | case "(($ac_try" in |
| 20960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20961 | *) ac_try_echo=$ac_try;; |
| 20962 | esac |
| 20963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20964 | (eval "$ac_compile") 2>conftest.er1 |
| 20965 | ac_status=$? |
| 20966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20967 | rm -f conftest.er1 |
| 20968 | cat conftest.err >&5 |
| 20969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20970 | (exit $ac_status); } && |
| 20971 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20972 | { (case "(($ac_try" in |
| 20973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20974 | *) ac_try_echo=$ac_try;; |
| 20975 | esac |
| 20976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20977 | (eval "$ac_try") 2>&5 |
| 20978 | ac_status=$? |
| 20979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20980 | (exit $ac_status); }; } && |
| 20981 | { ac_try='test -s conftest.$ac_objext' |
| 20982 | { (case "(($ac_try" in |
| 20983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20984 | *) ac_try_echo=$ac_try;; |
| 20985 | esac |
| 20986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20987 | (eval "$ac_try") 2>&5 |
| 20988 | ac_status=$? |
| 20989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20990 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20991 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20992 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20993 | echo "$as_me: failed program was:" >&5 |
| 20994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20995 | |
| 20996 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20997 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20998 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21000 | CXXFLAGS="$oldcxxflags" |
| 21001 | ac_ext=c |
| 21002 | ac_cpp='$CPP $CPPFLAGS' |
| 21003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21006 | |
| 21007 | |
| 21008 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21009 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 21010 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21011 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 21012 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 21013 | |
| 21014 | else |
| 21015 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 21016 | |
| 21017 | fi |
| 21018 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21019 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21020 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 21021 | RPATH="-Wl,-R" |
| 21022 | else |
| 21023 | RPATH="-Wl,-rpath" |
| 21024 | fi |
| 21025 | |
| 21026 | |
| 21027 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 21028 | RDYNAMIC="-Wl,-export-dynamic" |
| 21029 | else |
| 21030 | RDYNAMIC="" |
| 21031 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21032 | |
| 21033 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21034 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21035 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21036 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21037 | |
| 21038 | |
| 21039 | |
| 21040 | |
| 21041 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21042 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 21043 | |
| 21044 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 21045 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21046 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 21047 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21048 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 21049 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21050 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21051 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21053 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21054 | |
| 21055 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21056 | ac_config_files="$ac_config_files llvm.spec" |
| 21057 | |
| 21058 | |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21059 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 21060 | |
| 21061 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 21062 | ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg" |
| 21063 | |
| 21064 | fi |
| 21065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21066 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21067 | |
| 21068 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21069 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21071 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21072 | |
| 21073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21074 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21075 | |
| 21076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21077 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21078 | |
| 21079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21080 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21081 | |
| 21082 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21083 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 21084 | |
| 21085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21086 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21087 | |
| 21088 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21089 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21090 | |
| 21091 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21092 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 21093 | |
| 21094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21095 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21096 | |
| 21097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21098 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21099 | |
| 21100 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21101 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21102 | |
| 21103 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21104 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 21105 | |
| 21106 | |
| 21107 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 21108 | |
| 21109 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21110 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21111 | cat >confcache <<\_ACEOF |
| 21112 | # This file is a shell script that caches the results of configure |
| 21113 | # tests run on this system so they can be shared between configure |
| 21114 | # scripts and configure runs, see configure's option --config-cache. |
| 21115 | # It is not useful on other systems. If it contains results you don't |
| 21116 | # want to keep, you may remove or edit it. |
| 21117 | # |
| 21118 | # config.status only pays attention to the cache file if you give it |
| 21119 | # the --recheck option to rerun configure. |
| 21120 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21121 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21122 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21123 | # following values. |
| 21124 | |
| 21125 | _ACEOF |
| 21126 | |
| 21127 | # The following way of writing the cache mishandles newlines in values, |
| 21128 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21129 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21130 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21131 | # 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] | 21132 | ( |
| 21133 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21134 | eval ac_val=\$$ac_var |
| 21135 | case $ac_val in #( |
| 21136 | *${as_nl}*) |
| 21137 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21138 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21139 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21140 | esac |
| 21141 | case $ac_var in #( |
| 21142 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21143 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21144 | esac ;; |
| 21145 | esac |
| 21146 | done |
| 21147 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21148 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21149 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21150 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21151 | # `set' does not quote correctly, so add quotes (double-quote |
| 21152 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21153 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21154 | "s/'/'\\\\''/g; |
| 21155 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21156 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21157 | *) |
| 21158 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21159 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21160 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21161 | esac | |
| 21162 | sort |
| 21163 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21164 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21165 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21166 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21167 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21168 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21169 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21170 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21171 | :end' >>confcache |
| 21172 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21173 | if test -w "$cache_file"; then |
| 21174 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21175 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21176 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21177 | cat confcache >$cache_file |
| 21178 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21179 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21180 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21181 | fi |
| 21182 | fi |
| 21183 | rm -f confcache |
| 21184 | |
| 21185 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21186 | # Let make expand exec_prefix. |
| 21187 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21188 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21189 | DEFS=-DHAVE_CONFIG_H |
| 21190 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21191 | ac_libobjs= |
| 21192 | ac_ltlibobjs= |
| 21193 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21194 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21195 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21196 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21197 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21198 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21199 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21200 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21201 | done |
| 21202 | LIBOBJS=$ac_libobjs |
| 21203 | |
| 21204 | LTLIBOBJS=$ac_ltlibobjs |
| 21205 | |
| 21206 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21207 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21208 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21209 | Usually this means the macro was only invoked conditionally." >&5 |
| 21210 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21211 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21212 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21213 | fi |
| 21214 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21215 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21216 | Usually this means the macro was only invoked conditionally." >&5 |
| 21217 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21218 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21219 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21220 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21221 | |
| 21222 | : ${CONFIG_STATUS=./config.status} |
| 21223 | ac_clean_files_save=$ac_clean_files |
| 21224 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21225 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21226 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21227 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21228 | #! $SHELL |
| 21229 | # Generated by $as_me. |
| 21230 | # Run this file to recreate the current configuration. |
| 21231 | # Compiler output produced by configure, useful for debugging |
| 21232 | # configure, is in config.log if it exists. |
| 21233 | |
| 21234 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21235 | ac_cs_recheck=false |
| 21236 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21237 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21238 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21239 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21240 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21241 | ## --------------------- ## |
| 21242 | ## M4sh Initialization. ## |
| 21243 | ## --------------------- ## |
| 21244 | |
| 21245 | # Be Bourne compatible |
| 21246 | 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] | 21247 | emulate sh |
| 21248 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21249 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21250 | # is contrary to our usage. Disable this feature. |
| 21251 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21252 | setopt NO_GLOB_SUBST |
| 21253 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21254 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21255 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21256 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 21257 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21258 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21259 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21260 | # PATH needs CR |
| 21261 | # Avoid depending upon Character Ranges. |
| 21262 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21263 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21264 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21265 | as_cr_digits='0123456789' |
| 21266 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21267 | |
| 21268 | # The user is always right. |
| 21269 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21270 | echo "#! /bin/sh" >conf$$.sh |
| 21271 | echo "exit 0" >>conf$$.sh |
| 21272 | chmod +x conf$$.sh |
| 21273 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21274 | PATH_SEPARATOR=';' |
| 21275 | else |
| 21276 | PATH_SEPARATOR=: |
| 21277 | fi |
| 21278 | rm -f conf$$.sh |
| 21279 | fi |
| 21280 | |
| 21281 | # Support unset when possible. |
| 21282 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21283 | as_unset=unset |
| 21284 | else |
| 21285 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21286 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21288 | |
| 21289 | # IFS |
| 21290 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21291 | # there to prevent editors from complaining about space-tab. |
| 21292 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21293 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21294 | as_nl=' |
| 21295 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21296 | IFS=" "" $as_nl" |
| 21297 | |
| 21298 | # 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] | 21299 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21300 | *[\\/]* ) as_myself=$0 ;; |
| 21301 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21302 | for as_dir in $PATH |
| 21303 | do |
| 21304 | IFS=$as_save_IFS |
| 21305 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21306 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21307 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21308 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21310 | ;; |
| 21311 | esac |
| 21312 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21313 | # in which case we are not to be found in the path. |
| 21314 | if test "x$as_myself" = x; then |
| 21315 | as_myself=$0 |
| 21316 | fi |
| 21317 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21318 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21319 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21320 | fi |
| 21321 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21322 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21323 | for as_var in ENV MAIL MAILPATH |
| 21324 | 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] | 21325 | done |
| 21326 | PS1='$ ' |
| 21327 | PS2='> ' |
| 21328 | PS4='+ ' |
| 21329 | |
| 21330 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21331 | for as_var in \ |
| 21332 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21333 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21334 | LC_TELEPHONE LC_TIME |
| 21335 | do |
| 21336 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21337 | eval $as_var=C; export $as_var |
| 21338 | else |
| 21339 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21340 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21341 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21342 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21343 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21344 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21345 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21346 | as_expr=expr |
| 21347 | else |
| 21348 | as_expr=false |
| 21349 | fi |
| 21350 | |
| 21351 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21352 | as_basename=basename |
| 21353 | else |
| 21354 | as_basename=false |
| 21355 | fi |
| 21356 | |
| 21357 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21358 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21359 | as_me=`$as_basename -- "$0" || |
| 21360 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21361 | X"$0" : 'X\(//\)$' \| \ |
| 21362 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21363 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21364 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21365 | s//\1/ |
| 21366 | q |
| 21367 | } |
| 21368 | /^X\/\(\/\/\)$/{ |
| 21369 | s//\1/ |
| 21370 | q |
| 21371 | } |
| 21372 | /^X\/\(\/\).*/{ |
| 21373 | s//\1/ |
| 21374 | q |
| 21375 | } |
| 21376 | s/.*/./; q'` |
| 21377 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21378 | # CDPATH. |
| 21379 | $as_unset CDPATH |
| 21380 | |
| 21381 | |
| 21382 | |
| 21383 | as_lineno_1=$LINENO |
| 21384 | as_lineno_2=$LINENO |
| 21385 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21386 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 21387 | |
| 21388 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21389 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21390 | # line-number line after each line using $LINENO; the second 'sed' |
| 21391 | # does the real work. The second script uses 'N' to pair each |
| 21392 | # line-number line with the line containing $LINENO, and appends |
| 21393 | # trailing '-' during substitution so that $LINENO is not a special |
| 21394 | # case at line end. |
| 21395 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21396 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21397 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21398 | sed -n ' |
| 21399 | p |
| 21400 | /[$]LINENO/= |
| 21401 | ' <$as_myself | |
| 21402 | sed ' |
| 21403 | s/[$]LINENO.*/&-/ |
| 21404 | t lineno |
| 21405 | b |
| 21406 | :lineno |
| 21407 | N |
| 21408 | :loop |
| 21409 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 21410 | t loop |
| 21411 | s/-\n.*// |
| 21412 | ' >$as_me.lineno && |
| 21413 | chmod +x "$as_me.lineno" || |
| 21414 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 21415 | { (exit 1); exit 1; }; } |
| 21416 | |
| 21417 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21418 | # (the dirname of $[0] is not the place where we might find the |
| 21419 | # original and so on. Autoconf is especially sensitive to this). |
| 21420 | . "./$as_me.lineno" |
| 21421 | # Exit status is that of the last command. |
| 21422 | exit |
| 21423 | } |
| 21424 | |
| 21425 | |
| 21426 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21427 | as_dirname=dirname |
| 21428 | else |
| 21429 | as_dirname=false |
| 21430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21431 | |
| 21432 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21433 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21434 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21435 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21436 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21437 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21438 | esac;; |
| 21439 | *) |
| 21440 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21441 | esac |
| 21442 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21443 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21444 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21445 | as_expr=expr |
| 21446 | else |
| 21447 | as_expr=false |
| 21448 | fi |
| 21449 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21450 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21451 | if test -d conf$$.dir; then |
| 21452 | rm -f conf$$.dir/conf$$.file |
| 21453 | else |
| 21454 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21455 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21456 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21457 | echo >conf$$.file |
| 21458 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21459 | as_ln_s='ln -s' |
| 21460 | # ... but there are two gotchas: |
| 21461 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21462 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21463 | # In both cases, we have to default to `cp -p'. |
| 21464 | 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] | 21465 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21466 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21467 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21468 | else |
| 21469 | as_ln_s='cp -p' |
| 21470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21471 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21472 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21473 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21474 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21475 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21476 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21477 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21478 | as_mkdir_p=false |
| 21479 | fi |
| 21480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21481 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21482 | # systems may use methods other than mode bits to determine executability. |
| 21483 | cat >conf$$.file <<_ASEOF |
| 21484 | #! /bin/sh |
| 21485 | exit 0 |
| 21486 | _ASEOF |
| 21487 | chmod +x conf$$.file |
| 21488 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21489 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21490 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21491 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21492 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21493 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21494 | |
| 21495 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21496 | 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] | 21497 | |
| 21498 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21499 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21500 | |
| 21501 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21502 | exec 6>&1 |
| 21503 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21504 | # 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] | 21505 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21506 | # values after options handling. |
| 21507 | ac_log=" |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 21508 | This file was extended by llvm $as_me 3.0svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21509 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21510 | |
| 21511 | CONFIG_FILES = $CONFIG_FILES |
| 21512 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21513 | CONFIG_LINKS = $CONFIG_LINKS |
| 21514 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21515 | $ $0 $@ |
| 21516 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21517 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21518 | " |
| 21519 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21520 | _ACEOF |
| 21521 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21522 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21523 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21524 | config_files="$ac_config_files" |
| 21525 | config_headers="$ac_config_headers" |
| 21526 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21528 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21529 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21530 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21531 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21532 | \`$as_me' instantiates files from templates according to the |
| 21533 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21534 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21535 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21536 | |
| 21537 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21538 | -V, --version print version number, then exit |
| 21539 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21540 | -d, --debug don't remove temporary files |
| 21541 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21542 | --file=FILE[:TEMPLATE] |
| 21543 | instantiate the configuration file FILE |
| 21544 | --header=FILE[:TEMPLATE] |
| 21545 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21546 | |
| 21547 | Configuration files: |
| 21548 | $config_files |
| 21549 | |
| 21550 | Configuration headers: |
| 21551 | $config_headers |
| 21552 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21553 | Configuration commands: |
| 21554 | $config_commands |
| 21555 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21556 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21558 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21559 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21560 | ac_cs_version="\\ |
Bill Wendling | ebc2fc1 | 2011-03-08 03:00:02 +0000 | [diff] [blame] | 21561 | llvm config.status 3.0svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21562 | configured by $0, generated by GNU Autoconf 2.60, |
| 21563 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21564 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21565 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21566 | This config.status script is free software; the Free Software Foundation |
| 21567 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21568 | |
| 21569 | ac_pwd='$ac_pwd' |
| 21570 | srcdir='$srcdir' |
| 21571 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21572 | _ACEOF |
| 21573 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21574 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21575 | # If no file are specified by the user, then we need to provide default |
| 21576 | # 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] | 21577 | ac_need_defaults=: |
| 21578 | while test $# != 0 |
| 21579 | do |
| 21580 | case $1 in |
| 21581 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21582 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21583 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21584 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21585 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21586 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21587 | ac_option=$1 |
| 21588 | ac_optarg=$2 |
| 21589 | ac_shift=shift |
| 21590 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21591 | esac |
| 21592 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21593 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21594 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21595 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21596 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21597 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21598 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21599 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21600 | debug=: ;; |
| 21601 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21602 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21603 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21604 | ac_need_defaults=false;; |
| 21605 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21606 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21607 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21608 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21609 | --he | --h) |
| 21610 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21611 | { echo "$as_me: error: ambiguous option: $1 |
| 21612 | Try \`$0 --help' for more information." >&2 |
| 21613 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21614 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21615 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21616 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21617 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21618 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21619 | |
| 21620 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21621 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21622 | Try \`$0 --help' for more information." >&2 |
| 21623 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21624 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21625 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21626 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21627 | |
| 21628 | esac |
| 21629 | shift |
| 21630 | done |
| 21631 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21632 | ac_configure_extra_args= |
| 21633 | |
| 21634 | if $ac_cs_silent; then |
| 21635 | exec 6>/dev/null |
| 21636 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21637 | fi |
| 21638 | |
| 21639 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21640 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21641 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21642 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21643 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21644 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21645 | 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] | 21646 | fi |
| 21647 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21648 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21649 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21650 | exec 5>>config.log |
| 21651 | { |
| 21652 | echo |
| 21653 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21654 | ## Running $as_me. ## |
| 21655 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21656 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21657 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21659 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21660 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21661 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21662 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21663 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21664 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21665 | |
| 21666 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21668 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21669 | |
| 21670 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21671 | for ac_config_target in $ac_config_targets |
| 21672 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21673 | case $ac_config_target in |
| 21674 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21675 | "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21676 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21677 | "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] | 21678 | "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] | 21679 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21680 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21681 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21682 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21683 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 21684 | "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21685 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 21686 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21687 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21688 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21689 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21690 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21691 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21692 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21693 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21694 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21695 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21696 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21697 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21698 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21699 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21700 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21701 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21702 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21703 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21704 | esac |
| 21705 | done |
| 21706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21707 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21708 | # If the user did not use the arguments to specify the items to instantiate, |
| 21709 | # then the envvar interface is used. Set only those that are not. |
| 21710 | # We use the long form for the default assignment because of an extremely |
| 21711 | # bizarre bug on SunOS 4.1.3. |
| 21712 | if $ac_need_defaults; then |
| 21713 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21714 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21715 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21716 | fi |
| 21717 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21718 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21719 | # 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] | 21720 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21721 | # Hook for its removal unless debugging. |
| 21722 | # Note that there is a small window in which the directory will not be cleaned: |
| 21723 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21724 | $debug || |
| 21725 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21726 | tmp= |
| 21727 | trap 'exit_status=$? |
| 21728 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21729 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21730 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21731 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21732 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21734 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21735 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21736 | test -n "$tmp" && test -d "$tmp" |
| 21737 | } || |
| 21738 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21739 | tmp=./conf$$-$RANDOM |
| 21740 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21741 | } || |
| 21742 | { |
| 21743 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21744 | { (exit 1); exit 1; } |
| 21745 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21746 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21747 | # |
| 21748 | # Set up the sed scripts for CONFIG_FILES section. |
| 21749 | # |
| 21750 | |
| 21751 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21752 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21753 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21754 | |
| 21755 | _ACEOF |
| 21756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21757 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21759 | ac_delim='%!_!# ' |
| 21760 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21761 | cat >conf$$subs.sed <<_ACEOF |
| 21762 | SHELL!$SHELL$ac_delim |
| 21763 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21764 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21765 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21766 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21767 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21768 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21769 | exec_prefix!$exec_prefix$ac_delim |
| 21770 | prefix!$prefix$ac_delim |
| 21771 | program_transform_name!$program_transform_name$ac_delim |
| 21772 | bindir!$bindir$ac_delim |
| 21773 | sbindir!$sbindir$ac_delim |
| 21774 | libexecdir!$libexecdir$ac_delim |
| 21775 | datarootdir!$datarootdir$ac_delim |
| 21776 | datadir!$datadir$ac_delim |
| 21777 | sysconfdir!$sysconfdir$ac_delim |
| 21778 | sharedstatedir!$sharedstatedir$ac_delim |
| 21779 | localstatedir!$localstatedir$ac_delim |
| 21780 | includedir!$includedir$ac_delim |
| 21781 | oldincludedir!$oldincludedir$ac_delim |
| 21782 | docdir!$docdir$ac_delim |
| 21783 | infodir!$infodir$ac_delim |
| 21784 | htmldir!$htmldir$ac_delim |
| 21785 | dvidir!$dvidir$ac_delim |
| 21786 | pdfdir!$pdfdir$ac_delim |
| 21787 | psdir!$psdir$ac_delim |
| 21788 | libdir!$libdir$ac_delim |
| 21789 | localedir!$localedir$ac_delim |
| 21790 | mandir!$mandir$ac_delim |
| 21791 | DEFS!$DEFS$ac_delim |
| 21792 | ECHO_C!$ECHO_C$ac_delim |
| 21793 | ECHO_N!$ECHO_N$ac_delim |
| 21794 | ECHO_T!$ECHO_T$ac_delim |
| 21795 | LIBS!$LIBS$ac_delim |
| 21796 | build_alias!$build_alias$ac_delim |
| 21797 | host_alias!$host_alias$ac_delim |
| 21798 | target_alias!$target_alias$ac_delim |
| 21799 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21800 | CC!$CC$ac_delim |
| 21801 | CFLAGS!$CFLAGS$ac_delim |
| 21802 | LDFLAGS!$LDFLAGS$ac_delim |
| 21803 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21804 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21805 | EXEEXT!$EXEEXT$ac_delim |
| 21806 | OBJEXT!$OBJEXT$ac_delim |
| 21807 | CXX!$CXX$ac_delim |
| 21808 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21809 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21810 | CPP!$CPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21811 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 21812 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 21813 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21814 | build!$build$ac_delim |
| 21815 | build_cpu!$build_cpu$ac_delim |
| 21816 | build_vendor!$build_vendor$ac_delim |
| 21817 | build_os!$build_os$ac_delim |
| 21818 | host!$host$ac_delim |
| 21819 | host_cpu!$host_cpu$ac_delim |
| 21820 | host_vendor!$host_vendor$ac_delim |
| 21821 | host_os!$host_os$ac_delim |
| 21822 | target!$target$ac_delim |
| 21823 | target_cpu!$target_cpu$ac_delim |
| 21824 | target_vendor!$target_vendor$ac_delim |
| 21825 | target_os!$target_os$ac_delim |
| 21826 | OS!$OS$ac_delim |
| 21827 | HOST_OS!$HOST_OS$ac_delim |
| 21828 | TARGET_OS!$TARGET_OS$ac_delim |
| 21829 | LINKALL!$LINKALL$ac_delim |
| 21830 | NOLINKALL!$NOLINKALL$ac_delim |
| 21831 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21832 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21833 | ARCH!$ARCH$ac_delim |
| 21834 | ENDIAN!$ENDIAN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21835 | GREP!$GREP$ac_delim |
| 21836 | EGREP!$EGREP$ac_delim |
| 21837 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21838 | BUILD_CC!$BUILD_CC$ac_delim |
| 21839 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21840 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21841 | CVSBUILD!$CVSBUILD$ac_delim |
| 21842 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21843 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21844 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21845 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21846 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21847 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21848 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21849 | JIT!$JIT$ac_delim |
| 21850 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21851 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21852 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 21853 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21854 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21855 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21856 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21857 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21858 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21859 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21860 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21861 | 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] | 21862 | break |
| 21863 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21864 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21865 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21866 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21867 | else |
| 21868 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21869 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21870 | done |
| 21871 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21872 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21873 | if test -n "$ac_eof"; then |
| 21874 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21875 | ac_eof=`expr $ac_eof + 1` |
| 21876 | fi |
| 21877 | |
| 21878 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21879 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21880 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21881 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21882 | sed ' |
| 21883 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21884 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21885 | :n |
| 21886 | t n |
| 21887 | s/'"$ac_delim"'$/,g/; t |
| 21888 | s/$/\\/; p |
| 21889 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21890 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21891 | rm -f conf$$subs.sed |
| 21892 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21893 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21894 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21895 | |
| 21896 | |
| 21897 | ac_delim='%!_!# ' |
| 21898 | for ac_last_try in false false false false false :; do |
| 21899 | cat >conf$$subs.sed <<_ACEOF |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21900 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21901 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21902 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21903 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21904 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21905 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21906 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21907 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 21908 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21909 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21910 | NM!$NM$ac_delim |
| 21911 | ifGNUmake!$ifGNUmake$ac_delim |
| 21912 | LN_S!$LN_S$ac_delim |
| 21913 | CMP!$CMP$ac_delim |
| 21914 | CP!$CP$ac_delim |
| 21915 | DATE!$DATE$ac_delim |
| 21916 | FIND!$FIND$ac_delim |
| 21917 | MKDIR!$MKDIR$ac_delim |
| 21918 | MV!$MV$ac_delim |
| 21919 | RANLIB!$RANLIB$ac_delim |
| 21920 | AR!$AR$ac_delim |
| 21921 | RM!$RM$ac_delim |
| 21922 | SED!$SED$ac_delim |
| 21923 | TAR!$TAR$ac_delim |
| 21924 | BINPWD!$BINPWD$ac_delim |
| 21925 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21926 | DOT!$DOT$ac_delim |
| 21927 | FDP!$FDP$ac_delim |
| 21928 | NEATO!$NEATO$ac_delim |
| 21929 | TWOPI!$TWOPI$ac_delim |
| 21930 | CIRCO!$CIRCO$ac_delim |
| 21931 | GV!$GV$ac_delim |
| 21932 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 21933 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21934 | PERL!$PERL$ac_delim |
| 21935 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21936 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21937 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21938 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21939 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21940 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21941 | DOXYGEN!$DOXYGEN$ac_delim |
| 21942 | GROFF!$GROFF$ac_delim |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 21943 | GZIPBIN!$GZIPBIN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21944 | POD2HTML!$POD2HTML$ac_delim |
| 21945 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21946 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21947 | RUNTEST!$RUNTEST$ac_delim |
| 21948 | TCLSH!$TCLSH$ac_delim |
| 21949 | ZIP!$ZIP$ac_delim |
| 21950 | OCAMLC!$OCAMLC$ac_delim |
| 21951 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21952 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21953 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21954 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21955 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21956 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21957 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21958 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21959 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21960 | LIBADD_DL!$LIBADD_DL$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21961 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21962 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21963 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21964 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21965 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21966 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21967 | MMAP_FILE!$MMAP_FILE$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21968 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21969 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21970 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21971 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21972 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21973 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21974 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21975 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21976 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21977 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21978 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21979 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21980 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21981 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 21982 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21983 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21984 | RPATH!$RPATH$ac_delim |
| 21985 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21986 | LIBOBJS!$LIBOBJS$ac_delim |
| 21987 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21988 | _ACEOF |
| 21989 | |
Eric Christopher | 73ec952 | 2011-09-21 00:53:42 +0000 | [diff] [blame] | 21990 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21991 | break |
| 21992 | elif $ac_last_try; then |
| 21993 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21994 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21995 | { (exit 1); exit 1; }; } |
| 21996 | else |
| 21997 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21998 | fi |
| 21999 | done |
| 22000 | |
| 22001 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22002 | if test -n "$ac_eof"; then |
| 22003 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22004 | ac_eof=`expr $ac_eof + 1` |
| 22005 | fi |
| 22006 | |
| 22007 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22008 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22009 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 22010 | _ACEOF |
| 22011 | sed ' |
| 22012 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22013 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22014 | :n |
| 22015 | t n |
| 22016 | s/'"$ac_delim"'$/,g/; t |
| 22017 | s/$/\\/; p |
| 22018 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22019 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22020 | rm -f conf$$subs.sed |
| 22021 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22022 | :end |
| 22023 | s/|#_!!_#|//g |
| 22024 | CEOF$ac_eof |
| 22025 | _ACEOF |
| 22026 | |
| 22027 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22028 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22029 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22030 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22031 | # (actually we leave an empty line to preserve line numbers). |
| 22032 | if test "x$srcdir" = x.; then |
| 22033 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22034 | s/:*\$(srcdir):*/:/ |
| 22035 | s/:*\${srcdir}:*/:/ |
| 22036 | s/:*@srcdir@:*/:/ |
| 22037 | s/^\([^=]*=[ ]*\):*/\1/ |
| 22038 | s/:*$// |
| 22039 | s/^[^=]*=[ ]*$// |
| 22040 | }' |
| 22041 | fi |
| 22042 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22043 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22044 | fi # test -n "$CONFIG_FILES" |
| 22045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22046 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22047 | 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] | 22048 | do |
| 22049 | case $ac_tag in |
| 22050 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 22051 | esac |
| 22052 | case $ac_mode$ac_tag in |
| 22053 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22054 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 22055 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 22056 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22057 | :[FH]-) ac_tag=-:-;; |
| 22058 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 22059 | esac |
| 22060 | ac_save_IFS=$IFS |
| 22061 | IFS=: |
| 22062 | set x $ac_tag |
| 22063 | IFS=$ac_save_IFS |
| 22064 | shift |
| 22065 | ac_file=$1 |
| 22066 | shift |
| 22067 | |
| 22068 | case $ac_mode in |
| 22069 | :L) ac_source=$1;; |
| 22070 | :[FH]) |
| 22071 | ac_file_inputs= |
| 22072 | for ac_f |
| 22073 | do |
| 22074 | case $ac_f in |
| 22075 | -) ac_f="$tmp/stdin";; |
| 22076 | *) # Look for the file first in the build tree, then in the source tree |
| 22077 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 22078 | # because $ac_f cannot contain `:'. |
| 22079 | test -f "$ac_f" || |
| 22080 | case $ac_f in |
| 22081 | [\\/$]*) false;; |
| 22082 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 22083 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22084 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 22085 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 22086 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22087 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22088 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22089 | done |
| 22090 | |
| 22091 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22092 | # use $as_me), people would be surprised to read: |
| 22093 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22094 | configure_input="Generated from "`IFS=: |
| 22095 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22096 | if test x"$ac_file" != x-; then |
| 22097 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22098 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22099 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22100 | fi |
| 22101 | |
| 22102 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22103 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22104 | esac |
| 22105 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22106 | esac |
| 22107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22108 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22109 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22110 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22111 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22112 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22113 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22115 | s//\1/ |
| 22116 | q |
| 22117 | } |
| 22118 | /^X\(\/\/\)[^/].*/{ |
| 22119 | s//\1/ |
| 22120 | q |
| 22121 | } |
| 22122 | /^X\(\/\/\)$/{ |
| 22123 | s//\1/ |
| 22124 | q |
| 22125 | } |
| 22126 | /^X\(\/\).*/{ |
| 22127 | s//\1/ |
| 22128 | q |
| 22129 | } |
| 22130 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22131 | { as_dir="$ac_dir" |
| 22132 | case $as_dir in #( |
| 22133 | -*) as_dir=./$as_dir;; |
| 22134 | esac |
| 22135 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22136 | as_dirs= |
| 22137 | while :; do |
| 22138 | case $as_dir in #( |
| 22139 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22140 | *) as_qdir=$as_dir;; |
| 22141 | esac |
| 22142 | as_dirs="'$as_qdir' $as_dirs" |
| 22143 | as_dir=`$as_dirname -- "$as_dir" || |
| 22144 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22145 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22146 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22147 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22148 | echo X"$as_dir" | |
| 22149 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22150 | s//\1/ |
| 22151 | q |
| 22152 | } |
| 22153 | /^X\(\/\/\)[^/].*/{ |
| 22154 | s//\1/ |
| 22155 | q |
| 22156 | } |
| 22157 | /^X\(\/\/\)$/{ |
| 22158 | s//\1/ |
| 22159 | q |
| 22160 | } |
| 22161 | /^X\(\/\).*/{ |
| 22162 | s//\1/ |
| 22163 | q |
| 22164 | } |
| 22165 | s/.*/./; q'` |
| 22166 | test -d "$as_dir" && break |
| 22167 | done |
| 22168 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22169 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22170 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22171 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22172 | ac_builddir=. |
| 22173 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22174 | case "$ac_dir" in |
| 22175 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22176 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22177 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22178 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22179 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22180 | case $ac_top_builddir_sub in |
| 22181 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22182 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22183 | esac ;; |
| 22184 | esac |
| 22185 | ac_abs_top_builddir=$ac_pwd |
| 22186 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22187 | # for backward compatibility: |
| 22188 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22189 | |
| 22190 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22191 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22192 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22193 | ac_top_srcdir=$ac_top_builddir_sub |
| 22194 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22195 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22196 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22197 | ac_top_srcdir=$srcdir |
| 22198 | ac_abs_top_srcdir=$srcdir ;; |
| 22199 | *) # Relative name. |
| 22200 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22201 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22202 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22203 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22204 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22205 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22207 | case $ac_mode in |
| 22208 | :F) |
| 22209 | # |
| 22210 | # CONFIG_FILE |
| 22211 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22212 | |
| 22213 | case $INSTALL in |
| 22214 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22215 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22216 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22217 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22219 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22220 | # If the template does not know about datarootdir, expand it. |
| 22221 | # FIXME: This hack should be removed a few years after 2.60. |
| 22222 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22223 | |
| 22224 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22225 | p |
| 22226 | q |
| 22227 | } |
| 22228 | /@datadir@/p |
| 22229 | /@docdir@/p |
| 22230 | /@infodir@/p |
| 22231 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22232 | /@mandir@/p |
| 22233 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22234 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22235 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22236 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22237 | 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] | 22238 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22239 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22240 | ac_datarootdir_hack=' |
| 22241 | s&@datadir@&$datadir&g |
| 22242 | s&@docdir@&$docdir&g |
| 22243 | s&@infodir@&$infodir&g |
| 22244 | s&@localedir@&$localedir&g |
| 22245 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22246 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22247 | esac |
| 22248 | _ACEOF |
| 22249 | |
| 22250 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22251 | # Shell code in configure.ac might set extrasub. |
| 22252 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22253 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22254 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22255 | $extrasub |
| 22256 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22257 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22258 | :t |
| 22259 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22260 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22261 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22262 | s&@srcdir@&$ac_srcdir&;t t |
| 22263 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22264 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22265 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22266 | s&@builddir@&$ac_builddir&;t t |
| 22267 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22268 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22269 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22270 | $ac_datarootdir_hack |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22271 | " $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] | 22272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22273 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22274 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22275 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22276 | { 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] | 22277 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22278 | 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] | 22279 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22281 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22282 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22283 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22284 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 22285 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22286 | ;; |
| 22287 | :H) |
| 22288 | # |
| 22289 | # CONFIG_HEADER |
| 22290 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22291 | _ACEOF |
| 22292 | |
| 22293 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22294 | # substitutes the proper values into config.h.in to produce config.h. |
| 22295 | rm -f conftest.defines conftest.tail |
| 22296 | # First, append a space to every undef/define line, to ease matching. |
| 22297 | echo 's/$/ /' >conftest.defines |
| 22298 | # Then, protect against being on the right side of a sed subst, or in |
| 22299 | # an unquoted here document, in config.status. If some macros were |
| 22300 | # called several times there might be several #defines for the same |
| 22301 | # symbol, which is useless. But do not sort them, since the last |
| 22302 | # AC_DEFINE must be honored. |
| 22303 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22304 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22305 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22306 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22307 | # just an empty string. |
| 22308 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 22309 | ac_dB='\\)[ (].*,\\1define\\2' |
| 22310 | ac_dC=' ' |
| 22311 | ac_dD=' ,' |
| 22312 | |
| 22313 | uniq confdefs.h | |
| 22314 | sed -n ' |
| 22315 | t rset |
| 22316 | :rset |
| 22317 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22318 | t ok |
| 22319 | d |
| 22320 | :ok |
| 22321 | s/[\\&,]/\\&/g |
| 22322 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 22323 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 22324 | ' >>conftest.defines |
| 22325 | |
| 22326 | # Remove the space that was appended to ease matching. |
| 22327 | # Then replace #undef with comments. This is necessary, for |
| 22328 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22329 | # on some systems where configure will not decide to define it. |
| 22330 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22331 | echo 's/ $// |
| 22332 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 22333 | |
| 22334 | # Break up conftest.defines: |
| 22335 | ac_max_sed_lines=50 |
| 22336 | |
| 22337 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22338 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22339 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22340 | # et cetera. |
| 22341 | ac_in='$ac_file_inputs' |
| 22342 | ac_out='"$tmp/out1"' |
| 22343 | ac_nxt='"$tmp/out2"' |
| 22344 | |
| 22345 | while : |
| 22346 | do |
| 22347 | # Write a here document: |
| 22348 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22349 | # First, check the format of the line: |
| 22350 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 22351 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 22352 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 22353 | b |
| 22354 | :def |
| 22355 | _ACEOF |
| 22356 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 22357 | echo 'CEOF |
| 22358 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22359 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22360 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22361 | grep . conftest.tail >/dev/null || break |
| 22362 | rm -f conftest.defines |
| 22363 | mv conftest.tail conftest.defines |
| 22364 | done |
| 22365 | rm -f conftest.defines conftest.tail |
| 22366 | |
| 22367 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 22368 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22369 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22370 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22371 | cat "$ac_result" >>"$tmp/config.h" |
| 22372 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 22373 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22374 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22375 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22376 | rm -f $ac_file |
| 22377 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22378 | fi |
| 22379 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22380 | echo "/* $configure_input */" |
| 22381 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22382 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22383 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22384 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22385 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22386 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22387 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22388 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22389 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22390 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22391 | |
| 22392 | case $ac_file$ac_mode in |
| 22393 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22394 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22395 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22396 | ${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] | 22397 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22398 | ${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] | 22399 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22400 | ${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] | 22401 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22402 | ${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] | 22403 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22404 | ${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] | 22405 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22406 | ${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] | 22407 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22408 | ${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] | 22409 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22410 | ${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] | 22411 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22412 | ${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] | 22413 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22414 | ${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] | 22415 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22416 | ${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] | 22417 | "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] | 22418 | ${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] | 22419 | |
| 22420 | esac |
| 22421 | done # for ac_tag |
| 22422 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22423 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22424 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22425 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22426 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22427 | ac_clean_files=$ac_clean_files_save |
| 22428 | |
| 22429 | |
| 22430 | # configure is writing to config.log, and then calls config.status. |
| 22431 | # config.status does its own redirection, appending to config.log. |
| 22432 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22433 | # by configure, so config.status won't be able to write to it; its |
| 22434 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22435 | # effectively closing config.log, so it can be properly (re)opened and |
| 22436 | # appended to by config.status. When coming back to configure, we |
| 22437 | # need to make the FD available again. |
| 22438 | if test "$no_create" != yes; then |
| 22439 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22440 | ac_config_status_args= |
| 22441 | test "$silent" = yes && |
| 22442 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22443 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22444 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22445 | exec 5>>config.log |
| 22446 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22447 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22448 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22449 | fi |
| 22450 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22451 | # |
| 22452 | # CONFIG_SUBDIRS section. |
| 22453 | # |
| 22454 | if test "$no_recursion" != yes; then |
| 22455 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22456 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22457 | ac_sub_configure_args= |
| 22458 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22459 | eval "set x $ac_configure_args" |
| 22460 | shift |
| 22461 | for ac_arg |
| 22462 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22463 | if test -n "$ac_prev"; then |
| 22464 | ac_prev= |
| 22465 | continue |
| 22466 | fi |
| 22467 | case $ac_arg in |
| 22468 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22469 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22470 | ac_prev=cache_file ;; |
| 22471 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22472 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22473 | | --c=*) |
| 22474 | ;; |
| 22475 | --config-cache | -C) |
| 22476 | ;; |
| 22477 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22478 | ac_prev=srcdir ;; |
| 22479 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22480 | ;; |
| 22481 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22482 | ac_prev=prefix ;; |
| 22483 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22484 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22485 | *) |
| 22486 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22487 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22488 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22489 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22490 | esac |
| 22491 | done |
| 22492 | |
| 22493 | # Always prepend --prefix to ensure using the same prefix |
| 22494 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22495 | ac_arg="--prefix=$prefix" |
| 22496 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22497 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22498 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22499 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22500 | |
| 22501 | ac_popdir=`pwd` |
| 22502 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22503 | |
| 22504 | # Do not complain, so a configure script can configure whichever |
| 22505 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22506 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22508 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22509 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22510 | echo "$ac_msg" >&6 |
| 22511 | { as_dir="$ac_dir" |
| 22512 | case $as_dir in #( |
| 22513 | -*) as_dir=./$as_dir;; |
| 22514 | esac |
| 22515 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22516 | as_dirs= |
| 22517 | while :; do |
| 22518 | case $as_dir in #( |
| 22519 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22520 | *) as_qdir=$as_dir;; |
| 22521 | esac |
| 22522 | as_dirs="'$as_qdir' $as_dirs" |
| 22523 | as_dir=`$as_dirname -- "$as_dir" || |
| 22524 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22525 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22526 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22527 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22528 | echo X"$as_dir" | |
| 22529 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22530 | s//\1/ |
| 22531 | q |
| 22532 | } |
| 22533 | /^X\(\/\/\)[^/].*/{ |
| 22534 | s//\1/ |
| 22535 | q |
| 22536 | } |
| 22537 | /^X\(\/\/\)$/{ |
| 22538 | s//\1/ |
| 22539 | q |
| 22540 | } |
| 22541 | /^X\(\/\).*/{ |
| 22542 | s//\1/ |
| 22543 | q |
| 22544 | } |
| 22545 | s/.*/./; q'` |
| 22546 | test -d "$as_dir" && break |
| 22547 | done |
| 22548 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22549 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22550 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22551 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22552 | ac_builddir=. |
| 22553 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22554 | case "$ac_dir" in |
| 22555 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22556 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22557 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22558 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22559 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22560 | case $ac_top_builddir_sub in |
| 22561 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22562 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22563 | esac ;; |
| 22564 | esac |
| 22565 | ac_abs_top_builddir=$ac_pwd |
| 22566 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22567 | # for backward compatibility: |
| 22568 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22569 | |
| 22570 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22571 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22572 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22573 | ac_top_srcdir=$ac_top_builddir_sub |
| 22574 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22575 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22576 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22577 | ac_top_srcdir=$srcdir |
| 22578 | ac_abs_top_srcdir=$srcdir ;; |
| 22579 | *) # Relative name. |
| 22580 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22581 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22582 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22583 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22584 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22585 | |
| 22586 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22587 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22588 | |
| 22589 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22590 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22591 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22592 | elif test -f "$ac_srcdir/configure"; then |
| 22593 | ac_sub_configure=$ac_srcdir/configure |
| 22594 | elif test -f "$ac_srcdir/configure.in"; then |
| 22595 | # This should be Cygnus configure. |
| 22596 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22597 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22598 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22599 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22600 | ac_sub_configure= |
| 22601 | fi |
| 22602 | |
| 22603 | # The recursion is here. |
| 22604 | if test -n "$ac_sub_configure"; then |
| 22605 | # Make the cache file name correct relative to the subdirectory. |
| 22606 | case $cache_file in |
| 22607 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22608 | *) # Relative name. |
| 22609 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22610 | esac |
| 22611 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22612 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22613 | 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] | 22614 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22615 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22616 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22617 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22618 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22619 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22620 | fi |
| 22621 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22622 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22623 | done |
| 22624 | fi |
| 22625 | |