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. |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for LLVM 3.1svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 5 | # Report bugs to <http://llvm.org/bugs/>. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 | # |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2012 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. |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='LLVM' |
| 563 | PACKAGE_TARNAME='llvm' |
Bill Wendling | de7ec8b | 2011-10-15 02:09:17 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.1svn' |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 565 | PACKAGE_STRING='LLVM 3.1svn' |
| 566 | PACKAGE_BUGREPORT='http://llvm.org/bugs/' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 685 | ENABLE_LIBCPP |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 686 | ENABLE_OPTIMIZED |
| 687 | ENABLE_PROFILING |
| 688 | DISABLE_ASSERTIONS |
| 689 | ENABLE_EXPENSIVE_CHECKS |
| 690 | EXPENSIVE_CHECKS |
| 691 | DEBUG_RUNTIME |
| 692 | DEBUG_SYMBOLS |
| 693 | JIT |
| 694 | TARGET_HAS_JIT |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 695 | ENABLE_DOCS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 696 | ENABLE_DOXYGEN |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 697 | LLVM_ENABLE_THREADS |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 698 | ENABLE_PTHREADS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 699 | ENABLE_PIC |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 700 | ENABLE_SHARED |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 701 | ENABLE_EMBED_STDCXX |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 702 | ENABLE_TIMESTAMPS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 703 | TARGETS_TO_BUILD |
| 704 | LLVM_ENUM_TARGETS |
| 705 | LLVM_ENUM_ASM_PRINTERS |
| 706 | LLVM_ENUM_ASM_PARSERS |
| 707 | LLVM_ENUM_DISASSEMBLERS |
| 708 | ENABLE_CBE_PRINTF_A |
| 709 | OPTIMIZE_OPTION |
| 710 | EXTRA_OPTIONS |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 711 | EXTRA_LD_OPTIONS |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 712 | CLANG_SRC_ROOT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 713 | BINUTILS_INCDIR |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 714 | INTERNAL_PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 715 | NM |
| 716 | ifGNUmake |
| 717 | LN_S |
| 718 | CMP |
| 719 | CP |
| 720 | DATE |
| 721 | FIND |
| 722 | MKDIR |
| 723 | MV |
| 724 | RANLIB |
| 725 | AR |
| 726 | RM |
| 727 | SED |
| 728 | TAR |
| 729 | BINPWD |
| 730 | GRAPHVIZ |
| 731 | DOT |
| 732 | FDP |
| 733 | NEATO |
| 734 | TWOPI |
| 735 | CIRCO |
| 736 | GV |
| 737 | DOTTY |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 738 | XDOT_PY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 739 | PERL |
| 740 | HAVE_PERL |
| 741 | INSTALL_PROGRAM |
| 742 | INSTALL_SCRIPT |
| 743 | INSTALL_DATA |
| 744 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 745 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 746 | DOXYGEN |
| 747 | GROFF |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 748 | GZIPBIN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 749 | POD2HTML |
| 750 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 751 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 752 | RUNTEST |
| 753 | TCLSH |
| 754 | ZIP |
| 755 | OCAMLC |
| 756 | OCAMLOPT |
| 757 | OCAMLDEP |
| 758 | OCAMLDOC |
| 759 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 760 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 761 | INSTALL_LTDL_TRUE |
| 762 | INSTALL_LTDL_FALSE |
| 763 | CONVENIENCE_LTDL_TRUE |
| 764 | CONVENIENCE_LTDL_FALSE |
| 765 | LIBADD_DL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 766 | NO_VARIADIC_MACROS |
| 767 | NO_MISSING_FIELD_INITIALIZERS |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame^] | 768 | COVERED_SWITCH_DEFAULT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 769 | USE_UDIS86 |
| 770 | USE_OPROFILE |
| 771 | HAVE_PTHREAD |
| 772 | HUGE_VAL_SANITY |
| 773 | MMAP_FILE |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 774 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 775 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 776 | LLVM_PREFIX |
| 777 | LLVM_BINDIR |
| 778 | LLVM_LIBDIR |
| 779 | LLVM_DATADIR |
| 780 | LLVM_DOCSDIR |
| 781 | LLVM_ETCDIR |
| 782 | LLVM_INCLUDEDIR |
| 783 | LLVM_INFODIR |
| 784 | LLVM_MANDIR |
| 785 | LLVM_CONFIGTIME |
| 786 | BINDINGS_TO_BUILD |
| 787 | ALL_BINDINGS |
| 788 | OCAML_LIBDIR |
| 789 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 790 | RPATH |
| 791 | RDYNAMIC |
| 792 | LIBOBJS |
| 793 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 794 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 795 | ac_precious_vars='build_alias |
| 796 | host_alias |
| 797 | target_alias |
| 798 | CC |
| 799 | CFLAGS |
| 800 | LDFLAGS |
| 801 | CPPFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 802 | CXX |
| 803 | CXXFLAGS |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 804 | CCC |
| 805 | CPP' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 806 | ac_subdirs_all='projects/llvm-gcc |
| 807 | projects/test-suite |
| 808 | projects/llvm-test |
| 809 | projects/poolalloc |
| 810 | projects/llvm-poolalloc |
| 811 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 812 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 813 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 814 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 815 | projects/llvm-java |
| 816 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 817 | projects/safecode |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 818 | projects/llvm-kernel |
| 819 | tools/polly' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 820 | |
| 821 | # Initialize some variables set by options. |
| 822 | ac_init_help= |
| 823 | ac_init_version=false |
| 824 | # The variables have the same names as the options, with |
| 825 | # dashes changed to underlines. |
| 826 | cache_file=/dev/null |
| 827 | exec_prefix=NONE |
| 828 | no_create= |
| 829 | no_recursion= |
| 830 | prefix=NONE |
| 831 | program_prefix=NONE |
| 832 | program_suffix=NONE |
| 833 | program_transform_name=s,x,x, |
| 834 | silent= |
| 835 | site= |
| 836 | srcdir= |
| 837 | verbose= |
| 838 | x_includes=NONE |
| 839 | x_libraries=NONE |
| 840 | |
| 841 | # Installation directory options. |
| 842 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 843 | # and all the variables that are supposed to be based on exec_prefix |
| 844 | # by default will actually change. |
| 845 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 847 | bindir='${exec_prefix}/bin' |
| 848 | sbindir='${exec_prefix}/sbin' |
| 849 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | datarootdir='${prefix}/share' |
| 851 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 852 | sysconfdir='${prefix}/etc' |
| 853 | sharedstatedir='${prefix}/com' |
| 854 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 855 | includedir='${prefix}/include' |
| 856 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 857 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 858 | infodir='${datarootdir}/info' |
| 859 | htmldir='${docdir}' |
| 860 | dvidir='${docdir}' |
| 861 | pdfdir='${docdir}' |
| 862 | psdir='${docdir}' |
| 863 | libdir='${exec_prefix}/lib' |
| 864 | localedir='${datarootdir}/locale' |
| 865 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 866 | |
| 867 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 868 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 869 | for ac_option |
| 870 | do |
| 871 | # If the previous option needs an argument, assign it. |
| 872 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 873 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 874 | ac_prev= |
| 875 | continue |
| 876 | fi |
| 877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 878 | case $ac_option in |
| 879 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 880 | *) ac_optarg=yes ;; |
| 881 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | |
| 883 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 885 | case $ac_dashdash$ac_option in |
| 886 | --) |
| 887 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 888 | |
| 889 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 890 | ac_prev=bindir ;; |
| 891 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 892 | bindir=$ac_optarg ;; |
| 893 | |
| 894 | -build | --build | --buil | --bui | --bu) |
| 895 | ac_prev=build_alias ;; |
| 896 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 897 | build_alias=$ac_optarg ;; |
| 898 | |
| 899 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 900 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 901 | ac_prev=cache_file ;; |
| 902 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 903 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 904 | cache_file=$ac_optarg ;; |
| 905 | |
| 906 | --config-cache | -C) |
| 907 | cache_file=config.cache ;; |
| 908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 909 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 910 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 911 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 912 | datadir=$ac_optarg ;; |
| 913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 914 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 915 | | --dataroo | --dataro | --datar) |
| 916 | ac_prev=datarootdir ;; |
| 917 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 918 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 919 | datarootdir=$ac_optarg ;; |
| 920 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 921 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 922 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 923 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 924 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 925 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 926 | { (exit 1); exit 1; }; } |
| 927 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 928 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 929 | |
| 930 | -docdir | --docdir | --docdi | --doc | --do) |
| 931 | ac_prev=docdir ;; |
| 932 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 933 | docdir=$ac_optarg ;; |
| 934 | |
| 935 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 936 | ac_prev=dvidir ;; |
| 937 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 938 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 939 | |
| 940 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 941 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 942 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 943 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 944 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 945 | { (exit 1); exit 1; }; } |
| 946 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 947 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 948 | |
| 949 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 950 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 951 | | --exec | --exe | --ex) |
| 952 | ac_prev=exec_prefix ;; |
| 953 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 954 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 955 | | --exec=* | --exe=* | --ex=*) |
| 956 | exec_prefix=$ac_optarg ;; |
| 957 | |
| 958 | -gas | --gas | --ga | --g) |
| 959 | # Obsolete; use --with-gas. |
| 960 | with_gas=yes ;; |
| 961 | |
| 962 | -help | --help | --hel | --he | -h) |
| 963 | ac_init_help=long ;; |
| 964 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 965 | ac_init_help=recursive ;; |
| 966 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 967 | ac_init_help=short ;; |
| 968 | |
| 969 | -host | --host | --hos | --ho) |
| 970 | ac_prev=host_alias ;; |
| 971 | -host=* | --host=* | --hos=* | --ho=*) |
| 972 | host_alias=$ac_optarg ;; |
| 973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 974 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 975 | ac_prev=htmldir ;; |
| 976 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 977 | | --ht=*) |
| 978 | htmldir=$ac_optarg ;; |
| 979 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 980 | -includedir | --includedir | --includedi | --included | --include \ |
| 981 | | --includ | --inclu | --incl | --inc) |
| 982 | ac_prev=includedir ;; |
| 983 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 984 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 985 | includedir=$ac_optarg ;; |
| 986 | |
| 987 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 988 | ac_prev=infodir ;; |
| 989 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 990 | infodir=$ac_optarg ;; |
| 991 | |
| 992 | -libdir | --libdir | --libdi | --libd) |
| 993 | ac_prev=libdir ;; |
| 994 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 995 | libdir=$ac_optarg ;; |
| 996 | |
| 997 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 998 | | --libexe | --libex | --libe) |
| 999 | ac_prev=libexecdir ;; |
| 1000 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1001 | | --libexe=* | --libex=* | --libe=*) |
| 1002 | libexecdir=$ac_optarg ;; |
| 1003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1005 | ac_prev=localedir ;; |
| 1006 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1007 | localedir=$ac_optarg ;; |
| 1008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1010 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | ac_prev=localstatedir ;; |
| 1012 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1013 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | localstatedir=$ac_optarg ;; |
| 1015 | |
| 1016 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1017 | ac_prev=mandir ;; |
| 1018 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1019 | mandir=$ac_optarg ;; |
| 1020 | |
| 1021 | -nfp | --nfp | --nf) |
| 1022 | # Obsolete; use --without-fp. |
| 1023 | with_fp=no ;; |
| 1024 | |
| 1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1026 | | --no-cr | --no-c | -n) |
| 1027 | no_create=yes ;; |
| 1028 | |
| 1029 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1030 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1031 | no_recursion=yes ;; |
| 1032 | |
| 1033 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1034 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1035 | | --oldin | --oldi | --old | --ol | --o) |
| 1036 | ac_prev=oldincludedir ;; |
| 1037 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1038 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1039 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1040 | oldincludedir=$ac_optarg ;; |
| 1041 | |
| 1042 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1043 | ac_prev=prefix ;; |
| 1044 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1045 | prefix=$ac_optarg ;; |
| 1046 | |
| 1047 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1048 | | --program-pre | --program-pr | --program-p) |
| 1049 | ac_prev=program_prefix ;; |
| 1050 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1051 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1052 | program_prefix=$ac_optarg ;; |
| 1053 | |
| 1054 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1055 | | --program-suf | --program-su | --program-s) |
| 1056 | ac_prev=program_suffix ;; |
| 1057 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1058 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1059 | program_suffix=$ac_optarg ;; |
| 1060 | |
| 1061 | -program-transform-name | --program-transform-name \ |
| 1062 | | --program-transform-nam | --program-transform-na \ |
| 1063 | | --program-transform-n | --program-transform- \ |
| 1064 | | --program-transform | --program-transfor \ |
| 1065 | | --program-transfo | --program-transf \ |
| 1066 | | --program-trans | --program-tran \ |
| 1067 | | --progr-tra | --program-tr | --program-t) |
| 1068 | ac_prev=program_transform_name ;; |
| 1069 | -program-transform-name=* | --program-transform-name=* \ |
| 1070 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1071 | | --program-transform-n=* | --program-transform-=* \ |
| 1072 | | --program-transform=* | --program-transfor=* \ |
| 1073 | | --program-transfo=* | --program-transf=* \ |
| 1074 | | --program-trans=* | --program-tran=* \ |
| 1075 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1076 | program_transform_name=$ac_optarg ;; |
| 1077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1078 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1079 | ac_prev=pdfdir ;; |
| 1080 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1081 | pdfdir=$ac_optarg ;; |
| 1082 | |
| 1083 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1084 | ac_prev=psdir ;; |
| 1085 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1086 | psdir=$ac_optarg ;; |
| 1087 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1089 | | -silent | --silent | --silen | --sile | --sil) |
| 1090 | silent=yes ;; |
| 1091 | |
| 1092 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1093 | ac_prev=sbindir ;; |
| 1094 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1095 | | --sbi=* | --sb=*) |
| 1096 | sbindir=$ac_optarg ;; |
| 1097 | |
| 1098 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1099 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1100 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1101 | | --sha | --sh) |
| 1102 | ac_prev=sharedstatedir ;; |
| 1103 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1104 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1105 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1106 | | --sha=* | --sh=*) |
| 1107 | sharedstatedir=$ac_optarg ;; |
| 1108 | |
| 1109 | -site | --site | --sit) |
| 1110 | ac_prev=site ;; |
| 1111 | -site=* | --site=* | --sit=*) |
| 1112 | site=$ac_optarg ;; |
| 1113 | |
| 1114 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1115 | ac_prev=srcdir ;; |
| 1116 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1117 | srcdir=$ac_optarg ;; |
| 1118 | |
| 1119 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1120 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1121 | ac_prev=sysconfdir ;; |
| 1122 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1123 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1124 | sysconfdir=$ac_optarg ;; |
| 1125 | |
| 1126 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1127 | ac_prev=target_alias ;; |
| 1128 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1129 | target_alias=$ac_optarg ;; |
| 1130 | |
| 1131 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1132 | verbose=yes ;; |
| 1133 | |
| 1134 | -version | --version | --versio | --versi | --vers | -V) |
| 1135 | ac_init_version=: ;; |
| 1136 | |
| 1137 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1138 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1139 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1140 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1141 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1142 | { (exit 1); exit 1; }; } |
| 1143 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1144 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1145 | |
| 1146 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1147 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1148 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1149 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1150 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1151 | { (exit 1); exit 1; }; } |
| 1152 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1153 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1154 | |
| 1155 | --x) |
| 1156 | # Obsolete; use --with-x. |
| 1157 | with_x=yes ;; |
| 1158 | |
| 1159 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1160 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1161 | ac_prev=x_includes ;; |
| 1162 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1163 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1164 | x_includes=$ac_optarg ;; |
| 1165 | |
| 1166 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1167 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1168 | ac_prev=x_libraries ;; |
| 1169 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1170 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1171 | x_libraries=$ac_optarg ;; |
| 1172 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1173 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1174 | Try \`$0 --help' for more information." >&2 |
| 1175 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1176 | ;; |
| 1177 | |
| 1178 | *=*) |
| 1179 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1180 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1181 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1182 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1183 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1184 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1185 | export $ac_envvar ;; |
| 1186 | |
| 1187 | *) |
| 1188 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1189 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1190 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1191 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1192 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1193 | ;; |
| 1194 | |
| 1195 | esac |
| 1196 | done |
| 1197 | |
| 1198 | if test -n "$ac_prev"; then |
| 1199 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1200 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1201 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1202 | fi |
| 1203 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1204 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1205 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1206 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1207 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1208 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1209 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1210 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1211 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1212 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1213 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1214 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1215 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1216 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1217 | done |
| 1218 | |
| 1219 | # There might be people who depend on the old broken behavior: `$host' |
| 1220 | # used to hold the argument of --host etc. |
| 1221 | # FIXME: To remove some day. |
| 1222 | build=$build_alias |
| 1223 | host=$host_alias |
| 1224 | target=$target_alias |
| 1225 | |
| 1226 | # FIXME: To remove some day. |
| 1227 | if test "x$host_alias" != x; then |
| 1228 | if test "x$build_alias" = x; then |
| 1229 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1230 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1231 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1232 | elif test "x$build_alias" != "x$host_alias"; then |
| 1233 | cross_compiling=yes |
| 1234 | fi |
| 1235 | fi |
| 1236 | |
| 1237 | ac_tool_prefix= |
| 1238 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1239 | |
| 1240 | test "$silent" = yes && exec 6>/dev/null |
| 1241 | |
| 1242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1243 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1244 | ac_ls_di=`ls -di .` && |
| 1245 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1246 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1247 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1248 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1249 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1250 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1251 | |
| 1252 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1253 | # Find the source files, if location was not specified. |
| 1254 | if test -z "$srcdir"; then |
| 1255 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1256 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1257 | ac_confdir=`$as_dirname -- "$0" || |
| 1258 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1259 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1260 | X"$0" : 'X\(//\)$' \| \ |
| 1261 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1262 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\/\)[^/].*/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\/\)$/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | /^X\(\/\).*/{ |
| 1276 | s//\1/ |
| 1277 | q |
| 1278 | } |
| 1279 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1281 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1282 | srcdir=.. |
| 1283 | fi |
| 1284 | else |
| 1285 | ac_srcdir_defaulted=no |
| 1286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1289 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1290 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1292 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1293 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1294 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1295 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1296 | pwd)` |
| 1297 | # When building in place, set srcdir=. |
| 1298 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1299 | srcdir=. |
| 1300 | fi |
| 1301 | # Remove unnecessary trailing slashes from srcdir. |
| 1302 | # Double slashes in file names in object file debugging info |
| 1303 | # mess up M-x gdb in Emacs. |
| 1304 | case $srcdir in |
| 1305 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1306 | esac |
| 1307 | for ac_var in $ac_precious_vars; do |
| 1308 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1309 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1310 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1311 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1312 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1313 | |
| 1314 | # |
| 1315 | # Report the --help message. |
| 1316 | # |
| 1317 | if test "$ac_init_help" = "long"; then |
| 1318 | # Omit some internal or obsolete options to make the list less imposing. |
| 1319 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1320 | cat <<_ACEOF |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1321 | \`configure' configures LLVM 3.1svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1322 | |
| 1323 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1324 | |
| 1325 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1326 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1327 | |
| 1328 | Defaults for the options are specified in brackets. |
| 1329 | |
| 1330 | Configuration: |
| 1331 | -h, --help display this help and exit |
| 1332 | --help=short display options specific to this package |
| 1333 | --help=recursive display the short help of all the included packages |
| 1334 | -V, --version display version information and exit |
| 1335 | -q, --quiet, --silent do not print \`checking...' messages |
| 1336 | --cache-file=FILE cache test results in FILE [disabled] |
| 1337 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1338 | -n, --no-create do not create output files |
| 1339 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1340 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1341 | Installation directories: |
| 1342 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1343 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1344 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1345 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1346 | |
| 1347 | By default, \`make install' will install all the files in |
| 1348 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1349 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1350 | for instance \`--prefix=\$HOME'. |
| 1351 | |
| 1352 | For better control, use the options below. |
| 1353 | |
| 1354 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1355 | --bindir=DIR user executables [EPREFIX/bin] |
| 1356 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1357 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1358 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1359 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1360 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1361 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1362 | --includedir=DIR C header files [PREFIX/include] |
| 1363 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1364 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1365 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1366 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1367 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1368 | --mandir=DIR man documentation [DATAROOTDIR/man] |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1369 | --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1370 | --htmldir=DIR html documentation [DOCDIR] |
| 1371 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1372 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1373 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1374 | _ACEOF |
| 1375 | |
| 1376 | cat <<\_ACEOF |
| 1377 | |
| 1378 | System types: |
| 1379 | --build=BUILD configure for building on BUILD [guessed] |
| 1380 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1381 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1382 | _ACEOF |
| 1383 | fi |
| 1384 | |
| 1385 | if test -n "$ac_init_help"; then |
| 1386 | case $ac_init_help in |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1387 | short | recursive ) echo "Configuration of LLVM 3.1svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1388 | esac |
| 1389 | cat <<\_ACEOF |
| 1390 | |
| 1391 | Optional Features: |
| 1392 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1393 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1394 | --enable-polly Use polly if available (default is YES) |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 1395 | --enable-libcpp Use libc++ if available (default is NO) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1396 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1397 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1398 | --enable-assertions Compile with assertion checks enabled (default is |
| 1399 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1400 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1401 | Compile with expensive debug checks enabled (default |
| 1402 | is NO) |
| 1403 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1404 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1405 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1406 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1407 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1408 | --enable-docs Build documents (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1409 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1410 | --enable-threads Use threads if available (default is YES) |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1411 | --enable-pthreads Use pthreads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1412 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1413 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1414 | --enable-shared Build a shared library and link tools against it |
| 1415 | (default is NO) |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1416 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 1417 | Win32 DLL (default is NO) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1418 | --enable-timestamps Enable embedding timestamp information in build |
| 1419 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1420 | --enable-targets Build specific host targets: all or |
| 1421 | target1,target2,... Valid targets are: host, x86, |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1422 | x86_64, sparc, powerpc, arm, mips, spu, hexagon, |
| 1423 | xcore, msp430, ptx, cbe, and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1424 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1425 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1426 | --enable-bindings Build specific language bindings: |
| 1427 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1428 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1429 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1430 | |
| 1431 | Optional Packages: |
| 1432 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1433 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1434 | --with-optimize-option Select the compiler options to use for optimized |
| 1435 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1436 | --with-extra-options Specify additional options to compile LLVM with |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1437 | --with-extra-ld-options Specify additional options to link LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1438 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1439 | is stdlib) |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 1440 | --with-clang-srcdir Directory to the out-of-tree Clang source |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1441 | --with-clang-resource-dir |
| 1442 | Relative directory from the Clang binary for |
| 1443 | resource files |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1444 | --with-c-include-dirs Colon separated list of directories clang will |
| 1445 | search for headers |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 1446 | --with-gcc-toolchain Directory where gcc is installed. |
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/) |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 1451 | --with-internal-prefix Installation directory for internal files |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1452 | --with-tclinclude directory where tcl headers are |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1453 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1454 | --with-oprofile=<prefix> |
| 1455 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1456 | |
| 1457 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1458 | CC C compiler command |
| 1459 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1460 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1461 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1462 | 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] | 1463 | you have headers in a nonstandard directory <include dir> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1464 | CXX C++ compiler command |
| 1465 | CXXFLAGS C++ compiler flags |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1466 | CPP C preprocessor |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | |
| 1468 | Use these variables to override the choices made by `configure' or to help |
| 1469 | it to find libraries and programs with nonstandard names/locations. |
| 1470 | |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1471 | Report bugs to <http://llvm.org/bugs/>. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1473 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1474 | fi |
| 1475 | |
| 1476 | if test "$ac_init_help" = "recursive"; then |
| 1477 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1478 | 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] | 1479 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1480 | ac_builddir=. |
| 1481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1482 | case "$ac_dir" in |
| 1483 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1484 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1485 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1486 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1487 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1488 | case $ac_top_builddir_sub in |
| 1489 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1490 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1491 | esac ;; |
| 1492 | esac |
| 1493 | ac_abs_top_builddir=$ac_pwd |
| 1494 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1495 | # for backward compatibility: |
| 1496 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1497 | |
| 1498 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1499 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1501 | ac_top_srcdir=$ac_top_builddir_sub |
| 1502 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1503 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | ac_top_srcdir=$srcdir |
| 1506 | ac_abs_top_srcdir=$srcdir ;; |
| 1507 | *) # Relative name. |
| 1508 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1509 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1510 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1511 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1512 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1514 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1515 | # Check for guested configure. |
| 1516 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1517 | echo && |
| 1518 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1519 | elif test -f "$ac_srcdir/configure"; then |
| 1520 | echo && |
| 1521 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1522 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1523 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1524 | fi || ac_status=$? |
| 1525 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1526 | done |
| 1527 | fi |
| 1528 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1529 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | if $ac_init_version; then |
| 1531 | cat <<\_ACEOF |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1532 | LLVM configure 3.1svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1533 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1534 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1535 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1536 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1537 | This configure script is free software; the Free Software Foundation |
| 1538 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1539 | |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1540 | Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1541 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1542 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1544 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | This file contains any messages produced by compilers while |
| 1546 | running configure, to aid debugging if configure makes a mistake. |
| 1547 | |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1548 | It was created by LLVM $as_me 3.1svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1549 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1550 | |
| 1551 | $ $0 $@ |
| 1552 | |
| 1553 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1554 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1555 | { |
| 1556 | cat <<_ASUNAME |
| 1557 | ## --------- ## |
| 1558 | ## Platform. ## |
| 1559 | ## --------- ## |
| 1560 | |
| 1561 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1562 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1563 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1564 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1565 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1566 | |
| 1567 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1568 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1569 | |
| 1570 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1571 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1572 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1573 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1574 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1575 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1576 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1577 | |
| 1578 | _ASUNAME |
| 1579 | |
| 1580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1581 | for as_dir in $PATH |
| 1582 | do |
| 1583 | IFS=$as_save_IFS |
| 1584 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1585 | echo "PATH: $as_dir" |
| 1586 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1587 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1588 | |
| 1589 | } >&5 |
| 1590 | |
| 1591 | cat >&5 <<_ACEOF |
| 1592 | |
| 1593 | |
| 1594 | ## ----------- ## |
| 1595 | ## Core tests. ## |
| 1596 | ## ----------- ## |
| 1597 | |
| 1598 | _ACEOF |
| 1599 | |
| 1600 | |
| 1601 | # Keep a trace of the command line. |
| 1602 | # 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] | 1603 | # 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] | 1604 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1605 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1606 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1607 | ac_configure_args0= |
| 1608 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1609 | ac_must_keep_next=false |
| 1610 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1611 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1612 | for ac_arg |
| 1613 | do |
| 1614 | case $ac_arg in |
| 1615 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1616 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1617 | | -silent | --silent | --silen | --sile | --sil) |
| 1618 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1619 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1620 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1621 | esac |
| 1622 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1623 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1624 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1625 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1626 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1627 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1629 | case $ac_arg in |
| 1630 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1631 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1632 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1633 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1634 | case "$ac_configure_args0 " in |
| 1635 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1636 | esac |
| 1637 | ;; |
| 1638 | -* ) ac_must_keep_next=true ;; |
| 1639 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1640 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1641 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1642 | ;; |
| 1643 | esac |
| 1644 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1645 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1646 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1647 | $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] | 1648 | |
| 1649 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1650 | # config.log. We remove comments because anyway the quotes in there |
| 1651 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1652 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1653 | # 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] | 1654 | trap 'exit_status=$? |
| 1655 | # Save into config.log some information that might help in debugging. |
| 1656 | { |
| 1657 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1658 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1659 | cat <<\_ASBOX |
| 1660 | ## ---------------- ## |
| 1661 | ## Cache variables. ## |
| 1662 | ## ---------------- ## |
| 1663 | _ASBOX |
| 1664 | echo |
| 1665 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1666 | ( |
| 1667 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1668 | eval ac_val=\$$ac_var |
| 1669 | case $ac_val in #( |
| 1670 | *${as_nl}*) |
| 1671 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1672 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1673 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1674 | esac |
| 1675 | case $ac_var in #( |
| 1676 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1677 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1678 | esac ;; |
| 1679 | esac |
| 1680 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1681 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1682 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1683 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1684 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1685 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1686 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1687 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1689 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1690 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1691 | esac | |
| 1692 | sort |
| 1693 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1694 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1695 | |
| 1696 | cat <<\_ASBOX |
| 1697 | ## ----------------- ## |
| 1698 | ## Output variables. ## |
| 1699 | ## ----------------- ## |
| 1700 | _ASBOX |
| 1701 | echo |
| 1702 | for ac_var in $ac_subst_vars |
| 1703 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1704 | eval ac_val=\$$ac_var |
| 1705 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1706 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1707 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1708 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1709 | done | sort |
| 1710 | echo |
| 1711 | |
| 1712 | if test -n "$ac_subst_files"; then |
| 1713 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1714 | ## ------------------- ## |
| 1715 | ## File substitutions. ## |
| 1716 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1717 | _ASBOX |
| 1718 | echo |
| 1719 | for ac_var in $ac_subst_files |
| 1720 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1721 | eval ac_val=\$$ac_var |
| 1722 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1723 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1724 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1725 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1726 | done | sort |
| 1727 | echo |
| 1728 | fi |
| 1729 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1730 | if test -s confdefs.h; then |
| 1731 | cat <<\_ASBOX |
| 1732 | ## ----------- ## |
| 1733 | ## confdefs.h. ## |
| 1734 | ## ----------- ## |
| 1735 | _ASBOX |
| 1736 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1737 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1738 | echo |
| 1739 | fi |
| 1740 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1741 | echo "$as_me: caught signal $ac_signal" |
| 1742 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1743 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1744 | rm -f core *.core core.conftest.* && |
| 1745 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1746 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1747 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1748 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1749 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | done |
| 1751 | ac_signal=0 |
| 1752 | |
| 1753 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1754 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1755 | |
| 1756 | # Predefined preprocessor variables. |
| 1757 | |
| 1758 | cat >>confdefs.h <<_ACEOF |
| 1759 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1760 | _ACEOF |
| 1761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1762 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1763 | cat >>confdefs.h <<_ACEOF |
| 1764 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1765 | _ACEOF |
| 1766 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1767 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1768 | cat >>confdefs.h <<_ACEOF |
| 1769 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1770 | _ACEOF |
| 1771 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1772 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1773 | cat >>confdefs.h <<_ACEOF |
| 1774 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1775 | _ACEOF |
| 1776 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1777 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1778 | cat >>confdefs.h <<_ACEOF |
| 1779 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1780 | _ACEOF |
| 1781 | |
| 1782 | |
| 1783 | # 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] | 1784 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1785 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1786 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1787 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1788 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1789 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1790 | set x "$ac_default_prefix/share/config.site" \ |
| 1791 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1792 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1793 | shift |
| 1794 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1795 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1796 | if test -r "$ac_site_file"; then |
| 1797 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1798 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1799 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1800 | . "$ac_site_file" |
| 1801 | fi |
| 1802 | done |
| 1803 | |
| 1804 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1805 | # Some versions of bash will fail to source /dev/null (special |
| 1806 | # files actually), so we avoid doing that. |
| 1807 | if test -f "$cache_file"; then |
| 1808 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1809 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1810 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1811 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1812 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1813 | esac |
| 1814 | fi |
| 1815 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1816 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1817 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1818 | >$cache_file |
| 1819 | fi |
| 1820 | |
| 1821 | # Check that the precious variables saved in the cache have kept the same |
| 1822 | # value. |
| 1823 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1824 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1825 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1826 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1827 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1828 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1829 | case $ac_old_set,$ac_new_set in |
| 1830 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1831 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1832 | 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] | 1833 | ac_cache_corrupted=: ;; |
| 1834 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1835 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1836 | 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] | 1837 | ac_cache_corrupted=: ;; |
| 1838 | ,);; |
| 1839 | *) |
| 1840 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1841 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1842 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1843 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1844 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1845 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1846 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1847 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1848 | fi;; |
| 1849 | esac |
| 1850 | # Pass precious variables to config.status. |
| 1851 | if test "$ac_new_set" = set; then |
| 1852 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1853 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1854 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1855 | esac |
| 1856 | case " $ac_configure_args " in |
| 1857 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1858 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1859 | esac |
| 1860 | fi |
| 1861 | done |
| 1862 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1863 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1864 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1865 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1866 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1867 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1868 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1893 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1894 | ac_ext=c |
| 1895 | ac_cpp='$CPP $CPPFLAGS' |
| 1896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1899 | |
| 1900 | |
| 1901 | |
Dylan Noblesmith | fde8237 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1902 | cat >>confdefs.h <<\_ACEOF |
| 1903 | #define LLVM_VERSION_MAJOR 3 |
| 1904 | _ACEOF |
| 1905 | |
| 1906 | |
| 1907 | cat >>confdefs.h <<\_ACEOF |
| 1908 | #define LLVM_VERSION_MINOR 1 |
| 1909 | _ACEOF |
| 1910 | |
| 1911 | |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1912 | LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | |
| 1919 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1920 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1921 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1922 | if test -f "$ac_dir/install-sh"; then |
| 1923 | ac_aux_dir=$ac_dir |
| 1924 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1925 | break |
| 1926 | elif test -f "$ac_dir/install.sh"; then |
| 1927 | ac_aux_dir=$ac_dir |
| 1928 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1929 | break |
| 1930 | elif test -f "$ac_dir/shtool"; then |
| 1931 | ac_aux_dir=$ac_dir |
| 1932 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1933 | break |
| 1934 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1935 | done |
| 1936 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1937 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1938 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1939 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1940 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1941 | |
| 1942 | # These three variables are undocumented and unsupported, |
| 1943 | # and are intended to be withdrawn in a future Autoconf release. |
| 1944 | # They can cause serious problems if a builder's source tree is in a directory |
| 1945 | # whose full name contains unusual characters. |
| 1946 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1947 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1948 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1949 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1950 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1951 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1952 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1953 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1954 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1955 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1956 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1957 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1958 | fi |
| 1959 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1960 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1961 | ac_cpp='$CPP $CPPFLAGS' |
| 1962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1965 | if test -n "$ac_tool_prefix"; then |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1966 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1967 | do |
| 1968 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1969 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1970 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1972 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1974 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1975 | if test -n "$CC"; then |
| 1976 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1977 | else |
| 1978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1979 | for as_dir in $PATH |
| 1980 | do |
| 1981 | IFS=$as_save_IFS |
| 1982 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1984 | 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] | 1985 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1986 | 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] | 1987 | break 2 |
| 1988 | fi |
| 1989 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1990 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1991 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1992 | |
| 1993 | fi |
| 1994 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1995 | CC=$ac_cv_prog_CC |
| 1996 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1997 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1998 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1999 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2000 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2001 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2002 | fi |
| 2003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2004 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2005 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2006 | done |
| 2007 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2008 | if test -z "$CC"; then |
| 2009 | ac_ct_CC=$CC |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2010 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2011 | do |
| 2012 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2013 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2014 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2016 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2018 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2019 | if test -n "$ac_ct_CC"; then |
| 2020 | 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] | 2021 | else |
| 2022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2023 | for as_dir in $PATH |
| 2024 | do |
| 2025 | IFS=$as_save_IFS |
| 2026 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2027 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2028 | 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] | 2029 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2030 | 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] | 2031 | break 2 |
| 2032 | fi |
| 2033 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2034 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2035 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2036 | |
| 2037 | fi |
| 2038 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2039 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2040 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2041 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2042 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2043 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2044 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2045 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2046 | fi |
| 2047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2048 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2049 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2050 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2052 | if test "x$ac_ct_CC" = x; then |
| 2053 | CC="" |
| 2054 | else |
| 2055 | case $cross_compiling:$ac_tool_warned in |
| 2056 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2057 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2058 | whose name does not start with the host triplet. If you think this |
| 2059 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2060 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2061 | whose name does not start with the host triplet. If you think this |
| 2062 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2063 | ac_tool_warned=yes ;; |
| 2064 | esac |
| 2065 | CC=$ac_ct_CC |
| 2066 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2067 | fi |
| 2068 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2069 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2070 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2071 | See \`config.log' for more details." >&5 |
| 2072 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2073 | See \`config.log' for more details." >&2;} |
| 2074 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2075 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2076 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2077 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2078 | ac_compiler=`set X $ac_compile; echo $2` |
| 2079 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2080 | case "(($ac_try" in |
| 2081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2082 | *) ac_try_echo=$ac_try;; |
| 2083 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2085 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2086 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2088 | (exit $ac_status); } |
| 2089 | { (ac_try="$ac_compiler -v >&5" |
| 2090 | case "(($ac_try" in |
| 2091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2092 | *) ac_try_echo=$ac_try;; |
| 2093 | esac |
| 2094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2095 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2096 | ac_status=$? |
| 2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2098 | (exit $ac_status); } |
| 2099 | { (ac_try="$ac_compiler -V >&5" |
| 2100 | case "(($ac_try" in |
| 2101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2102 | *) ac_try_echo=$ac_try;; |
| 2103 | esac |
| 2104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2105 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2106 | ac_status=$? |
| 2107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2108 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2109 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2110 | cat >conftest.$ac_ext <<_ACEOF |
| 2111 | /* confdefs.h. */ |
| 2112 | _ACEOF |
| 2113 | cat confdefs.h >>conftest.$ac_ext |
| 2114 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2115 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2116 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2117 | int |
| 2118 | main () |
| 2119 | { |
| 2120 | |
| 2121 | ; |
| 2122 | return 0; |
| 2123 | } |
| 2124 | _ACEOF |
| 2125 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2126 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2127 | # Try to create an executable without -o first, disregard a.out. |
| 2128 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2129 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2130 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2131 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2132 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2133 | # |
| 2134 | # List of possible output files, starting from the most likely. |
| 2135 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2136 | # only as a last resort. b.out is created by i960 compilers. |
| 2137 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2138 | # |
| 2139 | # The IRIX 6 linker writes into existing files which may not be |
| 2140 | # executable, retaining their permissions. Remove them first so a |
| 2141 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2142 | ac_rmfiles= |
| 2143 | for ac_file in $ac_files |
| 2144 | do |
| 2145 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2146 | *.$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] | 2147 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2148 | esac |
| 2149 | done |
| 2150 | rm -f $ac_rmfiles |
| 2151 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2152 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2153 | case "(($ac_try" in |
| 2154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2155 | *) ac_try_echo=$ac_try;; |
| 2156 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2158 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2159 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2161 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2162 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2163 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2164 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2165 | # so that the user can short-circuit this test for compilers unknown to |
| 2166 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2167 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2168 | do |
| 2169 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2170 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2171 | *.$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] | 2172 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2173 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2174 | # We found the default executable, but exeext='' is most |
| 2175 | # certainly right. |
| 2176 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2177 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2178 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2179 | then :; else |
| 2180 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2181 | fi |
| 2182 | # We set ac_cv_exeext here because the later test for it is not |
| 2183 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2184 | # argument, so we may need to know it at that point already. |
| 2185 | # Even if this section looks crufty: it has the advantage of |
| 2186 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2187 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2188 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2189 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2190 | esac |
| 2191 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2192 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2193 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2194 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2195 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2197 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2198 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2199 | See \`config.log' for more details." >&5 |
| 2200 | echo "$as_me: error: C compiler cannot create executables |
| 2201 | See \`config.log' for more details." >&2;} |
| 2202 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2203 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2204 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2205 | ac_exeext=$ac_cv_exeext |
| 2206 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2207 | echo "${ECHO_T}$ac_file" >&6; } |
| 2208 | |
| 2209 | # Check that the compiler produces executables we can run. If not, either |
| 2210 | # the compiler is broken, or we cross compile. |
| 2211 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2212 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2213 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2214 | # If not cross compiling, check that we can run a simple program. |
| 2215 | if test "$cross_compiling" != yes; then |
| 2216 | if { ac_try='./$ac_file' |
| 2217 | { (case "(($ac_try" in |
| 2218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2219 | *) ac_try_echo=$ac_try;; |
| 2220 | esac |
| 2221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2222 | (eval "$ac_try") 2>&5 |
| 2223 | ac_status=$? |
| 2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2225 | (exit $ac_status); }; }; then |
| 2226 | cross_compiling=no |
| 2227 | else |
| 2228 | if test "$cross_compiling" = maybe; then |
| 2229 | cross_compiling=yes |
| 2230 | else |
| 2231 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2232 | If you meant to cross compile, use \`--host'. |
| 2233 | See \`config.log' for more details." >&5 |
| 2234 | echo "$as_me: error: cannot run C compiled programs. |
| 2235 | If you meant to cross compile, use \`--host'. |
| 2236 | See \`config.log' for more details." >&2;} |
| 2237 | { (exit 1); exit 1; }; } |
| 2238 | fi |
| 2239 | fi |
| 2240 | fi |
| 2241 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2242 | echo "${ECHO_T}yes" >&6; } |
| 2243 | |
| 2244 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2245 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2246 | # Check that the compiler produces executables we can run. If not, either |
| 2247 | # the compiler is broken, or we cross compile. |
| 2248 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2249 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2250 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2251 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2252 | |
| 2253 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2254 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2255 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2256 | case "(($ac_try" in |
| 2257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2258 | *) ac_try_echo=$ac_try;; |
| 2259 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2261 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2262 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2264 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2265 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2266 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2267 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2268 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2269 | for ac_file in conftest.exe conftest conftest.*; do |
| 2270 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2271 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2272 | *.$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] | 2273 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2274 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2275 | * ) break;; |
| 2276 | esac |
| 2277 | done |
| 2278 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2279 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2280 | See \`config.log' for more details." >&5 |
| 2281 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2282 | See \`config.log' for more details." >&2;} |
| 2283 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2284 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2285 | |
| 2286 | rm -f conftest$ac_cv_exeext |
| 2287 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2288 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2289 | |
| 2290 | rm -f conftest.$ac_ext |
| 2291 | EXEEXT=$ac_cv_exeext |
| 2292 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2293 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2294 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2295 | if test "${ac_cv_objext+set}" = set; then |
| 2296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2298 | cat >conftest.$ac_ext <<_ACEOF |
| 2299 | /* confdefs.h. */ |
| 2300 | _ACEOF |
| 2301 | cat confdefs.h >>conftest.$ac_ext |
| 2302 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2303 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2304 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2305 | int |
| 2306 | main () |
| 2307 | { |
| 2308 | |
| 2309 | ; |
| 2310 | return 0; |
| 2311 | } |
| 2312 | _ACEOF |
| 2313 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2314 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2315 | case "(($ac_try" in |
| 2316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2317 | *) ac_try_echo=$ac_try;; |
| 2318 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2320 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2321 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2323 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2324 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2325 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2326 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2327 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2328 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2329 | break;; |
| 2330 | esac |
| 2331 | done |
| 2332 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2333 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2335 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2336 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2337 | See \`config.log' for more details." >&5 |
| 2338 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2339 | See \`config.log' for more details." >&2;} |
| 2340 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2341 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2342 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2343 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2344 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2345 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2346 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2347 | OBJEXT=$ac_cv_objext |
| 2348 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2349 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2350 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2351 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2353 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2354 | cat >conftest.$ac_ext <<_ACEOF |
| 2355 | /* confdefs.h. */ |
| 2356 | _ACEOF |
| 2357 | cat confdefs.h >>conftest.$ac_ext |
| 2358 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2359 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2360 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2361 | int |
| 2362 | main () |
| 2363 | { |
| 2364 | #ifndef __GNUC__ |
| 2365 | choke me |
| 2366 | #endif |
| 2367 | |
| 2368 | ; |
| 2369 | return 0; |
| 2370 | } |
| 2371 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2372 | rm -f conftest.$ac_objext |
| 2373 | if { (ac_try="$ac_compile" |
| 2374 | case "(($ac_try" in |
| 2375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2376 | *) ac_try_echo=$ac_try;; |
| 2377 | esac |
| 2378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2379 | (eval "$ac_compile") 2>conftest.er1 |
| 2380 | ac_status=$? |
| 2381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2382 | rm -f conftest.er1 |
| 2383 | cat conftest.err >&5 |
| 2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2385 | (exit $ac_status); } && |
| 2386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2387 | { (case "(($ac_try" in |
| 2388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2389 | *) ac_try_echo=$ac_try;; |
| 2390 | esac |
| 2391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2392 | (eval "$ac_try") 2>&5 |
| 2393 | ac_status=$? |
| 2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2395 | (exit $ac_status); }; } && |
| 2396 | { ac_try='test -s conftest.$ac_objext' |
| 2397 | { (case "(($ac_try" in |
| 2398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2399 | *) ac_try_echo=$ac_try;; |
| 2400 | esac |
| 2401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2402 | (eval "$ac_try") 2>&5 |
| 2403 | ac_status=$? |
| 2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2405 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2406 | ac_compiler_gnu=yes |
| 2407 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2408 | echo "$as_me: failed program was:" >&5 |
| 2409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2410 | |
| 2411 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2412 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2416 | |
| 2417 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2418 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2419 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2420 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2421 | ac_test_CFLAGS=${CFLAGS+set} |
| 2422 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2423 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2424 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2425 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2427 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2428 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2429 | ac_c_werror_flag=yes |
| 2430 | ac_cv_prog_cc_g=no |
| 2431 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2432 | cat >conftest.$ac_ext <<_ACEOF |
| 2433 | /* confdefs.h. */ |
| 2434 | _ACEOF |
| 2435 | cat confdefs.h >>conftest.$ac_ext |
| 2436 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2437 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2438 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2439 | int |
| 2440 | main () |
| 2441 | { |
| 2442 | |
| 2443 | ; |
| 2444 | return 0; |
| 2445 | } |
| 2446 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2447 | rm -f conftest.$ac_objext |
| 2448 | if { (ac_try="$ac_compile" |
| 2449 | case "(($ac_try" in |
| 2450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2451 | *) ac_try_echo=$ac_try;; |
| 2452 | esac |
| 2453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2454 | (eval "$ac_compile") 2>conftest.er1 |
| 2455 | ac_status=$? |
| 2456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2457 | rm -f conftest.er1 |
| 2458 | cat conftest.err >&5 |
| 2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2460 | (exit $ac_status); } && |
| 2461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2462 | { (case "(($ac_try" in |
| 2463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2464 | *) ac_try_echo=$ac_try;; |
| 2465 | esac |
| 2466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2467 | (eval "$ac_try") 2>&5 |
| 2468 | ac_status=$? |
| 2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2470 | (exit $ac_status); }; } && |
| 2471 | { ac_try='test -s conftest.$ac_objext' |
| 2472 | { (case "(($ac_try" in |
| 2473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2474 | *) ac_try_echo=$ac_try;; |
| 2475 | esac |
| 2476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2477 | (eval "$ac_try") 2>&5 |
| 2478 | ac_status=$? |
| 2479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2480 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2481 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2482 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2483 | echo "$as_me: failed program was:" >&5 |
| 2484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2485 | |
| 2486 | CFLAGS="" |
| 2487 | cat >conftest.$ac_ext <<_ACEOF |
| 2488 | /* confdefs.h. */ |
| 2489 | _ACEOF |
| 2490 | cat confdefs.h >>conftest.$ac_ext |
| 2491 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2492 | /* end confdefs.h. */ |
| 2493 | |
| 2494 | int |
| 2495 | main () |
| 2496 | { |
| 2497 | |
| 2498 | ; |
| 2499 | return 0; |
| 2500 | } |
| 2501 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2502 | rm -f conftest.$ac_objext |
| 2503 | if { (ac_try="$ac_compile" |
| 2504 | case "(($ac_try" in |
| 2505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2506 | *) ac_try_echo=$ac_try;; |
| 2507 | esac |
| 2508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2509 | (eval "$ac_compile") 2>conftest.er1 |
| 2510 | ac_status=$? |
| 2511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2512 | rm -f conftest.er1 |
| 2513 | cat conftest.err >&5 |
| 2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2515 | (exit $ac_status); } && |
| 2516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2517 | { (case "(($ac_try" in |
| 2518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2519 | *) ac_try_echo=$ac_try;; |
| 2520 | esac |
| 2521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2522 | (eval "$ac_try") 2>&5 |
| 2523 | ac_status=$? |
| 2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2525 | (exit $ac_status); }; } && |
| 2526 | { ac_try='test -s conftest.$ac_objext' |
| 2527 | { (case "(($ac_try" in |
| 2528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2529 | *) ac_try_echo=$ac_try;; |
| 2530 | esac |
| 2531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2532 | (eval "$ac_try") 2>&5 |
| 2533 | ac_status=$? |
| 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 | (exit $ac_status); }; }; then |
| 2536 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2537 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2538 | echo "$as_me: failed program was:" >&5 |
| 2539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2540 | |
| 2541 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2542 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2543 | cat >conftest.$ac_ext <<_ACEOF |
| 2544 | /* confdefs.h. */ |
| 2545 | _ACEOF |
| 2546 | cat confdefs.h >>conftest.$ac_ext |
| 2547 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2548 | /* end confdefs.h. */ |
| 2549 | |
| 2550 | int |
| 2551 | main () |
| 2552 | { |
| 2553 | |
| 2554 | ; |
| 2555 | return 0; |
| 2556 | } |
| 2557 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2558 | rm -f conftest.$ac_objext |
| 2559 | if { (ac_try="$ac_compile" |
| 2560 | case "(($ac_try" in |
| 2561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2562 | *) ac_try_echo=$ac_try;; |
| 2563 | esac |
| 2564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2565 | (eval "$ac_compile") 2>conftest.er1 |
| 2566 | ac_status=$? |
| 2567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2568 | rm -f conftest.er1 |
| 2569 | cat conftest.err >&5 |
| 2570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2571 | (exit $ac_status); } && |
| 2572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2573 | { (case "(($ac_try" in |
| 2574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2575 | *) ac_try_echo=$ac_try;; |
| 2576 | esac |
| 2577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2578 | (eval "$ac_try") 2>&5 |
| 2579 | ac_status=$? |
| 2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2581 | (exit $ac_status); }; } && |
| 2582 | { ac_try='test -s conftest.$ac_objext' |
| 2583 | { (case "(($ac_try" in |
| 2584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2585 | *) ac_try_echo=$ac_try;; |
| 2586 | esac |
| 2587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2588 | (eval "$ac_try") 2>&5 |
| 2589 | ac_status=$? |
| 2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2591 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2592 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2593 | else |
| 2594 | echo "$as_me: failed program was:" >&5 |
| 2595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2596 | |
| 2597 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2598 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2601 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2604 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2607 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2608 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2609 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2610 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2611 | if test "$ac_test_CFLAGS" = set; then |
| 2612 | CFLAGS=$ac_save_CFLAGS |
| 2613 | elif test $ac_cv_prog_cc_g = yes; then |
| 2614 | if test "$GCC" = yes; then |
| 2615 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2616 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2617 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | fi |
| 2619 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2620 | if test "$GCC" = yes; then |
| 2621 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2622 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2623 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2624 | fi |
| 2625 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2626 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2627 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2628 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2630 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2631 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2632 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2633 | cat >conftest.$ac_ext <<_ACEOF |
| 2634 | /* confdefs.h. */ |
| 2635 | _ACEOF |
| 2636 | cat confdefs.h >>conftest.$ac_ext |
| 2637 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2638 | /* end confdefs.h. */ |
| 2639 | #include <stdarg.h> |
| 2640 | #include <stdio.h> |
| 2641 | #include <sys/types.h> |
| 2642 | #include <sys/stat.h> |
| 2643 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2644 | struct buf { int x; }; |
| 2645 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2646 | static char *e (p, i) |
| 2647 | char **p; |
| 2648 | int i; |
| 2649 | { |
| 2650 | return p[i]; |
| 2651 | } |
| 2652 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2653 | { |
| 2654 | char *s; |
| 2655 | va_list v; |
| 2656 | va_start (v,p); |
| 2657 | s = g (p, va_arg (v,int)); |
| 2658 | va_end (v); |
| 2659 | return s; |
| 2660 | } |
| 2661 | |
| 2662 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2663 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2664 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2665 | 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] | 2666 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2667 | 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] | 2668 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2669 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2671 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2672 | inside strings and character constants. */ |
| 2673 | #define FOO(x) 'x' |
| 2674 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2675 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2676 | int test (int i, double x); |
| 2677 | struct s1 {int (*f) (int a);}; |
| 2678 | struct s2 {int (*f) (double a);}; |
| 2679 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2680 | int argc; |
| 2681 | char **argv; |
| 2682 | int |
| 2683 | main () |
| 2684 | { |
| 2685 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2686 | ; |
| 2687 | return 0; |
| 2688 | } |
| 2689 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2690 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2691 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2692 | do |
| 2693 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2694 | rm -f conftest.$ac_objext |
| 2695 | if { (ac_try="$ac_compile" |
| 2696 | case "(($ac_try" in |
| 2697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2698 | *) ac_try_echo=$ac_try;; |
| 2699 | esac |
| 2700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2701 | (eval "$ac_compile") 2>conftest.er1 |
| 2702 | ac_status=$? |
| 2703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2704 | rm -f conftest.er1 |
| 2705 | cat conftest.err >&5 |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); } && |
| 2708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2709 | { (case "(($ac_try" in |
| 2710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2711 | *) ac_try_echo=$ac_try;; |
| 2712 | esac |
| 2713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2714 | (eval "$ac_try") 2>&5 |
| 2715 | ac_status=$? |
| 2716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2717 | (exit $ac_status); }; } && |
| 2718 | { ac_try='test -s conftest.$ac_objext' |
| 2719 | { (case "(($ac_try" in |
| 2720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2721 | *) ac_try_echo=$ac_try;; |
| 2722 | esac |
| 2723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2724 | (eval "$ac_try") 2>&5 |
| 2725 | ac_status=$? |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2728 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2729 | else |
| 2730 | echo "$as_me: failed program was:" >&5 |
| 2731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2732 | |
| 2733 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2734 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2735 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2736 | rm -f core conftest.err conftest.$ac_objext |
| 2737 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2738 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2739 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2740 | CC=$ac_save_CC |
| 2741 | |
| 2742 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2743 | # AC_CACHE_VAL |
| 2744 | case "x$ac_cv_prog_cc_c89" in |
| 2745 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2746 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2747 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2748 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2749 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2750 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2751 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2752 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2753 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2754 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2755 | esac |
| 2756 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2757 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2758 | ac_ext=c |
| 2759 | ac_cpp='$CPP $CPPFLAGS' |
| 2760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2763 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2764 | ac_ext=cpp |
| 2765 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2766 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2767 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2768 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2769 | if test -z "$CXX"; then |
| 2770 | if test -n "$CCC"; then |
| 2771 | CXX=$CCC |
| 2772 | else |
| 2773 | if test -n "$ac_tool_prefix"; then |
| 2774 | for ac_prog in clang++ llvm-g++ g++ |
| 2775 | do |
| 2776 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2777 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2778 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2780 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2782 | else |
| 2783 | if test -n "$CXX"; then |
| 2784 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2785 | else |
| 2786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2787 | for as_dir in $PATH |
| 2788 | do |
| 2789 | IFS=$as_save_IFS |
| 2790 | test -z "$as_dir" && as_dir=. |
| 2791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2793 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2795 | break 2 |
| 2796 | fi |
| 2797 | done |
| 2798 | done |
| 2799 | IFS=$as_save_IFS |
| 2800 | |
| 2801 | fi |
| 2802 | fi |
| 2803 | CXX=$ac_cv_prog_CXX |
| 2804 | if test -n "$CXX"; then |
| 2805 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2806 | echo "${ECHO_T}$CXX" >&6; } |
| 2807 | else |
| 2808 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2809 | echo "${ECHO_T}no" >&6; } |
| 2810 | fi |
| 2811 | |
| 2812 | |
| 2813 | test -n "$CXX" && break |
| 2814 | done |
| 2815 | fi |
| 2816 | if test -z "$CXX"; then |
| 2817 | ac_ct_CXX=$CXX |
| 2818 | for ac_prog in clang++ llvm-g++ g++ |
| 2819 | do |
| 2820 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2821 | set dummy $ac_prog; ac_word=$2 |
| 2822 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2824 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2826 | else |
| 2827 | if test -n "$ac_ct_CXX"; then |
| 2828 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2829 | else |
| 2830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2831 | for as_dir in $PATH |
| 2832 | do |
| 2833 | IFS=$as_save_IFS |
| 2834 | test -z "$as_dir" && as_dir=. |
| 2835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2837 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2839 | break 2 |
| 2840 | fi |
| 2841 | done |
| 2842 | done |
| 2843 | IFS=$as_save_IFS |
| 2844 | |
| 2845 | fi |
| 2846 | fi |
| 2847 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2848 | if test -n "$ac_ct_CXX"; then |
| 2849 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2850 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2851 | else |
| 2852 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2853 | echo "${ECHO_T}no" >&6; } |
| 2854 | fi |
| 2855 | |
| 2856 | |
| 2857 | test -n "$ac_ct_CXX" && break |
| 2858 | done |
| 2859 | |
| 2860 | if test "x$ac_ct_CXX" = x; then |
| 2861 | CXX="g++" |
| 2862 | else |
| 2863 | case $cross_compiling:$ac_tool_warned in |
| 2864 | yes:) |
| 2865 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2866 | whose name does not start with the host triplet. If you think this |
| 2867 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2868 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2869 | whose name does not start with the host triplet. If you think this |
| 2870 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2871 | ac_tool_warned=yes ;; |
| 2872 | esac |
| 2873 | CXX=$ac_ct_CXX |
| 2874 | fi |
| 2875 | fi |
| 2876 | |
| 2877 | fi |
| 2878 | fi |
| 2879 | # Provide some information about the compiler. |
| 2880 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2881 | ac_compiler=`set X $ac_compile; echo $2` |
| 2882 | { (ac_try="$ac_compiler --version >&5" |
| 2883 | case "(($ac_try" in |
| 2884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2885 | *) ac_try_echo=$ac_try;; |
| 2886 | esac |
| 2887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2888 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2889 | ac_status=$? |
| 2890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2891 | (exit $ac_status); } |
| 2892 | { (ac_try="$ac_compiler -v >&5" |
| 2893 | case "(($ac_try" in |
| 2894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2895 | *) ac_try_echo=$ac_try;; |
| 2896 | esac |
| 2897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2898 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2899 | ac_status=$? |
| 2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2901 | (exit $ac_status); } |
| 2902 | { (ac_try="$ac_compiler -V >&5" |
| 2903 | case "(($ac_try" in |
| 2904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2905 | *) ac_try_echo=$ac_try;; |
| 2906 | esac |
| 2907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2908 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2909 | ac_status=$? |
| 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2911 | (exit $ac_status); } |
| 2912 | |
| 2913 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2914 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2915 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2917 | else |
| 2918 | cat >conftest.$ac_ext <<_ACEOF |
| 2919 | /* confdefs.h. */ |
| 2920 | _ACEOF |
| 2921 | cat confdefs.h >>conftest.$ac_ext |
| 2922 | cat >>conftest.$ac_ext <<_ACEOF |
| 2923 | /* end confdefs.h. */ |
| 2924 | |
| 2925 | int |
| 2926 | main () |
| 2927 | { |
| 2928 | #ifndef __GNUC__ |
| 2929 | choke me |
| 2930 | #endif |
| 2931 | |
| 2932 | ; |
| 2933 | return 0; |
| 2934 | } |
| 2935 | _ACEOF |
| 2936 | rm -f conftest.$ac_objext |
| 2937 | if { (ac_try="$ac_compile" |
| 2938 | case "(($ac_try" in |
| 2939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2940 | *) ac_try_echo=$ac_try;; |
| 2941 | esac |
| 2942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2943 | (eval "$ac_compile") 2>conftest.er1 |
| 2944 | ac_status=$? |
| 2945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2946 | rm -f conftest.er1 |
| 2947 | cat conftest.err >&5 |
| 2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2949 | (exit $ac_status); } && |
| 2950 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2951 | { (case "(($ac_try" in |
| 2952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2953 | *) ac_try_echo=$ac_try;; |
| 2954 | esac |
| 2955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2956 | (eval "$ac_try") 2>&5 |
| 2957 | ac_status=$? |
| 2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2959 | (exit $ac_status); }; } && |
| 2960 | { ac_try='test -s conftest.$ac_objext' |
| 2961 | { (case "(($ac_try" in |
| 2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2963 | *) ac_try_echo=$ac_try;; |
| 2964 | esac |
| 2965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2966 | (eval "$ac_try") 2>&5 |
| 2967 | ac_status=$? |
| 2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2969 | (exit $ac_status); }; }; then |
| 2970 | ac_compiler_gnu=yes |
| 2971 | else |
| 2972 | echo "$as_me: failed program was:" >&5 |
| 2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2974 | |
| 2975 | ac_compiler_gnu=no |
| 2976 | fi |
| 2977 | |
| 2978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2979 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2980 | |
| 2981 | fi |
| 2982 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2983 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 2984 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2985 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2986 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2987 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2988 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 2989 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2991 | else |
| 2992 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 2993 | ac_cxx_werror_flag=yes |
| 2994 | ac_cv_prog_cxx_g=no |
| 2995 | CXXFLAGS="-g" |
| 2996 | cat >conftest.$ac_ext <<_ACEOF |
| 2997 | /* confdefs.h. */ |
| 2998 | _ACEOF |
| 2999 | cat confdefs.h >>conftest.$ac_ext |
| 3000 | cat >>conftest.$ac_ext <<_ACEOF |
| 3001 | /* end confdefs.h. */ |
| 3002 | |
| 3003 | int |
| 3004 | main () |
| 3005 | { |
| 3006 | |
| 3007 | ; |
| 3008 | return 0; |
| 3009 | } |
| 3010 | _ACEOF |
| 3011 | rm -f conftest.$ac_objext |
| 3012 | if { (ac_try="$ac_compile" |
| 3013 | case "(($ac_try" in |
| 3014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3015 | *) ac_try_echo=$ac_try;; |
| 3016 | esac |
| 3017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3018 | (eval "$ac_compile") 2>conftest.er1 |
| 3019 | ac_status=$? |
| 3020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3021 | rm -f conftest.er1 |
| 3022 | cat conftest.err >&5 |
| 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3024 | (exit $ac_status); } && |
| 3025 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3026 | { (case "(($ac_try" in |
| 3027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3028 | *) ac_try_echo=$ac_try;; |
| 3029 | esac |
| 3030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3031 | (eval "$ac_try") 2>&5 |
| 3032 | ac_status=$? |
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3034 | (exit $ac_status); }; } && |
| 3035 | { ac_try='test -s conftest.$ac_objext' |
| 3036 | { (case "(($ac_try" in |
| 3037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3038 | *) ac_try_echo=$ac_try;; |
| 3039 | esac |
| 3040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3041 | (eval "$ac_try") 2>&5 |
| 3042 | ac_status=$? |
| 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3044 | (exit $ac_status); }; }; then |
| 3045 | ac_cv_prog_cxx_g=yes |
| 3046 | else |
| 3047 | echo "$as_me: failed program was:" >&5 |
| 3048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3049 | |
| 3050 | CXXFLAGS="" |
| 3051 | cat >conftest.$ac_ext <<_ACEOF |
| 3052 | /* confdefs.h. */ |
| 3053 | _ACEOF |
| 3054 | cat confdefs.h >>conftest.$ac_ext |
| 3055 | cat >>conftest.$ac_ext <<_ACEOF |
| 3056 | /* end confdefs.h. */ |
| 3057 | |
| 3058 | int |
| 3059 | main () |
| 3060 | { |
| 3061 | |
| 3062 | ; |
| 3063 | return 0; |
| 3064 | } |
| 3065 | _ACEOF |
| 3066 | rm -f conftest.$ac_objext |
| 3067 | if { (ac_try="$ac_compile" |
| 3068 | case "(($ac_try" in |
| 3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3070 | *) ac_try_echo=$ac_try;; |
| 3071 | esac |
| 3072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3073 | (eval "$ac_compile") 2>conftest.er1 |
| 3074 | ac_status=$? |
| 3075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3076 | rm -f conftest.er1 |
| 3077 | cat conftest.err >&5 |
| 3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3079 | (exit $ac_status); } && |
| 3080 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3081 | { (case "(($ac_try" in |
| 3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3083 | *) ac_try_echo=$ac_try;; |
| 3084 | esac |
| 3085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3086 | (eval "$ac_try") 2>&5 |
| 3087 | ac_status=$? |
| 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3089 | (exit $ac_status); }; } && |
| 3090 | { ac_try='test -s conftest.$ac_objext' |
| 3091 | { (case "(($ac_try" in |
| 3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3093 | *) ac_try_echo=$ac_try;; |
| 3094 | esac |
| 3095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3096 | (eval "$ac_try") 2>&5 |
| 3097 | ac_status=$? |
| 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3099 | (exit $ac_status); }; }; then |
| 3100 | : |
| 3101 | else |
| 3102 | echo "$as_me: failed program was:" >&5 |
| 3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3104 | |
| 3105 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3106 | CXXFLAGS="-g" |
| 3107 | cat >conftest.$ac_ext <<_ACEOF |
| 3108 | /* confdefs.h. */ |
| 3109 | _ACEOF |
| 3110 | cat confdefs.h >>conftest.$ac_ext |
| 3111 | cat >>conftest.$ac_ext <<_ACEOF |
| 3112 | /* end confdefs.h. */ |
| 3113 | |
| 3114 | int |
| 3115 | main () |
| 3116 | { |
| 3117 | |
| 3118 | ; |
| 3119 | return 0; |
| 3120 | } |
| 3121 | _ACEOF |
| 3122 | rm -f conftest.$ac_objext |
| 3123 | if { (ac_try="$ac_compile" |
| 3124 | case "(($ac_try" in |
| 3125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3126 | *) ac_try_echo=$ac_try;; |
| 3127 | esac |
| 3128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3129 | (eval "$ac_compile") 2>conftest.er1 |
| 3130 | ac_status=$? |
| 3131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3132 | rm -f conftest.er1 |
| 3133 | cat conftest.err >&5 |
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3135 | (exit $ac_status); } && |
| 3136 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3137 | { (case "(($ac_try" in |
| 3138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3139 | *) ac_try_echo=$ac_try;; |
| 3140 | esac |
| 3141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3142 | (eval "$ac_try") 2>&5 |
| 3143 | ac_status=$? |
| 3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3145 | (exit $ac_status); }; } && |
| 3146 | { ac_try='test -s conftest.$ac_objext' |
| 3147 | { (case "(($ac_try" in |
| 3148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3149 | *) ac_try_echo=$ac_try;; |
| 3150 | esac |
| 3151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3152 | (eval "$ac_try") 2>&5 |
| 3153 | ac_status=$? |
| 3154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3155 | (exit $ac_status); }; }; then |
| 3156 | ac_cv_prog_cxx_g=yes |
| 3157 | else |
| 3158 | echo "$as_me: failed program was:" >&5 |
| 3159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3160 | |
| 3161 | |
| 3162 | fi |
| 3163 | |
| 3164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3165 | fi |
| 3166 | |
| 3167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3168 | fi |
| 3169 | |
| 3170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3171 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3172 | fi |
| 3173 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3174 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3175 | if test "$ac_test_CXXFLAGS" = set; then |
| 3176 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3177 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3178 | if test "$GXX" = yes; then |
| 3179 | CXXFLAGS="-g -O2" |
| 3180 | else |
| 3181 | CXXFLAGS="-g" |
| 3182 | fi |
| 3183 | else |
| 3184 | if test "$GXX" = yes; then |
| 3185 | CXXFLAGS="-O2" |
| 3186 | else |
| 3187 | CXXFLAGS= |
| 3188 | fi |
| 3189 | fi |
| 3190 | ac_ext=c |
| 3191 | ac_cpp='$CPP $CPPFLAGS' |
| 3192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3195 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3196 | ac_ext=c |
| 3197 | ac_cpp='$CPP $CPPFLAGS' |
| 3198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3201 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3202 | 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] | 3203 | # On Suns, sometimes $CPP names a directory. |
| 3204 | if test -n "$CPP" && test -d "$CPP"; then |
| 3205 | CPP= |
| 3206 | fi |
| 3207 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3208 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3210 | else |
| 3211 | # Double quotes because CPP needs to be expanded |
| 3212 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3213 | do |
| 3214 | ac_preproc_ok=false |
| 3215 | for ac_c_preproc_warn_flag in '' yes |
| 3216 | do |
| 3217 | # Use a header file that comes with gcc, so configuring glibc |
| 3218 | # with a fresh cross-compiler works. |
| 3219 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3220 | # <limits.h> exists even on freestanding compilers. |
| 3221 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3222 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3223 | cat >conftest.$ac_ext <<_ACEOF |
| 3224 | /* confdefs.h. */ |
| 3225 | _ACEOF |
| 3226 | cat confdefs.h >>conftest.$ac_ext |
| 3227 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3228 | /* end confdefs.h. */ |
| 3229 | #ifdef __STDC__ |
| 3230 | # include <limits.h> |
| 3231 | #else |
| 3232 | # include <assert.h> |
| 3233 | #endif |
| 3234 | Syntax error |
| 3235 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3236 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3237 | case "(($ac_try" in |
| 3238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3239 | *) ac_try_echo=$ac_try;; |
| 3240 | esac |
| 3241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3242 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3243 | ac_status=$? |
| 3244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3245 | rm -f conftest.er1 |
| 3246 | cat conftest.err >&5 |
| 3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3248 | (exit $ac_status); } >/dev/null; then |
| 3249 | if test -s conftest.err; then |
| 3250 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3251 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3252 | else |
| 3253 | ac_cpp_err= |
| 3254 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3255 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3256 | ac_cpp_err=yes |
| 3257 | fi |
| 3258 | if test -z "$ac_cpp_err"; then |
| 3259 | : |
| 3260 | else |
| 3261 | echo "$as_me: failed program was:" >&5 |
| 3262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3263 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3264 | # Broken: fails on valid input. |
| 3265 | continue |
| 3266 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3267 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3268 | rm -f conftest.err conftest.$ac_ext |
| 3269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3270 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3271 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3272 | cat >conftest.$ac_ext <<_ACEOF |
| 3273 | /* confdefs.h. */ |
| 3274 | _ACEOF |
| 3275 | cat confdefs.h >>conftest.$ac_ext |
| 3276 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3277 | /* end confdefs.h. */ |
| 3278 | #include <ac_nonexistent.h> |
| 3279 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3280 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3281 | case "(($ac_try" in |
| 3282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3283 | *) ac_try_echo=$ac_try;; |
| 3284 | esac |
| 3285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3286 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3287 | ac_status=$? |
| 3288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3289 | rm -f conftest.er1 |
| 3290 | cat conftest.err >&5 |
| 3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3292 | (exit $ac_status); } >/dev/null; then |
| 3293 | if test -s conftest.err; then |
| 3294 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3296 | else |
| 3297 | ac_cpp_err= |
| 3298 | fi |
| 3299 | else |
| 3300 | ac_cpp_err=yes |
| 3301 | fi |
| 3302 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3303 | # Broken: success on invalid input. |
| 3304 | continue |
| 3305 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3306 | echo "$as_me: failed program was:" >&5 |
| 3307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3308 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3309 | # Passes both tests. |
| 3310 | ac_preproc_ok=: |
| 3311 | break |
| 3312 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3313 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3314 | rm -f conftest.err conftest.$ac_ext |
| 3315 | |
| 3316 | done |
| 3317 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3318 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3319 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3320 | break |
| 3321 | fi |
| 3322 | |
| 3323 | done |
| 3324 | ac_cv_prog_CPP=$CPP |
| 3325 | |
| 3326 | fi |
| 3327 | CPP=$ac_cv_prog_CPP |
| 3328 | else |
| 3329 | ac_cv_prog_CPP=$CPP |
| 3330 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3331 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3332 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3333 | ac_preproc_ok=false |
| 3334 | for ac_c_preproc_warn_flag in '' yes |
| 3335 | do |
| 3336 | # Use a header file that comes with gcc, so configuring glibc |
| 3337 | # with a fresh cross-compiler works. |
| 3338 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3339 | # <limits.h> exists even on freestanding compilers. |
| 3340 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3341 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3342 | cat >conftest.$ac_ext <<_ACEOF |
| 3343 | /* confdefs.h. */ |
| 3344 | _ACEOF |
| 3345 | cat confdefs.h >>conftest.$ac_ext |
| 3346 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3347 | /* end confdefs.h. */ |
| 3348 | #ifdef __STDC__ |
| 3349 | # include <limits.h> |
| 3350 | #else |
| 3351 | # include <assert.h> |
| 3352 | #endif |
| 3353 | Syntax error |
| 3354 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3355 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3356 | case "(($ac_try" in |
| 3357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3358 | *) ac_try_echo=$ac_try;; |
| 3359 | esac |
| 3360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3361 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3362 | ac_status=$? |
| 3363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3364 | rm -f conftest.er1 |
| 3365 | cat conftest.err >&5 |
| 3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3367 | (exit $ac_status); } >/dev/null; then |
| 3368 | if test -s conftest.err; then |
| 3369 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3370 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3371 | else |
| 3372 | ac_cpp_err= |
| 3373 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3374 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3375 | ac_cpp_err=yes |
| 3376 | fi |
| 3377 | if test -z "$ac_cpp_err"; then |
| 3378 | : |
| 3379 | else |
| 3380 | echo "$as_me: failed program was:" >&5 |
| 3381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3382 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3383 | # Broken: fails on valid input. |
| 3384 | continue |
| 3385 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3386 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3387 | rm -f conftest.err conftest.$ac_ext |
| 3388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3389 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3390 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3391 | cat >conftest.$ac_ext <<_ACEOF |
| 3392 | /* confdefs.h. */ |
| 3393 | _ACEOF |
| 3394 | cat confdefs.h >>conftest.$ac_ext |
| 3395 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3396 | /* end confdefs.h. */ |
| 3397 | #include <ac_nonexistent.h> |
| 3398 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3399 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3400 | case "(($ac_try" in |
| 3401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3402 | *) ac_try_echo=$ac_try;; |
| 3403 | esac |
| 3404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3405 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3406 | ac_status=$? |
| 3407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3408 | rm -f conftest.er1 |
| 3409 | cat conftest.err >&5 |
| 3410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3411 | (exit $ac_status); } >/dev/null; then |
| 3412 | if test -s conftest.err; then |
| 3413 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3415 | else |
| 3416 | ac_cpp_err= |
| 3417 | fi |
| 3418 | else |
| 3419 | ac_cpp_err=yes |
| 3420 | fi |
| 3421 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3422 | # Broken: success on invalid input. |
| 3423 | continue |
| 3424 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3425 | echo "$as_me: failed program was:" >&5 |
| 3426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3427 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3428 | # Passes both tests. |
| 3429 | ac_preproc_ok=: |
| 3430 | break |
| 3431 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3432 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3433 | rm -f conftest.err conftest.$ac_ext |
| 3434 | |
| 3435 | done |
| 3436 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3437 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3438 | if $ac_preproc_ok; then |
| 3439 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3440 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3441 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3442 | See \`config.log' for more details." >&5 |
| 3443 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3444 | See \`config.log' for more details." >&2;} |
| 3445 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3446 | fi |
| 3447 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3448 | ac_ext=c |
| 3449 | ac_cpp='$CPP $CPPFLAGS' |
| 3450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3453 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3454 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3455 | |
| 3456 | |
| 3457 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 3458 | subdirs="$subdirs projects/llvm-gcc" |
| 3459 | |
| 3460 | fi |
| 3461 | |
| 3462 | if test -d ${srcdir}/projects/test-suite ; then |
| 3463 | subdirs="$subdirs projects/test-suite" |
| 3464 | |
| 3465 | fi |
| 3466 | |
| 3467 | if test -d ${srcdir}/projects/llvm-test ; then |
| 3468 | subdirs="$subdirs projects/llvm-test" |
| 3469 | |
| 3470 | fi |
| 3471 | |
| 3472 | if test -d ${srcdir}/projects/poolalloc ; then |
| 3473 | subdirs="$subdirs projects/poolalloc" |
| 3474 | |
| 3475 | fi |
| 3476 | |
| 3477 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 3478 | subdirs="$subdirs projects/llvm-poolalloc" |
| 3479 | |
| 3480 | fi |
| 3481 | |
| 3482 | for i in `ls ${srcdir}/projects` |
| 3483 | do |
| 3484 | if test -d ${srcdir}/projects/${i} ; then |
| 3485 | case ${i} in |
| 3486 | sample) subdirs="$subdirs projects/sample" |
| 3487 | ;; |
| 3488 | privbracket) subdirs="$subdirs projects/privbracket" |
| 3489 | ;; |
| 3490 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
| 3491 | ;; |
| 3492 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
| 3493 | ;; |
| 3494 | llvm-java) subdirs="$subdirs projects/llvm-java" |
| 3495 | ;; |
| 3496 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
| 3497 | ;; |
| 3498 | safecode) subdirs="$subdirs projects/safecode" |
| 3499 | ;; |
| 3500 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
| 3501 | ;; |
Daniel Dunbar | d45162b | 2011-12-07 22:07:03 +0000 | [diff] [blame] | 3502 | compiler-rt) ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3503 | llvm-gcc) ;; |
| 3504 | test-suite) ;; |
| 3505 | llvm-test) ;; |
| 3506 | poolalloc) ;; |
| 3507 | llvm-poolalloc) ;; |
| 3508 | *) |
| 3509 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 3510 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
| 3511 | ;; |
| 3512 | esac |
| 3513 | fi |
| 3514 | done |
| 3515 | |
| 3516 | # Check whether --enable-polly was given. |
| 3517 | if test "${enable_polly+set}" = set; then |
| 3518 | enableval=$enable_polly; |
| 3519 | else |
| 3520 | enableval=default |
| 3521 | fi |
| 3522 | |
| 3523 | case "$enableval" in |
| 3524 | yes) ENABLE_POLLY=1 |
| 3525 | ;; |
| 3526 | no) ENABLE_POLLY=0 |
| 3527 | ;; |
| 3528 | default) ENABLE_POLLY=1 |
| 3529 | ;; |
| 3530 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 3531 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 3532 | { (exit 1); exit 1; }; } ;; |
| 3533 | esac |
| 3534 | |
| 3535 | |
| 3536 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 3537 | LLVM_HAS_POLLY=1 |
| 3538 | |
| 3539 | subdirs="$subdirs tools/polly" |
| 3540 | |
| 3541 | fi |
| 3542 | |
| 3543 | |
| 3544 | # Make sure we can run config.sub. |
| 3545 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3546 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3547 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3548 | { (exit 1); exit 1; }; } |
| 3549 | |
| 3550 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3551 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3552 | if test "${ac_cv_build+set}" = set; then |
| 3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3554 | else |
| 3555 | ac_build_alias=$build_alias |
| 3556 | test "x$ac_build_alias" = x && |
| 3557 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3558 | test "x$ac_build_alias" = x && |
| 3559 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3560 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3561 | { (exit 1); exit 1; }; } |
| 3562 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3563 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3564 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3565 | { (exit 1); exit 1; }; } |
| 3566 | |
| 3567 | fi |
| 3568 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3569 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3570 | case $ac_cv_build in |
| 3571 | *-*-*) ;; |
| 3572 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3573 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3574 | { (exit 1); exit 1; }; };; |
| 3575 | esac |
| 3576 | build=$ac_cv_build |
| 3577 | ac_save_IFS=$IFS; IFS='-' |
| 3578 | set x $ac_cv_build |
| 3579 | shift |
| 3580 | build_cpu=$1 |
| 3581 | build_vendor=$2 |
| 3582 | shift; shift |
| 3583 | # Remember, the first character of IFS is used to create $*, |
| 3584 | # except with old shells: |
| 3585 | build_os=$* |
| 3586 | IFS=$ac_save_IFS |
| 3587 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3588 | |
| 3589 | |
| 3590 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3591 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3592 | if test "${ac_cv_host+set}" = set; then |
| 3593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3594 | else |
| 3595 | if test "x$host_alias" = x; then |
| 3596 | ac_cv_host=$ac_cv_build |
| 3597 | else |
| 3598 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3599 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3600 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3601 | { (exit 1); exit 1; }; } |
| 3602 | fi |
| 3603 | |
| 3604 | fi |
| 3605 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3606 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3607 | case $ac_cv_host in |
| 3608 | *-*-*) ;; |
| 3609 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3610 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3611 | { (exit 1); exit 1; }; };; |
| 3612 | esac |
| 3613 | host=$ac_cv_host |
| 3614 | ac_save_IFS=$IFS; IFS='-' |
| 3615 | set x $ac_cv_host |
| 3616 | shift |
| 3617 | host_cpu=$1 |
| 3618 | host_vendor=$2 |
| 3619 | shift; shift |
| 3620 | # Remember, the first character of IFS is used to create $*, |
| 3621 | # except with old shells: |
| 3622 | host_os=$* |
| 3623 | IFS=$ac_save_IFS |
| 3624 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3625 | |
| 3626 | |
| 3627 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 3628 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 3629 | if test "${ac_cv_target+set}" = set; then |
| 3630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3631 | else |
| 3632 | if test "x$target_alias" = x; then |
| 3633 | ac_cv_target=$ac_cv_host |
| 3634 | else |
| 3635 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3636 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 3637 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 3638 | { (exit 1); exit 1; }; } |
| 3639 | fi |
| 3640 | |
| 3641 | fi |
| 3642 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3643 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 3644 | case $ac_cv_target in |
| 3645 | *-*-*) ;; |
| 3646 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 3647 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 3648 | { (exit 1); exit 1; }; };; |
| 3649 | esac |
| 3650 | target=$ac_cv_target |
| 3651 | ac_save_IFS=$IFS; IFS='-' |
| 3652 | set x $ac_cv_target |
| 3653 | shift |
| 3654 | target_cpu=$1 |
| 3655 | target_vendor=$2 |
| 3656 | shift; shift |
| 3657 | # Remember, the first character of IFS is used to create $*, |
| 3658 | # except with old shells: |
| 3659 | target_os=$* |
| 3660 | IFS=$ac_save_IFS |
| 3661 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3662 | |
| 3663 | |
| 3664 | # The aliases save the names the user supplied, while $host etc. |
| 3665 | # will get canonicalized. |
| 3666 | test -n "$target_alias" && |
| 3667 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3668 | NONENONEs,x,x, && |
| 3669 | program_prefix=${target_alias}- |
| 3670 | |
| 3671 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 3672 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 3673 | if test "${llvm_cv_os_type+set}" = set; then |
| 3674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3675 | else |
| 3676 | case $host in |
| 3677 | *-*-aix*) |
| 3678 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3679 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3680 | llvm_cv_os_type="AIX" |
| 3681 | llvm_cv_platform_type="Unix" ;; |
| 3682 | *-*-irix*) |
| 3683 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3684 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3685 | llvm_cv_os_type="IRIX" |
| 3686 | llvm_cv_platform_type="Unix" ;; |
| 3687 | *-*-cygwin*) |
| 3688 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3689 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3690 | llvm_cv_os_type="Cygwin" |
| 3691 | llvm_cv_platform_type="Unix" ;; |
| 3692 | *-*-darwin*) |
| 3693 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3694 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3695 | llvm_cv_os_type="Darwin" |
| 3696 | llvm_cv_platform_type="Unix" ;; |
| 3697 | *-*-minix*) |
| 3698 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3699 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3700 | llvm_cv_os_type="Minix" |
| 3701 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3702 | *-*-freebsd* | *-*-kfreebsd-gnu) |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3703 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3704 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3705 | llvm_cv_os_type="FreeBSD" |
| 3706 | llvm_cv_platform_type="Unix" ;; |
| 3707 | *-*-openbsd*) |
| 3708 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3709 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3710 | llvm_cv_os_type="OpenBSD" |
| 3711 | llvm_cv_platform_type="Unix" ;; |
| 3712 | *-*-netbsd*) |
| 3713 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3714 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3715 | llvm_cv_os_type="NetBSD" |
| 3716 | llvm_cv_platform_type="Unix" ;; |
| 3717 | *-*-dragonfly*) |
| 3718 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3719 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3720 | llvm_cv_os_type="DragonFly" |
| 3721 | llvm_cv_platform_type="Unix" ;; |
| 3722 | *-*-hpux*) |
| 3723 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3724 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3725 | llvm_cv_os_type="HP-UX" |
| 3726 | llvm_cv_platform_type="Unix" ;; |
| 3727 | *-*-interix*) |
| 3728 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3729 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3730 | llvm_cv_os_type="Interix" |
| 3731 | llvm_cv_platform_type="Unix" ;; |
| 3732 | *-*-linux*) |
| 3733 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3734 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3735 | llvm_cv_os_type="Linux" |
| 3736 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3737 | *-*-gnu*) |
| 3738 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3739 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3740 | llvm_cv_os_type="GNU" |
| 3741 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3742 | *-*-solaris*) |
| 3743 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3744 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
| 3745 | llvm_cv_os_type="SunOS" |
| 3746 | llvm_cv_platform_type="Unix" ;; |
| 3747 | *-*-auroraux*) |
| 3748 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3749 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 3750 | llvm_cv_os_type="AuroraUX" |
| 3751 | llvm_cv_platform_type="Unix" ;; |
| 3752 | *-*-win32*) |
| 3753 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3754 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3755 | llvm_cv_os_type="Win32" |
| 3756 | llvm_cv_platform_type="Win32" ;; |
| 3757 | *-*-mingw*) |
| 3758 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3759 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3760 | llvm_cv_os_type="MingW" |
| 3761 | llvm_cv_platform_type="Win32" ;; |
| 3762 | *-*-haiku*) |
| 3763 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3764 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3765 | llvm_cv_os_type="Haiku" |
| 3766 | llvm_cv_platform_type="Unix" ;; |
| 3767 | *-unknown-eabi*) |
| 3768 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3769 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3770 | llvm_cv_os_type="Freestanding" |
| 3771 | llvm_cv_platform_type="Unix" ;; |
| 3772 | *-unknown-elf*) |
| 3773 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3774 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3775 | llvm_cv_os_type="Freestanding" |
| 3776 | llvm_cv_platform_type="Unix" ;; |
| 3777 | *) |
| 3778 | llvm_cv_link_all_option="" |
| 3779 | llvm_cv_no_link_all_option="" |
| 3780 | llvm_cv_os_type="Unknown" |
| 3781 | llvm_cv_platform_type="Unknown" ;; |
| 3782 | esac |
| 3783 | fi |
| 3784 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 3785 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
| 3786 | |
| 3787 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 3788 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 3789 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 3790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3791 | else |
| 3792 | case $target in |
| 3793 | *-*-aix*) |
| 3794 | llvm_cv_target_os_type="AIX" ;; |
| 3795 | *-*-irix*) |
| 3796 | llvm_cv_target_os_type="IRIX" ;; |
| 3797 | *-*-cygwin*) |
| 3798 | llvm_cv_target_os_type="Cygwin" ;; |
| 3799 | *-*-darwin*) |
| 3800 | llvm_cv_target_os_type="Darwin" ;; |
| 3801 | *-*-minix*) |
| 3802 | llvm_cv_target_os_type="Minix" ;; |
| 3803 | *-*-freebsd*) |
| 3804 | llvm_cv_target_os_type="FreeBSD" ;; |
| 3805 | *-*-openbsd*) |
| 3806 | llvm_cv_target_os_type="OpenBSD" ;; |
| 3807 | *-*-netbsd*) |
| 3808 | llvm_cv_target_os_type="NetBSD" ;; |
| 3809 | *-*-dragonfly*) |
| 3810 | llvm_cv_target_os_type="DragonFly" ;; |
| 3811 | *-*-hpux*) |
| 3812 | llvm_cv_target_os_type="HP-UX" ;; |
| 3813 | *-*-interix*) |
| 3814 | llvm_cv_target_os_type="Interix" ;; |
| 3815 | *-*-linux*) |
| 3816 | llvm_cv_target_os_type="Linux" ;; |
| 3817 | *-*-solaris*) |
| 3818 | llvm_cv_target_os_type="SunOS" ;; |
| 3819 | *-*-auroraux*) |
| 3820 | llvm_cv_target_os_type="AuroraUX" ;; |
| 3821 | *-*-win32*) |
| 3822 | llvm_cv_target_os_type="Win32" ;; |
| 3823 | *-*-mingw*) |
| 3824 | llvm_cv_target_os_type="MingW" ;; |
| 3825 | *-*-haiku*) |
| 3826 | llvm_cv_target_os_type="Haiku" ;; |
| 3827 | *-*-rtems*) |
| 3828 | llvm_cv_target_os_type="RTEMS" ;; |
| 3829 | *-*-nacl*) |
| 3830 | llvm_cv_target_os_type="NativeClient" ;; |
| 3831 | *-unknown-eabi*) |
| 3832 | llvm_cv_target_os_type="Freestanding" ;; |
| 3833 | *) |
| 3834 | llvm_cv_target_os_type="Unknown" ;; |
| 3835 | esac |
| 3836 | fi |
| 3837 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 3838 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 3839 | |
| 3840 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 3841 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 3842 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 3843 | { (exit 1); exit 1; }; } |
| 3844 | fi |
| 3845 | |
| 3846 | OS=$llvm_cv_os_type |
| 3847 | |
| 3848 | HOST_OS=$llvm_cv_os_type |
| 3849 | |
| 3850 | TARGET_OS=$llvm_cv_target_os_type |
| 3851 | |
| 3852 | |
| 3853 | LINKALL=$llvm_cv_link_all_option |
| 3854 | |
| 3855 | NOLINKALL=$llvm_cv_no_link_all_option |
| 3856 | |
| 3857 | |
| 3858 | case $llvm_cv_platform_type in |
| 3859 | Unix) |
| 3860 | |
| 3861 | cat >>confdefs.h <<\_ACEOF |
| 3862 | #define LLVM_ON_UNIX 1 |
| 3863 | _ACEOF |
| 3864 | |
| 3865 | LLVM_ON_UNIX=1 |
| 3866 | |
| 3867 | LLVM_ON_WIN32=0 |
| 3868 | |
| 3869 | ;; |
| 3870 | Win32) |
| 3871 | |
| 3872 | cat >>confdefs.h <<\_ACEOF |
| 3873 | #define LLVM_ON_WIN32 1 |
| 3874 | _ACEOF |
| 3875 | |
| 3876 | LLVM_ON_UNIX=0 |
| 3877 | |
| 3878 | LLVM_ON_WIN32=1 |
| 3879 | |
| 3880 | ;; |
| 3881 | esac |
| 3882 | |
| 3883 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 3884 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 3885 | if test "${llvm_cv_target_arch+set}" = set; then |
| 3886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3887 | else |
| 3888 | case $target in |
| 3889 | i?86-*) llvm_cv_target_arch="x86" ;; |
| 3890 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
| 3891 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 3892 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3893 | arm*-*) llvm_cv_target_arch="ARM" ;; |
| 3894 | mips-*) llvm_cv_target_arch="Mips" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 3895 | mipsel-*) llvm_cv_target_arch="Mips" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3896 | xcore-*) llvm_cv_target_arch="XCore" ;; |
| 3897 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3898 | hexagon-*) llvm_cv_target_arch="Hexagon" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3899 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
| 3900 | ptx-*) llvm_cv_target_arch="PTX" ;; |
| 3901 | *) llvm_cv_target_arch="Unknown" ;; |
| 3902 | esac |
| 3903 | fi |
| 3904 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 3905 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
| 3906 | |
| 3907 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 3908 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 3909 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 3910 | fi |
| 3911 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3912 | case "$llvm_cv_target_arch" in |
| 3913 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 3914 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 3915 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 3916 | esac |
| 3917 | |
| 3918 | ARCH=$llvm_cv_target_arch |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3923 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3924 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3925 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3927 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3928 | # Extract the first word of "grep ggrep" to use in msg output |
| 3929 | if test -z "$GREP"; then |
| 3930 | set dummy grep ggrep; ac_prog_name=$2 |
| 3931 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3933 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3934 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3935 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3937 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3938 | do |
| 3939 | IFS=$as_save_IFS |
| 3940 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3941 | for ac_prog in grep ggrep; do |
| 3942 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3943 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3944 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3945 | # 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] | 3946 | # Check for GNU $ac_path_GREP |
| 3947 | case `"$ac_path_GREP" --version 2>&1` in |
| 3948 | *GNU*) |
| 3949 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3950 | *) |
| 3951 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3952 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3953 | while : |
| 3954 | do |
| 3955 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3956 | mv "conftest.tmp" "conftest.in" |
| 3957 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3958 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3959 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3960 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3961 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3962 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3963 | # Best one so far, save it but keep looking for a better one |
| 3964 | ac_cv_path_GREP="$ac_path_GREP" |
| 3965 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3967 | # 10*(2^10) chars as input seems more than enough |
| 3968 | test $ac_count -gt 10 && break |
| 3969 | done |
| 3970 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3971 | esac |
| 3972 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3973 | |
| 3974 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3975 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3976 | done |
| 3977 | |
| 3978 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3979 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3980 | |
| 3981 | |
| 3982 | fi |
| 3983 | |
| 3984 | GREP="$ac_cv_path_GREP" |
| 3985 | if test -z "$GREP"; then |
| 3986 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3987 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3988 | { (exit 1); exit 1; }; } |
| 3989 | fi |
| 3990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3991 | else |
| 3992 | ac_cv_path_GREP=$GREP |
| 3993 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3994 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3996 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3997 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3998 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3999 | GREP="$ac_cv_path_GREP" |
| 4000 | |
| 4001 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4002 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4003 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4004 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4006 | else |
| 4007 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4008 | then ac_cv_path_EGREP="$GREP -E" |
| 4009 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4010 | # Extract the first word of "egrep" to use in msg output |
| 4011 | if test -z "$EGREP"; then |
| 4012 | set dummy egrep; ac_prog_name=$2 |
| 4013 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4015 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4016 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4017 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4019 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4020 | do |
| 4021 | IFS=$as_save_IFS |
| 4022 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4023 | for ac_prog in egrep; do |
| 4024 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4025 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4026 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4027 | # 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] | 4028 | # Check for GNU $ac_path_EGREP |
| 4029 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4030 | *GNU*) |
| 4031 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4032 | *) |
| 4033 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4034 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4035 | while : |
| 4036 | do |
| 4037 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4038 | mv "conftest.tmp" "conftest.in" |
| 4039 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4040 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4041 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4042 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4043 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4044 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4045 | # Best one so far, save it but keep looking for a better one |
| 4046 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4047 | ac_path_EGREP_max=$ac_count |
| 4048 | fi |
| 4049 | # 10*(2^10) chars as input seems more than enough |
| 4050 | test $ac_count -gt 10 && break |
| 4051 | done |
| 4052 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4053 | esac |
| 4054 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4055 | |
| 4056 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4057 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4058 | done |
| 4059 | |
| 4060 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4061 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4062 | |
| 4063 | |
| 4064 | fi |
| 4065 | |
| 4066 | EGREP="$ac_cv_path_EGREP" |
| 4067 | if test -z "$EGREP"; then |
| 4068 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4069 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4070 | { (exit 1); exit 1; }; } |
| 4071 | fi |
| 4072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4073 | else |
| 4074 | ac_cv_path_EGREP=$EGREP |
| 4075 | fi |
| 4076 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4078 | fi |
| 4079 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4080 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4081 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4082 | EGREP="$ac_cv_path_EGREP" |
| 4083 | |
| 4084 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4085 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4086 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4087 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4089 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4090 | cat >conftest.$ac_ext <<_ACEOF |
| 4091 | /* confdefs.h. */ |
| 4092 | _ACEOF |
| 4093 | cat confdefs.h >>conftest.$ac_ext |
| 4094 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4095 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4096 | #include <stdlib.h> |
| 4097 | #include <stdarg.h> |
| 4098 | #include <string.h> |
| 4099 | #include <float.h> |
| 4100 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4101 | int |
| 4102 | main () |
| 4103 | { |
| 4104 | |
| 4105 | ; |
| 4106 | return 0; |
| 4107 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4108 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4109 | rm -f conftest.$ac_objext |
| 4110 | if { (ac_try="$ac_compile" |
| 4111 | case "(($ac_try" in |
| 4112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4113 | *) ac_try_echo=$ac_try;; |
| 4114 | esac |
| 4115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4116 | (eval "$ac_compile") 2>conftest.er1 |
| 4117 | ac_status=$? |
| 4118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4119 | rm -f conftest.er1 |
| 4120 | cat conftest.err >&5 |
| 4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4122 | (exit $ac_status); } && |
| 4123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4124 | { (case "(($ac_try" in |
| 4125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4126 | *) ac_try_echo=$ac_try;; |
| 4127 | esac |
| 4128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4129 | (eval "$ac_try") 2>&5 |
| 4130 | ac_status=$? |
| 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4132 | (exit $ac_status); }; } && |
| 4133 | { ac_try='test -s conftest.$ac_objext' |
| 4134 | { (case "(($ac_try" in |
| 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4136 | *) ac_try_echo=$ac_try;; |
| 4137 | esac |
| 4138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4139 | (eval "$ac_try") 2>&5 |
| 4140 | ac_status=$? |
| 4141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4142 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4143 | ac_cv_header_stdc=yes |
| 4144 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4145 | echo "$as_me: failed program was:" >&5 |
| 4146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4147 | |
| 4148 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4149 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4152 | |
| 4153 | if test $ac_cv_header_stdc = yes; then |
| 4154 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4155 | cat >conftest.$ac_ext <<_ACEOF |
| 4156 | /* confdefs.h. */ |
| 4157 | _ACEOF |
| 4158 | cat confdefs.h >>conftest.$ac_ext |
| 4159 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4160 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4161 | #include <string.h> |
| 4162 | |
| 4163 | _ACEOF |
| 4164 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4165 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4166 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4167 | else |
| 4168 | ac_cv_header_stdc=no |
| 4169 | fi |
| 4170 | rm -f conftest* |
| 4171 | |
| 4172 | fi |
| 4173 | |
| 4174 | if test $ac_cv_header_stdc = yes; then |
| 4175 | # 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] | 4176 | cat >conftest.$ac_ext <<_ACEOF |
| 4177 | /* confdefs.h. */ |
| 4178 | _ACEOF |
| 4179 | cat confdefs.h >>conftest.$ac_ext |
| 4180 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4181 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4182 | #include <stdlib.h> |
| 4183 | |
| 4184 | _ACEOF |
| 4185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4186 | $EGREP "free" >/dev/null 2>&1; then |
| 4187 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4188 | else |
| 4189 | ac_cv_header_stdc=no |
| 4190 | fi |
| 4191 | rm -f conftest* |
| 4192 | |
| 4193 | fi |
| 4194 | |
| 4195 | if test $ac_cv_header_stdc = yes; then |
| 4196 | # /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] | 4197 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4198 | : |
| 4199 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4200 | cat >conftest.$ac_ext <<_ACEOF |
| 4201 | /* confdefs.h. */ |
| 4202 | _ACEOF |
| 4203 | cat confdefs.h >>conftest.$ac_ext |
| 4204 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4205 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4206 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4207 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4208 | #if ((' ' & 0x0FF) == 0x020) |
| 4209 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4210 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4211 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4212 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4213 | (('a' <= (c) && (c) <= 'i') \ |
| 4214 | || ('j' <= (c) && (c) <= 'r') \ |
| 4215 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4216 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4217 | #endif |
| 4218 | |
| 4219 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4220 | int |
| 4221 | main () |
| 4222 | { |
| 4223 | int i; |
| 4224 | for (i = 0; i < 256; i++) |
| 4225 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4226 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4227 | return 2; |
| 4228 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4229 | } |
| 4230 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4231 | rm -f conftest$ac_exeext |
| 4232 | if { (ac_try="$ac_link" |
| 4233 | case "(($ac_try" in |
| 4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4235 | *) ac_try_echo=$ac_try;; |
| 4236 | esac |
| 4237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4238 | (eval "$ac_link") 2>&5 |
| 4239 | ac_status=$? |
| 4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4242 | { (case "(($ac_try" in |
| 4243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4244 | *) ac_try_echo=$ac_try;; |
| 4245 | esac |
| 4246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4247 | (eval "$ac_try") 2>&5 |
| 4248 | ac_status=$? |
| 4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4250 | (exit $ac_status); }; }; then |
| 4251 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4252 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4253 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4254 | echo "$as_me: failed program was:" >&5 |
| 4255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4256 | |
| 4257 | ( exit $ac_status ) |
| 4258 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4259 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4260 | 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] | 4261 | fi |
| 4262 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4263 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4264 | fi |
| 4265 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4266 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4267 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4268 | if test $ac_cv_header_stdc = yes; then |
| 4269 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4270 | cat >>confdefs.h <<\_ACEOF |
| 4271 | #define STDC_HEADERS 1 |
| 4272 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4273 | |
| 4274 | fi |
| 4275 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4276 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4277 | |
| 4278 | |
| 4279 | |
| 4280 | |
| 4281 | |
| 4282 | |
| 4283 | |
| 4284 | |
| 4285 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4286 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4287 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4288 | do |
| 4289 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4290 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4291 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4294 | else |
| 4295 | cat >conftest.$ac_ext <<_ACEOF |
| 4296 | /* confdefs.h. */ |
| 4297 | _ACEOF |
| 4298 | cat confdefs.h >>conftest.$ac_ext |
| 4299 | cat >>conftest.$ac_ext <<_ACEOF |
| 4300 | /* end confdefs.h. */ |
| 4301 | $ac_includes_default |
| 4302 | |
| 4303 | #include <$ac_header> |
| 4304 | _ACEOF |
| 4305 | rm -f conftest.$ac_objext |
| 4306 | if { (ac_try="$ac_compile" |
| 4307 | case "(($ac_try" in |
| 4308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4309 | *) ac_try_echo=$ac_try;; |
| 4310 | esac |
| 4311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4312 | (eval "$ac_compile") 2>conftest.er1 |
| 4313 | ac_status=$? |
| 4314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4315 | rm -f conftest.er1 |
| 4316 | cat conftest.err >&5 |
| 4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4318 | (exit $ac_status); } && |
| 4319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4320 | { (case "(($ac_try" in |
| 4321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4322 | *) ac_try_echo=$ac_try;; |
| 4323 | esac |
| 4324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4325 | (eval "$ac_try") 2>&5 |
| 4326 | ac_status=$? |
| 4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4328 | (exit $ac_status); }; } && |
| 4329 | { ac_try='test -s conftest.$ac_objext' |
| 4330 | { (case "(($ac_try" in |
| 4331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4332 | *) ac_try_echo=$ac_try;; |
| 4333 | esac |
| 4334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4335 | (eval "$ac_try") 2>&5 |
| 4336 | ac_status=$? |
| 4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4338 | (exit $ac_status); }; }; then |
| 4339 | eval "$as_ac_Header=yes" |
| 4340 | else |
| 4341 | echo "$as_me: failed program was:" >&5 |
| 4342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4343 | |
| 4344 | eval "$as_ac_Header=no" |
| 4345 | fi |
| 4346 | |
| 4347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4348 | fi |
| 4349 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4350 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4351 | echo "${ECHO_T}$ac_res" >&6; } |
| 4352 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4353 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4354 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4355 | _ACEOF |
| 4356 | |
| 4357 | fi |
| 4358 | |
| 4359 | done |
| 4360 | |
| 4361 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4362 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4363 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4364 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4366 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4367 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4368 | cat >conftest.$ac_ext <<_ACEOF |
| 4369 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4370 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4371 | cat confdefs.h >>conftest.$ac_ext |
| 4372 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4373 | /* end confdefs.h. */ |
| 4374 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4375 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4376 | |
| 4377 | int |
| 4378 | main () |
| 4379 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4380 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4381 | bogus endian macros |
| 4382 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4383 | |
| 4384 | ; |
| 4385 | return 0; |
| 4386 | } |
| 4387 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4388 | rm -f conftest.$ac_objext |
| 4389 | if { (ac_try="$ac_compile" |
| 4390 | case "(($ac_try" in |
| 4391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4392 | *) ac_try_echo=$ac_try;; |
| 4393 | esac |
| 4394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4395 | (eval "$ac_compile") 2>conftest.er1 |
| 4396 | ac_status=$? |
| 4397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4398 | rm -f conftest.er1 |
| 4399 | cat conftest.err >&5 |
| 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4401 | (exit $ac_status); } && |
| 4402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4403 | { (case "(($ac_try" in |
| 4404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4405 | *) ac_try_echo=$ac_try;; |
| 4406 | esac |
| 4407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4408 | (eval "$ac_try") 2>&5 |
| 4409 | ac_status=$? |
| 4410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4411 | (exit $ac_status); }; } && |
| 4412 | { ac_try='test -s conftest.$ac_objext' |
| 4413 | { (case "(($ac_try" in |
| 4414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4415 | *) ac_try_echo=$ac_try;; |
| 4416 | esac |
| 4417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4418 | (eval "$ac_try") 2>&5 |
| 4419 | ac_status=$? |
| 4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4421 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4422 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4423 | cat >conftest.$ac_ext <<_ACEOF |
| 4424 | /* confdefs.h. */ |
| 4425 | _ACEOF |
| 4426 | cat confdefs.h >>conftest.$ac_ext |
| 4427 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4428 | /* end confdefs.h. */ |
| 4429 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4430 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4431 | |
| 4432 | int |
| 4433 | main () |
| 4434 | { |
| 4435 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4436 | not big endian |
| 4437 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4438 | |
| 4439 | ; |
| 4440 | return 0; |
| 4441 | } |
| 4442 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4443 | rm -f conftest.$ac_objext |
| 4444 | if { (ac_try="$ac_compile" |
| 4445 | case "(($ac_try" in |
| 4446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4447 | *) ac_try_echo=$ac_try;; |
| 4448 | esac |
| 4449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4450 | (eval "$ac_compile") 2>conftest.er1 |
| 4451 | ac_status=$? |
| 4452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4453 | rm -f conftest.er1 |
| 4454 | cat conftest.err >&5 |
| 4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4456 | (exit $ac_status); } && |
| 4457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4458 | { (case "(($ac_try" in |
| 4459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4460 | *) ac_try_echo=$ac_try;; |
| 4461 | esac |
| 4462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4463 | (eval "$ac_try") 2>&5 |
| 4464 | ac_status=$? |
| 4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4466 | (exit $ac_status); }; } && |
| 4467 | { ac_try='test -s conftest.$ac_objext' |
| 4468 | { (case "(($ac_try" in |
| 4469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4470 | *) ac_try_echo=$ac_try;; |
| 4471 | esac |
| 4472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4473 | (eval "$ac_try") 2>&5 |
| 4474 | ac_status=$? |
| 4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4476 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4477 | ac_cv_c_bigendian=yes |
| 4478 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4479 | echo "$as_me: failed program was:" >&5 |
| 4480 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4481 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4482 | ac_cv_c_bigendian=no |
| 4483 | fi |
| 4484 | |
| 4485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4486 | else |
| 4487 | echo "$as_me: failed program was:" >&5 |
| 4488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4489 | |
| 4490 | # It does not; compile a test program. |
| 4491 | if test "$cross_compiling" = yes; then |
| 4492 | # try to guess the endianness by grepping values into an object file |
| 4493 | ac_cv_c_bigendian=unknown |
| 4494 | cat >conftest.$ac_ext <<_ACEOF |
| 4495 | /* confdefs.h. */ |
| 4496 | _ACEOF |
| 4497 | cat confdefs.h >>conftest.$ac_ext |
| 4498 | cat >>conftest.$ac_ext <<_ACEOF |
| 4499 | /* end confdefs.h. */ |
| 4500 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4501 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4502 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4503 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4504 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4505 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4506 | int |
| 4507 | main () |
| 4508 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4509 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4510 | ; |
| 4511 | return 0; |
| 4512 | } |
| 4513 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4514 | rm -f conftest.$ac_objext |
| 4515 | if { (ac_try="$ac_compile" |
| 4516 | case "(($ac_try" in |
| 4517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4518 | *) ac_try_echo=$ac_try;; |
| 4519 | esac |
| 4520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4521 | (eval "$ac_compile") 2>conftest.er1 |
| 4522 | ac_status=$? |
| 4523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4524 | rm -f conftest.er1 |
| 4525 | cat conftest.err >&5 |
| 4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4527 | (exit $ac_status); } && |
| 4528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4529 | { (case "(($ac_try" in |
| 4530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4531 | *) ac_try_echo=$ac_try;; |
| 4532 | esac |
| 4533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4534 | (eval "$ac_try") 2>&5 |
| 4535 | ac_status=$? |
| 4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4537 | (exit $ac_status); }; } && |
| 4538 | { ac_try='test -s conftest.$ac_objext' |
| 4539 | { (case "(($ac_try" in |
| 4540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4541 | *) ac_try_echo=$ac_try;; |
| 4542 | esac |
| 4543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4544 | (eval "$ac_try") 2>&5 |
| 4545 | ac_status=$? |
| 4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4547 | (exit $ac_status); }; }; then |
| 4548 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4549 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4550 | fi |
| 4551 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4552 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4553 | ac_cv_c_bigendian=no |
| 4554 | else |
| 4555 | # finding both strings is unlikely to happen, but who knows? |
| 4556 | ac_cv_c_bigendian=unknown |
| 4557 | fi |
| 4558 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4559 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4560 | echo "$as_me: failed program was:" >&5 |
| 4561 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4562 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4563 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4564 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4567 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4568 | cat >conftest.$ac_ext <<_ACEOF |
| 4569 | /* confdefs.h. */ |
| 4570 | _ACEOF |
| 4571 | cat confdefs.h >>conftest.$ac_ext |
| 4572 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4573 | /* end confdefs.h. */ |
| 4574 | $ac_includes_default |
| 4575 | int |
| 4576 | main () |
| 4577 | { |
| 4578 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4580 | union |
| 4581 | { |
| 4582 | long int l; |
| 4583 | char c[sizeof (long int)]; |
| 4584 | } u; |
| 4585 | u.l = 1; |
| 4586 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4587 | |
| 4588 | ; |
| 4589 | return 0; |
| 4590 | } |
| 4591 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4592 | rm -f conftest$ac_exeext |
| 4593 | if { (ac_try="$ac_link" |
| 4594 | case "(($ac_try" in |
| 4595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4596 | *) ac_try_echo=$ac_try;; |
| 4597 | esac |
| 4598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4599 | (eval "$ac_link") 2>&5 |
| 4600 | ac_status=$? |
| 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4602 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4603 | { (case "(($ac_try" in |
| 4604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4605 | *) ac_try_echo=$ac_try;; |
| 4606 | esac |
| 4607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4608 | (eval "$ac_try") 2>&5 |
| 4609 | ac_status=$? |
| 4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4611 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4612 | ac_cv_c_bigendian=no |
| 4613 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4614 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4615 | echo "$as_me: failed program was:" >&5 |
| 4616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4617 | |
| 4618 | ( exit $ac_status ) |
| 4619 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4620 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4621 | 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] | 4622 | fi |
| 4623 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4625 | fi |
| 4626 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4628 | fi |
| 4629 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4630 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4631 | case $ac_cv_c_bigendian in |
| 4632 | yes) |
| 4633 | ENDIAN=big |
| 4634 | ;; |
| 4635 | no) |
| 4636 | ENDIAN=little |
| 4637 | ;; |
| 4638 | *) |
| 4639 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4640 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4641 | echo "$as_me: error: unknown endianness |
| 4642 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4643 | { (exit 1); exit 1; }; } ;; |
| 4644 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4645 | |
| 4646 | |
| 4647 | if test "$cross_compiling" = yes; then |
| 4648 | LLVM_CROSS_COMPILING=1 |
| 4649 | |
| 4650 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4651 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4652 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4653 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4655 | else |
| 4656 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4657 | ac_cv_build_exeext=.exe |
| 4658 | else |
| 4659 | ac_build_prefix=${build_alias}- |
| 4660 | |
| 4661 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4662 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4663 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4665 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4667 | else |
| 4668 | if test -n "$BUILD_CC"; then |
| 4669 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4670 | else |
| 4671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4672 | for as_dir in $PATH |
| 4673 | do |
| 4674 | IFS=$as_save_IFS |
| 4675 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4676 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4677 | 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] | 4678 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4679 | 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] | 4680 | break 2 |
| 4681 | fi |
| 4682 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4683 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4684 | IFS=$as_save_IFS |
| 4685 | |
| 4686 | fi |
| 4687 | fi |
| 4688 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4689 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4690 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4691 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4692 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4693 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4694 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4695 | fi |
| 4696 | |
| 4697 | |
| 4698 | if test -z "$BUILD_CC"; then |
| 4699 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4700 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4701 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4703 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4705 | else |
| 4706 | if test -n "$BUILD_CC"; then |
| 4707 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4708 | else |
| 4709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4710 | for as_dir in $PATH |
| 4711 | do |
| 4712 | IFS=$as_save_IFS |
| 4713 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4715 | 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] | 4716 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4717 | 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] | 4718 | break 2 |
| 4719 | fi |
| 4720 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4721 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4722 | IFS=$as_save_IFS |
| 4723 | |
| 4724 | fi |
| 4725 | fi |
| 4726 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4727 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4728 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4729 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4731 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4732 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4733 | fi |
| 4734 | |
| 4735 | |
| 4736 | if test -z "$BUILD_CC"; then |
| 4737 | # Extract the first word of "cc", so it can be a program name with args. |
| 4738 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4739 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4741 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4743 | else |
| 4744 | if test -n "$BUILD_CC"; then |
| 4745 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4746 | else |
| 4747 | ac_prog_rejected=no |
| 4748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4749 | for as_dir in $PATH |
| 4750 | do |
| 4751 | IFS=$as_save_IFS |
| 4752 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4754 | 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] | 4755 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4756 | ac_prog_rejected=yes |
| 4757 | continue |
| 4758 | fi |
| 4759 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4760 | 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] | 4761 | break 2 |
| 4762 | fi |
| 4763 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4764 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4765 | IFS=$as_save_IFS |
| 4766 | |
| 4767 | if test $ac_prog_rejected = yes; then |
| 4768 | # We found a bogon in the path, so make sure we never use it. |
| 4769 | set dummy $ac_cv_prog_BUILD_CC |
| 4770 | shift |
| 4771 | if test $# != 0; then |
| 4772 | # We chose a different compiler from the bogus one. |
| 4773 | # However, it has the same basename, so the bogon will be chosen |
| 4774 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4775 | shift |
| 4776 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4777 | fi |
| 4778 | fi |
| 4779 | fi |
| 4780 | fi |
| 4781 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4782 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4783 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4784 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4785 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4786 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4787 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4788 | fi |
| 4789 | |
| 4790 | |
| 4791 | fi |
| 4792 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4793 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4794 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4795 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4796 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4797 | rm -f conftest* |
| 4798 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4799 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4800 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4801 | (eval $ac_build_link) 2>&5 |
| 4802 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4804 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4805 | for file in conftest.*; do |
| 4806 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4807 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4808 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4809 | esac |
| 4810 | done |
| 4811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4812 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4813 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4814 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4815 | fi |
| 4816 | rm -f conftest* |
| 4817 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4818 | fi |
| 4819 | fi |
| 4820 | |
| 4821 | BUILD_EXEEXT="" |
| 4822 | 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] | 4823 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4824 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4825 | ac_build_exeext=$BUILD_EXEEXT |
| 4826 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4827 | ac_build_prefix=${build_alias}- |
| 4828 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4829 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4830 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4832 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4834 | else |
| 4835 | if test -n "$BUILD_CXX"; then |
| 4836 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4837 | else |
| 4838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4839 | for as_dir in $PATH |
| 4840 | do |
| 4841 | IFS=$as_save_IFS |
| 4842 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4843 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4844 | 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] | 4845 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4846 | 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] | 4847 | break 2 |
| 4848 | fi |
| 4849 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4850 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4851 | IFS=$as_save_IFS |
| 4852 | |
| 4853 | fi |
| 4854 | fi |
| 4855 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4856 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4857 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4858 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4859 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4860 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4861 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4862 | fi |
| 4863 | |
| 4864 | |
| 4865 | if test -z "$BUILD_CXX"; then |
| 4866 | # Extract the first word of "g++", so it can be a program name with args. |
| 4867 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4870 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4872 | else |
| 4873 | if test -n "$BUILD_CXX"; then |
| 4874 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4875 | else |
| 4876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4877 | for as_dir in $PATH |
| 4878 | do |
| 4879 | IFS=$as_save_IFS |
| 4880 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4881 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4882 | 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] | 4883 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4884 | 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] | 4885 | break 2 |
| 4886 | fi |
| 4887 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4888 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4889 | IFS=$as_save_IFS |
| 4890 | |
| 4891 | fi |
| 4892 | fi |
| 4893 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4894 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4895 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4896 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4897 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4898 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4899 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4900 | fi |
| 4901 | |
| 4902 | |
| 4903 | if test -z "$BUILD_CXX"; then |
| 4904 | # Extract the first word of "c++", so it can be a program name with args. |
| 4905 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4906 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4908 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4910 | else |
| 4911 | if test -n "$BUILD_CXX"; then |
| 4912 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4913 | else |
| 4914 | ac_prog_rejected=no |
| 4915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4916 | for as_dir in $PATH |
| 4917 | do |
| 4918 | IFS=$as_save_IFS |
| 4919 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4921 | 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] | 4922 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4923 | ac_prog_rejected=yes |
| 4924 | continue |
| 4925 | fi |
| 4926 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4927 | 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] | 4928 | break 2 |
| 4929 | fi |
| 4930 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4931 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4932 | IFS=$as_save_IFS |
| 4933 | |
| 4934 | if test $ac_prog_rejected = yes; then |
| 4935 | # We found a bogon in the path, so make sure we never use it. |
| 4936 | set dummy $ac_cv_prog_BUILD_CXX |
| 4937 | shift |
| 4938 | if test $# != 0; then |
| 4939 | # We chose a different compiler from the bogus one. |
| 4940 | # However, it has the same basename, so the bogon will be chosen |
| 4941 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4942 | shift |
| 4943 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4944 | fi |
| 4945 | fi |
| 4946 | fi |
| 4947 | fi |
| 4948 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4949 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4950 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4951 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4952 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4953 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4954 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4955 | fi |
| 4956 | |
| 4957 | |
| 4958 | fi |
| 4959 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4960 | else |
| 4961 | LLVM_CROSS_COMPILING=0 |
| 4962 | |
| 4963 | fi |
| 4964 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4965 | 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] | 4966 | cvsbuild="yes" |
| 4967 | optimize="no" |
| 4968 | CVSBUILD=CVSBUILD=1 |
| 4969 | |
| 4970 | else |
| 4971 | cvsbuild="no" |
| 4972 | optimize="yes" |
| 4973 | fi |
| 4974 | |
| 4975 | |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 4976 | # Check whether --enable-libcpp was given. |
| 4977 | if test "${enable_libcpp+set}" = set; then |
| 4978 | enableval=$enable_libcpp; |
| 4979 | else |
| 4980 | enableval=default |
| 4981 | fi |
| 4982 | |
| 4983 | case "$enableval" in |
| 4984 | yes) ENABLE_LIBCPP=1 |
| 4985 | ;; |
| 4986 | no) ENABLE_LIBCPP=0 |
| 4987 | ;; |
| 4988 | default) ENABLE_LIBCPP=0 |
| 4989 | ;; |
| 4990 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 |
| 4991 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} |
| 4992 | { (exit 1); exit 1; }; } ;; |
| 4993 | esac |
| 4994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4995 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4996 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4997 | enableval=$enable_optimized; |
| 4998 | else |
| 4999 | enableval=$optimize |
| 5000 | fi |
| 5001 | |
| 5002 | if test ${enableval} = "no" ; then |
| 5003 | ENABLE_OPTIMIZED= |
| 5004 | |
| 5005 | else |
| 5006 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 5007 | |
| 5008 | fi |
| 5009 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5010 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5011 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5012 | enableval=$enable_profiling; |
| 5013 | else |
| 5014 | enableval="no" |
| 5015 | fi |
| 5016 | |
| 5017 | if test ${enableval} = "no" ; then |
| 5018 | ENABLE_PROFILING= |
| 5019 | |
| 5020 | else |
| 5021 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 5022 | |
| 5023 | fi |
| 5024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5025 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5026 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5027 | enableval=$enable_assertions; |
| 5028 | else |
| 5029 | enableval="yes" |
| 5030 | fi |
| 5031 | |
| 5032 | if test ${enableval} = "yes" ; then |
| 5033 | DISABLE_ASSERTIONS= |
| 5034 | |
| 5035 | else |
| 5036 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 5037 | |
| 5038 | fi |
| 5039 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5040 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5041 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5042 | enableval=$enable_expensive_checks; |
| 5043 | else |
| 5044 | enableval="no" |
| 5045 | fi |
| 5046 | |
| 5047 | if test ${enableval} = "yes" ; then |
| 5048 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 5049 | |
| 5050 | EXPENSIVE_CHECKS=yes |
| 5051 | |
| 5052 | else |
| 5053 | ENABLE_EXPENSIVE_CHECKS= |
| 5054 | |
| 5055 | EXPENSIVE_CHECKS=no |
| 5056 | |
| 5057 | fi |
| 5058 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5059 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5060 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5061 | enableval=$enable_debug_runtime; |
| 5062 | else |
| 5063 | enableval=no |
| 5064 | fi |
| 5065 | |
| 5066 | if test ${enableval} = "no" ; then |
| 5067 | DEBUG_RUNTIME= |
| 5068 | |
| 5069 | else |
| 5070 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 5071 | |
| 5072 | fi |
| 5073 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5074 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5075 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5076 | enableval=$enable_debug_symbols; |
| 5077 | else |
| 5078 | enableval=no |
| 5079 | fi |
| 5080 | |
| 5081 | if test ${enableval} = "no" ; then |
| 5082 | DEBUG_SYMBOLS= |
| 5083 | |
| 5084 | else |
| 5085 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 5086 | |
| 5087 | fi |
| 5088 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5089 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5090 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5091 | enableval=$enable_jit; |
| 5092 | else |
| 5093 | enableval=default |
| 5094 | fi |
| 5095 | |
| 5096 | if test ${enableval} = "no" |
| 5097 | then |
| 5098 | JIT= |
| 5099 | |
| 5100 | else |
| 5101 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5102 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5103 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5104 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5105 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5106 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5107 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5108 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5109 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5110 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5111 | ;; |
Bruno Cardoso Lopes | dca6cdd | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5112 | Mips) TARGET_HAS_JIT=1 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5113 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5114 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5115 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5116 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5117 | ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5118 | Hexagon) TARGET_HAS_JIT=0 |
| 5119 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5120 | MBlaze) TARGET_HAS_JIT=0 |
| 5121 | ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5122 | PTX) TARGET_HAS_JIT=0 |
| 5123 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5124 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5125 | ;; |
| 5126 | esac |
| 5127 | fi |
| 5128 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5129 | # Check whether --enable-docs was given. |
| 5130 | if test "${enable_docs+set}" = set; then |
| 5131 | enableval=$enable_docs; |
| 5132 | else |
| 5133 | enableval=default |
| 5134 | fi |
| 5135 | |
| 5136 | case "$enableval" in |
| 5137 | yes) ENABLE_DOCS=1 |
| 5138 | ;; |
| 5139 | no) ENABLE_DOCS=0 |
| 5140 | ;; |
| 5141 | default) ENABLE_DOCS=1 |
| 5142 | ;; |
| 5143 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 5144 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 5145 | { (exit 1); exit 1; }; } ;; |
| 5146 | esac |
| 5147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5148 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5149 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5150 | enableval=$enable_doxygen; |
| 5151 | else |
| 5152 | enableval=default |
| 5153 | fi |
| 5154 | |
| 5155 | case "$enableval" in |
| 5156 | yes) ENABLE_DOXYGEN=1 |
| 5157 | ;; |
| 5158 | no) ENABLE_DOXYGEN=0 |
| 5159 | ;; |
| 5160 | default) ENABLE_DOXYGEN=0 |
| 5161 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5162 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 5163 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 5164 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5165 | esac |
| 5166 | |
| 5167 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5168 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5169 | enableval=$enable_threads; |
| 5170 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5171 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5172 | fi |
| 5173 | |
| 5174 | case "$enableval" in |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5175 | yes) LLVM_ENABLE_THREADS=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5176 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5177 | no) LLVM_ENABLE_THREADS=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5178 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5179 | default) LLVM_ENABLE_THREADS=1 |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5180 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5181 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5182 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5183 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5184 | esac |
| 5185 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5186 | cat >>confdefs.h <<_ACEOF |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5187 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5188 | _ACEOF |
| 5189 | |
| 5190 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5191 | # Check whether --enable-pthreads was given. |
| 5192 | if test "${enable_pthreads+set}" = set; then |
| 5193 | enableval=$enable_pthreads; |
| 5194 | else |
| 5195 | enableval=default |
| 5196 | fi |
| 5197 | |
| 5198 | case "$enableval" in |
| 5199 | yes) ENABLE_PTHREADS=1 |
| 5200 | ;; |
| 5201 | no) ENABLE_PTHREADS=0 |
| 5202 | ;; |
| 5203 | default) ENABLE_PTHREADS=1 |
| 5204 | ;; |
| 5205 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 5206 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 5207 | { (exit 1); exit 1; }; } ;; |
| 5208 | esac |
| 5209 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5210 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5211 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5212 | enableval=$enable_pic; |
| 5213 | else |
| 5214 | enableval=default |
| 5215 | fi |
| 5216 | |
| 5217 | case "$enableval" in |
| 5218 | yes) ENABLE_PIC=1 |
| 5219 | ;; |
| 5220 | no) ENABLE_PIC=0 |
| 5221 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5222 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5223 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5224 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5225 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5226 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5227 | esac |
| 5228 | |
| 5229 | cat >>confdefs.h <<_ACEOF |
| 5230 | #define ENABLE_PIC $ENABLE_PIC |
| 5231 | _ACEOF |
| 5232 | |
| 5233 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5234 | # Check whether --enable-shared was given. |
| 5235 | if test "${enable_shared+set}" = set; then |
| 5236 | enableval=$enable_shared; |
| 5237 | else |
| 5238 | enableval=default |
| 5239 | fi |
| 5240 | |
| 5241 | case "$enableval" in |
| 5242 | yes) ENABLE_SHARED=1 |
| 5243 | ;; |
| 5244 | no) ENABLE_SHARED=0 |
| 5245 | ;; |
| 5246 | default) ENABLE_SHARED=0 |
| 5247 | ;; |
| 5248 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5249 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5250 | { (exit 1); exit 1; }; } ;; |
| 5251 | esac |
| 5252 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5253 | # Check whether --enable-embed-stdcxx was given. |
| 5254 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5255 | enableval=$enable_embed_stdcxx; |
| 5256 | else |
| 5257 | enableval=default |
| 5258 | fi |
| 5259 | |
| 5260 | case "$enableval" in |
| 5261 | yes) ENABLE_EMBED_STDCXX=1 |
| 5262 | ;; |
| 5263 | no) ENABLE_EMBED_STDCXX=0 |
| 5264 | ;; |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5265 | default) ENABLE_EMBED_STDCXX=0 |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5266 | ;; |
| 5267 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5268 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5269 | { (exit 1); exit 1; }; } ;; |
| 5270 | esac |
| 5271 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5272 | # Check whether --enable-timestamps was given. |
| 5273 | if test "${enable_timestamps+set}" = set; then |
| 5274 | enableval=$enable_timestamps; |
| 5275 | else |
| 5276 | enableval=default |
| 5277 | fi |
| 5278 | |
| 5279 | case "$enableval" in |
| 5280 | yes) ENABLE_TIMESTAMPS=1 |
| 5281 | ;; |
| 5282 | no) ENABLE_TIMESTAMPS=0 |
| 5283 | ;; |
| 5284 | default) ENABLE_TIMESTAMPS=1 |
| 5285 | ;; |
| 5286 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5287 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5288 | { (exit 1); exit 1; }; } ;; |
| 5289 | esac |
| 5290 | |
| 5291 | cat >>confdefs.h <<_ACEOF |
| 5292 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5293 | _ACEOF |
| 5294 | |
| 5295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5296 | TARGETS_TO_BUILD="" |
| 5297 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5298 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5299 | enableval=$enable_targets; |
| 5300 | else |
| 5301 | enableval=all |
| 5302 | fi |
| 5303 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5304 | if test "$enableval" = host-only ; then |
| 5305 | enableval=host |
| 5306 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5307 | case "$enableval" in |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5308 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5309 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5310 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5311 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5312 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5313 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5314 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5315 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5316 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 5317 | mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5318 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5319 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5320 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5321 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5322 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5323 | hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5324 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5325 | ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5326 | host) case "$llvm_cv_target_arch" in |
| 5327 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5328 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5329 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5330 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5331 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5332 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5333 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5334 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5335 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5336 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5337 | Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5338 | PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5339 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5340 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5341 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5342 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5343 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5344 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5345 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5346 | esac |
| 5347 | done |
| 5348 | ;; |
| 5349 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5350 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5351 | |
| 5352 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5353 | for a_target in $TARGETS_TO_BUILD; do |
| 5354 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5355 | |
| 5356 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5357 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5358 | _ACEOF |
| 5359 | |
| 5360 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5361 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5362 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5363 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5364 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5365 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5366 | fi |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5367 | |
| 5368 | cat >>confdefs.h <<_ACEOF |
| 5369 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5370 | _ACEOF |
| 5371 | |
| 5372 | |
| 5373 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5374 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5375 | _ACEOF |
| 5376 | |
| 5377 | |
| 5378 | cat >>confdefs.h <<_ACEOF |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5379 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC |
Evan Cheng | 4396613 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5380 | _ACEOF |
| 5381 | |
| 5382 | |
| 5383 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5384 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5385 | _ACEOF |
| 5386 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5387 | 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] | 5388 | |
| 5389 | cat >>confdefs.h <<_ACEOF |
| 5390 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5391 | _ACEOF |
| 5392 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5393 | fi |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5394 | fi |
| 5395 | done |
| 5396 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5397 | LLVM_ENUM_TARGETS="" |
| 5398 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5399 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5400 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5401 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5402 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | e15f2e1 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5403 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 7ac1609 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5404 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5405 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5406 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5407 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5408 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5409 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5410 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5411 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5412 | done |
| 5413 | |
| 5414 | |
| 5415 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5416 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5417 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5418 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5419 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5420 | enableval=$enable_cbe_printf_a; |
| 5421 | else |
| 5422 | enableval=default |
| 5423 | fi |
| 5424 | |
| 5425 | case "$enableval" in |
| 5426 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5427 | ;; |
| 5428 | no) ENABLE_CBE_PRINTF_A=0 |
| 5429 | ;; |
| 5430 | default) ENABLE_CBE_PRINTF_A=1 |
| 5431 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5432 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5433 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5434 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5435 | esac |
| 5436 | |
| 5437 | cat >>confdefs.h <<_ACEOF |
| 5438 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5439 | _ACEOF |
| 5440 | |
| 5441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5442 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5443 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5444 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5445 | withval=$with_optimize_option; |
| 5446 | else |
| 5447 | withval=default |
| 5448 | fi |
| 5449 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5450 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5451 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5452 | case "$withval" in |
| 5453 | default) |
| 5454 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5455 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5456 | MingW) optimize_option=-O2 ;; |
| 5457 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5458 | esac ;; |
| 5459 | *) optimize_option="$withval" ;; |
| 5460 | esac |
| 5461 | OPTIMIZE_OPTION=$optimize_option |
| 5462 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5463 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5464 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5465 | |
| 5466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5467 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5468 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5469 | withval=$with_extra_options; |
| 5470 | else |
| 5471 | withval=default |
| 5472 | fi |
| 5473 | |
| 5474 | case "$withval" in |
| 5475 | default) EXTRA_OPTIONS= ;; |
| 5476 | *) EXTRA_OPTIONS=$withval ;; |
| 5477 | esac |
| 5478 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5479 | |
| 5480 | |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5481 | |
| 5482 | # Check whether --with-extra-ld-options was given. |
| 5483 | if test "${with_extra_ld_options+set}" = set; then |
| 5484 | withval=$with_extra_ld_options; |
| 5485 | else |
| 5486 | withval=default |
| 5487 | fi |
| 5488 | |
| 5489 | case "$withval" in |
| 5490 | default) EXTRA_LD_OPTIONS= ;; |
| 5491 | *) EXTRA_LD_OPTIONS=$withval ;; |
| 5492 | esac |
| 5493 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS |
| 5494 | |
| 5495 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5496 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5497 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5498 | enableval=$enable_bindings; |
| 5499 | else |
| 5500 | enableval=default |
| 5501 | fi |
| 5502 | |
| 5503 | BINDINGS_TO_BUILD="" |
| 5504 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5505 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5506 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5507 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5508 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5509 | case "$a_binding" in |
| 5510 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5511 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5512 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5513 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5514 | esac |
| 5515 | done |
| 5516 | ;; |
| 5517 | esac |
| 5518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5519 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5520 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5521 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5522 | withval=$with_ocaml_libdir; |
| 5523 | else |
| 5524 | withval=auto |
| 5525 | fi |
| 5526 | |
| 5527 | case "$withval" in |
| 5528 | auto) with_ocaml_libdir="$withval" ;; |
| 5529 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5530 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5531 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5532 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5533 | esac |
| 5534 | |
| 5535 | |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5536 | # Check whether --with-clang-srcdir was given. |
| 5537 | if test "${with_clang_srcdir+set}" = set; then |
| 5538 | withval=$with_clang_srcdir; |
| 5539 | else |
| 5540 | withval="-" |
| 5541 | fi |
| 5542 | |
| 5543 | case "$withval" in |
Eric Christopher | ac89865 | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 5544 | -) clang_src_root="" ;; |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5545 | /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; |
| 5546 | *) clang_src_root="$ac_pwd/$withval" ;; |
| 5547 | esac |
| 5548 | CLANG_SRC_ROOT=$clang_src_root |
| 5549 | |
| 5550 | |
| 5551 | |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5552 | # Check whether --with-clang-resource-dir was given. |
| 5553 | if test "${with_clang_resource_dir+set}" = set; then |
| 5554 | withval=$with_clang_resource_dir; |
| 5555 | else |
| 5556 | withval="" |
| 5557 | fi |
| 5558 | |
| 5559 | |
| 5560 | cat >>confdefs.h <<_ACEOF |
| 5561 | #define CLANG_RESOURCE_DIR "$withval" |
| 5562 | _ACEOF |
| 5563 | |
| 5564 | |
| 5565 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5566 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5567 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5568 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5569 | else |
| 5570 | withval="" |
| 5571 | fi |
| 5572 | |
| 5573 | |
| 5574 | cat >>confdefs.h <<_ACEOF |
| 5575 | #define C_INCLUDE_DIRS "$withval" |
| 5576 | _ACEOF |
| 5577 | |
| 5578 | |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5579 | # Clang normally uses the system c++ headers and libraries. With this option, |
| 5580 | # clang will use the ones provided by a gcc installation instead. This option should |
| 5581 | # be passed the same value that was used with --prefix when configuring gcc. |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5582 | |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5583 | # Check whether --with-gcc-toolchain was given. |
| 5584 | if test "${with_gcc_toolchain+set}" = set; then |
| 5585 | withval=$with_gcc_toolchain; |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5586 | else |
| 5587 | withval="" |
| 5588 | fi |
| 5589 | |
| 5590 | |
| 5591 | cat >>confdefs.h <<_ACEOF |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5592 | #define GCC_INSTALL_PREFIX "$withval" |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 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 | |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 5651 | # Check whether --with-internal-prefix was given. |
| 5652 | if test "${with_internal_prefix+set}" = set; then |
| 5653 | withval=$with_internal_prefix; |
| 5654 | else |
| 5655 | withval="" |
| 5656 | fi |
| 5657 | |
| 5658 | INTERNAL_PREFIX=$withval |
| 5659 | |
| 5660 | |
| 5661 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5662 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 5663 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 5664 | if test "${lt_cv_path_NM+set}" = set; then |
| 5665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5666 | else |
| 5667 | if test -n "$NM"; then |
| 5668 | # Let the user override the test. |
| 5669 | lt_cv_path_NM="$NM" |
| 5670 | else |
| 5671 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5672 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5673 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5674 | fi |
| 5675 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5676 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5677 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5678 | IFS="$lt_save_ifs" |
| 5679 | test -z "$ac_dir" && ac_dir=. |
| 5680 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5681 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5682 | # Check to see if the nm accepts a BSD-compat flag. |
| 5683 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5684 | # nm: unknown option "B" ignored |
| 5685 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5686 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5687 | */dev/null* | *'Invalid file or object type'*) |
| 5688 | lt_cv_path_NM="$tmp_nm -B" |
| 5689 | break |
| 5690 | ;; |
| 5691 | *) |
| 5692 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5693 | */dev/null*) |
| 5694 | lt_cv_path_NM="$tmp_nm -p" |
| 5695 | break |
| 5696 | ;; |
| 5697 | *) |
| 5698 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5699 | continue # so that we can try to find one that supports BSD flags |
| 5700 | ;; |
| 5701 | esac |
| 5702 | ;; |
| 5703 | esac |
| 5704 | fi |
| 5705 | done |
| 5706 | IFS="$lt_save_ifs" |
| 5707 | done |
| 5708 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5709 | fi |
| 5710 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5711 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 5712 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5713 | NM="$lt_cv_path_NM" |
| 5714 | |
| 5715 | |
| 5716 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5717 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 5718 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 5719 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 5720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5721 | else |
| 5722 | llvm_cv_gnu_make_command='' |
| 5723 | for a in "$MAKE" make gmake gnumake ; do |
| 5724 | if test -z "$a" ; then continue ; fi ; |
| 5725 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5726 | then |
| 5727 | llvm_cv_gnu_make_command=$a ; |
| 5728 | break; |
| 5729 | fi |
| 5730 | done |
| 5731 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5732 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 5733 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5734 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 5735 | ifGNUmake='' ; |
| 5736 | else |
| 5737 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5738 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 5739 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5740 | fi |
| 5741 | |
| 5742 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5743 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5744 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5745 | LN_S=$as_ln_s |
| 5746 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5747 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5748 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5749 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5750 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5751 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5752 | fi |
| 5753 | |
| 5754 | # Extract the first word of "cmp", so it can be a program name with args. |
| 5755 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5756 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5758 | if test "${ac_cv_path_CMP+set}" = set; then |
| 5759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5760 | else |
| 5761 | case $CMP in |
| 5762 | [\\/]* | ?:[\\/]*) |
| 5763 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 5764 | ;; |
| 5765 | *) |
| 5766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5767 | for as_dir in $PATH |
| 5768 | do |
| 5769 | IFS=$as_save_IFS |
| 5770 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5772 | 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] | 5773 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5774 | 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] | 5775 | break 2 |
| 5776 | fi |
| 5777 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5778 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5779 | IFS=$as_save_IFS |
| 5780 | |
| 5781 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 5782 | ;; |
| 5783 | esac |
| 5784 | fi |
| 5785 | CMP=$ac_cv_path_CMP |
| 5786 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5787 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 5788 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5789 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5790 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5791 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5792 | fi |
| 5793 | |
| 5794 | |
| 5795 | # Extract the first word of "cp", so it can be a program name with args. |
| 5796 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5799 | if test "${ac_cv_path_CP+set}" = set; then |
| 5800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5801 | else |
| 5802 | case $CP in |
| 5803 | [\\/]* | ?:[\\/]*) |
| 5804 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 5805 | ;; |
| 5806 | *) |
| 5807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5808 | for as_dir in $PATH |
| 5809 | do |
| 5810 | IFS=$as_save_IFS |
| 5811 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5813 | 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] | 5814 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5815 | 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] | 5816 | break 2 |
| 5817 | fi |
| 5818 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5819 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5820 | IFS=$as_save_IFS |
| 5821 | |
| 5822 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 5823 | ;; |
| 5824 | esac |
| 5825 | fi |
| 5826 | CP=$ac_cv_path_CP |
| 5827 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5828 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 5829 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5830 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5831 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5832 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5833 | fi |
| 5834 | |
| 5835 | |
| 5836 | # Extract the first word of "date", so it can be a program name with args. |
| 5837 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5838 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5840 | if test "${ac_cv_path_DATE+set}" = set; then |
| 5841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5842 | else |
| 5843 | case $DATE in |
| 5844 | [\\/]* | ?:[\\/]*) |
| 5845 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 5846 | ;; |
| 5847 | *) |
| 5848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5849 | for as_dir in $PATH |
| 5850 | do |
| 5851 | IFS=$as_save_IFS |
| 5852 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5854 | 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] | 5855 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5856 | 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] | 5857 | break 2 |
| 5858 | fi |
| 5859 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5860 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5861 | IFS=$as_save_IFS |
| 5862 | |
| 5863 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 5864 | ;; |
| 5865 | esac |
| 5866 | fi |
| 5867 | DATE=$ac_cv_path_DATE |
| 5868 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5869 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 5870 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5871 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5873 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5874 | fi |
| 5875 | |
| 5876 | |
| 5877 | # Extract the first word of "find", so it can be a program name with args. |
| 5878 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5879 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5881 | if test "${ac_cv_path_FIND+set}" = set; then |
| 5882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5883 | else |
| 5884 | case $FIND in |
| 5885 | [\\/]* | ?:[\\/]*) |
| 5886 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 5887 | ;; |
| 5888 | *) |
| 5889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5890 | for as_dir in $PATH |
| 5891 | do |
| 5892 | IFS=$as_save_IFS |
| 5893 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5894 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5895 | 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] | 5896 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5897 | 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] | 5898 | break 2 |
| 5899 | fi |
| 5900 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5901 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5902 | IFS=$as_save_IFS |
| 5903 | |
| 5904 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 5905 | ;; |
| 5906 | esac |
| 5907 | fi |
| 5908 | FIND=$ac_cv_path_FIND |
| 5909 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5910 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 5911 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5912 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5913 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5914 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5915 | fi |
| 5916 | |
| 5917 | |
| 5918 | # Extract the first word of "grep", so it can be a program name with args. |
| 5919 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5920 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5922 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5924 | else |
| 5925 | case $GREP in |
| 5926 | [\\/]* | ?:[\\/]*) |
| 5927 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 5928 | ;; |
| 5929 | *) |
| 5930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5931 | for as_dir in $PATH |
| 5932 | do |
| 5933 | IFS=$as_save_IFS |
| 5934 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5935 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5936 | 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] | 5937 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5938 | 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] | 5939 | break 2 |
| 5940 | fi |
| 5941 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5942 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5943 | IFS=$as_save_IFS |
| 5944 | |
| 5945 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 5946 | ;; |
| 5947 | esac |
| 5948 | fi |
| 5949 | GREP=$ac_cv_path_GREP |
| 5950 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5951 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 5952 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5953 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5954 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5955 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5956 | fi |
| 5957 | |
| 5958 | |
| 5959 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 5960 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5961 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5963 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5965 | else |
| 5966 | case $MKDIR in |
| 5967 | [\\/]* | ?:[\\/]*) |
| 5968 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 5969 | ;; |
| 5970 | *) |
| 5971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5972 | for as_dir in $PATH |
| 5973 | do |
| 5974 | IFS=$as_save_IFS |
| 5975 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5977 | 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] | 5978 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5979 | 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] | 5980 | break 2 |
| 5981 | fi |
| 5982 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5983 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5984 | IFS=$as_save_IFS |
| 5985 | |
| 5986 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 5987 | ;; |
| 5988 | esac |
| 5989 | fi |
| 5990 | MKDIR=$ac_cv_path_MKDIR |
| 5991 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5992 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 5993 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5994 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5995 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5996 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5997 | fi |
| 5998 | |
| 5999 | |
| 6000 | # Extract the first word of "mv", so it can be a program name with args. |
| 6001 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6002 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6004 | if test "${ac_cv_path_MV+set}" = set; then |
| 6005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6006 | else |
| 6007 | case $MV in |
| 6008 | [\\/]* | ?:[\\/]*) |
| 6009 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6010 | ;; |
| 6011 | *) |
| 6012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6013 | for as_dir in $PATH |
| 6014 | do |
| 6015 | IFS=$as_save_IFS |
| 6016 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6017 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6018 | 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] | 6019 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6020 | 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] | 6021 | break 2 |
| 6022 | fi |
| 6023 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6024 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6025 | IFS=$as_save_IFS |
| 6026 | |
| 6027 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6028 | ;; |
| 6029 | esac |
| 6030 | fi |
| 6031 | MV=$ac_cv_path_MV |
| 6032 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6033 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6034 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6035 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6036 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6037 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6038 | fi |
| 6039 | |
| 6040 | |
| 6041 | if test -n "$ac_tool_prefix"; then |
| 6042 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6043 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6044 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6046 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6048 | else |
| 6049 | if test -n "$RANLIB"; then |
| 6050 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6051 | else |
| 6052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6053 | for as_dir in $PATH |
| 6054 | do |
| 6055 | IFS=$as_save_IFS |
| 6056 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6057 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6058 | 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] | 6059 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6060 | 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] | 6061 | break 2 |
| 6062 | fi |
| 6063 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6064 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6065 | IFS=$as_save_IFS |
| 6066 | |
| 6067 | fi |
| 6068 | fi |
| 6069 | RANLIB=$ac_cv_prog_RANLIB |
| 6070 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6071 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6072 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6073 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6074 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6075 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6076 | fi |
| 6077 | |
| 6078 | |
| 6079 | fi |
| 6080 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6081 | ac_ct_RANLIB=$RANLIB |
| 6082 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6083 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6084 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6086 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6088 | else |
| 6089 | if test -n "$ac_ct_RANLIB"; then |
| 6090 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6091 | else |
| 6092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6093 | for as_dir in $PATH |
| 6094 | do |
| 6095 | IFS=$as_save_IFS |
| 6096 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6097 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6098 | 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] | 6099 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6100 | 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] | 6101 | break 2 |
| 6102 | fi |
| 6103 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6104 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6105 | IFS=$as_save_IFS |
| 6106 | |
| 6107 | fi |
| 6108 | fi |
| 6109 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6110 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6111 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6112 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6113 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6114 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6115 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6116 | fi |
| 6117 | |
| 6118 | if test "x$ac_ct_RANLIB" = x; then |
| 6119 | RANLIB=":" |
| 6120 | else |
| 6121 | case $cross_compiling:$ac_tool_warned in |
| 6122 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6123 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6124 | whose name does not start with the host triplet. If you think this |
| 6125 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6126 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6127 | whose name does not start with the host triplet. If you think this |
| 6128 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6129 | ac_tool_warned=yes ;; |
| 6130 | esac |
| 6131 | RANLIB=$ac_ct_RANLIB |
| 6132 | fi |
| 6133 | else |
| 6134 | RANLIB="$ac_cv_prog_RANLIB" |
| 6135 | fi |
| 6136 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6137 | if test -n "$ac_tool_prefix"; then |
| 6138 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6139 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6140 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6142 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6144 | else |
| 6145 | if test -n "$AR"; then |
| 6146 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6147 | else |
| 6148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6149 | for as_dir in $PATH |
| 6150 | do |
| 6151 | IFS=$as_save_IFS |
| 6152 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6153 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6154 | 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] | 6155 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6156 | 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] | 6157 | break 2 |
| 6158 | fi |
| 6159 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6160 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6161 | IFS=$as_save_IFS |
| 6162 | |
| 6163 | fi |
| 6164 | fi |
| 6165 | AR=$ac_cv_prog_AR |
| 6166 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6167 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6168 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6169 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6170 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6171 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6172 | fi |
| 6173 | |
| 6174 | |
| 6175 | fi |
| 6176 | if test -z "$ac_cv_prog_AR"; then |
| 6177 | ac_ct_AR=$AR |
| 6178 | # Extract the first word of "ar", so it can be a program name with args. |
| 6179 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6180 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6182 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6184 | else |
| 6185 | if test -n "$ac_ct_AR"; then |
| 6186 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6187 | else |
| 6188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6189 | for as_dir in $PATH |
| 6190 | do |
| 6191 | IFS=$as_save_IFS |
| 6192 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6193 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6194 | 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] | 6195 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6196 | 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] | 6197 | break 2 |
| 6198 | fi |
| 6199 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6200 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6201 | IFS=$as_save_IFS |
| 6202 | |
| 6203 | fi |
| 6204 | fi |
| 6205 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6206 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6207 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6208 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6209 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6210 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6211 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6212 | fi |
| 6213 | |
| 6214 | if test "x$ac_ct_AR" = x; then |
| 6215 | AR="false" |
| 6216 | else |
| 6217 | case $cross_compiling:$ac_tool_warned in |
| 6218 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6219 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6220 | whose name does not start with the host triplet. If you think this |
| 6221 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6222 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6223 | whose name does not start with the host triplet. If you think this |
| 6224 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6225 | ac_tool_warned=yes ;; |
| 6226 | esac |
| 6227 | AR=$ac_ct_AR |
| 6228 | fi |
| 6229 | else |
| 6230 | AR="$ac_cv_prog_AR" |
| 6231 | fi |
| 6232 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6233 | # Extract the first word of "rm", so it can be a program name with args. |
| 6234 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6237 | if test "${ac_cv_path_RM+set}" = set; then |
| 6238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6239 | else |
| 6240 | case $RM in |
| 6241 | [\\/]* | ?:[\\/]*) |
| 6242 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6243 | ;; |
| 6244 | *) |
| 6245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6246 | for as_dir in $PATH |
| 6247 | do |
| 6248 | IFS=$as_save_IFS |
| 6249 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6251 | 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] | 6252 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6253 | 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] | 6254 | break 2 |
| 6255 | fi |
| 6256 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6257 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6258 | IFS=$as_save_IFS |
| 6259 | |
| 6260 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6261 | ;; |
| 6262 | esac |
| 6263 | fi |
| 6264 | RM=$ac_cv_path_RM |
| 6265 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6266 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6267 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6268 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6269 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6270 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6271 | fi |
| 6272 | |
| 6273 | |
| 6274 | # Extract the first word of "sed", so it can be a program name with args. |
| 6275 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6276 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6278 | if test "${ac_cv_path_SED+set}" = set; then |
| 6279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6280 | else |
| 6281 | case $SED in |
| 6282 | [\\/]* | ?:[\\/]*) |
| 6283 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6284 | ;; |
| 6285 | *) |
| 6286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6287 | for as_dir in $PATH |
| 6288 | do |
| 6289 | IFS=$as_save_IFS |
| 6290 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6292 | 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] | 6293 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6294 | 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] | 6295 | break 2 |
| 6296 | fi |
| 6297 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6298 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6299 | IFS=$as_save_IFS |
| 6300 | |
| 6301 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6302 | ;; |
| 6303 | esac |
| 6304 | fi |
| 6305 | SED=$ac_cv_path_SED |
| 6306 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6307 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6308 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6309 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6310 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6311 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6312 | fi |
| 6313 | |
| 6314 | |
| 6315 | # Extract the first word of "tar", so it can be a program name with args. |
| 6316 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6317 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6318 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6319 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6321 | else |
| 6322 | case $TAR in |
| 6323 | [\\/]* | ?:[\\/]*) |
| 6324 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6325 | ;; |
| 6326 | *) |
| 6327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6328 | for as_dir in $PATH |
| 6329 | do |
| 6330 | IFS=$as_save_IFS |
| 6331 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6332 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6333 | 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] | 6334 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6335 | 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] | 6336 | break 2 |
| 6337 | fi |
| 6338 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6339 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6340 | IFS=$as_save_IFS |
| 6341 | |
| 6342 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6343 | ;; |
| 6344 | esac |
| 6345 | fi |
| 6346 | TAR=$ac_cv_path_TAR |
| 6347 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6348 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6349 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6350 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6351 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6352 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6353 | fi |
| 6354 | |
| 6355 | |
| 6356 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6357 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6358 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6360 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6362 | else |
| 6363 | case $BINPWD in |
| 6364 | [\\/]* | ?:[\\/]*) |
| 6365 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6366 | ;; |
| 6367 | *) |
| 6368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6369 | for as_dir in $PATH |
| 6370 | do |
| 6371 | IFS=$as_save_IFS |
| 6372 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6373 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6374 | 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] | 6375 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6376 | 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] | 6377 | break 2 |
| 6378 | fi |
| 6379 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6380 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6381 | IFS=$as_save_IFS |
| 6382 | |
| 6383 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6384 | ;; |
| 6385 | esac |
| 6386 | fi |
| 6387 | BINPWD=$ac_cv_path_BINPWD |
| 6388 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6389 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6390 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6391 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6392 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6393 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6394 | fi |
| 6395 | |
| 6396 | |
| 6397 | |
| 6398 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6399 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6400 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6402 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6404 | else |
| 6405 | case $GRAPHVIZ in |
| 6406 | [\\/]* | ?:[\\/]*) |
| 6407 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6408 | ;; |
| 6409 | *) |
| 6410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6411 | for as_dir in $PATH |
| 6412 | do |
| 6413 | IFS=$as_save_IFS |
| 6414 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6415 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6416 | 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] | 6417 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6418 | 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] | 6419 | break 2 |
| 6420 | fi |
| 6421 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6422 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6423 | IFS=$as_save_IFS |
| 6424 | |
| 6425 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6426 | ;; |
| 6427 | esac |
| 6428 | fi |
| 6429 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6430 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6431 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 6432 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6433 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6434 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6435 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6436 | fi |
| 6437 | |
| 6438 | |
| 6439 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6440 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6441 | cat >>confdefs.h <<\_ACEOF |
| 6442 | #define HAVE_GRAPHVIZ 1 |
| 6443 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6444 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6445 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6446 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6447 | fi |
| 6448 | |
| 6449 | cat >>confdefs.h <<_ACEOF |
| 6450 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6451 | _ACEOF |
| 6452 | |
| 6453 | fi |
| 6454 | # Extract the first word of "dot", so it can be a program name with args. |
| 6455 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6456 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6458 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6460 | else |
| 6461 | case $DOT in |
| 6462 | [\\/]* | ?:[\\/]*) |
| 6463 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6464 | ;; |
| 6465 | *) |
| 6466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6467 | for as_dir in $PATH |
| 6468 | do |
| 6469 | IFS=$as_save_IFS |
| 6470 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6471 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6472 | 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] | 6473 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6474 | 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] | 6475 | break 2 |
| 6476 | fi |
| 6477 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6478 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6479 | IFS=$as_save_IFS |
| 6480 | |
| 6481 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6482 | ;; |
| 6483 | esac |
| 6484 | fi |
| 6485 | DOT=$ac_cv_path_DOT |
| 6486 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6487 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6488 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6489 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6490 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6491 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6492 | fi |
| 6493 | |
| 6494 | |
| 6495 | if test "$DOT" != "echo dot" ; then |
| 6496 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6497 | cat >>confdefs.h <<\_ACEOF |
| 6498 | #define HAVE_DOT 1 |
| 6499 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6500 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6501 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6502 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6503 | fi |
| 6504 | |
| 6505 | cat >>confdefs.h <<_ACEOF |
| 6506 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6507 | _ACEOF |
| 6508 | |
| 6509 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6510 | # Extract the first word of "fdp", so it can be a program name with args. |
| 6511 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6514 | if test "${ac_cv_path_FDP+set}" = set; then |
| 6515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6516 | else |
| 6517 | case $FDP in |
| 6518 | [\\/]* | ?:[\\/]*) |
| 6519 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 6520 | ;; |
| 6521 | *) |
| 6522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6523 | for as_dir in $PATH |
| 6524 | do |
| 6525 | IFS=$as_save_IFS |
| 6526 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6527 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6528 | 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] | 6529 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6530 | 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] | 6531 | break 2 |
| 6532 | fi |
| 6533 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6534 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6535 | IFS=$as_save_IFS |
| 6536 | |
| 6537 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 6538 | ;; |
| 6539 | esac |
| 6540 | fi |
| 6541 | FDP=$ac_cv_path_FDP |
| 6542 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6543 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 6544 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6545 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6546 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6547 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6548 | fi |
| 6549 | |
| 6550 | |
| 6551 | if test "$FDP" != "echo fdp" ; then |
| 6552 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6553 | cat >>confdefs.h <<\_ACEOF |
| 6554 | #define HAVE_FDP 1 |
| 6555 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6556 | |
| 6557 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6558 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6559 | fi |
| 6560 | |
| 6561 | cat >>confdefs.h <<_ACEOF |
| 6562 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 6563 | _ACEOF |
| 6564 | |
| 6565 | fi |
| 6566 | # Extract the first word of "neato", so it can be a program name with args. |
| 6567 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6568 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6570 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 6571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6572 | else |
| 6573 | case $NEATO in |
| 6574 | [\\/]* | ?:[\\/]*) |
| 6575 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 6576 | ;; |
| 6577 | *) |
| 6578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6579 | for as_dir in $PATH |
| 6580 | do |
| 6581 | IFS=$as_save_IFS |
| 6582 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6584 | 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] | 6585 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6586 | 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] | 6587 | break 2 |
| 6588 | fi |
| 6589 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6590 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6591 | IFS=$as_save_IFS |
| 6592 | |
| 6593 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 6594 | ;; |
| 6595 | esac |
| 6596 | fi |
| 6597 | NEATO=$ac_cv_path_NEATO |
| 6598 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6599 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 6600 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6601 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6602 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6603 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6604 | fi |
| 6605 | |
| 6606 | |
| 6607 | if test "$NEATO" != "echo neato" ; then |
| 6608 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6609 | cat >>confdefs.h <<\_ACEOF |
| 6610 | #define HAVE_NEATO 1 |
| 6611 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6612 | |
| 6613 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6614 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6615 | fi |
| 6616 | |
| 6617 | cat >>confdefs.h <<_ACEOF |
| 6618 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 6619 | _ACEOF |
| 6620 | |
| 6621 | fi |
| 6622 | # Extract the first word of "twopi", so it can be a program name with args. |
| 6623 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6624 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6626 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 6627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6628 | else |
| 6629 | case $TWOPI in |
| 6630 | [\\/]* | ?:[\\/]*) |
| 6631 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 6632 | ;; |
| 6633 | *) |
| 6634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6635 | for as_dir in $PATH |
| 6636 | do |
| 6637 | IFS=$as_save_IFS |
| 6638 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6639 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6640 | 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] | 6641 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6642 | 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] | 6643 | break 2 |
| 6644 | fi |
| 6645 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6646 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6647 | IFS=$as_save_IFS |
| 6648 | |
| 6649 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 6650 | ;; |
| 6651 | esac |
| 6652 | fi |
| 6653 | TWOPI=$ac_cv_path_TWOPI |
| 6654 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6655 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 6656 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6657 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6658 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6659 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6660 | fi |
| 6661 | |
| 6662 | |
| 6663 | if test "$TWOPI" != "echo twopi" ; then |
| 6664 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6665 | cat >>confdefs.h <<\_ACEOF |
| 6666 | #define HAVE_TWOPI 1 |
| 6667 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6668 | |
| 6669 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6670 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6671 | fi |
| 6672 | |
| 6673 | cat >>confdefs.h <<_ACEOF |
| 6674 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 6675 | _ACEOF |
| 6676 | |
| 6677 | fi |
| 6678 | # Extract the first word of "circo", so it can be a program name with args. |
| 6679 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6680 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6682 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 6683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6684 | else |
| 6685 | case $CIRCO in |
| 6686 | [\\/]* | ?:[\\/]*) |
| 6687 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 6688 | ;; |
| 6689 | *) |
| 6690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6691 | for as_dir in $PATH |
| 6692 | do |
| 6693 | IFS=$as_save_IFS |
| 6694 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6696 | 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] | 6697 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6698 | 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] | 6699 | break 2 |
| 6700 | fi |
| 6701 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6702 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6703 | IFS=$as_save_IFS |
| 6704 | |
| 6705 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 6706 | ;; |
| 6707 | esac |
| 6708 | fi |
| 6709 | CIRCO=$ac_cv_path_CIRCO |
| 6710 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6711 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 6712 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6713 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6714 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6715 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6716 | fi |
| 6717 | |
| 6718 | |
| 6719 | if test "$CIRCO" != "echo circo" ; then |
| 6720 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6721 | cat >>confdefs.h <<\_ACEOF |
| 6722 | #define HAVE_CIRCO 1 |
| 6723 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6724 | |
| 6725 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6726 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6727 | fi |
| 6728 | |
| 6729 | cat >>confdefs.h <<_ACEOF |
| 6730 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 6731 | _ACEOF |
| 6732 | |
| 6733 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6734 | for ac_prog in gv gsview32 |
| 6735 | do |
| 6736 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6737 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6738 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6740 | if test "${ac_cv_path_GV+set}" = set; then |
| 6741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6742 | else |
| 6743 | case $GV in |
| 6744 | [\\/]* | ?:[\\/]*) |
| 6745 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6746 | ;; |
| 6747 | *) |
| 6748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6749 | for as_dir in $PATH |
| 6750 | do |
| 6751 | IFS=$as_save_IFS |
| 6752 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6754 | 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] | 6755 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6756 | 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] | 6757 | break 2 |
| 6758 | fi |
| 6759 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6760 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6761 | IFS=$as_save_IFS |
| 6762 | |
| 6763 | ;; |
| 6764 | esac |
| 6765 | fi |
| 6766 | GV=$ac_cv_path_GV |
| 6767 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6768 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 6769 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6770 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6771 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6772 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6773 | fi |
| 6774 | |
| 6775 | |
| 6776 | test -n "$GV" && break |
| 6777 | done |
| 6778 | test -n "$GV" || GV="echo gv" |
| 6779 | |
| 6780 | if test "$GV" != "echo gv" ; then |
| 6781 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6782 | cat >>confdefs.h <<\_ACEOF |
| 6783 | #define HAVE_GV 1 |
| 6784 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6785 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6786 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6787 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6788 | fi |
| 6789 | |
| 6790 | cat >>confdefs.h <<_ACEOF |
| 6791 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 6792 | _ACEOF |
| 6793 | |
| 6794 | fi |
| 6795 | # Extract the first word of "dotty", so it can be a program name with args. |
| 6796 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6799 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 6800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6801 | else |
| 6802 | case $DOTTY in |
| 6803 | [\\/]* | ?:[\\/]*) |
| 6804 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 6805 | ;; |
| 6806 | *) |
| 6807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6808 | for as_dir in $PATH |
| 6809 | do |
| 6810 | IFS=$as_save_IFS |
| 6811 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6813 | 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] | 6814 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6815 | 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] | 6816 | break 2 |
| 6817 | fi |
| 6818 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6819 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6820 | IFS=$as_save_IFS |
| 6821 | |
| 6822 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 6823 | ;; |
| 6824 | esac |
| 6825 | fi |
| 6826 | DOTTY=$ac_cv_path_DOTTY |
| 6827 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6828 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 6829 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6830 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6831 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6832 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6833 | fi |
| 6834 | |
| 6835 | |
| 6836 | if test "$DOTTY" != "echo dotty" ; then |
| 6837 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6838 | cat >>confdefs.h <<\_ACEOF |
| 6839 | #define HAVE_DOTTY 1 |
| 6840 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6841 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6842 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6843 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6844 | fi |
| 6845 | |
| 6846 | cat >>confdefs.h <<_ACEOF |
| 6847 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 6848 | _ACEOF |
| 6849 | |
| 6850 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 6851 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 6852 | set dummy xdot.py; ac_word=$2 |
| 6853 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6855 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 6856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6857 | else |
| 6858 | case $XDOT_PY in |
| 6859 | [\\/]* | ?:[\\/]*) |
| 6860 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 6861 | ;; |
| 6862 | *) |
| 6863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6864 | for as_dir in $PATH |
| 6865 | do |
| 6866 | IFS=$as_save_IFS |
| 6867 | test -z "$as_dir" && as_dir=. |
| 6868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6870 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 6871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6872 | break 2 |
| 6873 | fi |
| 6874 | done |
| 6875 | done |
| 6876 | IFS=$as_save_IFS |
| 6877 | |
| 6878 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 6879 | ;; |
| 6880 | esac |
| 6881 | fi |
| 6882 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 6883 | if test -n "$XDOT_PY"; then |
| 6884 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 6885 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 6886 | else |
| 6887 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6888 | echo "${ECHO_T}no" >&6; } |
| 6889 | fi |
| 6890 | |
| 6891 | |
| 6892 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 6893 | |
| 6894 | cat >>confdefs.h <<\_ACEOF |
| 6895 | #define HAVE_XDOT_PY 1 |
| 6896 | _ACEOF |
| 6897 | |
| 6898 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6899 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6900 | fi |
| 6901 | |
| 6902 | cat >>confdefs.h <<_ACEOF |
| 6903 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 6904 | _ACEOF |
| 6905 | |
| 6906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6907 | |
| 6908 | |
| 6909 | # Extract the first word of "perl", so it can be a program name with args. |
| 6910 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6911 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6913 | if test "${ac_cv_path_PERL+set}" = set; then |
| 6914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6915 | else |
| 6916 | case $PERL in |
| 6917 | [\\/]* | ?:[\\/]*) |
| 6918 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 6919 | ;; |
| 6920 | *) |
| 6921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6922 | for as_dir in $PATH |
| 6923 | do |
| 6924 | IFS=$as_save_IFS |
| 6925 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6926 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6927 | 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] | 6928 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6929 | 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] | 6930 | break 2 |
| 6931 | fi |
| 6932 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6933 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6934 | IFS=$as_save_IFS |
| 6935 | |
| 6936 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 6937 | ;; |
| 6938 | esac |
| 6939 | fi |
| 6940 | PERL=$ac_cv_path_PERL |
| 6941 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6942 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 6943 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6944 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6945 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6946 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6947 | fi |
| 6948 | |
| 6949 | |
| 6950 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6951 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 6952 | 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] | 6953 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6954 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6955 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6956 | else |
| 6957 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6958 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 6959 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6960 | fi |
| 6961 | fi |
| 6962 | |
| 6963 | |
| 6964 | if test x"$PERL" = xnone; then |
| 6965 | HAVE_PERL=0 |
| 6966 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6967 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 6968 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 6969 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6970 | else |
| 6971 | HAVE_PERL=1 |
| 6972 | |
| 6973 | fi |
| 6974 | |
| 6975 | # Find a good install program. We prefer a C program (faster), |
| 6976 | # so one script is as good as another. But avoid the broken or |
| 6977 | # incompatible versions: |
| 6978 | # SysV /etc/install, /usr/sbin/install |
| 6979 | # SunOS /usr/etc/install |
| 6980 | # IRIX /sbin/install |
| 6981 | # AIX /bin/install |
| 6982 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6983 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6984 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6985 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6986 | # OS/2's system install, which has a completely different semantic |
| 6987 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6988 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6989 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6990 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6991 | if test "${ac_cv_path_install+set}" = set; then |
| 6992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6993 | else |
| 6994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6995 | for as_dir in $PATH |
| 6996 | do |
| 6997 | IFS=$as_save_IFS |
| 6998 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6999 | # Account for people who put trailing slashes in PATH elements. |
| 7000 | case $as_dir/ in |
| 7001 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7002 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7003 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7004 | /usr/ucb/* ) ;; |
| 7005 | *) |
| 7006 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7007 | # Don't use installbsd from OSF since it installs stuff as root |
| 7008 | # by default. |
| 7009 | for ac_prog in ginstall scoinst install; do |
| 7010 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7011 | 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] | 7012 | if test $ac_prog = install && |
| 7013 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7014 | # AIX install. It has an incompatible calling convention. |
| 7015 | : |
| 7016 | elif test $ac_prog = install && |
| 7017 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7018 | # program-specific install script used by HP pwplus--don't use. |
| 7019 | : |
| 7020 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7021 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7022 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7023 | fi |
| 7024 | fi |
| 7025 | done |
| 7026 | done |
| 7027 | ;; |
| 7028 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7029 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7030 | IFS=$as_save_IFS |
| 7031 | |
| 7032 | |
| 7033 | fi |
| 7034 | if test "${ac_cv_path_install+set}" = set; then |
| 7035 | INSTALL=$ac_cv_path_install |
| 7036 | else |
| 7037 | # As a last resort, use the slow shell script. Don't cache a |
| 7038 | # value for INSTALL within a source directory, because that will |
| 7039 | # break other packages using the cache if that directory is |
| 7040 | # removed, or if the value is a relative name. |
| 7041 | INSTALL=$ac_install_sh |
| 7042 | fi |
| 7043 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7044 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7045 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7046 | |
| 7047 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7048 | # It thinks the first close brace ends the variable substitution. |
| 7049 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7050 | |
| 7051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7052 | |
| 7053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7054 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7055 | case "$INSTALL" in |
| 7056 | [\\/$]* | ?:[\\/]* ) ;; |
| 7057 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 7058 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7059 | |
| 7060 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7061 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7062 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7064 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7066 | else |
| 7067 | case $BZIP2 in |
| 7068 | [\\/]* | ?:[\\/]*) |
| 7069 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7070 | ;; |
| 7071 | *) |
| 7072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7073 | for as_dir in $PATH |
| 7074 | do |
| 7075 | IFS=$as_save_IFS |
| 7076 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7077 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7078 | 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] | 7079 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7080 | 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] | 7081 | break 2 |
| 7082 | fi |
| 7083 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7084 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7085 | IFS=$as_save_IFS |
| 7086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7087 | ;; |
| 7088 | esac |
| 7089 | fi |
| 7090 | BZIP2=$ac_cv_path_BZIP2 |
| 7091 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7092 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7093 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7094 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7095 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7096 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7097 | fi |
| 7098 | |
| 7099 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7100 | # Extract the first word of "cat", so it can be a program name with args. |
| 7101 | set dummy cat; ac_word=$2 |
| 7102 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7104 | if test "${ac_cv_path_CAT+set}" = set; then |
| 7105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7106 | else |
| 7107 | case $CAT in |
| 7108 | [\\/]* | ?:[\\/]*) |
| 7109 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 7110 | ;; |
| 7111 | *) |
| 7112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7113 | for as_dir in $PATH |
| 7114 | do |
| 7115 | IFS=$as_save_IFS |
| 7116 | test -z "$as_dir" && as_dir=. |
| 7117 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7119 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 7120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7121 | break 2 |
| 7122 | fi |
| 7123 | done |
| 7124 | done |
| 7125 | IFS=$as_save_IFS |
| 7126 | |
| 7127 | ;; |
| 7128 | esac |
| 7129 | fi |
| 7130 | CAT=$ac_cv_path_CAT |
| 7131 | if test -n "$CAT"; then |
| 7132 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 7133 | echo "${ECHO_T}$CAT" >&6; } |
| 7134 | else |
| 7135 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7136 | echo "${ECHO_T}no" >&6; } |
| 7137 | fi |
| 7138 | |
| 7139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7140 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7141 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7144 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7146 | else |
| 7147 | case $DOXYGEN in |
| 7148 | [\\/]* | ?:[\\/]*) |
| 7149 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7150 | ;; |
| 7151 | *) |
| 7152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7153 | for as_dir in $PATH |
| 7154 | do |
| 7155 | IFS=$as_save_IFS |
| 7156 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7157 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7158 | 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] | 7159 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7160 | 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] | 7161 | break 2 |
| 7162 | fi |
| 7163 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7164 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7165 | IFS=$as_save_IFS |
| 7166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7167 | ;; |
| 7168 | esac |
| 7169 | fi |
| 7170 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7171 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7172 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7173 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7174 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7175 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7176 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7177 | fi |
| 7178 | |
| 7179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7180 | # Extract the first word of "groff", so it can be a program name with args. |
| 7181 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7182 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7184 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7186 | else |
| 7187 | case $GROFF in |
| 7188 | [\\/]* | ?:[\\/]*) |
| 7189 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7190 | ;; |
| 7191 | *) |
| 7192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7193 | for as_dir in $PATH |
| 7194 | do |
| 7195 | IFS=$as_save_IFS |
| 7196 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7197 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7198 | 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] | 7199 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7200 | 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] | 7201 | break 2 |
| 7202 | fi |
| 7203 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7204 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7205 | IFS=$as_save_IFS |
| 7206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7207 | ;; |
| 7208 | esac |
| 7209 | fi |
| 7210 | GROFF=$ac_cv_path_GROFF |
| 7211 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7212 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7213 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7214 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7215 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7216 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7217 | fi |
| 7218 | |
| 7219 | |
| 7220 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7221 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7222 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7224 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7226 | else |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7227 | case $GZIPBIN in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7228 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7229 | 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] | 7230 | ;; |
| 7231 | *) |
| 7232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7233 | for as_dir in $PATH |
| 7234 | do |
| 7235 | IFS=$as_save_IFS |
| 7236 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7237 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7238 | 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] | 7239 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7240 | 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] | 7241 | break 2 |
| 7242 | fi |
| 7243 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7244 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7245 | IFS=$as_save_IFS |
| 7246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7247 | ;; |
| 7248 | esac |
| 7249 | fi |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7250 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 7251 | if test -n "$GZIPBIN"; then |
| 7252 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 7253 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7254 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7255 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7256 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7257 | fi |
| 7258 | |
| 7259 | |
| 7260 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7261 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7262 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7264 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7266 | else |
| 7267 | case $POD2HTML in |
| 7268 | [\\/]* | ?:[\\/]*) |
| 7269 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7270 | ;; |
| 7271 | *) |
| 7272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7273 | for as_dir in $PATH |
| 7274 | do |
| 7275 | IFS=$as_save_IFS |
| 7276 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7278 | 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] | 7279 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7280 | 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] | 7281 | break 2 |
| 7282 | fi |
| 7283 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7284 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7285 | IFS=$as_save_IFS |
| 7286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7287 | ;; |
| 7288 | esac |
| 7289 | fi |
| 7290 | POD2HTML=$ac_cv_path_POD2HTML |
| 7291 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7292 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7293 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7294 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7295 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7296 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7297 | fi |
| 7298 | |
| 7299 | |
| 7300 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7301 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7302 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7304 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7306 | else |
| 7307 | case $POD2MAN in |
| 7308 | [\\/]* | ?:[\\/]*) |
| 7309 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7310 | ;; |
| 7311 | *) |
| 7312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7313 | for as_dir in $PATH |
| 7314 | do |
| 7315 | IFS=$as_save_IFS |
| 7316 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7317 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7318 | 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] | 7319 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7320 | 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] | 7321 | break 2 |
| 7322 | fi |
| 7323 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7324 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7325 | IFS=$as_save_IFS |
| 7326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7327 | ;; |
| 7328 | esac |
| 7329 | fi |
| 7330 | POD2MAN=$ac_cv_path_POD2MAN |
| 7331 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7332 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7333 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7334 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7335 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7336 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7337 | fi |
| 7338 | |
| 7339 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7340 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 7341 | set dummy pdfroff; ac_word=$2 |
| 7342 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7344 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7346 | else |
| 7347 | case $PDFROFF in |
| 7348 | [\\/]* | ?:[\\/]*) |
| 7349 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 7350 | ;; |
| 7351 | *) |
| 7352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7353 | for as_dir in $PATH |
| 7354 | do |
| 7355 | IFS=$as_save_IFS |
| 7356 | test -z "$as_dir" && as_dir=. |
| 7357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7359 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7361 | break 2 |
| 7362 | fi |
| 7363 | done |
| 7364 | done |
| 7365 | IFS=$as_save_IFS |
| 7366 | |
| 7367 | ;; |
| 7368 | esac |
| 7369 | fi |
| 7370 | PDFROFF=$ac_cv_path_PDFROFF |
| 7371 | if test -n "$PDFROFF"; then |
| 7372 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 7373 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 7374 | else |
| 7375 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7376 | echo "${ECHO_T}no" >&6; } |
| 7377 | fi |
| 7378 | |
| 7379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7380 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7381 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7384 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7386 | else |
| 7387 | case $RUNTEST in |
| 7388 | [\\/]* | ?:[\\/]*) |
| 7389 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7390 | ;; |
| 7391 | *) |
| 7392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7393 | for as_dir in $PATH |
| 7394 | do |
| 7395 | IFS=$as_save_IFS |
| 7396 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7397 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7398 | 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] | 7399 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7400 | 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] | 7401 | break 2 |
| 7402 | fi |
| 7403 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7404 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7405 | IFS=$as_save_IFS |
| 7406 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7407 | ;; |
| 7408 | esac |
| 7409 | fi |
| 7410 | RUNTEST=$ac_cv_path_RUNTEST |
| 7411 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7412 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7413 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7416 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7417 | fi |
| 7418 | |
| 7419 | |
| 7420 | |
| 7421 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7422 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7423 | 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] | 7424 | |
| 7425 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7426 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7427 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7428 | else |
| 7429 | with_tclinclude='' |
| 7430 | fi |
| 7431 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7432 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7434 | else |
| 7435 | |
| 7436 | if test x"${with_tclinclude}" != x ; then |
| 7437 | if test -f ${with_tclinclude}/tclsh ; then |
| 7438 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7439 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7440 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7441 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7442 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7443 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7444 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7445 | fi |
| 7446 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7447 | fi |
| 7448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7449 | |
| 7450 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7451 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7452 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7453 | 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 |
| 7454 | do |
| 7455 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7456 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7457 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7459 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7461 | else |
| 7462 | case $TCLSH in |
| 7463 | [\\/]* | ?:[\\/]*) |
| 7464 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7465 | ;; |
| 7466 | *) |
| 7467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7468 | for as_dir in $PATH |
| 7469 | do |
| 7470 | IFS=$as_save_IFS |
| 7471 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7472 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7473 | 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] | 7474 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7475 | 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] | 7476 | break 2 |
| 7477 | fi |
| 7478 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7479 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7480 | IFS=$as_save_IFS |
| 7481 | |
| 7482 | ;; |
| 7483 | esac |
| 7484 | fi |
| 7485 | TCLSH=$ac_cv_path_TCLSH |
| 7486 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7487 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7488 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7489 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7490 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7491 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7492 | fi |
| 7493 | |
| 7494 | |
| 7495 | test -n "$TCLSH" && break |
| 7496 | done |
| 7497 | |
| 7498 | if test x"${TCLSH}" = x ; then |
| 7499 | ac_cv_path_tclsh=''; |
| 7500 | else |
| 7501 | ac_cv_path_tclsh="${TCLSH}"; |
| 7502 | fi |
| 7503 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7504 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7505 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7506 | TCLSH="${ac_cv_path_tclsh}" |
| 7507 | |
| 7508 | fi |
| 7509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7510 | # Extract the first word of "zip", so it can be a program name with args. |
| 7511 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7514 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7516 | else |
| 7517 | case $ZIP in |
| 7518 | [\\/]* | ?:[\\/]*) |
| 7519 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7520 | ;; |
| 7521 | *) |
| 7522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7523 | for as_dir in $PATH |
| 7524 | do |
| 7525 | IFS=$as_save_IFS |
| 7526 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7527 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7528 | 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] | 7529 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7530 | 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] | 7531 | break 2 |
| 7532 | fi |
| 7533 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7534 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7535 | IFS=$as_save_IFS |
| 7536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7537 | ;; |
| 7538 | esac |
| 7539 | fi |
| 7540 | ZIP=$ac_cv_path_ZIP |
| 7541 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7542 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7543 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7544 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7546 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7547 | fi |
| 7548 | |
| 7549 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7550 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7551 | do |
| 7552 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7553 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7554 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7556 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7558 | else |
| 7559 | case $OCAMLC in |
| 7560 | [\\/]* | ?:[\\/]*) |
| 7561 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7562 | ;; |
| 7563 | *) |
| 7564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7565 | for as_dir in $PATH |
| 7566 | do |
| 7567 | IFS=$as_save_IFS |
| 7568 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7570 | 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] | 7571 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7572 | 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] | 7573 | break 2 |
| 7574 | fi |
| 7575 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7576 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7577 | IFS=$as_save_IFS |
| 7578 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7579 | ;; |
| 7580 | esac |
| 7581 | fi |
| 7582 | OCAMLC=$ac_cv_path_OCAMLC |
| 7583 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7584 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7585 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7586 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7588 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7589 | fi |
| 7590 | |
| 7591 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7592 | test -n "$OCAMLC" && break |
| 7593 | done |
| 7594 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7595 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7596 | do |
| 7597 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7598 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7601 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7603 | else |
| 7604 | case $OCAMLOPT in |
| 7605 | [\\/]* | ?:[\\/]*) |
| 7606 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7607 | ;; |
| 7608 | *) |
| 7609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7610 | for as_dir in $PATH |
| 7611 | do |
| 7612 | IFS=$as_save_IFS |
| 7613 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7615 | 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] | 7616 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7617 | 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] | 7618 | break 2 |
| 7619 | fi |
| 7620 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7621 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7622 | IFS=$as_save_IFS |
| 7623 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7624 | ;; |
| 7625 | esac |
| 7626 | fi |
| 7627 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7628 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7629 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7630 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7631 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7632 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7633 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7634 | fi |
| 7635 | |
| 7636 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7637 | test -n "$OCAMLOPT" && break |
| 7638 | done |
| 7639 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7640 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7641 | do |
| 7642 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7643 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7644 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7646 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7648 | else |
| 7649 | case $OCAMLDEP in |
| 7650 | [\\/]* | ?:[\\/]*) |
| 7651 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7652 | ;; |
| 7653 | *) |
| 7654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7655 | for as_dir in $PATH |
| 7656 | do |
| 7657 | IFS=$as_save_IFS |
| 7658 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7660 | 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] | 7661 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7662 | 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] | 7663 | break 2 |
| 7664 | fi |
| 7665 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7666 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7667 | IFS=$as_save_IFS |
| 7668 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7669 | ;; |
| 7670 | esac |
| 7671 | fi |
| 7672 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7673 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7674 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7675 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7676 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7677 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7678 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7679 | fi |
| 7680 | |
| 7681 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7682 | test -n "$OCAMLDEP" && break |
| 7683 | done |
| 7684 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7685 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7686 | do |
| 7687 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7688 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7689 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7691 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 7692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7693 | else |
| 7694 | case $OCAMLDOC in |
| 7695 | [\\/]* | ?:[\\/]*) |
| 7696 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7697 | ;; |
| 7698 | *) |
| 7699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7700 | for as_dir in $PATH |
| 7701 | do |
| 7702 | IFS=$as_save_IFS |
| 7703 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7705 | 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] | 7706 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7707 | 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] | 7708 | break 2 |
| 7709 | fi |
| 7710 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7711 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7712 | IFS=$as_save_IFS |
| 7713 | |
| 7714 | ;; |
| 7715 | esac |
| 7716 | fi |
| 7717 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7718 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7719 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 7720 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7721 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7722 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7723 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7724 | fi |
| 7725 | |
| 7726 | |
| 7727 | test -n "$OCAMLDOC" && break |
| 7728 | done |
| 7729 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7730 | for ac_prog in gas as |
| 7731 | do |
| 7732 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7733 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7734 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7736 | if test "${ac_cv_path_GAS+set}" = set; then |
| 7737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7738 | else |
| 7739 | case $GAS in |
| 7740 | [\\/]* | ?:[\\/]*) |
| 7741 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7742 | ;; |
| 7743 | *) |
| 7744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7745 | for as_dir in $PATH |
| 7746 | do |
| 7747 | IFS=$as_save_IFS |
| 7748 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7749 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7750 | 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] | 7751 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7752 | 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] | 7753 | break 2 |
| 7754 | fi |
| 7755 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7756 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7757 | IFS=$as_save_IFS |
| 7758 | |
| 7759 | ;; |
| 7760 | esac |
| 7761 | fi |
| 7762 | GAS=$ac_cv_path_GAS |
| 7763 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7764 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7765 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7766 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7767 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7768 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7769 | fi |
| 7770 | |
| 7771 | |
| 7772 | test -n "$GAS" && break |
| 7773 | done |
| 7774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7775 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7776 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 7777 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 7778 | if test "${llvm_cv_link_version+set}" = set; then |
| 7779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7780 | else |
| 7781 | |
| 7782 | version_string="$(ld -v 2>&1 | head -1)" |
| 7783 | |
| 7784 | # Check for ld64. |
| 7785 | if (echo "$version_string" | grep -q "ld64"); then |
Charles Davis | 8b37637 | 2012-02-28 02:55:41 +0000 | [diff] [blame] | 7786 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7787 | else |
| 7788 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 7789 | fi |
| 7790 | |
| 7791 | fi |
| 7792 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 7793 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 7794 | |
| 7795 | cat >>confdefs.h <<_ACEOF |
| 7796 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 7797 | _ACEOF |
| 7798 | |
| 7799 | |
| 7800 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7801 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7802 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7803 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7805 | else |
| 7806 | ac_ext=c |
| 7807 | ac_cpp='$CPP $CPPFLAGS' |
| 7808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7811 | |
| 7812 | oldcflags="$CFLAGS" |
| 7813 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7814 | cat >conftest.$ac_ext <<_ACEOF |
| 7815 | /* confdefs.h. */ |
| 7816 | _ACEOF |
| 7817 | cat confdefs.h >>conftest.$ac_ext |
| 7818 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7819 | /* end confdefs.h. */ |
| 7820 | |
| 7821 | int |
| 7822 | main () |
| 7823 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7824 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7825 | ; |
| 7826 | return 0; |
| 7827 | } |
| 7828 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7829 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7830 | if { (ac_try="$ac_link" |
| 7831 | case "(($ac_try" in |
| 7832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7833 | *) ac_try_echo=$ac_try;; |
| 7834 | esac |
| 7835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7836 | (eval "$ac_link") 2>conftest.er1 |
| 7837 | ac_status=$? |
| 7838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7839 | rm -f conftest.er1 |
| 7840 | cat conftest.err >&5 |
| 7841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7842 | (exit $ac_status); } && |
| 7843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7844 | { (case "(($ac_try" in |
| 7845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7846 | *) ac_try_echo=$ac_try;; |
| 7847 | esac |
| 7848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7849 | (eval "$ac_try") 2>&5 |
| 7850 | ac_status=$? |
| 7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7852 | (exit $ac_status); }; } && |
| 7853 | { ac_try='test -s conftest$ac_exeext' |
| 7854 | { (case "(($ac_try" in |
| 7855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7856 | *) ac_try_echo=$ac_try;; |
| 7857 | esac |
| 7858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7859 | (eval "$ac_try") 2>&5 |
| 7860 | ac_status=$? |
| 7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7862 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7863 | llvm_cv_link_use_r=yes |
| 7864 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7865 | echo "$as_me: failed program was:" >&5 |
| 7866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7867 | |
| 7868 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7869 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7870 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7871 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7872 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7873 | CFLAGS="$oldcflags" |
| 7874 | ac_ext=c |
| 7875 | ac_cpp='$CPP $CPPFLAGS' |
| 7876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7879 | |
| 7880 | |
| 7881 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7882 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7883 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7884 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7885 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7886 | cat >>confdefs.h <<\_ACEOF |
| 7887 | #define HAVE_LINK_R 1 |
| 7888 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7889 | |
| 7890 | fi |
| 7891 | |
| 7892 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7893 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 7894 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 7895 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 7896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7897 | else |
| 7898 | ac_ext=c |
| 7899 | ac_cpp='$CPP $CPPFLAGS' |
| 7900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7903 | |
| 7904 | oldcflags="$CFLAGS" |
| 7905 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7906 | cat >conftest.$ac_ext <<_ACEOF |
| 7907 | /* confdefs.h. */ |
| 7908 | _ACEOF |
| 7909 | cat confdefs.h >>conftest.$ac_ext |
| 7910 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7911 | /* end confdefs.h. */ |
| 7912 | |
| 7913 | int |
| 7914 | main () |
| 7915 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7916 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7917 | ; |
| 7918 | return 0; |
| 7919 | } |
| 7920 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7922 | if { (ac_try="$ac_link" |
| 7923 | case "(($ac_try" in |
| 7924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7925 | *) ac_try_echo=$ac_try;; |
| 7926 | esac |
| 7927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7928 | (eval "$ac_link") 2>conftest.er1 |
| 7929 | ac_status=$? |
| 7930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7931 | rm -f conftest.er1 |
| 7932 | cat conftest.err >&5 |
| 7933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7934 | (exit $ac_status); } && |
| 7935 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7936 | { (case "(($ac_try" in |
| 7937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7938 | *) ac_try_echo=$ac_try;; |
| 7939 | esac |
| 7940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7941 | (eval "$ac_try") 2>&5 |
| 7942 | ac_status=$? |
| 7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7944 | (exit $ac_status); }; } && |
| 7945 | { ac_try='test -s conftest$ac_exeext' |
| 7946 | { (case "(($ac_try" in |
| 7947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7948 | *) ac_try_echo=$ac_try;; |
| 7949 | esac |
| 7950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7951 | (eval "$ac_try") 2>&5 |
| 7952 | ac_status=$? |
| 7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7954 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7955 | llvm_cv_link_use_export_dynamic=yes |
| 7956 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7957 | echo "$as_me: failed program was:" >&5 |
| 7958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7959 | |
| 7960 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7961 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7962 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7963 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7964 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7965 | CFLAGS="$oldcflags" |
| 7966 | ac_ext=c |
| 7967 | ac_cpp='$CPP $CPPFLAGS' |
| 7968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7971 | |
| 7972 | |
| 7973 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7974 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 7975 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7976 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 7977 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7978 | cat >>confdefs.h <<\_ACEOF |
| 7979 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 7980 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7981 | |
| 7982 | fi |
| 7983 | |
| 7984 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7985 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 7986 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 7987 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7989 | else |
| 7990 | ac_ext=c |
| 7991 | ac_cpp='$CPP $CPPFLAGS' |
| 7992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7995 | |
| 7996 | oldcflags="$CFLAGS" |
| 7997 | |
| 7998 | # The following code is from the autoconf manual, |
| 7999 | # "11.13: Limitations of Usual Tools". |
| 8000 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 8001 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 8002 | # with $RANDOM to make collisions less likely. |
| 8003 | : ${TMPDIR=/tmp} |
| 8004 | { |
| 8005 | tmp=` |
| 8006 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 8007 | ` && |
| 8008 | test -n "$tmp" && test -d "$tmp" |
| 8009 | } || { |
| 8010 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8011 | (umask 077 && mkdir "$tmp") |
| 8012 | } || exit $? |
| 8013 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8014 | echo "{" > "$tmp/export.map" |
| 8015 | echo " global: main;" >> "$tmp/export.map" |
| 8016 | echo " local: *;" >> "$tmp/export.map" |
| 8017 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8018 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8019 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8020 | cat >conftest.$ac_ext <<_ACEOF |
| 8021 | /* confdefs.h. */ |
| 8022 | _ACEOF |
| 8023 | cat confdefs.h >>conftest.$ac_ext |
| 8024 | cat >>conftest.$ac_ext <<_ACEOF |
| 8025 | /* end confdefs.h. */ |
| 8026 | |
| 8027 | int |
| 8028 | main () |
| 8029 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8030 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8031 | ; |
| 8032 | return 0; |
| 8033 | } |
| 8034 | _ACEOF |
| 8035 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8036 | if { (ac_try="$ac_link" |
| 8037 | case "(($ac_try" in |
| 8038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8039 | *) ac_try_echo=$ac_try;; |
| 8040 | esac |
| 8041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8042 | (eval "$ac_link") 2>conftest.er1 |
| 8043 | ac_status=$? |
| 8044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8045 | rm -f conftest.er1 |
| 8046 | cat conftest.err >&5 |
| 8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8048 | (exit $ac_status); } && |
| 8049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8050 | { (case "(($ac_try" in |
| 8051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8052 | *) ac_try_echo=$ac_try;; |
| 8053 | esac |
| 8054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8055 | (eval "$ac_try") 2>&5 |
| 8056 | ac_status=$? |
| 8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8058 | (exit $ac_status); }; } && |
| 8059 | { ac_try='test -s conftest$ac_exeext' |
| 8060 | { (case "(($ac_try" in |
| 8061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8062 | *) ac_try_echo=$ac_try;; |
| 8063 | esac |
| 8064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8065 | (eval "$ac_try") 2>&5 |
| 8066 | ac_status=$? |
| 8067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8068 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8069 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8070 | else |
| 8071 | echo "$as_me: failed program was:" >&5 |
| 8072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8073 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8074 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8075 | fi |
| 8076 | |
| 8077 | rm -f core conftest.err conftest.$ac_objext \ |
| 8078 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8079 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8080 | rmdir "$tmp" |
| 8081 | CFLAGS="$oldcflags" |
| 8082 | ac_ext=c |
| 8083 | ac_cpp='$CPP $CPPFLAGS' |
| 8084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8087 | |
| 8088 | |
| 8089 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8090 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 8091 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 8092 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 8093 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8094 | |
| 8095 | fi |
| 8096 | |
| 8097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8098 | |
| 8099 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8100 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8101 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8102 | if test "${ac_cv_c_const+set}" = set; then |
| 8103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8104 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8105 | cat >conftest.$ac_ext <<_ACEOF |
| 8106 | /* confdefs.h. */ |
| 8107 | _ACEOF |
| 8108 | cat confdefs.h >>conftest.$ac_ext |
| 8109 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8110 | /* end confdefs.h. */ |
| 8111 | |
| 8112 | int |
| 8113 | main () |
| 8114 | { |
| 8115 | /* FIXME: Include the comments suggested by Paul. */ |
| 8116 | #ifndef __cplusplus |
| 8117 | /* Ultrix mips cc rejects this. */ |
| 8118 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8119 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8120 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8121 | char const *const *ccp; |
| 8122 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8123 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8124 | struct point {int x, y;}; |
| 8125 | static struct point const zero = {0,0}; |
| 8126 | /* AIX XL C 1.02.0.0 rejects this. |
| 8127 | It does not let you subtract one const X* pointer from another in |
| 8128 | an arm of an if-expression whose if-part is not a constant |
| 8129 | expression */ |
| 8130 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8131 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8132 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8133 | ++ccp; |
| 8134 | p = (char**) ccp; |
| 8135 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8136 | { /* SCO 3.2v4 cc rejects this. */ |
| 8137 | char *t; |
| 8138 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8139 | |
| 8140 | *t++ = 0; |
| 8141 | if (s) return 0; |
| 8142 | } |
| 8143 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8144 | int x[] = {25, 17}; |
| 8145 | const int *foo = &x[0]; |
| 8146 | ++foo; |
| 8147 | } |
| 8148 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8149 | typedef const int *iptr; |
| 8150 | iptr p = 0; |
| 8151 | ++p; |
| 8152 | } |
| 8153 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8154 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8155 | struct s { int j; const int *ap[3]; }; |
| 8156 | struct s *b; b->j = 5; |
| 8157 | } |
| 8158 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8159 | const int foo = 10; |
| 8160 | if (!foo) return 0; |
| 8161 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8162 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8163 | #endif |
| 8164 | |
| 8165 | ; |
| 8166 | return 0; |
| 8167 | } |
| 8168 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8169 | rm -f conftest.$ac_objext |
| 8170 | if { (ac_try="$ac_compile" |
| 8171 | case "(($ac_try" in |
| 8172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8173 | *) ac_try_echo=$ac_try;; |
| 8174 | esac |
| 8175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8176 | (eval "$ac_compile") 2>conftest.er1 |
| 8177 | ac_status=$? |
| 8178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8179 | rm -f conftest.er1 |
| 8180 | cat conftest.err >&5 |
| 8181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8182 | (exit $ac_status); } && |
| 8183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8184 | { (case "(($ac_try" in |
| 8185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8186 | *) ac_try_echo=$ac_try;; |
| 8187 | esac |
| 8188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8189 | (eval "$ac_try") 2>&5 |
| 8190 | ac_status=$? |
| 8191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8192 | (exit $ac_status); }; } && |
| 8193 | { ac_try='test -s conftest.$ac_objext' |
| 8194 | { (case "(($ac_try" in |
| 8195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8196 | *) ac_try_echo=$ac_try;; |
| 8197 | esac |
| 8198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8199 | (eval "$ac_try") 2>&5 |
| 8200 | ac_status=$? |
| 8201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8202 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8203 | ac_cv_c_const=yes |
| 8204 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8205 | echo "$as_me: failed program was:" >&5 |
| 8206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8207 | |
| 8208 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8209 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8212 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8213 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8214 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8215 | if test $ac_cv_c_const = no; then |
| 8216 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8217 | cat >>confdefs.h <<\_ACEOF |
| 8218 | #define const |
| 8219 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8220 | |
| 8221 | fi |
| 8222 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8223 | |
| 8224 | |
| 8225 | |
| 8226 | |
| 8227 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8228 | ac_header_dirent=no |
| 8229 | 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] | 8230 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8231 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8232 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8235 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8236 | cat >conftest.$ac_ext <<_ACEOF |
| 8237 | /* confdefs.h. */ |
| 8238 | _ACEOF |
| 8239 | cat confdefs.h >>conftest.$ac_ext |
| 8240 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8241 | /* end confdefs.h. */ |
| 8242 | #include <sys/types.h> |
| 8243 | #include <$ac_hdr> |
| 8244 | |
| 8245 | int |
| 8246 | main () |
| 8247 | { |
| 8248 | if ((DIR *) 0) |
| 8249 | return 0; |
| 8250 | ; |
| 8251 | return 0; |
| 8252 | } |
| 8253 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8254 | rm -f conftest.$ac_objext |
| 8255 | if { (ac_try="$ac_compile" |
| 8256 | case "(($ac_try" in |
| 8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8258 | *) ac_try_echo=$ac_try;; |
| 8259 | esac |
| 8260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8261 | (eval "$ac_compile") 2>conftest.er1 |
| 8262 | ac_status=$? |
| 8263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8264 | rm -f conftest.er1 |
| 8265 | cat conftest.err >&5 |
| 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8267 | (exit $ac_status); } && |
| 8268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8269 | { (case "(($ac_try" in |
| 8270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8271 | *) ac_try_echo=$ac_try;; |
| 8272 | esac |
| 8273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8274 | (eval "$ac_try") 2>&5 |
| 8275 | ac_status=$? |
| 8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8277 | (exit $ac_status); }; } && |
| 8278 | { ac_try='test -s conftest.$ac_objext' |
| 8279 | { (case "(($ac_try" in |
| 8280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8281 | *) ac_try_echo=$ac_try;; |
| 8282 | esac |
| 8283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8284 | (eval "$ac_try") 2>&5 |
| 8285 | ac_status=$? |
| 8286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8287 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8288 | eval "$as_ac_Header=yes" |
| 8289 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8290 | echo "$as_me: failed program was:" >&5 |
| 8291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8292 | |
| 8293 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8294 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8297 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8298 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8299 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8300 | echo "${ECHO_T}$ac_res" >&6; } |
| 8301 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8302 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8303 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8304 | _ACEOF |
| 8305 | |
| 8306 | ac_header_dirent=$ac_hdr; break |
| 8307 | fi |
| 8308 | |
| 8309 | done |
| 8310 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8311 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8312 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8313 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8314 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8316 | else |
| 8317 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8318 | cat >conftest.$ac_ext <<_ACEOF |
| 8319 | /* confdefs.h. */ |
| 8320 | _ACEOF |
| 8321 | cat confdefs.h >>conftest.$ac_ext |
| 8322 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8323 | /* end confdefs.h. */ |
| 8324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8325 | /* Override any GCC internal prototype to avoid an error. |
| 8326 | Use char because int might match the return type of a GCC |
| 8327 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8328 | #ifdef __cplusplus |
| 8329 | extern "C" |
| 8330 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8331 | char opendir (); |
| 8332 | int |
| 8333 | main () |
| 8334 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8335 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8336 | ; |
| 8337 | return 0; |
| 8338 | } |
| 8339 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8340 | for ac_lib in '' dir; do |
| 8341 | if test -z "$ac_lib"; then |
| 8342 | ac_res="none required" |
| 8343 | else |
| 8344 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8345 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8346 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8348 | if { (ac_try="$ac_link" |
| 8349 | case "(($ac_try" in |
| 8350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8351 | *) ac_try_echo=$ac_try;; |
| 8352 | esac |
| 8353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8354 | (eval "$ac_link") 2>conftest.er1 |
| 8355 | ac_status=$? |
| 8356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8357 | rm -f conftest.er1 |
| 8358 | cat conftest.err >&5 |
| 8359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8360 | (exit $ac_status); } && |
| 8361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8362 | { (case "(($ac_try" in |
| 8363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8364 | *) ac_try_echo=$ac_try;; |
| 8365 | esac |
| 8366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8367 | (eval "$ac_try") 2>&5 |
| 8368 | ac_status=$? |
| 8369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8370 | (exit $ac_status); }; } && |
| 8371 | { ac_try='test -s conftest$ac_exeext' |
| 8372 | { (case "(($ac_try" in |
| 8373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8374 | *) ac_try_echo=$ac_try;; |
| 8375 | esac |
| 8376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8377 | (eval "$ac_try") 2>&5 |
| 8378 | ac_status=$? |
| 8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8380 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8381 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8382 | else |
| 8383 | echo "$as_me: failed program was:" >&5 |
| 8384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8385 | |
| 8386 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8387 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8388 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8389 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8390 | conftest$ac_exeext |
| 8391 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8392 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8393 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8394 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8395 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8396 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8397 | else |
| 8398 | ac_cv_search_opendir=no |
| 8399 | fi |
| 8400 | rm conftest.$ac_ext |
| 8401 | LIBS=$ac_func_search_save_LIBS |
| 8402 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8403 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8404 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8405 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8406 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8407 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8409 | fi |
| 8410 | |
| 8411 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8412 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8413 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8414 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8416 | else |
| 8417 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8418 | cat >conftest.$ac_ext <<_ACEOF |
| 8419 | /* confdefs.h. */ |
| 8420 | _ACEOF |
| 8421 | cat confdefs.h >>conftest.$ac_ext |
| 8422 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8423 | /* end confdefs.h. */ |
| 8424 | |
| 8425 | /* Override any GCC internal prototype to avoid an error. |
| 8426 | Use char because int might match the return type of a GCC |
| 8427 | builtin and then its argument prototype would still apply. */ |
| 8428 | #ifdef __cplusplus |
| 8429 | extern "C" |
| 8430 | #endif |
| 8431 | char opendir (); |
| 8432 | int |
| 8433 | main () |
| 8434 | { |
| 8435 | return opendir (); |
| 8436 | ; |
| 8437 | return 0; |
| 8438 | } |
| 8439 | _ACEOF |
| 8440 | for ac_lib in '' x; do |
| 8441 | if test -z "$ac_lib"; then |
| 8442 | ac_res="none required" |
| 8443 | else |
| 8444 | ac_res=-l$ac_lib |
| 8445 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8446 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8448 | if { (ac_try="$ac_link" |
| 8449 | case "(($ac_try" in |
| 8450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8451 | *) ac_try_echo=$ac_try;; |
| 8452 | esac |
| 8453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8454 | (eval "$ac_link") 2>conftest.er1 |
| 8455 | ac_status=$? |
| 8456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8457 | rm -f conftest.er1 |
| 8458 | cat conftest.err >&5 |
| 8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8460 | (exit $ac_status); } && |
| 8461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8462 | { (case "(($ac_try" in |
| 8463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8464 | *) ac_try_echo=$ac_try;; |
| 8465 | esac |
| 8466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8467 | (eval "$ac_try") 2>&5 |
| 8468 | ac_status=$? |
| 8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8470 | (exit $ac_status); }; } && |
| 8471 | { ac_try='test -s conftest$ac_exeext' |
| 8472 | { (case "(($ac_try" in |
| 8473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8474 | *) ac_try_echo=$ac_try;; |
| 8475 | esac |
| 8476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8477 | (eval "$ac_try") 2>&5 |
| 8478 | ac_status=$? |
| 8479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8480 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8481 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8482 | else |
| 8483 | echo "$as_me: failed program was:" >&5 |
| 8484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8485 | |
| 8486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8487 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8488 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8489 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8490 | conftest$ac_exeext |
| 8491 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8492 | break |
| 8493 | fi |
| 8494 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8495 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8496 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8497 | else |
| 8498 | ac_cv_search_opendir=no |
| 8499 | fi |
| 8500 | rm conftest.$ac_ext |
| 8501 | LIBS=$ac_func_search_save_LIBS |
| 8502 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8503 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8504 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8505 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8506 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8507 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8508 | |
| 8509 | fi |
| 8510 | |
| 8511 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8512 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8513 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8514 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8515 | do |
| 8516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8517 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8518 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8519 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8522 | fi |
| 8523 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8524 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8525 | echo "${ECHO_T}$ac_res" >&6; } |
| 8526 | else |
| 8527 | # Is the header compilable? |
| 8528 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8529 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 8530 | cat >conftest.$ac_ext <<_ACEOF |
| 8531 | /* confdefs.h. */ |
| 8532 | _ACEOF |
| 8533 | cat confdefs.h >>conftest.$ac_ext |
| 8534 | cat >>conftest.$ac_ext <<_ACEOF |
| 8535 | /* end confdefs.h. */ |
| 8536 | $ac_includes_default |
| 8537 | #include <$ac_header> |
| 8538 | _ACEOF |
| 8539 | rm -f conftest.$ac_objext |
| 8540 | if { (ac_try="$ac_compile" |
| 8541 | case "(($ac_try" in |
| 8542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8543 | *) ac_try_echo=$ac_try;; |
| 8544 | esac |
| 8545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8546 | (eval "$ac_compile") 2>conftest.er1 |
| 8547 | ac_status=$? |
| 8548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8549 | rm -f conftest.er1 |
| 8550 | cat conftest.err >&5 |
| 8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8552 | (exit $ac_status); } && |
| 8553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8554 | { (case "(($ac_try" in |
| 8555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8556 | *) ac_try_echo=$ac_try;; |
| 8557 | esac |
| 8558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8559 | (eval "$ac_try") 2>&5 |
| 8560 | ac_status=$? |
| 8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8562 | (exit $ac_status); }; } && |
| 8563 | { ac_try='test -s conftest.$ac_objext' |
| 8564 | { (case "(($ac_try" in |
| 8565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8566 | *) ac_try_echo=$ac_try;; |
| 8567 | esac |
| 8568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8569 | (eval "$ac_try") 2>&5 |
| 8570 | ac_status=$? |
| 8571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8572 | (exit $ac_status); }; }; then |
| 8573 | ac_header_compiler=yes |
| 8574 | else |
| 8575 | echo "$as_me: failed program was:" >&5 |
| 8576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8577 | |
| 8578 | ac_header_compiler=no |
| 8579 | fi |
| 8580 | |
| 8581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8582 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8583 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8584 | |
| 8585 | # Is the header present? |
| 8586 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8587 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 8588 | cat >conftest.$ac_ext <<_ACEOF |
| 8589 | /* confdefs.h. */ |
| 8590 | _ACEOF |
| 8591 | cat confdefs.h >>conftest.$ac_ext |
| 8592 | cat >>conftest.$ac_ext <<_ACEOF |
| 8593 | /* end confdefs.h. */ |
| 8594 | #include <$ac_header> |
| 8595 | _ACEOF |
| 8596 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8597 | case "(($ac_try" in |
| 8598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8599 | *) ac_try_echo=$ac_try;; |
| 8600 | esac |
| 8601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8602 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8603 | ac_status=$? |
| 8604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8605 | rm -f conftest.er1 |
| 8606 | cat conftest.err >&5 |
| 8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8608 | (exit $ac_status); } >/dev/null; then |
| 8609 | if test -s conftest.err; then |
| 8610 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8611 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8612 | else |
| 8613 | ac_cpp_err= |
| 8614 | fi |
| 8615 | else |
| 8616 | ac_cpp_err=yes |
| 8617 | fi |
| 8618 | if test -z "$ac_cpp_err"; then |
| 8619 | ac_header_preproc=yes |
| 8620 | else |
| 8621 | echo "$as_me: failed program was:" >&5 |
| 8622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8623 | |
| 8624 | ac_header_preproc=no |
| 8625 | fi |
| 8626 | |
| 8627 | rm -f conftest.err conftest.$ac_ext |
| 8628 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8629 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8630 | |
| 8631 | # So? What about this header? |
| 8632 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8633 | yes:no: ) |
| 8634 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8635 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8636 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8637 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8638 | ac_header_preproc=yes |
| 8639 | ;; |
| 8640 | no:yes:* ) |
| 8641 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8642 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8643 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8644 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8645 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8646 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8647 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8648 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8650 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8651 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8652 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8653 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 8654 | ## ------------------------------------ ## |
| 8655 | ## Report this to http://llvm.org/bugs/ ## |
| 8656 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8657 | _ASBOX |
| 8658 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 8659 | ;; |
| 8660 | esac |
| 8661 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8665 | else |
| 8666 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8667 | fi |
| 8668 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8669 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8670 | echo "${ECHO_T}$ac_res" >&6; } |
| 8671 | |
| 8672 | fi |
| 8673 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8674 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8675 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8676 | _ACEOF |
| 8677 | |
| 8678 | fi |
| 8679 | |
| 8680 | done |
| 8681 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8682 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8683 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8684 | enableval=$enable_ltdl_install; |
| 8685 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8686 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8687 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8688 | |
| 8689 | |
| 8690 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8691 | INSTALL_LTDL_TRUE= |
| 8692 | INSTALL_LTDL_FALSE='#' |
| 8693 | else |
| 8694 | INSTALL_LTDL_TRUE='#' |
| 8695 | INSTALL_LTDL_FALSE= |
| 8696 | fi |
| 8697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8698 | |
| 8699 | |
| 8700 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8701 | CONVENIENCE_LTDL_TRUE= |
| 8702 | CONVENIENCE_LTDL_FALSE='#' |
| 8703 | else |
| 8704 | CONVENIENCE_LTDL_TRUE='#' |
| 8705 | CONVENIENCE_LTDL_FALSE= |
| 8706 | fi |
| 8707 | |
| 8708 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8709 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8710 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8711 | library_names_spec= |
| 8712 | libname_spec='lib$name' |
| 8713 | soname_spec= |
| 8714 | shrext_cmds=".so" |
| 8715 | postinstall_cmds= |
| 8716 | postuninstall_cmds= |
| 8717 | finish_cmds= |
| 8718 | finish_eval= |
| 8719 | shlibpath_var= |
| 8720 | shlibpath_overrides_runpath=unknown |
| 8721 | version_type=none |
| 8722 | dynamic_linker="$host_os ld.so" |
| 8723 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8724 | if test "$GCC" = yes; then |
| 8725 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8726 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8727 | # if the path contains ";" then we assume it to be the separator |
| 8728 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8729 | # assumed that no part of a normal pathname contains ";" but that should |
| 8730 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8731 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8732 | else |
| 8733 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8734 | fi |
| 8735 | else |
| 8736 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8737 | fi |
| 8738 | need_lib_prefix=unknown |
| 8739 | hardcode_into_libs=no |
| 8740 | |
| 8741 | # when you set need_version to no, make sure it does not cause -set_version |
| 8742 | # flags to be left without arguments |
| 8743 | need_version=unknown |
| 8744 | |
| 8745 | case $host_os in |
| 8746 | aix3*) |
| 8747 | version_type=linux |
| 8748 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8749 | shlibpath_var=LIBPATH |
| 8750 | |
| 8751 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8752 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8753 | ;; |
| 8754 | |
| 8755 | aix4* | aix5*) |
| 8756 | version_type=linux |
| 8757 | need_lib_prefix=no |
| 8758 | need_version=no |
| 8759 | hardcode_into_libs=yes |
| 8760 | if test "$host_cpu" = ia64; then |
| 8761 | # AIX 5 supports IA64 |
| 8762 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8763 | shlibpath_var=LD_LIBRARY_PATH |
| 8764 | else |
| 8765 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8766 | # for dependence libraries. The import file would start with |
| 8767 | # the line `#! .'. This would cause the generated library to |
| 8768 | # depend on `.', always an invalid library. This was fixed in |
| 8769 | # development snapshots of GCC prior to 3.0. |
| 8770 | case $host_os in |
| 8771 | aix4 | aix4.[01] | aix4.[01].*) |
| 8772 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8773 | echo ' yes ' |
| 8774 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8775 | : |
| 8776 | else |
| 8777 | can_build_shared=no |
| 8778 | fi |
| 8779 | ;; |
| 8780 | esac |
| 8781 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8782 | # soname into executable. Probably we can add versioning support to |
| 8783 | # collect2, so additional links can be useful in future. |
| 8784 | if test "$aix_use_runtimelinking" = yes; then |
| 8785 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8786 | # instead of lib<name>.a to let people know that these are not |
| 8787 | # typical AIX shared libraries. |
| 8788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8789 | else |
| 8790 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8791 | # and later when we are not doing run time linking. |
| 8792 | library_names_spec='${libname}${release}.a $libname.a' |
| 8793 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8794 | fi |
| 8795 | shlibpath_var=LIBPATH |
| 8796 | fi |
| 8797 | ;; |
| 8798 | |
| 8799 | amigaos*) |
| 8800 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8801 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8802 | 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' |
| 8803 | ;; |
| 8804 | |
| 8805 | beos*) |
| 8806 | library_names_spec='${libname}${shared_ext}' |
| 8807 | dynamic_linker="$host_os ld.so" |
| 8808 | shlibpath_var=LIBRARY_PATH |
| 8809 | ;; |
| 8810 | |
| 8811 | bsdi[45]*) |
| 8812 | version_type=linux |
| 8813 | need_version=no |
| 8814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8815 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8816 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8817 | shlibpath_var=LD_LIBRARY_PATH |
| 8818 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8819 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8820 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8821 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8822 | # libtool to hard-code these into programs |
| 8823 | ;; |
| 8824 | |
| 8825 | cygwin* | mingw* | pw32*) |
| 8826 | version_type=windows |
| 8827 | shrext_cmds=".dll" |
| 8828 | need_version=no |
| 8829 | need_lib_prefix=no |
| 8830 | |
| 8831 | case $GCC,$host_os in |
| 8832 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8833 | library_names_spec='$libname.dll.a' |
| 8834 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8835 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8836 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8837 | dldir=$destdir/`dirname \$dlpath`~ |
| 8838 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8839 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8840 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8841 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8842 | dlpath=$dir/\$dldll~ |
| 8843 | $rm \$dlpath' |
| 8844 | shlibpath_overrides_runpath=yes |
| 8845 | |
| 8846 | case $host_os in |
| 8847 | cygwin*) |
| 8848 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8849 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8850 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8851 | ;; |
| 8852 | mingw*) |
| 8853 | # MinGW DLLs use traditional 'lib' prefix |
| 8854 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8855 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8856 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8857 | # It is most probably a Windows format PATH printed by |
| 8858 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8859 | # path with ; separators, and with drive letters. We can handle the |
| 8860 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8861 | # especially as we might pass files found there to a mingw objdump, |
| 8862 | # which wouldn't understand a cygwinified path. Ahh. |
| 8863 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8864 | else |
| 8865 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8866 | fi |
| 8867 | ;; |
| 8868 | pw32*) |
| 8869 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8870 | 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] | 8871 | ;; |
| 8872 | esac |
| 8873 | ;; |
| 8874 | |
| 8875 | *) |
| 8876 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8877 | ;; |
| 8878 | esac |
| 8879 | dynamic_linker='Win32 ld.exe' |
| 8880 | # FIXME: first we should search . and the directory the executable is in |
| 8881 | shlibpath_var=PATH |
| 8882 | ;; |
| 8883 | |
| 8884 | darwin* | rhapsody*) |
| 8885 | dynamic_linker="$host_os dyld" |
| 8886 | version_type=darwin |
| 8887 | need_lib_prefix=no |
| 8888 | need_version=no |
| 8889 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8890 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8891 | shlibpath_overrides_runpath=yes |
| 8892 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8893 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8894 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8895 | if test "$GCC" = yes; then |
| 8896 | 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"` |
| 8897 | else |
| 8898 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8899 | fi |
| 8900 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8901 | ;; |
| 8902 | |
| 8903 | dgux*) |
| 8904 | version_type=linux |
| 8905 | need_lib_prefix=no |
| 8906 | need_version=no |
| 8907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8908 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8909 | shlibpath_var=LD_LIBRARY_PATH |
| 8910 | ;; |
| 8911 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8912 | freebsd1.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8913 | dynamic_linker=no |
| 8914 | ;; |
| 8915 | |
| 8916 | kfreebsd*-gnu) |
| 8917 | version_type=linux |
| 8918 | need_lib_prefix=no |
| 8919 | need_version=no |
| 8920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8921 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8922 | shlibpath_var=LD_LIBRARY_PATH |
| 8923 | shlibpath_overrides_runpath=no |
| 8924 | hardcode_into_libs=yes |
| 8925 | dynamic_linker='GNU ld.so' |
| 8926 | ;; |
| 8927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8928 | freebsd* | dragonfly*) |
| 8929 | # DragonFly does not have aout. When/if they implement a new |
| 8930 | # versioning mechanism, adjust this. |
| 8931 | if test -x /usr/bin/objformat; then |
| 8932 | objformat=`/usr/bin/objformat` |
| 8933 | else |
| 8934 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8935 | freebsd[123].*) objformat=aout ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8936 | *) objformat=elf ;; |
| 8937 | esac |
| 8938 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8939 | version_type=freebsd-$objformat |
| 8940 | case $version_type in |
| 8941 | freebsd-elf*) |
| 8942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8943 | need_version=no |
| 8944 | need_lib_prefix=no |
| 8945 | ;; |
| 8946 | freebsd-*) |
| 8947 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8948 | need_version=yes |
| 8949 | ;; |
| 8950 | esac |
| 8951 | shlibpath_var=LD_LIBRARY_PATH |
| 8952 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8953 | freebsd2.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8954 | shlibpath_overrides_runpath=yes |
| 8955 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8956 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8957 | shlibpath_overrides_runpath=yes |
| 8958 | hardcode_into_libs=yes |
| 8959 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8960 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8961 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8962 | shlibpath_overrides_runpath=no |
| 8963 | hardcode_into_libs=yes |
| 8964 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8965 | freebsd*) # from 4.6 on |
| 8966 | shlibpath_overrides_runpath=yes |
| 8967 | hardcode_into_libs=yes |
| 8968 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8969 | esac |
| 8970 | ;; |
| 8971 | |
| 8972 | gnu*) |
| 8973 | version_type=linux |
| 8974 | need_lib_prefix=no |
| 8975 | need_version=no |
| 8976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8977 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8978 | shlibpath_var=LD_LIBRARY_PATH |
| 8979 | hardcode_into_libs=yes |
| 8980 | ;; |
| 8981 | |
| 8982 | hpux9* | hpux10* | hpux11*) |
| 8983 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8984 | # link against other versions. |
| 8985 | version_type=sunos |
| 8986 | need_lib_prefix=no |
| 8987 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8988 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8989 | ia64*) |
| 8990 | shrext_cmds='.so' |
| 8991 | hardcode_into_libs=yes |
| 8992 | dynamic_linker="$host_os dld.so" |
| 8993 | shlibpath_var=LD_LIBRARY_PATH |
| 8994 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8996 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8997 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8998 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8999 | else |
| 9000 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9001 | fi |
| 9002 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9003 | ;; |
| 9004 | hppa*64*) |
| 9005 | shrext_cmds='.sl' |
| 9006 | hardcode_into_libs=yes |
| 9007 | dynamic_linker="$host_os dld.sl" |
| 9008 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9009 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9011 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9012 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9013 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9014 | ;; |
| 9015 | *) |
| 9016 | shrext_cmds='.sl' |
| 9017 | dynamic_linker="$host_os dld.sl" |
| 9018 | shlibpath_var=SHLIB_PATH |
| 9019 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9021 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9022 | ;; |
| 9023 | esac |
| 9024 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9025 | postinstall_cmds='chmod 555 $lib' |
| 9026 | ;; |
| 9027 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9028 | interix3*) |
| 9029 | version_type=linux |
| 9030 | need_lib_prefix=no |
| 9031 | need_version=no |
| 9032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9033 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9034 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9035 | shlibpath_var=LD_LIBRARY_PATH |
| 9036 | shlibpath_overrides_runpath=no |
| 9037 | hardcode_into_libs=yes |
| 9038 | ;; |
| 9039 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9040 | irix5* | irix6* | nonstopux*) |
| 9041 | case $host_os in |
| 9042 | nonstopux*) version_type=nonstopux ;; |
| 9043 | *) |
| 9044 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9045 | version_type=linux |
| 9046 | else |
| 9047 | version_type=irix |
| 9048 | fi ;; |
| 9049 | esac |
| 9050 | need_lib_prefix=no |
| 9051 | need_version=no |
| 9052 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9054 | case $host_os in |
| 9055 | irix5* | nonstopux*) |
| 9056 | libsuff= shlibsuff= |
| 9057 | ;; |
| 9058 | *) |
| 9059 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9060 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9061 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9062 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9063 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9064 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9065 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9066 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9067 | esac |
| 9068 | ;; |
| 9069 | esac |
| 9070 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9071 | shlibpath_overrides_runpath=no |
| 9072 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9073 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9074 | hardcode_into_libs=yes |
| 9075 | ;; |
| 9076 | |
| 9077 | # No shared lib support for Linux oldld, aout, or coff. |
| 9078 | linux*oldld* | linux*aout* | linux*coff*) |
| 9079 | dynamic_linker=no |
| 9080 | ;; |
| 9081 | |
| 9082 | # This must be Linux ELF. |
| 9083 | linux*) |
| 9084 | version_type=linux |
| 9085 | need_lib_prefix=no |
| 9086 | need_version=no |
| 9087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9088 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9089 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9090 | shlibpath_var=LD_LIBRARY_PATH |
| 9091 | shlibpath_overrides_runpath=no |
| 9092 | # This implies no fast_install, which is unacceptable. |
| 9093 | # Some rework will be needed to allow for fast_install |
| 9094 | # before this can be enabled. |
| 9095 | hardcode_into_libs=yes |
| 9096 | |
| 9097 | # Append ld.so.conf contents to the search path |
| 9098 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9099 | 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] | 9100 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9101 | fi |
| 9102 | |
| 9103 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9104 | # powerpc, because MkLinux only supported shared libraries with the |
| 9105 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9106 | # most powerpc-linux boxes support dynamic linking these days and |
| 9107 | # people can always --disable-shared, the test was removed, and we |
| 9108 | # assume the GNU/Linux dynamic linker is in use. |
| 9109 | dynamic_linker='GNU/Linux ld.so' |
| 9110 | ;; |
| 9111 | |
| 9112 | knetbsd*-gnu) |
| 9113 | version_type=linux |
| 9114 | need_lib_prefix=no |
| 9115 | need_version=no |
| 9116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9117 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9118 | shlibpath_var=LD_LIBRARY_PATH |
| 9119 | shlibpath_overrides_runpath=no |
| 9120 | hardcode_into_libs=yes |
| 9121 | dynamic_linker='GNU ld.so' |
| 9122 | ;; |
| 9123 | |
| 9124 | netbsd*) |
| 9125 | version_type=sunos |
| 9126 | need_lib_prefix=no |
| 9127 | need_version=no |
| 9128 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9130 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9131 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9132 | else |
| 9133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9134 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9135 | dynamic_linker='NetBSD ld.elf_so' |
| 9136 | fi |
| 9137 | shlibpath_var=LD_LIBRARY_PATH |
| 9138 | shlibpath_overrides_runpath=yes |
| 9139 | hardcode_into_libs=yes |
| 9140 | ;; |
| 9141 | |
| 9142 | newsos6) |
| 9143 | version_type=linux |
| 9144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9145 | shlibpath_var=LD_LIBRARY_PATH |
| 9146 | shlibpath_overrides_runpath=yes |
| 9147 | ;; |
| 9148 | |
| 9149 | nto-qnx*) |
| 9150 | version_type=linux |
| 9151 | need_lib_prefix=no |
| 9152 | need_version=no |
| 9153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9154 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9155 | shlibpath_var=LD_LIBRARY_PATH |
| 9156 | shlibpath_overrides_runpath=yes |
| 9157 | ;; |
| 9158 | |
| 9159 | openbsd*) |
| 9160 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9161 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9162 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9163 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9164 | case $host_os in |
| 9165 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9166 | *) need_version=no ;; |
| 9167 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9169 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9170 | shlibpath_var=LD_LIBRARY_PATH |
| 9171 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9172 | case $host_os in |
| 9173 | openbsd2.[89] | openbsd2.[89].*) |
| 9174 | shlibpath_overrides_runpath=no |
| 9175 | ;; |
| 9176 | *) |
| 9177 | shlibpath_overrides_runpath=yes |
| 9178 | ;; |
| 9179 | esac |
| 9180 | else |
| 9181 | shlibpath_overrides_runpath=yes |
| 9182 | fi |
| 9183 | ;; |
| 9184 | |
| 9185 | os2*) |
| 9186 | libname_spec='$name' |
| 9187 | shrext_cmds=".dll" |
| 9188 | need_lib_prefix=no |
| 9189 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9190 | dynamic_linker='OS/2 ld.exe' |
| 9191 | shlibpath_var=LIBPATH |
| 9192 | ;; |
| 9193 | |
| 9194 | osf3* | osf4* | osf5*) |
| 9195 | version_type=osf |
| 9196 | need_lib_prefix=no |
| 9197 | need_version=no |
| 9198 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9200 | shlibpath_var=LD_LIBRARY_PATH |
| 9201 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9202 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9203 | ;; |
| 9204 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9205 | solaris*) |
| 9206 | version_type=linux |
| 9207 | need_lib_prefix=no |
| 9208 | need_version=no |
| 9209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9210 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9211 | shlibpath_var=LD_LIBRARY_PATH |
| 9212 | shlibpath_overrides_runpath=yes |
| 9213 | hardcode_into_libs=yes |
| 9214 | # ldd complains unless libraries are executable |
| 9215 | postinstall_cmds='chmod +x $lib' |
| 9216 | ;; |
| 9217 | |
| 9218 | sunos4*) |
| 9219 | version_type=sunos |
| 9220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9221 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9222 | shlibpath_var=LD_LIBRARY_PATH |
| 9223 | shlibpath_overrides_runpath=yes |
| 9224 | if test "$with_gnu_ld" = yes; then |
| 9225 | need_lib_prefix=no |
| 9226 | fi |
| 9227 | need_version=yes |
| 9228 | ;; |
| 9229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9230 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9231 | version_type=linux |
| 9232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9233 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9234 | shlibpath_var=LD_LIBRARY_PATH |
| 9235 | case $host_vendor in |
| 9236 | sni) |
| 9237 | shlibpath_overrides_runpath=no |
| 9238 | need_lib_prefix=no |
| 9239 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9240 | runpath_var=LD_RUN_PATH |
| 9241 | ;; |
| 9242 | siemens) |
| 9243 | need_lib_prefix=no |
| 9244 | ;; |
| 9245 | motorola) |
| 9246 | need_lib_prefix=no |
| 9247 | need_version=no |
| 9248 | shlibpath_overrides_runpath=no |
| 9249 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9250 | ;; |
| 9251 | esac |
| 9252 | ;; |
| 9253 | |
| 9254 | sysv4*MP*) |
| 9255 | if test -d /usr/nec ;then |
| 9256 | version_type=linux |
| 9257 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9258 | soname_spec='$libname${shared_ext}.$major' |
| 9259 | shlibpath_var=LD_LIBRARY_PATH |
| 9260 | fi |
| 9261 | ;; |
| 9262 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9263 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9264 | version_type=freebsd-elf |
| 9265 | need_lib_prefix=no |
| 9266 | need_version=no |
| 9267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9268 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9269 | shlibpath_var=LD_LIBRARY_PATH |
| 9270 | hardcode_into_libs=yes |
| 9271 | if test "$with_gnu_ld" = yes; then |
| 9272 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9273 | shlibpath_overrides_runpath=no |
| 9274 | else |
| 9275 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9276 | shlibpath_overrides_runpath=yes |
| 9277 | case $host_os in |
| 9278 | sco3.2v5*) |
| 9279 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9280 | ;; |
| 9281 | esac |
| 9282 | fi |
| 9283 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9284 | ;; |
| 9285 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9286 | uts4*) |
| 9287 | version_type=linux |
| 9288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9289 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9290 | shlibpath_var=LD_LIBRARY_PATH |
| 9291 | ;; |
| 9292 | |
| 9293 | *) |
| 9294 | dynamic_linker=no |
| 9295 | ;; |
| 9296 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9297 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9298 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9299 | test "$dynamic_linker" = no && can_build_shared=no |
| 9300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9301 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9302 | if test "$GCC" = yes; then |
| 9303 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9304 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9306 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9307 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9308 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9309 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9311 | else |
| 9312 | |
| 9313 | module=yes |
| 9314 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9315 | |
| 9316 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9317 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9318 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9319 | if test -n "$libltdl_cv_shlibext"; then |
| 9320 | |
| 9321 | cat >>confdefs.h <<_ACEOF |
| 9322 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9323 | _ACEOF |
| 9324 | |
| 9325 | fi |
| 9326 | |
| 9327 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9328 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9329 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9330 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9332 | else |
| 9333 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9334 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9335 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9336 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9337 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9338 | |
| 9339 | cat >>confdefs.h <<_ACEOF |
| 9340 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9341 | _ACEOF |
| 9342 | |
| 9343 | fi |
| 9344 | |
| 9345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9346 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9347 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9348 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9350 | else |
| 9351 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9352 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9353 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9354 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9355 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9356 | sys_search_path= |
| 9357 | for dir in $libltdl_cv_sys_search_path; do |
| 9358 | if test -z "$sys_search_path"; then |
| 9359 | sys_search_path="$dir" |
| 9360 | else |
| 9361 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9362 | fi |
| 9363 | done |
| 9364 | |
| 9365 | cat >>confdefs.h <<_ACEOF |
| 9366 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9367 | _ACEOF |
| 9368 | |
| 9369 | fi |
| 9370 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9371 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9372 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9373 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9375 | else |
| 9376 | libltdl_cv_objdir="$objdir" |
| 9377 | if test -n "$objdir"; then |
| 9378 | : |
| 9379 | else |
| 9380 | rm -f .libs 2>/dev/null |
| 9381 | mkdir .libs 2>/dev/null |
| 9382 | if test -d .libs; then |
| 9383 | libltdl_cv_objdir=.libs |
| 9384 | else |
| 9385 | # MS-DOS does not allow filenames that begin with a dot. |
| 9386 | libltdl_cv_objdir=_libs |
| 9387 | fi |
| 9388 | rmdir .libs 2>/dev/null |
| 9389 | fi |
| 9390 | |
| 9391 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9392 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9393 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9394 | |
| 9395 | cat >>confdefs.h <<_ACEOF |
| 9396 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9397 | _ACEOF |
| 9398 | |
| 9399 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9400 | |
| 9401 | |
| 9402 | |
| 9403 | |
| 9404 | # 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] | 9405 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9406 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 9407 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9409 | else |
| 9410 | |
| 9411 | # These are sane defaults that work on at least a few old systems. |
| 9412 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9413 | |
| 9414 | # Character class describing NM global symbol codes. |
| 9415 | symcode='[BCDEGRST]' |
| 9416 | |
| 9417 | # Regexp to match symbols that can be accessed directly from C. |
| 9418 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9419 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9420 | # Transform an extracted symbol line into a proper C declaration |
| 9421 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9422 | |
| 9423 | # Transform an extracted symbol line into symbol name and symbol address |
| 9424 | 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'" |
| 9425 | |
| 9426 | # Define system-specific variables. |
| 9427 | case $host_os in |
| 9428 | aix*) |
| 9429 | symcode='[BCDT]' |
| 9430 | ;; |
| 9431 | cygwin* | mingw* | pw32*) |
| 9432 | symcode='[ABCDGISTW]' |
| 9433 | ;; |
| 9434 | hpux*) # Its linker distinguishes data from code symbols |
| 9435 | if test "$host_cpu" = ia64; then |
| 9436 | symcode='[ABCDEGRST]' |
| 9437 | fi |
| 9438 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9439 | 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'" |
| 9440 | ;; |
| 9441 | linux*) |
| 9442 | if test "$host_cpu" = ia64; then |
| 9443 | symcode='[ABCDGIRSTW]' |
| 9444 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9445 | 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'" |
| 9446 | fi |
| 9447 | ;; |
| 9448 | irix* | nonstopux*) |
| 9449 | symcode='[BCDEGRST]' |
| 9450 | ;; |
| 9451 | osf*) |
| 9452 | symcode='[BCDEGQRST]' |
| 9453 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9454 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9455 | symcode='[BDRT]' |
| 9456 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9457 | sco3.2v5*) |
| 9458 | symcode='[DT]' |
| 9459 | ;; |
| 9460 | sysv4.2uw2*) |
| 9461 | symcode='[DT]' |
| 9462 | ;; |
| 9463 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9464 | symcode='[ABDT]' |
| 9465 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9466 | sysv4) |
| 9467 | symcode='[DFNSTU]' |
| 9468 | ;; |
| 9469 | esac |
| 9470 | |
| 9471 | # Handle CRLF in mingw tool chain |
| 9472 | opt_cr= |
| 9473 | case $build_os in |
| 9474 | mingw*) |
| 9475 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9476 | ;; |
| 9477 | esac |
| 9478 | |
| 9479 | # If we're using GNU nm, then use its standard symbol codes. |
| 9480 | case `$NM -V 2>&1` in |
| 9481 | *GNU* | *'with BFD'*) |
| 9482 | symcode='[ABCDGIRSTW]' ;; |
| 9483 | esac |
| 9484 | |
| 9485 | # Try without a prefix undercore, then with it. |
| 9486 | for ac_symprfx in "" "_"; do |
| 9487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9488 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9489 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9490 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9491 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9492 | 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] | 9493 | |
| 9494 | # Check to see that the pipe works correctly. |
| 9495 | pipe_works=no |
| 9496 | |
| 9497 | rm -f conftest* |
| 9498 | cat > conftest.$ac_ext <<EOF |
| 9499 | #ifdef __cplusplus |
| 9500 | extern "C" { |
| 9501 | #endif |
| 9502 | char nm_test_var; |
| 9503 | void nm_test_func(){} |
| 9504 | #ifdef __cplusplus |
| 9505 | } |
| 9506 | #endif |
| 9507 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9508 | EOF |
| 9509 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9511 | (eval $ac_compile) 2>&5 |
| 9512 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9514 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9515 | # Now try to grab the symbols. |
| 9516 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9517 | 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] | 9518 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9519 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9521 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9522 | # Try sorting and uniquifying the output. |
| 9523 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9524 | mv -f "$nlist"T "$nlist" |
| 9525 | else |
| 9526 | rm -f "$nlist"T |
| 9527 | fi |
| 9528 | |
| 9529 | # Make sure that we snagged all the symbols we need. |
| 9530 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9531 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9532 | cat <<EOF > conftest.$ac_ext |
| 9533 | #ifdef __cplusplus |
| 9534 | extern "C" { |
| 9535 | #endif |
| 9536 | |
| 9537 | EOF |
| 9538 | # Now generate the symbol file. |
| 9539 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9540 | |
| 9541 | cat <<EOF >> conftest.$ac_ext |
| 9542 | #if defined (__STDC__) && __STDC__ |
| 9543 | # define lt_ptr_t void * |
| 9544 | #else |
| 9545 | # define lt_ptr_t char * |
| 9546 | # define const |
| 9547 | #endif |
| 9548 | |
| 9549 | /* The mapping between symbol names and symbols. */ |
| 9550 | const struct { |
| 9551 | const char *name; |
| 9552 | lt_ptr_t address; |
| 9553 | } |
| 9554 | lt_preloaded_symbols[] = |
| 9555 | { |
| 9556 | EOF |
| 9557 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9558 | cat <<\EOF >> conftest.$ac_ext |
| 9559 | {0, (lt_ptr_t) 0} |
| 9560 | }; |
| 9561 | |
| 9562 | #ifdef __cplusplus |
| 9563 | } |
| 9564 | #endif |
| 9565 | EOF |
| 9566 | # Now try linking the two files. |
| 9567 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9568 | lt_save_LIBS="$LIBS" |
| 9569 | lt_save_CFLAGS="$CFLAGS" |
| 9570 | LIBS="conftstm.$ac_objext" |
| 9571 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9573 | (eval $ac_link) 2>&5 |
| 9574 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9576 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9577 | pipe_works=yes |
| 9578 | fi |
| 9579 | LIBS="$lt_save_LIBS" |
| 9580 | CFLAGS="$lt_save_CFLAGS" |
| 9581 | else |
| 9582 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9583 | fi |
| 9584 | else |
| 9585 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9586 | fi |
| 9587 | else |
| 9588 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9589 | fi |
| 9590 | else |
| 9591 | echo "$progname: failed program was:" >&5 |
| 9592 | cat conftest.$ac_ext >&5 |
| 9593 | fi |
| 9594 | rm -f conftest* conftst* |
| 9595 | |
| 9596 | # Do not use the global_symbol_pipe unless it works. |
| 9597 | if test "$pipe_works" = yes; then |
| 9598 | break |
| 9599 | else |
| 9600 | lt_cv_sys_global_symbol_pipe= |
| 9601 | fi |
| 9602 | done |
| 9603 | |
| 9604 | fi |
| 9605 | |
| 9606 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9607 | lt_cv_sys_global_symbol_to_cdecl= |
| 9608 | fi |
| 9609 | 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] | 9610 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9611 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9612 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9613 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9614 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9615 | fi |
| 9616 | |
| 9617 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9618 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9619 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 9620 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9622 | else |
| 9623 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9624 | libltdl_cv_preloaded_symbols=yes |
| 9625 | else |
| 9626 | libltdl_cv_preloaded_symbols=no |
| 9627 | fi |
| 9628 | |
| 9629 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9630 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9631 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9632 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9633 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9634 | cat >>confdefs.h <<\_ACEOF |
| 9635 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9636 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9637 | |
| 9638 | fi |
| 9639 | |
| 9640 | LIBADD_DL= |
| 9641 | |
| 9642 | ac_ext=c |
| 9643 | ac_cpp='$CPP $CPPFLAGS' |
| 9644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9647 | |
| 9648 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9649 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9650 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 9651 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9653 | else |
| 9654 | cat >conftest.$ac_ext <<_ACEOF |
| 9655 | /* confdefs.h. */ |
| 9656 | _ACEOF |
| 9657 | cat confdefs.h >>conftest.$ac_ext |
| 9658 | cat >>conftest.$ac_ext <<_ACEOF |
| 9659 | /* end confdefs.h. */ |
| 9660 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9662 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9663 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9664 | /* System header to define __stub macros and hopefully few prototypes, |
| 9665 | which can conflict with char shl_load (); below. |
| 9666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9667 | <limits.h> exists even on freestanding compilers. */ |
| 9668 | |
| 9669 | #ifdef __STDC__ |
| 9670 | # include <limits.h> |
| 9671 | #else |
| 9672 | # include <assert.h> |
| 9673 | #endif |
| 9674 | |
| 9675 | #undef shl_load |
| 9676 | |
| 9677 | /* Override any GCC internal prototype to avoid an error. |
| 9678 | Use char because int might match the return type of a GCC |
| 9679 | builtin and then its argument prototype would still apply. */ |
| 9680 | #ifdef __cplusplus |
| 9681 | extern "C" |
| 9682 | #endif |
| 9683 | char shl_load (); |
| 9684 | /* The GNU C library defines this for functions which it implements |
| 9685 | to always fail with ENOSYS. Some functions are actually named |
| 9686 | something starting with __ and the normal name is an alias. */ |
| 9687 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9688 | choke me |
| 9689 | #endif |
| 9690 | |
| 9691 | int |
| 9692 | main () |
| 9693 | { |
| 9694 | return shl_load (); |
| 9695 | ; |
| 9696 | return 0; |
| 9697 | } |
| 9698 | _ACEOF |
| 9699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9700 | if { (ac_try="$ac_link" |
| 9701 | case "(($ac_try" in |
| 9702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9703 | *) ac_try_echo=$ac_try;; |
| 9704 | esac |
| 9705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9706 | (eval "$ac_link") 2>conftest.er1 |
| 9707 | ac_status=$? |
| 9708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9709 | rm -f conftest.er1 |
| 9710 | cat conftest.err >&5 |
| 9711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9712 | (exit $ac_status); } && |
| 9713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9714 | { (case "(($ac_try" in |
| 9715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9716 | *) ac_try_echo=$ac_try;; |
| 9717 | esac |
| 9718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9719 | (eval "$ac_try") 2>&5 |
| 9720 | ac_status=$? |
| 9721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9722 | (exit $ac_status); }; } && |
| 9723 | { ac_try='test -s conftest$ac_exeext' |
| 9724 | { (case "(($ac_try" in |
| 9725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9726 | *) ac_try_echo=$ac_try;; |
| 9727 | esac |
| 9728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9729 | (eval "$ac_try") 2>&5 |
| 9730 | ac_status=$? |
| 9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9732 | (exit $ac_status); }; }; then |
| 9733 | ac_cv_func_shl_load=yes |
| 9734 | else |
| 9735 | echo "$as_me: failed program was:" >&5 |
| 9736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9737 | |
| 9738 | ac_cv_func_shl_load=no |
| 9739 | fi |
| 9740 | |
| 9741 | rm -f core conftest.err conftest.$ac_objext \ |
| 9742 | conftest$ac_exeext conftest.$ac_ext |
| 9743 | fi |
| 9744 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9745 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 9746 | if test $ac_cv_func_shl_load = yes; then |
| 9747 | |
| 9748 | cat >>confdefs.h <<\_ACEOF |
| 9749 | #define HAVE_SHL_LOAD 1 |
| 9750 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9751 | |
| 9752 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9753 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9754 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 9755 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9757 | else |
| 9758 | ac_check_lib_save_LIBS=$LIBS |
| 9759 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9760 | cat >conftest.$ac_ext <<_ACEOF |
| 9761 | /* confdefs.h. */ |
| 9762 | _ACEOF |
| 9763 | cat confdefs.h >>conftest.$ac_ext |
| 9764 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9765 | /* end confdefs.h. */ |
| 9766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9767 | /* Override any GCC internal prototype to avoid an error. |
| 9768 | Use char because int might match the return type of a GCC |
| 9769 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9770 | #ifdef __cplusplus |
| 9771 | extern "C" |
| 9772 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9773 | char shl_load (); |
| 9774 | int |
| 9775 | main () |
| 9776 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9777 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9778 | ; |
| 9779 | return 0; |
| 9780 | } |
| 9781 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9783 | if { (ac_try="$ac_link" |
| 9784 | case "(($ac_try" in |
| 9785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9786 | *) ac_try_echo=$ac_try;; |
| 9787 | esac |
| 9788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9789 | (eval "$ac_link") 2>conftest.er1 |
| 9790 | ac_status=$? |
| 9791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9792 | rm -f conftest.er1 |
| 9793 | cat conftest.err >&5 |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); } && |
| 9796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9797 | { (case "(($ac_try" in |
| 9798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9799 | *) ac_try_echo=$ac_try;; |
| 9800 | esac |
| 9801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9802 | (eval "$ac_try") 2>&5 |
| 9803 | ac_status=$? |
| 9804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9805 | (exit $ac_status); }; } && |
| 9806 | { ac_try='test -s conftest$ac_exeext' |
| 9807 | { (case "(($ac_try" in |
| 9808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9809 | *) ac_try_echo=$ac_try;; |
| 9810 | esac |
| 9811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9812 | (eval "$ac_try") 2>&5 |
| 9813 | ac_status=$? |
| 9814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9815 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9816 | ac_cv_lib_dld_shl_load=yes |
| 9817 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9818 | echo "$as_me: failed program was:" >&5 |
| 9819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9820 | |
| 9821 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9822 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9823 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9824 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9825 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9826 | LIBS=$ac_check_lib_save_LIBS |
| 9827 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9828 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9829 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 9830 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9831 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9832 | cat >>confdefs.h <<\_ACEOF |
| 9833 | #define HAVE_SHL_LOAD 1 |
| 9834 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9835 | |
| 9836 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9837 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9838 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9839 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9840 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9842 | else |
| 9843 | ac_check_lib_save_LIBS=$LIBS |
| 9844 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9845 | cat >conftest.$ac_ext <<_ACEOF |
| 9846 | /* confdefs.h. */ |
| 9847 | _ACEOF |
| 9848 | cat confdefs.h >>conftest.$ac_ext |
| 9849 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9850 | /* end confdefs.h. */ |
| 9851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9852 | /* Override any GCC internal prototype to avoid an error. |
| 9853 | Use char because int might match the return type of a GCC |
| 9854 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9855 | #ifdef __cplusplus |
| 9856 | extern "C" |
| 9857 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9858 | char dlopen (); |
| 9859 | int |
| 9860 | main () |
| 9861 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9862 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9863 | ; |
| 9864 | return 0; |
| 9865 | } |
| 9866 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9868 | if { (ac_try="$ac_link" |
| 9869 | case "(($ac_try" in |
| 9870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9871 | *) ac_try_echo=$ac_try;; |
| 9872 | esac |
| 9873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9874 | (eval "$ac_link") 2>conftest.er1 |
| 9875 | ac_status=$? |
| 9876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9877 | rm -f conftest.er1 |
| 9878 | cat conftest.err >&5 |
| 9879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9880 | (exit $ac_status); } && |
| 9881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9882 | { (case "(($ac_try" in |
| 9883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9884 | *) ac_try_echo=$ac_try;; |
| 9885 | esac |
| 9886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9887 | (eval "$ac_try") 2>&5 |
| 9888 | ac_status=$? |
| 9889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9890 | (exit $ac_status); }; } && |
| 9891 | { ac_try='test -s conftest$ac_exeext' |
| 9892 | { (case "(($ac_try" in |
| 9893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9894 | *) ac_try_echo=$ac_try;; |
| 9895 | esac |
| 9896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9897 | (eval "$ac_try") 2>&5 |
| 9898 | ac_status=$? |
| 9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9900 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9901 | ac_cv_lib_dl_dlopen=yes |
| 9902 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9903 | echo "$as_me: failed program was:" >&5 |
| 9904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9905 | |
| 9906 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9907 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9908 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9909 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9910 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9911 | LIBS=$ac_check_lib_save_LIBS |
| 9912 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9913 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9914 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9915 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9916 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9917 | cat >>confdefs.h <<\_ACEOF |
| 9918 | #define HAVE_LIBDL 1 |
| 9919 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9920 | |
| 9921 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9922 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9923 | cat >conftest.$ac_ext <<_ACEOF |
| 9924 | /* confdefs.h. */ |
| 9925 | _ACEOF |
| 9926 | cat confdefs.h >>conftest.$ac_ext |
| 9927 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9928 | /* end confdefs.h. */ |
| 9929 | #if HAVE_DLFCN_H |
| 9930 | # include <dlfcn.h> |
| 9931 | #endif |
| 9932 | |
| 9933 | int |
| 9934 | main () |
| 9935 | { |
| 9936 | dlopen(0, 0); |
| 9937 | ; |
| 9938 | return 0; |
| 9939 | } |
| 9940 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9942 | if { (ac_try="$ac_link" |
| 9943 | case "(($ac_try" in |
| 9944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9945 | *) ac_try_echo=$ac_try;; |
| 9946 | esac |
| 9947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9948 | (eval "$ac_link") 2>conftest.er1 |
| 9949 | ac_status=$? |
| 9950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9951 | rm -f conftest.er1 |
| 9952 | cat conftest.err >&5 |
| 9953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9954 | (exit $ac_status); } && |
| 9955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9956 | { (case "(($ac_try" in |
| 9957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9958 | *) ac_try_echo=$ac_try;; |
| 9959 | esac |
| 9960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9961 | (eval "$ac_try") 2>&5 |
| 9962 | ac_status=$? |
| 9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9964 | (exit $ac_status); }; } && |
| 9965 | { ac_try='test -s conftest$ac_exeext' |
| 9966 | { (case "(($ac_try" in |
| 9967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9968 | *) ac_try_echo=$ac_try;; |
| 9969 | esac |
| 9970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9971 | (eval "$ac_try") 2>&5 |
| 9972 | ac_status=$? |
| 9973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9974 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9975 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9976 | cat >>confdefs.h <<\_ACEOF |
| 9977 | #define HAVE_LIBDL 1 |
| 9978 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9979 | libltdl_cv_func_dlopen="yes" |
| 9980 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9981 | echo "$as_me: failed program was:" >&5 |
| 9982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9983 | |
| 9984 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9985 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 9986 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9988 | else |
| 9989 | ac_check_lib_save_LIBS=$LIBS |
| 9990 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9991 | cat >conftest.$ac_ext <<_ACEOF |
| 9992 | /* confdefs.h. */ |
| 9993 | _ACEOF |
| 9994 | cat confdefs.h >>conftest.$ac_ext |
| 9995 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9996 | /* end confdefs.h. */ |
| 9997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9998 | /* Override any GCC internal prototype to avoid an error. |
| 9999 | Use char because int might match the return type of a GCC |
| 10000 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10001 | #ifdef __cplusplus |
| 10002 | extern "C" |
| 10003 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10004 | char dlopen (); |
| 10005 | int |
| 10006 | main () |
| 10007 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10008 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10009 | ; |
| 10010 | return 0; |
| 10011 | } |
| 10012 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10013 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10014 | if { (ac_try="$ac_link" |
| 10015 | case "(($ac_try" in |
| 10016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10017 | *) ac_try_echo=$ac_try;; |
| 10018 | esac |
| 10019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10020 | (eval "$ac_link") 2>conftest.er1 |
| 10021 | ac_status=$? |
| 10022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10023 | rm -f conftest.er1 |
| 10024 | cat conftest.err >&5 |
| 10025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10026 | (exit $ac_status); } && |
| 10027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10028 | { (case "(($ac_try" in |
| 10029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10030 | *) ac_try_echo=$ac_try;; |
| 10031 | esac |
| 10032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10033 | (eval "$ac_try") 2>&5 |
| 10034 | ac_status=$? |
| 10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10036 | (exit $ac_status); }; } && |
| 10037 | { ac_try='test -s conftest$ac_exeext' |
| 10038 | { (case "(($ac_try" in |
| 10039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10040 | *) ac_try_echo=$ac_try;; |
| 10041 | esac |
| 10042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10043 | (eval "$ac_try") 2>&5 |
| 10044 | ac_status=$? |
| 10045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10046 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10047 | ac_cv_lib_svld_dlopen=yes |
| 10048 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10049 | echo "$as_me: failed program was:" >&5 |
| 10050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10051 | |
| 10052 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10053 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10054 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10055 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10056 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10057 | LIBS=$ac_check_lib_save_LIBS |
| 10058 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10059 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10060 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10061 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10062 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10063 | cat >>confdefs.h <<\_ACEOF |
| 10064 | #define HAVE_LIBDL 1 |
| 10065 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10066 | |
| 10067 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10068 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10069 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10070 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10071 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10073 | else |
| 10074 | ac_check_lib_save_LIBS=$LIBS |
| 10075 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10076 | cat >conftest.$ac_ext <<_ACEOF |
| 10077 | /* confdefs.h. */ |
| 10078 | _ACEOF |
| 10079 | cat confdefs.h >>conftest.$ac_ext |
| 10080 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10081 | /* end confdefs.h. */ |
| 10082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10083 | /* Override any GCC internal prototype to avoid an error. |
| 10084 | Use char because int might match the return type of a GCC |
| 10085 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10086 | #ifdef __cplusplus |
| 10087 | extern "C" |
| 10088 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10089 | char dld_link (); |
| 10090 | int |
| 10091 | main () |
| 10092 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10093 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10094 | ; |
| 10095 | return 0; |
| 10096 | } |
| 10097 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10099 | if { (ac_try="$ac_link" |
| 10100 | case "(($ac_try" in |
| 10101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10102 | *) ac_try_echo=$ac_try;; |
| 10103 | esac |
| 10104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10105 | (eval "$ac_link") 2>conftest.er1 |
| 10106 | ac_status=$? |
| 10107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10108 | rm -f conftest.er1 |
| 10109 | cat conftest.err >&5 |
| 10110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10111 | (exit $ac_status); } && |
| 10112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10113 | { (case "(($ac_try" in |
| 10114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10115 | *) ac_try_echo=$ac_try;; |
| 10116 | esac |
| 10117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10118 | (eval "$ac_try") 2>&5 |
| 10119 | ac_status=$? |
| 10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10121 | (exit $ac_status); }; } && |
| 10122 | { ac_try='test -s conftest$ac_exeext' |
| 10123 | { (case "(($ac_try" in |
| 10124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10125 | *) ac_try_echo=$ac_try;; |
| 10126 | esac |
| 10127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10128 | (eval "$ac_try") 2>&5 |
| 10129 | ac_status=$? |
| 10130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10131 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | ac_cv_lib_dld_dld_link=yes |
| 10133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10134 | echo "$as_me: failed program was:" >&5 |
| 10135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10136 | |
| 10137 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10138 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10139 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10140 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10141 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10142 | LIBS=$ac_check_lib_save_LIBS |
| 10143 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10145 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10146 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10147 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10148 | cat >>confdefs.h <<\_ACEOF |
| 10149 | #define HAVE_DLD 1 |
| 10150 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10151 | |
| 10152 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10153 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10154 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10155 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10156 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10158 | else |
| 10159 | cat >conftest.$ac_ext <<_ACEOF |
| 10160 | /* confdefs.h. */ |
| 10161 | _ACEOF |
| 10162 | cat confdefs.h >>conftest.$ac_ext |
| 10163 | cat >>conftest.$ac_ext <<_ACEOF |
| 10164 | /* end confdefs.h. */ |
| 10165 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10166 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10167 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10168 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10169 | /* System header to define __stub macros and hopefully few prototypes, |
| 10170 | which can conflict with char _dyld_func_lookup (); below. |
| 10171 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10172 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10173 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10174 | #ifdef __STDC__ |
| 10175 | # include <limits.h> |
| 10176 | #else |
| 10177 | # include <assert.h> |
| 10178 | #endif |
| 10179 | |
| 10180 | #undef _dyld_func_lookup |
| 10181 | |
| 10182 | /* Override any GCC internal prototype to avoid an error. |
| 10183 | Use char because int might match the return type of a GCC |
| 10184 | builtin and then its argument prototype would still apply. */ |
| 10185 | #ifdef __cplusplus |
| 10186 | extern "C" |
| 10187 | #endif |
| 10188 | char _dyld_func_lookup (); |
| 10189 | /* The GNU C library defines this for functions which it implements |
| 10190 | to always fail with ENOSYS. Some functions are actually named |
| 10191 | something starting with __ and the normal name is an alias. */ |
| 10192 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10193 | choke me |
| 10194 | #endif |
| 10195 | |
| 10196 | int |
| 10197 | main () |
| 10198 | { |
| 10199 | return _dyld_func_lookup (); |
| 10200 | ; |
| 10201 | return 0; |
| 10202 | } |
| 10203 | _ACEOF |
| 10204 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10205 | if { (ac_try="$ac_link" |
| 10206 | case "(($ac_try" in |
| 10207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10208 | *) ac_try_echo=$ac_try;; |
| 10209 | esac |
| 10210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10211 | (eval "$ac_link") 2>conftest.er1 |
| 10212 | ac_status=$? |
| 10213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10214 | rm -f conftest.er1 |
| 10215 | cat conftest.err >&5 |
| 10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10217 | (exit $ac_status); } && |
| 10218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10219 | { (case "(($ac_try" in |
| 10220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10221 | *) ac_try_echo=$ac_try;; |
| 10222 | esac |
| 10223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10224 | (eval "$ac_try") 2>&5 |
| 10225 | ac_status=$? |
| 10226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10227 | (exit $ac_status); }; } && |
| 10228 | { ac_try='test -s conftest$ac_exeext' |
| 10229 | { (case "(($ac_try" in |
| 10230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10231 | *) ac_try_echo=$ac_try;; |
| 10232 | esac |
| 10233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10234 | (eval "$ac_try") 2>&5 |
| 10235 | ac_status=$? |
| 10236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10237 | (exit $ac_status); }; }; then |
| 10238 | ac_cv_func__dyld_func_lookup=yes |
| 10239 | else |
| 10240 | echo "$as_me: failed program was:" >&5 |
| 10241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10242 | |
| 10243 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10244 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10245 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10246 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10247 | conftest$ac_exeext conftest.$ac_ext |
| 10248 | fi |
| 10249 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10250 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10251 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10252 | |
| 10253 | cat >>confdefs.h <<\_ACEOF |
| 10254 | #define HAVE_DYLD 1 |
| 10255 | _ACEOF |
| 10256 | |
| 10257 | fi |
| 10258 | |
| 10259 | |
| 10260 | fi |
| 10261 | |
| 10262 | |
| 10263 | fi |
| 10264 | |
| 10265 | |
| 10266 | fi |
| 10267 | |
| 10268 | rm -f core conftest.err conftest.$ac_objext \ |
| 10269 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10270 | |
| 10271 | fi |
| 10272 | |
| 10273 | |
| 10274 | fi |
| 10275 | |
| 10276 | |
| 10277 | fi |
| 10278 | |
| 10279 | |
| 10280 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10281 | then |
| 10282 | lt_save_LIBS="$LIBS" |
| 10283 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10284 | |
| 10285 | for ac_func in dlerror |
| 10286 | do |
| 10287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10288 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10290 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10292 | else |
| 10293 | cat >conftest.$ac_ext <<_ACEOF |
| 10294 | /* confdefs.h. */ |
| 10295 | _ACEOF |
| 10296 | cat confdefs.h >>conftest.$ac_ext |
| 10297 | cat >>conftest.$ac_ext <<_ACEOF |
| 10298 | /* end confdefs.h. */ |
| 10299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10301 | #define $ac_func innocuous_$ac_func |
| 10302 | |
| 10303 | /* System header to define __stub macros and hopefully few prototypes, |
| 10304 | which can conflict with char $ac_func (); below. |
| 10305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10306 | <limits.h> exists even on freestanding compilers. */ |
| 10307 | |
| 10308 | #ifdef __STDC__ |
| 10309 | # include <limits.h> |
| 10310 | #else |
| 10311 | # include <assert.h> |
| 10312 | #endif |
| 10313 | |
| 10314 | #undef $ac_func |
| 10315 | |
| 10316 | /* Override any GCC internal prototype to avoid an error. |
| 10317 | Use char because int might match the return type of a GCC |
| 10318 | builtin and then its argument prototype would still apply. */ |
| 10319 | #ifdef __cplusplus |
| 10320 | extern "C" |
| 10321 | #endif |
| 10322 | char $ac_func (); |
| 10323 | /* The GNU C library defines this for functions which it implements |
| 10324 | to always fail with ENOSYS. Some functions are actually named |
| 10325 | something starting with __ and the normal name is an alias. */ |
| 10326 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10327 | choke me |
| 10328 | #endif |
| 10329 | |
| 10330 | int |
| 10331 | main () |
| 10332 | { |
| 10333 | return $ac_func (); |
| 10334 | ; |
| 10335 | return 0; |
| 10336 | } |
| 10337 | _ACEOF |
| 10338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10339 | if { (ac_try="$ac_link" |
| 10340 | case "(($ac_try" in |
| 10341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10342 | *) ac_try_echo=$ac_try;; |
| 10343 | esac |
| 10344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10345 | (eval "$ac_link") 2>conftest.er1 |
| 10346 | ac_status=$? |
| 10347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10348 | rm -f conftest.er1 |
| 10349 | cat conftest.err >&5 |
| 10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10351 | (exit $ac_status); } && |
| 10352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10353 | { (case "(($ac_try" in |
| 10354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10355 | *) ac_try_echo=$ac_try;; |
| 10356 | esac |
| 10357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10358 | (eval "$ac_try") 2>&5 |
| 10359 | ac_status=$? |
| 10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10361 | (exit $ac_status); }; } && |
| 10362 | { ac_try='test -s conftest$ac_exeext' |
| 10363 | { (case "(($ac_try" in |
| 10364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10365 | *) ac_try_echo=$ac_try;; |
| 10366 | esac |
| 10367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10368 | (eval "$ac_try") 2>&5 |
| 10369 | ac_status=$? |
| 10370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10371 | (exit $ac_status); }; }; then |
| 10372 | eval "$as_ac_var=yes" |
| 10373 | else |
| 10374 | echo "$as_me: failed program was:" >&5 |
| 10375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10376 | |
| 10377 | eval "$as_ac_var=no" |
| 10378 | fi |
| 10379 | |
| 10380 | rm -f core conftest.err conftest.$ac_objext \ |
| 10381 | conftest$ac_exeext conftest.$ac_ext |
| 10382 | fi |
| 10383 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10384 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10385 | echo "${ECHO_T}$ac_res" >&6; } |
| 10386 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10387 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10388 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10389 | _ACEOF |
| 10390 | |
| 10391 | fi |
| 10392 | done |
| 10393 | |
| 10394 | LIBS="$lt_save_LIBS" |
| 10395 | fi |
| 10396 | ac_ext=c |
| 10397 | ac_cpp='$CPP $CPPFLAGS' |
| 10398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10401 | |
| 10402 | |
| 10403 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10404 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10405 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10406 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10408 | else |
| 10409 | ac_cv_sys_symbol_underscore=no |
| 10410 | cat > conftest.$ac_ext <<EOF |
| 10411 | void nm_test_func(){} |
| 10412 | int main(){nm_test_func;return 0;} |
| 10413 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10415 | (eval $ac_compile) 2>&5 |
| 10416 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10418 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10419 | # Now try to grab the symbols. |
| 10420 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10421 | 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] | 10422 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10423 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10425 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10426 | # See whether the symbols have a leading underscore. |
| 10427 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10428 | ac_cv_sys_symbol_underscore=yes |
| 10429 | else |
| 10430 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10431 | : |
| 10432 | else |
| 10433 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10434 | fi |
| 10435 | fi |
| 10436 | else |
| 10437 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10438 | fi |
| 10439 | else |
| 10440 | echo "configure: failed program was:" >&5 |
| 10441 | cat conftest.c >&5 |
| 10442 | fi |
| 10443 | rm -rf conftest* |
| 10444 | |
| 10445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10446 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10447 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10448 | |
| 10449 | |
| 10450 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10451 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10452 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10453 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10454 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 10455 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10457 | else |
| 10458 | libltdl_cv_need_uscore=unknown |
| 10459 | save_LIBS="$LIBS" |
| 10460 | LIBS="$LIBS $LIBADD_DL" |
| 10461 | if test "$cross_compiling" = yes; then : |
| 10462 | libltdl_cv_need_uscore=cross |
| 10463 | else |
| 10464 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10465 | lt_status=$lt_dlunknown |
| 10466 | cat > conftest.$ac_ext <<EOF |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame^] | 10467 | #line 10467 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10468 | #include "confdefs.h" |
| 10469 | |
| 10470 | #if HAVE_DLFCN_H |
| 10471 | #include <dlfcn.h> |
| 10472 | #endif |
| 10473 | |
| 10474 | #include <stdio.h> |
| 10475 | |
| 10476 | #ifdef RTLD_GLOBAL |
| 10477 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10478 | #else |
| 10479 | # ifdef DL_GLOBAL |
| 10480 | # define LT_DLGLOBAL DL_GLOBAL |
| 10481 | # else |
| 10482 | # define LT_DLGLOBAL 0 |
| 10483 | # endif |
| 10484 | #endif |
| 10485 | |
| 10486 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10487 | find out it does not work in some platform. */ |
| 10488 | #ifndef LT_DLLAZY_OR_NOW |
| 10489 | # ifdef RTLD_LAZY |
| 10490 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10491 | # else |
| 10492 | # ifdef DL_LAZY |
| 10493 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10494 | # else |
| 10495 | # ifdef RTLD_NOW |
| 10496 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10497 | # else |
| 10498 | # ifdef DL_NOW |
| 10499 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10500 | # else |
| 10501 | # define LT_DLLAZY_OR_NOW 0 |
| 10502 | # endif |
| 10503 | # endif |
| 10504 | # endif |
| 10505 | # endif |
| 10506 | #endif |
| 10507 | |
| 10508 | #ifdef __cplusplus |
| 10509 | extern "C" void exit (int); |
| 10510 | #endif |
| 10511 | |
| 10512 | void fnord() { int i=42;} |
| 10513 | int main () |
| 10514 | { |
| 10515 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10516 | int status = $lt_dlunknown; |
| 10517 | |
| 10518 | if (self) |
| 10519 | { |
| 10520 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10521 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10522 | /* dlclose (self); */ |
| 10523 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10524 | else |
| 10525 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10526 | |
| 10527 | exit (status); |
| 10528 | } |
| 10529 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10531 | (eval $ac_link) 2>&5 |
| 10532 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10534 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10535 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10536 | lt_status=$? |
| 10537 | case x$lt_status in |
| 10538 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10539 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10540 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10541 | esac |
| 10542 | else : |
| 10543 | # compilation failed |
| 10544 | |
| 10545 | fi |
| 10546 | fi |
| 10547 | rm -fr conftest* |
| 10548 | |
| 10549 | LIBS="$save_LIBS" |
| 10550 | |
| 10551 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10552 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10553 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10554 | fi |
| 10555 | fi |
| 10556 | |
| 10557 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10558 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10559 | cat >>confdefs.h <<\_ACEOF |
| 10560 | #define NEED_USCORE 1 |
| 10561 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10562 | |
| 10563 | fi |
| 10564 | |
| 10565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10566 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10567 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 10568 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10570 | else |
| 10571 | # PORTME does your system automatically load deplibs for dlopen? |
| 10572 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10573 | # For now, we just catch OSes we know something about -- in the |
| 10574 | # future, we'll try test this programmatically. |
| 10575 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10576 | case "$host_os" in |
| 10577 | aix3*|aix4.1.*|aix4.2.*) |
| 10578 | # Unknown whether this is true for these versions of AIX, but |
| 10579 | # we want this `case' here to explicitly catch those versions. |
| 10580 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10581 | ;; |
| 10582 | aix[45]*) |
| 10583 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10584 | ;; |
| 10585 | darwin*) |
| 10586 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10587 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10588 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10589 | ;; |
| 10590 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10591 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10592 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10593 | ;; |
| 10594 | hpux10*|hpux11*) |
| 10595 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10596 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10597 | interix*) |
| 10598 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10599 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10600 | irix[12345]*|irix6.[01]*) |
| 10601 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10602 | # know how it worked for any of those versions. |
| 10603 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10604 | ;; |
| 10605 | irix*) |
| 10606 | # The case above catches anything before 6.2, and it's known that |
| 10607 | # at 6.2 and later dlopen does load deplibs. |
| 10608 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10609 | ;; |
| 10610 | netbsd*) |
| 10611 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10612 | ;; |
| 10613 | openbsd*) |
| 10614 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10615 | ;; |
| 10616 | osf[1234]*) |
| 10617 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10618 | # 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] | 10619 | # library depends on, so we explicitly say `no'. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10620 | libltdl_cv_sys_dlopen_deplibs=no |
| 10621 | ;; |
| 10622 | osf5.0|osf5.0a|osf5.1) |
| 10623 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10624 | # it even uses RPATH in a shared library to search for shared objects |
| 10625 | # that the library depends on, but there's no easy way to know if that |
| 10626 | # patch is installed. Since this is the case, all we can really |
| 10627 | # say is unknown -- it depends on the patch being installed. If |
| 10628 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10629 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10630 | ;; |
| 10631 | osf*) |
| 10632 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10633 | # the comments above for what we know about them. |
| 10634 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10635 | # is used to find them so we can finally say `yes'. |
| 10636 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10637 | ;; |
| 10638 | solaris*) |
| 10639 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10640 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10641 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10642 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10643 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10644 | esac |
| 10645 | |
| 10646 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10647 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10648 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10649 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10650 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10651 | cat >>confdefs.h <<\_ACEOF |
| 10652 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10653 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10654 | |
| 10655 | fi |
| 10656 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10657 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10658 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10659 | do |
| 10660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10661 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10662 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10664 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10666 | fi |
| 10667 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10668 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10669 | echo "${ECHO_T}$ac_res" >&6; } |
| 10670 | else |
| 10671 | # Is the header compilable? |
| 10672 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10673 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10674 | cat >conftest.$ac_ext <<_ACEOF |
| 10675 | /* confdefs.h. */ |
| 10676 | _ACEOF |
| 10677 | cat confdefs.h >>conftest.$ac_ext |
| 10678 | cat >>conftest.$ac_ext <<_ACEOF |
| 10679 | /* end confdefs.h. */ |
| 10680 | $ac_includes_default |
| 10681 | #include <$ac_header> |
| 10682 | _ACEOF |
| 10683 | rm -f conftest.$ac_objext |
| 10684 | if { (ac_try="$ac_compile" |
| 10685 | case "(($ac_try" in |
| 10686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10687 | *) ac_try_echo=$ac_try;; |
| 10688 | esac |
| 10689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10690 | (eval "$ac_compile") 2>conftest.er1 |
| 10691 | ac_status=$? |
| 10692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10693 | rm -f conftest.er1 |
| 10694 | cat conftest.err >&5 |
| 10695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10696 | (exit $ac_status); } && |
| 10697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10698 | { (case "(($ac_try" in |
| 10699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10700 | *) ac_try_echo=$ac_try;; |
| 10701 | esac |
| 10702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10703 | (eval "$ac_try") 2>&5 |
| 10704 | ac_status=$? |
| 10705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10706 | (exit $ac_status); }; } && |
| 10707 | { ac_try='test -s conftest.$ac_objext' |
| 10708 | { (case "(($ac_try" in |
| 10709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10710 | *) ac_try_echo=$ac_try;; |
| 10711 | esac |
| 10712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10713 | (eval "$ac_try") 2>&5 |
| 10714 | ac_status=$? |
| 10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10716 | (exit $ac_status); }; }; then |
| 10717 | ac_header_compiler=yes |
| 10718 | else |
| 10719 | echo "$as_me: failed program was:" >&5 |
| 10720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10721 | |
| 10722 | ac_header_compiler=no |
| 10723 | fi |
| 10724 | |
| 10725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10726 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10727 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10728 | |
| 10729 | # Is the header present? |
| 10730 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10731 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10732 | cat >conftest.$ac_ext <<_ACEOF |
| 10733 | /* confdefs.h. */ |
| 10734 | _ACEOF |
| 10735 | cat confdefs.h >>conftest.$ac_ext |
| 10736 | cat >>conftest.$ac_ext <<_ACEOF |
| 10737 | /* end confdefs.h. */ |
| 10738 | #include <$ac_header> |
| 10739 | _ACEOF |
| 10740 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10741 | case "(($ac_try" in |
| 10742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10743 | *) ac_try_echo=$ac_try;; |
| 10744 | esac |
| 10745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10747 | ac_status=$? |
| 10748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10749 | rm -f conftest.er1 |
| 10750 | cat conftest.err >&5 |
| 10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10752 | (exit $ac_status); } >/dev/null; then |
| 10753 | if test -s conftest.err; then |
| 10754 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10755 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10756 | else |
| 10757 | ac_cpp_err= |
| 10758 | fi |
| 10759 | else |
| 10760 | ac_cpp_err=yes |
| 10761 | fi |
| 10762 | if test -z "$ac_cpp_err"; then |
| 10763 | ac_header_preproc=yes |
| 10764 | else |
| 10765 | echo "$as_me: failed program was:" >&5 |
| 10766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10767 | |
| 10768 | ac_header_preproc=no |
| 10769 | fi |
| 10770 | |
| 10771 | rm -f conftest.err conftest.$ac_ext |
| 10772 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10773 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10774 | |
| 10775 | # So? What about this header? |
| 10776 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10777 | yes:no: ) |
| 10778 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10779 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10780 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10781 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10782 | ac_header_preproc=yes |
| 10783 | ;; |
| 10784 | no:yes:* ) |
| 10785 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10786 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10787 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10788 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10789 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10790 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10791 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10792 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10793 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10794 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10795 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10796 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10797 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 10798 | ## ------------------------------------ ## |
| 10799 | ## Report this to http://llvm.org/bugs/ ## |
| 10800 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10801 | _ASBOX |
| 10802 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 10803 | ;; |
| 10804 | esac |
| 10805 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10807 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10809 | else |
| 10810 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10811 | fi |
| 10812 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10813 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10814 | echo "${ECHO_T}$ac_res" >&6; } |
| 10815 | |
| 10816 | fi |
| 10817 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10818 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10819 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10820 | _ACEOF |
| 10821 | |
| 10822 | fi |
| 10823 | |
| 10824 | done |
| 10825 | |
| 10826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10827 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10828 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 10829 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10831 | else |
| 10832 | cat >conftest.$ac_ext <<_ACEOF |
| 10833 | /* confdefs.h. */ |
| 10834 | _ACEOF |
| 10835 | cat confdefs.h >>conftest.$ac_ext |
| 10836 | cat >>conftest.$ac_ext <<_ACEOF |
| 10837 | /* end confdefs.h. */ |
| 10838 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10839 | # include <argz.h> |
| 10840 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10841 | |
| 10842 | typedef error_t ac__type_new_; |
| 10843 | int |
| 10844 | main () |
| 10845 | { |
| 10846 | if ((ac__type_new_ *) 0) |
| 10847 | return 0; |
| 10848 | if (sizeof (ac__type_new_)) |
| 10849 | return 0; |
| 10850 | ; |
| 10851 | return 0; |
| 10852 | } |
| 10853 | _ACEOF |
| 10854 | rm -f conftest.$ac_objext |
| 10855 | if { (ac_try="$ac_compile" |
| 10856 | case "(($ac_try" in |
| 10857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10858 | *) ac_try_echo=$ac_try;; |
| 10859 | esac |
| 10860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10861 | (eval "$ac_compile") 2>conftest.er1 |
| 10862 | ac_status=$? |
| 10863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10864 | rm -f conftest.er1 |
| 10865 | cat conftest.err >&5 |
| 10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10867 | (exit $ac_status); } && |
| 10868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10869 | { (case "(($ac_try" in |
| 10870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10871 | *) ac_try_echo=$ac_try;; |
| 10872 | esac |
| 10873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10874 | (eval "$ac_try") 2>&5 |
| 10875 | ac_status=$? |
| 10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10877 | (exit $ac_status); }; } && |
| 10878 | { ac_try='test -s conftest.$ac_objext' |
| 10879 | { (case "(($ac_try" in |
| 10880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10881 | *) ac_try_echo=$ac_try;; |
| 10882 | esac |
| 10883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10884 | (eval "$ac_try") 2>&5 |
| 10885 | ac_status=$? |
| 10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10887 | (exit $ac_status); }; }; then |
| 10888 | ac_cv_type_error_t=yes |
| 10889 | else |
| 10890 | echo "$as_me: failed program was:" >&5 |
| 10891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10892 | |
| 10893 | ac_cv_type_error_t=no |
| 10894 | fi |
| 10895 | |
| 10896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10897 | fi |
| 10898 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10899 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 10900 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10901 | |
| 10902 | cat >>confdefs.h <<_ACEOF |
| 10903 | #define HAVE_ERROR_T 1 |
| 10904 | _ACEOF |
| 10905 | |
| 10906 | |
| 10907 | else |
| 10908 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10909 | cat >>confdefs.h <<\_ACEOF |
| 10910 | #define error_t int |
| 10911 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10912 | |
| 10913 | fi |
| 10914 | |
| 10915 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10916 | |
| 10917 | |
| 10918 | |
| 10919 | |
| 10920 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10921 | 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] | 10922 | do |
| 10923 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10924 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10925 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10926 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10928 | else |
| 10929 | cat >conftest.$ac_ext <<_ACEOF |
| 10930 | /* confdefs.h. */ |
| 10931 | _ACEOF |
| 10932 | cat confdefs.h >>conftest.$ac_ext |
| 10933 | cat >>conftest.$ac_ext <<_ACEOF |
| 10934 | /* end confdefs.h. */ |
| 10935 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10936 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10937 | #define $ac_func innocuous_$ac_func |
| 10938 | |
| 10939 | /* System header to define __stub macros and hopefully few prototypes, |
| 10940 | which can conflict with char $ac_func (); below. |
| 10941 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10942 | <limits.h> exists even on freestanding compilers. */ |
| 10943 | |
| 10944 | #ifdef __STDC__ |
| 10945 | # include <limits.h> |
| 10946 | #else |
| 10947 | # include <assert.h> |
| 10948 | #endif |
| 10949 | |
| 10950 | #undef $ac_func |
| 10951 | |
| 10952 | /* Override any GCC internal prototype to avoid an error. |
| 10953 | Use char because int might match the return type of a GCC |
| 10954 | builtin and then its argument prototype would still apply. */ |
| 10955 | #ifdef __cplusplus |
| 10956 | extern "C" |
| 10957 | #endif |
| 10958 | char $ac_func (); |
| 10959 | /* The GNU C library defines this for functions which it implements |
| 10960 | to always fail with ENOSYS. Some functions are actually named |
| 10961 | something starting with __ and the normal name is an alias. */ |
| 10962 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10963 | choke me |
| 10964 | #endif |
| 10965 | |
| 10966 | int |
| 10967 | main () |
| 10968 | { |
| 10969 | return $ac_func (); |
| 10970 | ; |
| 10971 | return 0; |
| 10972 | } |
| 10973 | _ACEOF |
| 10974 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10975 | if { (ac_try="$ac_link" |
| 10976 | case "(($ac_try" in |
| 10977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10978 | *) ac_try_echo=$ac_try;; |
| 10979 | esac |
| 10980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10981 | (eval "$ac_link") 2>conftest.er1 |
| 10982 | ac_status=$? |
| 10983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10984 | rm -f conftest.er1 |
| 10985 | cat conftest.err >&5 |
| 10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10987 | (exit $ac_status); } && |
| 10988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10989 | { (case "(($ac_try" in |
| 10990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10991 | *) ac_try_echo=$ac_try;; |
| 10992 | esac |
| 10993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10994 | (eval "$ac_try") 2>&5 |
| 10995 | ac_status=$? |
| 10996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10997 | (exit $ac_status); }; } && |
| 10998 | { ac_try='test -s conftest$ac_exeext' |
| 10999 | { (case "(($ac_try" in |
| 11000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11001 | *) ac_try_echo=$ac_try;; |
| 11002 | esac |
| 11003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11004 | (eval "$ac_try") 2>&5 |
| 11005 | ac_status=$? |
| 11006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11007 | (exit $ac_status); }; }; then |
| 11008 | eval "$as_ac_var=yes" |
| 11009 | else |
| 11010 | echo "$as_me: failed program was:" >&5 |
| 11011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11012 | |
| 11013 | eval "$as_ac_var=no" |
| 11014 | fi |
| 11015 | |
| 11016 | rm -f core conftest.err conftest.$ac_objext \ |
| 11017 | conftest$ac_exeext conftest.$ac_ext |
| 11018 | fi |
| 11019 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11020 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11021 | echo "${ECHO_T}$ac_res" >&6; } |
| 11022 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11023 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11024 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11025 | _ACEOF |
| 11026 | |
| 11027 | fi |
| 11028 | done |
| 11029 | |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | |
| 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | |
| 11043 | |
| 11044 | |
| 11045 | |
| 11046 | |
| 11047 | |
| 11048 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11049 | |
| 11050 | |
| 11051 | |
| 11052 | |
| 11053 | |
| 11054 | |
| 11055 | |
| 11056 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11057 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11058 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11059 | do |
| 11060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11062 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11064 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11066 | fi |
| 11067 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11068 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11069 | echo "${ECHO_T}$ac_res" >&6; } |
| 11070 | else |
| 11071 | # Is the header compilable? |
| 11072 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11073 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11074 | cat >conftest.$ac_ext <<_ACEOF |
| 11075 | /* confdefs.h. */ |
| 11076 | _ACEOF |
| 11077 | cat confdefs.h >>conftest.$ac_ext |
| 11078 | cat >>conftest.$ac_ext <<_ACEOF |
| 11079 | /* end confdefs.h. */ |
| 11080 | $ac_includes_default |
| 11081 | #include <$ac_header> |
| 11082 | _ACEOF |
| 11083 | rm -f conftest.$ac_objext |
| 11084 | if { (ac_try="$ac_compile" |
| 11085 | case "(($ac_try" in |
| 11086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11087 | *) ac_try_echo=$ac_try;; |
| 11088 | esac |
| 11089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11090 | (eval "$ac_compile") 2>conftest.er1 |
| 11091 | ac_status=$? |
| 11092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11093 | rm -f conftest.er1 |
| 11094 | cat conftest.err >&5 |
| 11095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11096 | (exit $ac_status); } && |
| 11097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11098 | { (case "(($ac_try" in |
| 11099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11100 | *) ac_try_echo=$ac_try;; |
| 11101 | esac |
| 11102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11103 | (eval "$ac_try") 2>&5 |
| 11104 | ac_status=$? |
| 11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11106 | (exit $ac_status); }; } && |
| 11107 | { ac_try='test -s conftest.$ac_objext' |
| 11108 | { (case "(($ac_try" in |
| 11109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11110 | *) ac_try_echo=$ac_try;; |
| 11111 | esac |
| 11112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11113 | (eval "$ac_try") 2>&5 |
| 11114 | ac_status=$? |
| 11115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11116 | (exit $ac_status); }; }; then |
| 11117 | ac_header_compiler=yes |
| 11118 | else |
| 11119 | echo "$as_me: failed program was:" >&5 |
| 11120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11121 | |
| 11122 | ac_header_compiler=no |
| 11123 | fi |
| 11124 | |
| 11125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11126 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11127 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11128 | |
| 11129 | # Is the header present? |
| 11130 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11131 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11132 | cat >conftest.$ac_ext <<_ACEOF |
| 11133 | /* confdefs.h. */ |
| 11134 | _ACEOF |
| 11135 | cat confdefs.h >>conftest.$ac_ext |
| 11136 | cat >>conftest.$ac_ext <<_ACEOF |
| 11137 | /* end confdefs.h. */ |
| 11138 | #include <$ac_header> |
| 11139 | _ACEOF |
| 11140 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11141 | case "(($ac_try" in |
| 11142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11143 | *) ac_try_echo=$ac_try;; |
| 11144 | esac |
| 11145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11146 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11147 | ac_status=$? |
| 11148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11149 | rm -f conftest.er1 |
| 11150 | cat conftest.err >&5 |
| 11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11152 | (exit $ac_status); } >/dev/null; then |
| 11153 | if test -s conftest.err; then |
| 11154 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11155 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11156 | else |
| 11157 | ac_cpp_err= |
| 11158 | fi |
| 11159 | else |
| 11160 | ac_cpp_err=yes |
| 11161 | fi |
| 11162 | if test -z "$ac_cpp_err"; then |
| 11163 | ac_header_preproc=yes |
| 11164 | else |
| 11165 | echo "$as_me: failed program was:" >&5 |
| 11166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11167 | |
| 11168 | ac_header_preproc=no |
| 11169 | fi |
| 11170 | |
| 11171 | rm -f conftest.err conftest.$ac_ext |
| 11172 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11173 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11174 | |
| 11175 | # So? What about this header? |
| 11176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11177 | yes:no: ) |
| 11178 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11179 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11181 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11182 | ac_header_preproc=yes |
| 11183 | ;; |
| 11184 | no:yes:* ) |
| 11185 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11186 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11187 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11188 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11189 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11190 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11191 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11192 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11195 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11196 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11197 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11198 | ## ------------------------------------ ## |
| 11199 | ## Report this to http://llvm.org/bugs/ ## |
| 11200 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11201 | _ASBOX |
| 11202 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11203 | ;; |
| 11204 | esac |
| 11205 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11209 | else |
| 11210 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11211 | fi |
| 11212 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11213 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11214 | echo "${ECHO_T}$ac_res" >&6; } |
| 11215 | |
| 11216 | fi |
| 11217 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11218 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11219 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11220 | _ACEOF |
| 11221 | |
| 11222 | fi |
| 11223 | |
| 11224 | done |
| 11225 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11226 | |
| 11227 | |
| 11228 | |
| 11229 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11230 | 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] | 11231 | do |
| 11232 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11234 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11236 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11238 | fi |
| 11239 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11240 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11241 | echo "${ECHO_T}$ac_res" >&6; } |
| 11242 | else |
| 11243 | # Is the header compilable? |
| 11244 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11245 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11246 | cat >conftest.$ac_ext <<_ACEOF |
| 11247 | /* confdefs.h. */ |
| 11248 | _ACEOF |
| 11249 | cat confdefs.h >>conftest.$ac_ext |
| 11250 | cat >>conftest.$ac_ext <<_ACEOF |
| 11251 | /* end confdefs.h. */ |
| 11252 | $ac_includes_default |
| 11253 | #include <$ac_header> |
| 11254 | _ACEOF |
| 11255 | rm -f conftest.$ac_objext |
| 11256 | if { (ac_try="$ac_compile" |
| 11257 | case "(($ac_try" in |
| 11258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11259 | *) ac_try_echo=$ac_try;; |
| 11260 | esac |
| 11261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11262 | (eval "$ac_compile") 2>conftest.er1 |
| 11263 | ac_status=$? |
| 11264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11265 | rm -f conftest.er1 |
| 11266 | cat conftest.err >&5 |
| 11267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11268 | (exit $ac_status); } && |
| 11269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11270 | { (case "(($ac_try" in |
| 11271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11272 | *) ac_try_echo=$ac_try;; |
| 11273 | esac |
| 11274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11275 | (eval "$ac_try") 2>&5 |
| 11276 | ac_status=$? |
| 11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11278 | (exit $ac_status); }; } && |
| 11279 | { ac_try='test -s conftest.$ac_objext' |
| 11280 | { (case "(($ac_try" in |
| 11281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11282 | *) ac_try_echo=$ac_try;; |
| 11283 | esac |
| 11284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11285 | (eval "$ac_try") 2>&5 |
| 11286 | ac_status=$? |
| 11287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11288 | (exit $ac_status); }; }; then |
| 11289 | ac_header_compiler=yes |
| 11290 | else |
| 11291 | echo "$as_me: failed program was:" >&5 |
| 11292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11293 | |
| 11294 | ac_header_compiler=no |
| 11295 | fi |
| 11296 | |
| 11297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11298 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11299 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11300 | |
| 11301 | # Is the header present? |
| 11302 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11303 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11304 | cat >conftest.$ac_ext <<_ACEOF |
| 11305 | /* confdefs.h. */ |
| 11306 | _ACEOF |
| 11307 | cat confdefs.h >>conftest.$ac_ext |
| 11308 | cat >>conftest.$ac_ext <<_ACEOF |
| 11309 | /* end confdefs.h. */ |
| 11310 | #include <$ac_header> |
| 11311 | _ACEOF |
| 11312 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11313 | case "(($ac_try" in |
| 11314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11315 | *) ac_try_echo=$ac_try;; |
| 11316 | esac |
| 11317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11318 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11319 | ac_status=$? |
| 11320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11321 | rm -f conftest.er1 |
| 11322 | cat conftest.err >&5 |
| 11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11324 | (exit $ac_status); } >/dev/null; then |
| 11325 | if test -s conftest.err; then |
| 11326 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11327 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11328 | else |
| 11329 | ac_cpp_err= |
| 11330 | fi |
| 11331 | else |
| 11332 | ac_cpp_err=yes |
| 11333 | fi |
| 11334 | if test -z "$ac_cpp_err"; then |
| 11335 | ac_header_preproc=yes |
| 11336 | else |
| 11337 | echo "$as_me: failed program was:" >&5 |
| 11338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11339 | |
| 11340 | ac_header_preproc=no |
| 11341 | fi |
| 11342 | |
| 11343 | rm -f conftest.err conftest.$ac_ext |
| 11344 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11345 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11346 | |
| 11347 | # So? What about this header? |
| 11348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11349 | yes:no: ) |
| 11350 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11351 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11353 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11354 | ac_header_preproc=yes |
| 11355 | ;; |
| 11356 | no:yes:* ) |
| 11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11358 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11359 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11360 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11361 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11362 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11363 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11364 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11366 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11367 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11368 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11369 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11370 | ## ------------------------------------ ## |
| 11371 | ## Report this to http://llvm.org/bugs/ ## |
| 11372 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11373 | _ASBOX |
| 11374 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11375 | ;; |
| 11376 | esac |
| 11377 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11379 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11381 | else |
| 11382 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11383 | fi |
| 11384 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11385 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11386 | echo "${ECHO_T}$ac_res" >&6; } |
| 11387 | |
| 11388 | fi |
| 11389 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11390 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11391 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11392 | _ACEOF |
| 11393 | |
| 11394 | fi |
| 11395 | |
| 11396 | done |
| 11397 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11398 | |
| 11399 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11400 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11401 | do |
| 11402 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11403 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11404 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11405 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11406 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11408 | fi |
| 11409 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11410 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11411 | echo "${ECHO_T}$ac_res" >&6; } |
| 11412 | else |
| 11413 | # Is the header compilable? |
| 11414 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11415 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11416 | cat >conftest.$ac_ext <<_ACEOF |
| 11417 | /* confdefs.h. */ |
| 11418 | _ACEOF |
| 11419 | cat confdefs.h >>conftest.$ac_ext |
| 11420 | cat >>conftest.$ac_ext <<_ACEOF |
| 11421 | /* end confdefs.h. */ |
| 11422 | $ac_includes_default |
| 11423 | #include <$ac_header> |
| 11424 | _ACEOF |
| 11425 | rm -f conftest.$ac_objext |
| 11426 | if { (ac_try="$ac_compile" |
| 11427 | case "(($ac_try" in |
| 11428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11429 | *) ac_try_echo=$ac_try;; |
| 11430 | esac |
| 11431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11432 | (eval "$ac_compile") 2>conftest.er1 |
| 11433 | ac_status=$? |
| 11434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11435 | rm -f conftest.er1 |
| 11436 | cat conftest.err >&5 |
| 11437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11438 | (exit $ac_status); } && |
| 11439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11440 | { (case "(($ac_try" in |
| 11441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11442 | *) ac_try_echo=$ac_try;; |
| 11443 | esac |
| 11444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11445 | (eval "$ac_try") 2>&5 |
| 11446 | ac_status=$? |
| 11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11448 | (exit $ac_status); }; } && |
| 11449 | { ac_try='test -s conftest.$ac_objext' |
| 11450 | { (case "(($ac_try" in |
| 11451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11452 | *) ac_try_echo=$ac_try;; |
| 11453 | esac |
| 11454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11455 | (eval "$ac_try") 2>&5 |
| 11456 | ac_status=$? |
| 11457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11458 | (exit $ac_status); }; }; then |
| 11459 | ac_header_compiler=yes |
| 11460 | else |
| 11461 | echo "$as_me: failed program was:" >&5 |
| 11462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11463 | |
| 11464 | ac_header_compiler=no |
| 11465 | fi |
| 11466 | |
| 11467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11468 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11469 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11470 | |
| 11471 | # Is the header present? |
| 11472 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11473 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11474 | cat >conftest.$ac_ext <<_ACEOF |
| 11475 | /* confdefs.h. */ |
| 11476 | _ACEOF |
| 11477 | cat confdefs.h >>conftest.$ac_ext |
| 11478 | cat >>conftest.$ac_ext <<_ACEOF |
| 11479 | /* end confdefs.h. */ |
| 11480 | #include <$ac_header> |
| 11481 | _ACEOF |
| 11482 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11483 | case "(($ac_try" in |
| 11484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11485 | *) ac_try_echo=$ac_try;; |
| 11486 | esac |
| 11487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11488 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11489 | ac_status=$? |
| 11490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11491 | rm -f conftest.er1 |
| 11492 | cat conftest.err >&5 |
| 11493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11494 | (exit $ac_status); } >/dev/null; then |
| 11495 | if test -s conftest.err; then |
| 11496 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11497 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11498 | else |
| 11499 | ac_cpp_err= |
| 11500 | fi |
| 11501 | else |
| 11502 | ac_cpp_err=yes |
| 11503 | fi |
| 11504 | if test -z "$ac_cpp_err"; then |
| 11505 | ac_header_preproc=yes |
| 11506 | else |
| 11507 | echo "$as_me: failed program was:" >&5 |
| 11508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11509 | |
| 11510 | ac_header_preproc=no |
| 11511 | fi |
| 11512 | |
| 11513 | rm -f conftest.err conftest.$ac_ext |
| 11514 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11515 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11516 | |
| 11517 | # So? What about this header? |
| 11518 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11519 | yes:no: ) |
| 11520 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11521 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11522 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11523 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11524 | ac_header_preproc=yes |
| 11525 | ;; |
| 11526 | no:yes:* ) |
| 11527 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11528 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11529 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11530 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11531 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11532 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11533 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11534 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11535 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11536 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11537 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11538 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11539 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11540 | ## ------------------------------------ ## |
| 11541 | ## Report this to http://llvm.org/bugs/ ## |
| 11542 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11543 | _ASBOX |
| 11544 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11545 | ;; |
| 11546 | esac |
| 11547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11551 | else |
| 11552 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11553 | fi |
| 11554 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11555 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11556 | echo "${ECHO_T}$ac_res" >&6; } |
| 11557 | |
| 11558 | fi |
| 11559 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11560 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11561 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11562 | _ACEOF |
| 11563 | break |
| 11564 | fi |
| 11565 | |
| 11566 | done |
| 11567 | |
| 11568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11569 | |
| 11570 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11571 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11572 | do |
| 11573 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11574 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11575 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11576 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11578 | else |
| 11579 | cat >conftest.$ac_ext <<_ACEOF |
| 11580 | /* confdefs.h. */ |
| 11581 | _ACEOF |
| 11582 | cat confdefs.h >>conftest.$ac_ext |
| 11583 | cat >>conftest.$ac_ext <<_ACEOF |
| 11584 | /* end confdefs.h. */ |
| 11585 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11587 | #define $ac_func innocuous_$ac_func |
| 11588 | |
| 11589 | /* System header to define __stub macros and hopefully few prototypes, |
| 11590 | which can conflict with char $ac_func (); below. |
| 11591 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11592 | <limits.h> exists even on freestanding compilers. */ |
| 11593 | |
| 11594 | #ifdef __STDC__ |
| 11595 | # include <limits.h> |
| 11596 | #else |
| 11597 | # include <assert.h> |
| 11598 | #endif |
| 11599 | |
| 11600 | #undef $ac_func |
| 11601 | |
| 11602 | /* Override any GCC internal prototype to avoid an error. |
| 11603 | Use char because int might match the return type of a GCC |
| 11604 | builtin and then its argument prototype would still apply. */ |
| 11605 | #ifdef __cplusplus |
| 11606 | extern "C" |
| 11607 | #endif |
| 11608 | char $ac_func (); |
| 11609 | /* The GNU C library defines this for functions which it implements |
| 11610 | to always fail with ENOSYS. Some functions are actually named |
| 11611 | something starting with __ and the normal name is an alias. */ |
| 11612 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11613 | choke me |
| 11614 | #endif |
| 11615 | |
| 11616 | int |
| 11617 | main () |
| 11618 | { |
| 11619 | return $ac_func (); |
| 11620 | ; |
| 11621 | return 0; |
| 11622 | } |
| 11623 | _ACEOF |
| 11624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11625 | if { (ac_try="$ac_link" |
| 11626 | case "(($ac_try" in |
| 11627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11628 | *) ac_try_echo=$ac_try;; |
| 11629 | esac |
| 11630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11631 | (eval "$ac_link") 2>conftest.er1 |
| 11632 | ac_status=$? |
| 11633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11634 | rm -f conftest.er1 |
| 11635 | cat conftest.err >&5 |
| 11636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11637 | (exit $ac_status); } && |
| 11638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11639 | { (case "(($ac_try" in |
| 11640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11641 | *) ac_try_echo=$ac_try;; |
| 11642 | esac |
| 11643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11644 | (eval "$ac_try") 2>&5 |
| 11645 | ac_status=$? |
| 11646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11647 | (exit $ac_status); }; } && |
| 11648 | { ac_try='test -s conftest$ac_exeext' |
| 11649 | { (case "(($ac_try" in |
| 11650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11651 | *) ac_try_echo=$ac_try;; |
| 11652 | esac |
| 11653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11654 | (eval "$ac_try") 2>&5 |
| 11655 | ac_status=$? |
| 11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11657 | (exit $ac_status); }; }; then |
| 11658 | eval "$as_ac_var=yes" |
| 11659 | else |
| 11660 | echo "$as_me: failed program was:" >&5 |
| 11661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11662 | |
| 11663 | eval "$as_ac_var=no" |
| 11664 | fi |
| 11665 | |
| 11666 | rm -f core conftest.err conftest.$ac_objext \ |
| 11667 | conftest$ac_exeext conftest.$ac_ext |
| 11668 | fi |
| 11669 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11670 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11671 | echo "${ECHO_T}$ac_res" >&6; } |
| 11672 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11673 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11674 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11675 | _ACEOF |
| 11676 | break |
| 11677 | fi |
| 11678 | done |
| 11679 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11680 | |
| 11681 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11682 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11683 | do |
| 11684 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11685 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11686 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11687 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11689 | else |
| 11690 | cat >conftest.$ac_ext <<_ACEOF |
| 11691 | /* confdefs.h. */ |
| 11692 | _ACEOF |
| 11693 | cat confdefs.h >>conftest.$ac_ext |
| 11694 | cat >>conftest.$ac_ext <<_ACEOF |
| 11695 | /* end confdefs.h. */ |
| 11696 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11697 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11698 | #define $ac_func innocuous_$ac_func |
| 11699 | |
| 11700 | /* System header to define __stub macros and hopefully few prototypes, |
| 11701 | which can conflict with char $ac_func (); below. |
| 11702 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11703 | <limits.h> exists even on freestanding compilers. */ |
| 11704 | |
| 11705 | #ifdef __STDC__ |
| 11706 | # include <limits.h> |
| 11707 | #else |
| 11708 | # include <assert.h> |
| 11709 | #endif |
| 11710 | |
| 11711 | #undef $ac_func |
| 11712 | |
| 11713 | /* Override any GCC internal prototype to avoid an error. |
| 11714 | Use char because int might match the return type of a GCC |
| 11715 | builtin and then its argument prototype would still apply. */ |
| 11716 | #ifdef __cplusplus |
| 11717 | extern "C" |
| 11718 | #endif |
| 11719 | char $ac_func (); |
| 11720 | /* The GNU C library defines this for functions which it implements |
| 11721 | to always fail with ENOSYS. Some functions are actually named |
| 11722 | something starting with __ and the normal name is an alias. */ |
| 11723 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11724 | choke me |
| 11725 | #endif |
| 11726 | |
| 11727 | int |
| 11728 | main () |
| 11729 | { |
| 11730 | return $ac_func (); |
| 11731 | ; |
| 11732 | return 0; |
| 11733 | } |
| 11734 | _ACEOF |
| 11735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11736 | if { (ac_try="$ac_link" |
| 11737 | case "(($ac_try" in |
| 11738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11739 | *) ac_try_echo=$ac_try;; |
| 11740 | esac |
| 11741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11742 | (eval "$ac_link") 2>conftest.er1 |
| 11743 | ac_status=$? |
| 11744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11745 | rm -f conftest.er1 |
| 11746 | cat conftest.err >&5 |
| 11747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11748 | (exit $ac_status); } && |
| 11749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11750 | { (case "(($ac_try" in |
| 11751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11752 | *) ac_try_echo=$ac_try;; |
| 11753 | esac |
| 11754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11755 | (eval "$ac_try") 2>&5 |
| 11756 | ac_status=$? |
| 11757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11758 | (exit $ac_status); }; } && |
| 11759 | { ac_try='test -s conftest$ac_exeext' |
| 11760 | { (case "(($ac_try" in |
| 11761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11762 | *) ac_try_echo=$ac_try;; |
| 11763 | esac |
| 11764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11765 | (eval "$ac_try") 2>&5 |
| 11766 | ac_status=$? |
| 11767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11768 | (exit $ac_status); }; }; then |
| 11769 | eval "$as_ac_var=yes" |
| 11770 | else |
| 11771 | echo "$as_me: failed program was:" >&5 |
| 11772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11773 | |
| 11774 | eval "$as_ac_var=no" |
| 11775 | fi |
| 11776 | |
| 11777 | rm -f core conftest.err conftest.$ac_objext \ |
| 11778 | conftest$ac_exeext conftest.$ac_ext |
| 11779 | fi |
| 11780 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11781 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11782 | echo "${ECHO_T}$ac_res" >&6; } |
| 11783 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11784 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11785 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11786 | _ACEOF |
| 11787 | break |
| 11788 | fi |
| 11789 | done |
| 11790 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11791 | |
| 11792 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11793 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11794 | do |
| 11795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11796 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11798 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11800 | else |
| 11801 | cat >conftest.$ac_ext <<_ACEOF |
| 11802 | /* confdefs.h. */ |
| 11803 | _ACEOF |
| 11804 | cat confdefs.h >>conftest.$ac_ext |
| 11805 | cat >>conftest.$ac_ext <<_ACEOF |
| 11806 | /* end confdefs.h. */ |
| 11807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11809 | #define $ac_func innocuous_$ac_func |
| 11810 | |
| 11811 | /* System header to define __stub macros and hopefully few prototypes, |
| 11812 | which can conflict with char $ac_func (); below. |
| 11813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11814 | <limits.h> exists even on freestanding compilers. */ |
| 11815 | |
| 11816 | #ifdef __STDC__ |
| 11817 | # include <limits.h> |
| 11818 | #else |
| 11819 | # include <assert.h> |
| 11820 | #endif |
| 11821 | |
| 11822 | #undef $ac_func |
| 11823 | |
| 11824 | /* Override any GCC internal prototype to avoid an error. |
| 11825 | Use char because int might match the return type of a GCC |
| 11826 | builtin and then its argument prototype would still apply. */ |
| 11827 | #ifdef __cplusplus |
| 11828 | extern "C" |
| 11829 | #endif |
| 11830 | char $ac_func (); |
| 11831 | /* The GNU C library defines this for functions which it implements |
| 11832 | to always fail with ENOSYS. Some functions are actually named |
| 11833 | something starting with __ and the normal name is an alias. */ |
| 11834 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11835 | choke me |
| 11836 | #endif |
| 11837 | |
| 11838 | int |
| 11839 | main () |
| 11840 | { |
| 11841 | return $ac_func (); |
| 11842 | ; |
| 11843 | return 0; |
| 11844 | } |
| 11845 | _ACEOF |
| 11846 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11847 | if { (ac_try="$ac_link" |
| 11848 | case "(($ac_try" in |
| 11849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11850 | *) ac_try_echo=$ac_try;; |
| 11851 | esac |
| 11852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11853 | (eval "$ac_link") 2>conftest.er1 |
| 11854 | ac_status=$? |
| 11855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11856 | rm -f conftest.er1 |
| 11857 | cat conftest.err >&5 |
| 11858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11859 | (exit $ac_status); } && |
| 11860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11861 | { (case "(($ac_try" in |
| 11862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11863 | *) ac_try_echo=$ac_try;; |
| 11864 | esac |
| 11865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11866 | (eval "$ac_try") 2>&5 |
| 11867 | ac_status=$? |
| 11868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11869 | (exit $ac_status); }; } && |
| 11870 | { ac_try='test -s conftest$ac_exeext' |
| 11871 | { (case "(($ac_try" in |
| 11872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11873 | *) ac_try_echo=$ac_try;; |
| 11874 | esac |
| 11875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11876 | (eval "$ac_try") 2>&5 |
| 11877 | ac_status=$? |
| 11878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11879 | (exit $ac_status); }; }; then |
| 11880 | eval "$as_ac_var=yes" |
| 11881 | else |
| 11882 | echo "$as_me: failed program was:" >&5 |
| 11883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11884 | |
| 11885 | eval "$as_ac_var=no" |
| 11886 | fi |
| 11887 | |
| 11888 | rm -f core conftest.err conftest.$ac_objext \ |
| 11889 | conftest$ac_exeext conftest.$ac_ext |
| 11890 | fi |
| 11891 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11892 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11893 | echo "${ECHO_T}$ac_res" >&6; } |
| 11894 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11895 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11896 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11897 | _ACEOF |
| 11898 | break |
| 11899 | fi |
| 11900 | done |
| 11901 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11902 | |
| 11903 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11904 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11905 | do |
| 11906 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11907 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11908 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11909 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11911 | else |
| 11912 | cat >conftest.$ac_ext <<_ACEOF |
| 11913 | /* confdefs.h. */ |
| 11914 | _ACEOF |
| 11915 | cat confdefs.h >>conftest.$ac_ext |
| 11916 | cat >>conftest.$ac_ext <<_ACEOF |
| 11917 | /* end confdefs.h. */ |
| 11918 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11920 | #define $ac_func innocuous_$ac_func |
| 11921 | |
| 11922 | /* System header to define __stub macros and hopefully few prototypes, |
| 11923 | which can conflict with char $ac_func (); below. |
| 11924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11925 | <limits.h> exists even on freestanding compilers. */ |
| 11926 | |
| 11927 | #ifdef __STDC__ |
| 11928 | # include <limits.h> |
| 11929 | #else |
| 11930 | # include <assert.h> |
| 11931 | #endif |
| 11932 | |
| 11933 | #undef $ac_func |
| 11934 | |
| 11935 | /* Override any GCC internal prototype to avoid an error. |
| 11936 | Use char because int might match the return type of a GCC |
| 11937 | builtin and then its argument prototype would still apply. */ |
| 11938 | #ifdef __cplusplus |
| 11939 | extern "C" |
| 11940 | #endif |
| 11941 | char $ac_func (); |
| 11942 | /* The GNU C library defines this for functions which it implements |
| 11943 | to always fail with ENOSYS. Some functions are actually named |
| 11944 | something starting with __ and the normal name is an alias. */ |
| 11945 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11946 | choke me |
| 11947 | #endif |
| 11948 | |
| 11949 | int |
| 11950 | main () |
| 11951 | { |
| 11952 | return $ac_func (); |
| 11953 | ; |
| 11954 | return 0; |
| 11955 | } |
| 11956 | _ACEOF |
| 11957 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11958 | if { (ac_try="$ac_link" |
| 11959 | case "(($ac_try" in |
| 11960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11961 | *) ac_try_echo=$ac_try;; |
| 11962 | esac |
| 11963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11964 | (eval "$ac_link") 2>conftest.er1 |
| 11965 | ac_status=$? |
| 11966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11967 | rm -f conftest.er1 |
| 11968 | cat conftest.err >&5 |
| 11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11970 | (exit $ac_status); } && |
| 11971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11972 | { (case "(($ac_try" in |
| 11973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11974 | *) ac_try_echo=$ac_try;; |
| 11975 | esac |
| 11976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11977 | (eval "$ac_try") 2>&5 |
| 11978 | ac_status=$? |
| 11979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11980 | (exit $ac_status); }; } && |
| 11981 | { ac_try='test -s conftest$ac_exeext' |
| 11982 | { (case "(($ac_try" in |
| 11983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11984 | *) ac_try_echo=$ac_try;; |
| 11985 | esac |
| 11986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11987 | (eval "$ac_try") 2>&5 |
| 11988 | ac_status=$? |
| 11989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11990 | (exit $ac_status); }; }; then |
| 11991 | eval "$as_ac_var=yes" |
| 11992 | else |
| 11993 | echo "$as_me: failed program was:" >&5 |
| 11994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11995 | |
| 11996 | eval "$as_ac_var=no" |
| 11997 | fi |
| 11998 | |
| 11999 | rm -f core conftest.err conftest.$ac_objext \ |
| 12000 | conftest$ac_exeext conftest.$ac_ext |
| 12001 | fi |
| 12002 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12003 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12004 | echo "${ECHO_T}$ac_res" >&6; } |
| 12005 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12006 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12007 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12008 | _ACEOF |
| 12009 | |
| 12010 | fi |
| 12011 | done |
| 12012 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12013 | |
| 12014 | |
| 12015 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12016 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12017 | do |
| 12018 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12019 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12020 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12021 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12023 | else |
| 12024 | cat >conftest.$ac_ext <<_ACEOF |
| 12025 | /* confdefs.h. */ |
| 12026 | _ACEOF |
| 12027 | cat confdefs.h >>conftest.$ac_ext |
| 12028 | cat >>conftest.$ac_ext <<_ACEOF |
| 12029 | /* end confdefs.h. */ |
| 12030 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12032 | #define $ac_func innocuous_$ac_func |
| 12033 | |
| 12034 | /* System header to define __stub macros and hopefully few prototypes, |
| 12035 | which can conflict with char $ac_func (); below. |
| 12036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12037 | <limits.h> exists even on freestanding compilers. */ |
| 12038 | |
| 12039 | #ifdef __STDC__ |
| 12040 | # include <limits.h> |
| 12041 | #else |
| 12042 | # include <assert.h> |
| 12043 | #endif |
| 12044 | |
| 12045 | #undef $ac_func |
| 12046 | |
| 12047 | /* Override any GCC internal prototype to avoid an error. |
| 12048 | Use char because int might match the return type of a GCC |
| 12049 | builtin and then its argument prototype would still apply. */ |
| 12050 | #ifdef __cplusplus |
| 12051 | extern "C" |
| 12052 | #endif |
| 12053 | char $ac_func (); |
| 12054 | /* The GNU C library defines this for functions which it implements |
| 12055 | to always fail with ENOSYS. Some functions are actually named |
| 12056 | something starting with __ and the normal name is an alias. */ |
| 12057 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12058 | choke me |
| 12059 | #endif |
| 12060 | |
| 12061 | int |
| 12062 | main () |
| 12063 | { |
| 12064 | return $ac_func (); |
| 12065 | ; |
| 12066 | return 0; |
| 12067 | } |
| 12068 | _ACEOF |
| 12069 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12070 | if { (ac_try="$ac_link" |
| 12071 | case "(($ac_try" in |
| 12072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12073 | *) ac_try_echo=$ac_try;; |
| 12074 | esac |
| 12075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12076 | (eval "$ac_link") 2>conftest.er1 |
| 12077 | ac_status=$? |
| 12078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12079 | rm -f conftest.er1 |
| 12080 | cat conftest.err >&5 |
| 12081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12082 | (exit $ac_status); } && |
| 12083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12084 | { (case "(($ac_try" in |
| 12085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12086 | *) ac_try_echo=$ac_try;; |
| 12087 | esac |
| 12088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12089 | (eval "$ac_try") 2>&5 |
| 12090 | ac_status=$? |
| 12091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12092 | (exit $ac_status); }; } && |
| 12093 | { ac_try='test -s conftest$ac_exeext' |
| 12094 | { (case "(($ac_try" in |
| 12095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12096 | *) ac_try_echo=$ac_try;; |
| 12097 | esac |
| 12098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12099 | (eval "$ac_try") 2>&5 |
| 12100 | ac_status=$? |
| 12101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12102 | (exit $ac_status); }; }; then |
| 12103 | eval "$as_ac_var=yes" |
| 12104 | else |
| 12105 | echo "$as_me: failed program was:" >&5 |
| 12106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12107 | |
| 12108 | eval "$as_ac_var=no" |
| 12109 | fi |
| 12110 | |
| 12111 | rm -f core conftest.err conftest.$ac_objext \ |
| 12112 | conftest$ac_exeext conftest.$ac_ext |
| 12113 | fi |
| 12114 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12115 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12116 | echo "${ECHO_T}$ac_res" >&6; } |
| 12117 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12118 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12119 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12120 | _ACEOF |
| 12121 | |
| 12122 | fi |
| 12123 | done |
| 12124 | |
| 12125 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12126 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12127 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12128 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12129 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12130 | ICC=no |
| 12131 | IXX=no |
| 12132 | case $CC in |
| 12133 | icc*|icpc*) |
| 12134 | ICC=yes |
| 12135 | IXX=yes |
| 12136 | ;; |
| 12137 | *) |
| 12138 | ;; |
| 12139 | esac |
| 12140 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12141 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12142 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12143 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12144 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12145 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12146 | fi |
| 12147 | |
| 12148 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12149 | then |
Eric Christopher | 73e36da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 12150 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 12151 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12152 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12153 | fi |
| 12154 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12155 | if test "$GCC" = "yes" |
| 12156 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12157 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12158 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12159 | #error Unsupported GCC version |
| 12160 | #endif |
| 12161 | |
| 12162 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12163 | rm -f conftest.$ac_objext |
| 12164 | if { (ac_try="$ac_compile" |
| 12165 | case "(($ac_try" in |
| 12166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12167 | *) ac_try_echo=$ac_try;; |
| 12168 | esac |
| 12169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12170 | (eval "$ac_compile") 2>conftest.er1 |
| 12171 | ac_status=$? |
| 12172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12173 | rm -f conftest.er1 |
| 12174 | cat conftest.err >&5 |
| 12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12176 | (exit $ac_status); } && |
| 12177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12178 | { (case "(($ac_try" in |
| 12179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12180 | *) ac_try_echo=$ac_try;; |
| 12181 | esac |
| 12182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12183 | (eval "$ac_try") 2>&5 |
| 12184 | ac_status=$? |
| 12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12186 | (exit $ac_status); }; } && |
| 12187 | { ac_try='test -s conftest.$ac_objext' |
| 12188 | { (case "(($ac_try" in |
| 12189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12190 | *) ac_try_echo=$ac_try;; |
| 12191 | esac |
| 12192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12193 | (eval "$ac_try") 2>&5 |
| 12194 | ac_status=$? |
| 12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12196 | (exit $ac_status); }; }; then |
| 12197 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12198 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12199 | echo "$as_me: failed program was:" >&5 |
| 12200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12201 | |
| 12202 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12203 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12204 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12205 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12206 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12208 | fi |
| 12209 | |
| 12210 | if test -z "$llvm_cv_gnu_make_command" |
| 12211 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12212 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12213 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12214 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12215 | fi |
| 12216 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12217 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12218 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12219 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12220 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12221 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame^] | 12222 | NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12223 | |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame^] | 12224 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12225 | |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame^] | 12226 | COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` |
| 12227 | |
| 12228 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 |
| 12229 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12230 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12231 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12232 | |
| 12233 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12234 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12235 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12237 | else |
| 12238 | ac_check_lib_save_LIBS=$LIBS |
| 12239 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12240 | cat >conftest.$ac_ext <<_ACEOF |
| 12241 | /* confdefs.h. */ |
| 12242 | _ACEOF |
| 12243 | cat confdefs.h >>conftest.$ac_ext |
| 12244 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12245 | /* end confdefs.h. */ |
| 12246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12247 | /* Override any GCC internal prototype to avoid an error. |
| 12248 | Use char because int might match the return type of a GCC |
| 12249 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12250 | #ifdef __cplusplus |
| 12251 | extern "C" |
| 12252 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12253 | char sin (); |
| 12254 | int |
| 12255 | main () |
| 12256 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12257 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12258 | ; |
| 12259 | return 0; |
| 12260 | } |
| 12261 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12262 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12263 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12270 | ac_status=$? |
| 12271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12272 | rm -f conftest.er1 |
| 12273 | cat conftest.err >&5 |
| 12274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12275 | (exit $ac_status); } && |
| 12276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12277 | { (case "(($ac_try" in |
| 12278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12279 | *) ac_try_echo=$ac_try;; |
| 12280 | esac |
| 12281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12282 | (eval "$ac_try") 2>&5 |
| 12283 | ac_status=$? |
| 12284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12285 | (exit $ac_status); }; } && |
| 12286 | { ac_try='test -s conftest$ac_exeext' |
| 12287 | { (case "(($ac_try" in |
| 12288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12289 | *) ac_try_echo=$ac_try;; |
| 12290 | esac |
| 12291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12292 | (eval "$ac_try") 2>&5 |
| 12293 | ac_status=$? |
| 12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12295 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12296 | ac_cv_lib_m_sin=yes |
| 12297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12298 | echo "$as_me: failed program was:" >&5 |
| 12299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12300 | |
| 12301 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12302 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12303 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12304 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12305 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12306 | LIBS=$ac_check_lib_save_LIBS |
| 12307 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12308 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 12309 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 12310 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12311 | cat >>confdefs.h <<_ACEOF |
| 12312 | #define HAVE_LIBM 1 |
| 12313 | _ACEOF |
| 12314 | |
| 12315 | LIBS="-lm $LIBS" |
| 12316 | |
| 12317 | fi |
| 12318 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12319 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12320 | |
| 12321 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 12322 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 12323 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 12324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12325 | else |
| 12326 | ac_check_lib_save_LIBS=$LIBS |
| 12327 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12328 | cat >conftest.$ac_ext <<_ACEOF |
| 12329 | /* confdefs.h. */ |
| 12330 | _ACEOF |
| 12331 | cat confdefs.h >>conftest.$ac_ext |
| 12332 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12333 | /* end confdefs.h. */ |
| 12334 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12335 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12336 | int |
| 12337 | main () |
| 12338 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12339 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12340 | ; |
| 12341 | return 0; |
| 12342 | } |
| 12343 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12345 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12352 | ac_status=$? |
| 12353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12354 | rm -f conftest.er1 |
| 12355 | cat conftest.err >&5 |
| 12356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12357 | (exit $ac_status); } && |
| 12358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12359 | { (case "(($ac_try" in |
| 12360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12361 | *) ac_try_echo=$ac_try;; |
| 12362 | esac |
| 12363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12364 | (eval "$ac_try") 2>&5 |
| 12365 | ac_status=$? |
| 12366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12367 | (exit $ac_status); }; } && |
| 12368 | { ac_try='test -s conftest$ac_exeext' |
| 12369 | { (case "(($ac_try" in |
| 12370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12371 | *) ac_try_echo=$ac_try;; |
| 12372 | esac |
| 12373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12374 | (eval "$ac_try") 2>&5 |
| 12375 | ac_status=$? |
| 12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12378 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12379 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12380 | echo "$as_me: failed program was:" >&5 |
| 12381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12382 | |
| 12383 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12384 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12385 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12386 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12387 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12388 | LIBS=$ac_check_lib_save_LIBS |
| 12389 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12390 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 12391 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 12392 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12393 | cat >>confdefs.h <<_ACEOF |
| 12394 | #define HAVE_LIBIMAGEHLP 1 |
| 12395 | _ACEOF |
| 12396 | |
| 12397 | LIBS="-limagehlp $LIBS" |
| 12398 | |
| 12399 | fi |
| 12400 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12401 | |
| 12402 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 12403 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 12404 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 12405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12406 | else |
| 12407 | ac_check_lib_save_LIBS=$LIBS |
| 12408 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12409 | cat >conftest.$ac_ext <<_ACEOF |
| 12410 | /* confdefs.h. */ |
| 12411 | _ACEOF |
| 12412 | cat confdefs.h >>conftest.$ac_ext |
| 12413 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12414 | /* end confdefs.h. */ |
| 12415 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12416 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12417 | int |
| 12418 | main () |
| 12419 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12420 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12421 | ; |
| 12422 | return 0; |
| 12423 | } |
| 12424 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12425 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12426 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12433 | ac_status=$? |
| 12434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12435 | rm -f conftest.er1 |
| 12436 | cat conftest.err >&5 |
| 12437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12438 | (exit $ac_status); } && |
| 12439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12440 | { (case "(($ac_try" in |
| 12441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12442 | *) ac_try_echo=$ac_try;; |
| 12443 | esac |
| 12444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12445 | (eval "$ac_try") 2>&5 |
| 12446 | ac_status=$? |
| 12447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12448 | (exit $ac_status); }; } && |
| 12449 | { ac_try='test -s conftest$ac_exeext' |
| 12450 | { (case "(($ac_try" in |
| 12451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12452 | *) ac_try_echo=$ac_try;; |
| 12453 | esac |
| 12454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12455 | (eval "$ac_try") 2>&5 |
| 12456 | ac_status=$? |
| 12457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12458 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12459 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12460 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12461 | echo "$as_me: failed program was:" >&5 |
| 12462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12463 | |
| 12464 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12465 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12466 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12467 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12468 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12469 | LIBS=$ac_check_lib_save_LIBS |
| 12470 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12471 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 12472 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 12473 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12474 | cat >>confdefs.h <<_ACEOF |
| 12475 | #define HAVE_LIBPSAPI 1 |
| 12476 | _ACEOF |
| 12477 | |
| 12478 | LIBS="-lpsapi $LIBS" |
| 12479 | |
| 12480 | fi |
| 12481 | |
| 12482 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12483 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12484 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 12485 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 12486 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12488 | else |
| 12489 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12490 | cat >conftest.$ac_ext <<_ACEOF |
| 12491 | /* confdefs.h. */ |
| 12492 | _ACEOF |
| 12493 | cat confdefs.h >>conftest.$ac_ext |
| 12494 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12495 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12496 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12497 | /* Override any GCC internal prototype to avoid an error. |
| 12498 | Use char because int might match the return type of a GCC |
| 12499 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12500 | #ifdef __cplusplus |
| 12501 | extern "C" |
| 12502 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12503 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12504 | int |
| 12505 | main () |
| 12506 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12507 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12508 | ; |
| 12509 | return 0; |
| 12510 | } |
| 12511 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12512 | for ac_lib in '' dl; do |
| 12513 | if test -z "$ac_lib"; then |
| 12514 | ac_res="none required" |
| 12515 | else |
| 12516 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12517 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12518 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12520 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12527 | ac_status=$? |
| 12528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12529 | rm -f conftest.er1 |
| 12530 | cat conftest.err >&5 |
| 12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12532 | (exit $ac_status); } && |
| 12533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12534 | { (case "(($ac_try" in |
| 12535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12536 | *) ac_try_echo=$ac_try;; |
| 12537 | esac |
| 12538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12539 | (eval "$ac_try") 2>&5 |
| 12540 | ac_status=$? |
| 12541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12542 | (exit $ac_status); }; } && |
| 12543 | { ac_try='test -s conftest$ac_exeext' |
| 12544 | { (case "(($ac_try" in |
| 12545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12546 | *) ac_try_echo=$ac_try;; |
| 12547 | esac |
| 12548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12549 | (eval "$ac_try") 2>&5 |
| 12550 | ac_status=$? |
| 12551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12552 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12553 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12554 | else |
| 12555 | echo "$as_me: failed program was:" >&5 |
| 12556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12557 | |
| 12558 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12560 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12561 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12562 | conftest$ac_exeext |
| 12563 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12564 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12566 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12567 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12568 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12569 | else |
| 12570 | ac_cv_search_dlopen=no |
| 12571 | fi |
| 12572 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12573 | LIBS=$ac_func_search_save_LIBS |
| 12574 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12575 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 12576 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12577 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12578 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12579 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12580 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12581 | cat >>confdefs.h <<\_ACEOF |
| 12582 | #define HAVE_DLOPEN 1 |
| 12583 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12584 | |
| 12585 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12586 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 12587 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12588 | fi |
| 12589 | |
| 12590 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12591 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12592 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 12593 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 12594 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12596 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12597 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12598 | cat >conftest.$ac_ext <<_ACEOF |
| 12599 | /* confdefs.h. */ |
| 12600 | _ACEOF |
| 12601 | cat confdefs.h >>conftest.$ac_ext |
| 12602 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12603 | /* end confdefs.h. */ |
| 12604 | |
| 12605 | /* Override any GCC internal prototype to avoid an error. |
| 12606 | Use char because int might match the return type of a GCC |
| 12607 | builtin and then its argument prototype would still apply. */ |
| 12608 | #ifdef __cplusplus |
| 12609 | extern "C" |
| 12610 | #endif |
| 12611 | char ffi_call (); |
| 12612 | int |
| 12613 | main () |
| 12614 | { |
| 12615 | return ffi_call (); |
| 12616 | ; |
| 12617 | return 0; |
| 12618 | } |
| 12619 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12620 | for ac_lib in '' ffi; do |
| 12621 | if test -z "$ac_lib"; then |
| 12622 | ac_res="none required" |
| 12623 | else |
| 12624 | ac_res=-l$ac_lib |
| 12625 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12626 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12627 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12628 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12635 | ac_status=$? |
| 12636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12637 | rm -f conftest.er1 |
| 12638 | cat conftest.err >&5 |
| 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12640 | (exit $ac_status); } && |
| 12641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12642 | { (case "(($ac_try" in |
| 12643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12644 | *) ac_try_echo=$ac_try;; |
| 12645 | esac |
| 12646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12647 | (eval "$ac_try") 2>&5 |
| 12648 | ac_status=$? |
| 12649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12650 | (exit $ac_status); }; } && |
| 12651 | { ac_try='test -s conftest$ac_exeext' |
| 12652 | { (case "(($ac_try" in |
| 12653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12654 | *) ac_try_echo=$ac_try;; |
| 12655 | esac |
| 12656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12657 | (eval "$ac_try") 2>&5 |
| 12658 | ac_status=$? |
| 12659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12660 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12661 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12662 | else |
| 12663 | echo "$as_me: failed program was:" >&5 |
| 12664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12665 | |
| 12666 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12667 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12668 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12669 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12670 | conftest$ac_exeext |
| 12671 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12672 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12673 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12674 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12675 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12676 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12677 | else |
| 12678 | ac_cv_search_ffi_call=no |
| 12679 | fi |
| 12680 | rm conftest.$ac_ext |
| 12681 | LIBS=$ac_func_search_save_LIBS |
| 12682 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12683 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 12684 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12685 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12686 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12687 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12688 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12689 | cat >>confdefs.h <<\_ACEOF |
| 12690 | #define HAVE_FFI_CALL 1 |
| 12691 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12692 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12693 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12694 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 12695 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 12696 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12697 | fi |
| 12698 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12699 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12700 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12701 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 12702 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 12703 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12705 | else |
| 12706 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12707 | cat >conftest.$ac_ext <<_ACEOF |
| 12708 | /* confdefs.h. */ |
| 12709 | _ACEOF |
| 12710 | cat confdefs.h >>conftest.$ac_ext |
| 12711 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12712 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12714 | /* Override any GCC internal prototype to avoid an error. |
| 12715 | Use char because int might match the return type of a GCC |
| 12716 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12717 | #ifdef __cplusplus |
| 12718 | extern "C" |
| 12719 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12720 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12721 | int |
| 12722 | main () |
| 12723 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12724 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12725 | ; |
| 12726 | return 0; |
| 12727 | } |
| 12728 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12729 | for ac_lib in '' malloc; do |
| 12730 | if test -z "$ac_lib"; then |
| 12731 | ac_res="none required" |
| 12732 | else |
| 12733 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12734 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12735 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12736 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12737 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12744 | ac_status=$? |
| 12745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12746 | rm -f conftest.er1 |
| 12747 | cat conftest.err >&5 |
| 12748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12749 | (exit $ac_status); } && |
| 12750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12751 | { (case "(($ac_try" in |
| 12752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12753 | *) ac_try_echo=$ac_try;; |
| 12754 | esac |
| 12755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12756 | (eval "$ac_try") 2>&5 |
| 12757 | ac_status=$? |
| 12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12759 | (exit $ac_status); }; } && |
| 12760 | { ac_try='test -s conftest$ac_exeext' |
| 12761 | { (case "(($ac_try" in |
| 12762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12763 | *) ac_try_echo=$ac_try;; |
| 12764 | esac |
| 12765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12766 | (eval "$ac_try") 2>&5 |
| 12767 | ac_status=$? |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12770 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12771 | else |
| 12772 | echo "$as_me: failed program was:" >&5 |
| 12773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12774 | |
| 12775 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12776 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12777 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12778 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12779 | conftest$ac_exeext |
| 12780 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12781 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12783 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12784 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12785 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12786 | else |
| 12787 | ac_cv_search_mallinfo=no |
| 12788 | fi |
| 12789 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12790 | LIBS=$ac_func_search_save_LIBS |
| 12791 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12792 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 12793 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12794 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12795 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12796 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12797 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12798 | cat >>confdefs.h <<\_ACEOF |
| 12799 | #define HAVE_MALLINFO 1 |
| 12800 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12801 | |
| 12802 | fi |
| 12803 | |
| 12804 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12805 | if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12806 | |
| 12807 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 12808 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 12809 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 12810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12811 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12812 | ac_check_lib_save_LIBS=$LIBS |
| 12813 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12814 | cat >conftest.$ac_ext <<_ACEOF |
| 12815 | /* confdefs.h. */ |
| 12816 | _ACEOF |
| 12817 | cat confdefs.h >>conftest.$ac_ext |
| 12818 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12819 | /* end confdefs.h. */ |
| 12820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12821 | /* Override any GCC internal prototype to avoid an error. |
| 12822 | Use char because int might match the return type of a GCC |
| 12823 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12824 | #ifdef __cplusplus |
| 12825 | extern "C" |
| 12826 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12827 | char pthread_mutex_init (); |
| 12828 | int |
| 12829 | main () |
| 12830 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12831 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12832 | ; |
| 12833 | return 0; |
| 12834 | } |
| 12835 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12836 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12837 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12844 | ac_status=$? |
| 12845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12846 | rm -f conftest.er1 |
| 12847 | cat conftest.err >&5 |
| 12848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12849 | (exit $ac_status); } && |
| 12850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12851 | { (case "(($ac_try" in |
| 12852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12853 | *) ac_try_echo=$ac_try;; |
| 12854 | esac |
| 12855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12856 | (eval "$ac_try") 2>&5 |
| 12857 | ac_status=$? |
| 12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12859 | (exit $ac_status); }; } && |
| 12860 | { ac_try='test -s conftest$ac_exeext' |
| 12861 | { (case "(($ac_try" in |
| 12862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12863 | *) ac_try_echo=$ac_try;; |
| 12864 | esac |
| 12865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12866 | (eval "$ac_try") 2>&5 |
| 12867 | ac_status=$? |
| 12868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12869 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12870 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12871 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12872 | echo "$as_me: failed program was:" >&5 |
| 12873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12874 | |
| 12875 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12876 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12877 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12878 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12879 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12880 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12881 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12882 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 12883 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 12884 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12885 | cat >>confdefs.h <<_ACEOF |
| 12886 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12887 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12888 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12889 | LIBS="-lpthread $LIBS" |
| 12890 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12891 | fi |
| 12892 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12893 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 12894 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 12895 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12897 | else |
| 12898 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12899 | cat >conftest.$ac_ext <<_ACEOF |
| 12900 | /* confdefs.h. */ |
| 12901 | _ACEOF |
| 12902 | cat confdefs.h >>conftest.$ac_ext |
| 12903 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12904 | /* end confdefs.h. */ |
| 12905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12906 | /* Override any GCC internal prototype to avoid an error. |
| 12907 | Use char because int might match the return type of a GCC |
| 12908 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12909 | #ifdef __cplusplus |
| 12910 | extern "C" |
| 12911 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12912 | char pthread_mutex_lock (); |
| 12913 | int |
| 12914 | main () |
| 12915 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12916 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12917 | ; |
| 12918 | return 0; |
| 12919 | } |
| 12920 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12921 | for ac_lib in '' pthread; do |
| 12922 | if test -z "$ac_lib"; then |
| 12923 | ac_res="none required" |
| 12924 | else |
| 12925 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12926 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12927 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12928 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12929 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12936 | ac_status=$? |
| 12937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12938 | rm -f conftest.er1 |
| 12939 | cat conftest.err >&5 |
| 12940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12941 | (exit $ac_status); } && |
| 12942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12943 | { (case "(($ac_try" in |
| 12944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12945 | *) ac_try_echo=$ac_try;; |
| 12946 | esac |
| 12947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12948 | (eval "$ac_try") 2>&5 |
| 12949 | ac_status=$? |
| 12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12951 | (exit $ac_status); }; } && |
| 12952 | { ac_try='test -s conftest$ac_exeext' |
| 12953 | { (case "(($ac_try" in |
| 12954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12955 | *) ac_try_echo=$ac_try;; |
| 12956 | esac |
| 12957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12958 | (eval "$ac_try") 2>&5 |
| 12959 | ac_status=$? |
| 12960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12961 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12962 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12963 | else |
| 12964 | echo "$as_me: failed program was:" >&5 |
| 12965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12966 | |
| 12967 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12968 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12969 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12970 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12971 | conftest$ac_exeext |
| 12972 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12973 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12975 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12976 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12977 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12978 | else |
| 12979 | ac_cv_search_pthread_mutex_lock=no |
| 12980 | fi |
| 12981 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12982 | LIBS=$ac_func_search_save_LIBS |
| 12983 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12984 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 12985 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12986 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12987 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12988 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12989 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12990 | cat >>confdefs.h <<\_ACEOF |
| 12991 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 12992 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 12993 | |
| 12994 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12995 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12996 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 12997 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 12998 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 12999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13000 | else |
| 13001 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13002 | cat >conftest.$ac_ext <<_ACEOF |
| 13003 | /* confdefs.h. */ |
| 13004 | _ACEOF |
| 13005 | cat confdefs.h >>conftest.$ac_ext |
| 13006 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13007 | /* end confdefs.h. */ |
| 13008 | |
| 13009 | /* Override any GCC internal prototype to avoid an error. |
| 13010 | Use char because int might match the return type of a GCC |
| 13011 | builtin and then its argument prototype would still apply. */ |
| 13012 | #ifdef __cplusplus |
| 13013 | extern "C" |
| 13014 | #endif |
| 13015 | char pthread_rwlock_init (); |
| 13016 | int |
| 13017 | main () |
| 13018 | { |
| 13019 | return pthread_rwlock_init (); |
| 13020 | ; |
| 13021 | return 0; |
| 13022 | } |
| 13023 | _ACEOF |
| 13024 | for ac_lib in '' pthread; do |
| 13025 | if test -z "$ac_lib"; then |
| 13026 | ac_res="none required" |
| 13027 | else |
| 13028 | ac_res=-l$ac_lib |
| 13029 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13030 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13031 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13032 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13039 | ac_status=$? |
| 13040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13041 | rm -f conftest.er1 |
| 13042 | cat conftest.err >&5 |
| 13043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13044 | (exit $ac_status); } && |
| 13045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13046 | { (case "(($ac_try" in |
| 13047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13048 | *) ac_try_echo=$ac_try;; |
| 13049 | esac |
| 13050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13051 | (eval "$ac_try") 2>&5 |
| 13052 | ac_status=$? |
| 13053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13054 | (exit $ac_status); }; } && |
| 13055 | { ac_try='test -s conftest$ac_exeext' |
| 13056 | { (case "(($ac_try" in |
| 13057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13058 | *) ac_try_echo=$ac_try;; |
| 13059 | esac |
| 13060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13061 | (eval "$ac_try") 2>&5 |
| 13062 | ac_status=$? |
| 13063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13064 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13065 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13066 | else |
| 13067 | echo "$as_me: failed program was:" >&5 |
| 13068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13069 | |
| 13070 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13071 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13072 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13073 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13074 | conftest$ac_exeext |
| 13075 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13076 | break |
| 13077 | fi |
| 13078 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13079 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13080 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13081 | else |
| 13082 | ac_cv_search_pthread_rwlock_init=no |
| 13083 | fi |
| 13084 | rm conftest.$ac_ext |
| 13085 | LIBS=$ac_func_search_save_LIBS |
| 13086 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13087 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13088 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13089 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13090 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13091 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13092 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13093 | cat >>confdefs.h <<\_ACEOF |
| 13094 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13095 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13096 | |
| 13097 | fi |
| 13098 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13099 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13100 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13101 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13103 | else |
| 13104 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13105 | cat >conftest.$ac_ext <<_ACEOF |
| 13106 | /* confdefs.h. */ |
| 13107 | _ACEOF |
| 13108 | cat confdefs.h >>conftest.$ac_ext |
| 13109 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13110 | /* end confdefs.h. */ |
| 13111 | |
| 13112 | /* Override any GCC internal prototype to avoid an error. |
| 13113 | Use char because int might match the return type of a GCC |
| 13114 | builtin and then its argument prototype would still apply. */ |
| 13115 | #ifdef __cplusplus |
| 13116 | extern "C" |
| 13117 | #endif |
| 13118 | char pthread_getspecific (); |
| 13119 | int |
| 13120 | main () |
| 13121 | { |
| 13122 | return pthread_getspecific (); |
| 13123 | ; |
| 13124 | return 0; |
| 13125 | } |
| 13126 | _ACEOF |
| 13127 | for ac_lib in '' pthread; do |
| 13128 | if test -z "$ac_lib"; then |
| 13129 | ac_res="none required" |
| 13130 | else |
| 13131 | ac_res=-l$ac_lib |
| 13132 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13133 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13134 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13135 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13142 | ac_status=$? |
| 13143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13144 | rm -f conftest.er1 |
| 13145 | cat conftest.err >&5 |
| 13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13147 | (exit $ac_status); } && |
| 13148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13149 | { (case "(($ac_try" in |
| 13150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13151 | *) ac_try_echo=$ac_try;; |
| 13152 | esac |
| 13153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13154 | (eval "$ac_try") 2>&5 |
| 13155 | ac_status=$? |
| 13156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13157 | (exit $ac_status); }; } && |
| 13158 | { ac_try='test -s conftest$ac_exeext' |
| 13159 | { (case "(($ac_try" in |
| 13160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13161 | *) ac_try_echo=$ac_try;; |
| 13162 | esac |
| 13163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13164 | (eval "$ac_try") 2>&5 |
| 13165 | ac_status=$? |
| 13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13167 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13168 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13169 | else |
| 13170 | echo "$as_me: failed program was:" >&5 |
| 13171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13172 | |
| 13173 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13174 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13175 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13176 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13177 | conftest$ac_exeext |
| 13178 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13179 | break |
| 13180 | fi |
| 13181 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13182 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13183 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13184 | else |
| 13185 | ac_cv_search_pthread_getspecific=no |
| 13186 | fi |
| 13187 | rm conftest.$ac_ext |
| 13188 | LIBS=$ac_func_search_save_LIBS |
| 13189 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13190 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13191 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13192 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13193 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13194 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13195 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13196 | cat >>confdefs.h <<\_ACEOF |
| 13197 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13198 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13199 | |
| 13200 | fi |
| 13201 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13202 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13203 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13204 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13205 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13206 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13207 | withval=$with_udis86; |
| 13208 | USE_UDIS86=1 |
| 13209 | |
| 13210 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13211 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13212 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13213 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13214 | |
| 13215 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13216 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13217 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13219 | else |
| 13220 | ac_check_lib_save_LIBS=$LIBS |
| 13221 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13222 | cat >conftest.$ac_ext <<_ACEOF |
| 13223 | /* confdefs.h. */ |
| 13224 | _ACEOF |
| 13225 | cat confdefs.h >>conftest.$ac_ext |
| 13226 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13227 | /* end confdefs.h. */ |
| 13228 | |
| 13229 | /* Override any GCC internal prototype to avoid an error. |
| 13230 | Use char because int might match the return type of a GCC |
| 13231 | builtin and then its argument prototype would still apply. */ |
| 13232 | #ifdef __cplusplus |
| 13233 | extern "C" |
| 13234 | #endif |
| 13235 | char ud_init (); |
| 13236 | int |
| 13237 | main () |
| 13238 | { |
| 13239 | return ud_init (); |
| 13240 | ; |
| 13241 | return 0; |
| 13242 | } |
| 13243 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13244 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13245 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13252 | ac_status=$? |
| 13253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13254 | rm -f conftest.er1 |
| 13255 | cat conftest.err >&5 |
| 13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13257 | (exit $ac_status); } && |
| 13258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13259 | { (case "(($ac_try" in |
| 13260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13261 | *) ac_try_echo=$ac_try;; |
| 13262 | esac |
| 13263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13264 | (eval "$ac_try") 2>&5 |
| 13265 | ac_status=$? |
| 13266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13267 | (exit $ac_status); }; } && |
| 13268 | { ac_try='test -s conftest$ac_exeext' |
| 13269 | { (case "(($ac_try" in |
| 13270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13271 | *) ac_try_echo=$ac_try;; |
| 13272 | esac |
| 13273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13274 | (eval "$ac_try") 2>&5 |
| 13275 | ac_status=$? |
| 13276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13277 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13278 | ac_cv_lib_udis86_ud_init=yes |
| 13279 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13280 | echo "$as_me: failed program was:" >&5 |
| 13281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13282 | |
| 13283 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13284 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13285 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13286 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13287 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13288 | LIBS=$ac_check_lib_save_LIBS |
| 13289 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13290 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13291 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13292 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13293 | cat >>confdefs.h <<_ACEOF |
| 13294 | #define HAVE_LIBUDIS86 1 |
| 13295 | _ACEOF |
| 13296 | |
| 13297 | LIBS="-ludis86 $LIBS" |
| 13298 | |
| 13299 | else |
| 13300 | |
| 13301 | echo "Error! You need to have libudis86 around." |
| 13302 | exit -1 |
| 13303 | |
| 13304 | fi |
| 13305 | |
| 13306 | |
| 13307 | else |
| 13308 | USE_UDIS86=0 |
| 13309 | |
| 13310 | fi |
| 13311 | |
| 13312 | |
| 13313 | cat >>confdefs.h <<_ACEOF |
| 13314 | #define USE_UDIS86 $USE_UDIS86 |
| 13315 | _ACEOF |
| 13316 | |
| 13317 | |
| 13318 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13319 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13320 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13321 | withval=$with_oprofile; |
| 13322 | USE_OPROFILE=1 |
| 13323 | |
| 13324 | case "$withval" in |
| 13325 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13326 | no) llvm_cv_oppath= |
| 13327 | USE_OPROFILE=0 |
| 13328 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13329 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 13330 | CPPFLAGS="-I${withval}/include";; |
| 13331 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13332 | if test -n "$llvm_cv_oppath" ; then |
| 13333 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13334 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 13335 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 13336 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13338 | else |
| 13339 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13340 | cat >conftest.$ac_ext <<_ACEOF |
| 13341 | /* confdefs.h. */ |
| 13342 | _ACEOF |
| 13343 | cat confdefs.h >>conftest.$ac_ext |
| 13344 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13345 | /* end confdefs.h. */ |
| 13346 | |
| 13347 | /* Override any GCC internal prototype to avoid an error. |
| 13348 | Use char because int might match the return type of a GCC |
| 13349 | builtin and then its argument prototype would still apply. */ |
| 13350 | #ifdef __cplusplus |
| 13351 | extern "C" |
| 13352 | #endif |
| 13353 | char bfd_init (); |
| 13354 | int |
| 13355 | main () |
| 13356 | { |
| 13357 | return bfd_init (); |
| 13358 | ; |
| 13359 | return 0; |
| 13360 | } |
| 13361 | _ACEOF |
| 13362 | for ac_lib in '' bfd; do |
| 13363 | if test -z "$ac_lib"; then |
| 13364 | ac_res="none required" |
| 13365 | else |
| 13366 | ac_res=-l$ac_lib |
| 13367 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13368 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13369 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13370 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13377 | ac_status=$? |
| 13378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13379 | rm -f conftest.er1 |
| 13380 | cat conftest.err >&5 |
| 13381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13382 | (exit $ac_status); } && |
| 13383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13384 | { (case "(($ac_try" in |
| 13385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13386 | *) ac_try_echo=$ac_try;; |
| 13387 | esac |
| 13388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13389 | (eval "$ac_try") 2>&5 |
| 13390 | ac_status=$? |
| 13391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13392 | (exit $ac_status); }; } && |
| 13393 | { ac_try='test -s conftest$ac_exeext' |
| 13394 | { (case "(($ac_try" in |
| 13395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13396 | *) ac_try_echo=$ac_try;; |
| 13397 | esac |
| 13398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13399 | (eval "$ac_try") 2>&5 |
| 13400 | ac_status=$? |
| 13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13402 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13403 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13404 | else |
| 13405 | echo "$as_me: failed program was:" >&5 |
| 13406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13407 | |
| 13408 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13409 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13410 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13411 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13412 | conftest$ac_exeext |
| 13413 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13414 | break |
| 13415 | fi |
| 13416 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13417 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13418 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13419 | else |
| 13420 | ac_cv_search_bfd_init=no |
| 13421 | fi |
| 13422 | rm conftest.$ac_ext |
| 13423 | LIBS=$ac_func_search_save_LIBS |
| 13424 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13425 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 13426 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13427 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13428 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13429 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13430 | |
| 13431 | fi |
| 13432 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13433 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 13434 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 13435 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13437 | else |
| 13438 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13439 | cat >conftest.$ac_ext <<_ACEOF |
| 13440 | /* confdefs.h. */ |
| 13441 | _ACEOF |
| 13442 | cat confdefs.h >>conftest.$ac_ext |
| 13443 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13444 | /* end confdefs.h. */ |
| 13445 | |
| 13446 | /* Override any GCC internal prototype to avoid an error. |
| 13447 | Use char because int might match the return type of a GCC |
| 13448 | builtin and then its argument prototype would still apply. */ |
| 13449 | #ifdef __cplusplus |
| 13450 | extern "C" |
| 13451 | #endif |
| 13452 | char op_open_agent (); |
| 13453 | int |
| 13454 | main () |
| 13455 | { |
| 13456 | return op_open_agent (); |
| 13457 | ; |
| 13458 | return 0; |
| 13459 | } |
| 13460 | _ACEOF |
| 13461 | for ac_lib in '' opagent; do |
| 13462 | if test -z "$ac_lib"; then |
| 13463 | ac_res="none required" |
| 13464 | else |
| 13465 | ac_res=-l$ac_lib |
| 13466 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13467 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13468 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13469 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13476 | ac_status=$? |
| 13477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13478 | rm -f conftest.er1 |
| 13479 | cat conftest.err >&5 |
| 13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13481 | (exit $ac_status); } && |
| 13482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13483 | { (case "(($ac_try" in |
| 13484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13485 | *) ac_try_echo=$ac_try;; |
| 13486 | esac |
| 13487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13488 | (eval "$ac_try") 2>&5 |
| 13489 | ac_status=$? |
| 13490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13491 | (exit $ac_status); }; } && |
| 13492 | { ac_try='test -s conftest$ac_exeext' |
| 13493 | { (case "(($ac_try" in |
| 13494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13495 | *) ac_try_echo=$ac_try;; |
| 13496 | esac |
| 13497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13498 | (eval "$ac_try") 2>&5 |
| 13499 | ac_status=$? |
| 13500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13501 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13502 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13503 | else |
| 13504 | echo "$as_me: failed program was:" >&5 |
| 13505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13506 | |
| 13507 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13508 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13509 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13510 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13511 | conftest$ac_exeext |
| 13512 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13513 | break |
| 13514 | fi |
| 13515 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13516 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13517 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13518 | else |
| 13519 | ac_cv_search_op_open_agent=no |
| 13520 | fi |
| 13521 | rm conftest.$ac_ext |
| 13522 | LIBS=$ac_func_search_save_LIBS |
| 13523 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13524 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 13525 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13526 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13527 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13528 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13529 | |
| 13530 | else |
| 13531 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13532 | echo "Error! You need to have libopagent around." |
| 13533 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13534 | |
| 13535 | fi |
| 13536 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13537 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13538 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13539 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13540 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13542 | fi |
| 13543 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13544 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13545 | else |
| 13546 | # Is the header compilable? |
| 13547 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 13548 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 13549 | cat >conftest.$ac_ext <<_ACEOF |
| 13550 | /* confdefs.h. */ |
| 13551 | _ACEOF |
| 13552 | cat confdefs.h >>conftest.$ac_ext |
| 13553 | cat >>conftest.$ac_ext <<_ACEOF |
| 13554 | /* end confdefs.h. */ |
| 13555 | $ac_includes_default |
| 13556 | #include <opagent.h> |
| 13557 | _ACEOF |
| 13558 | rm -f conftest.$ac_objext |
| 13559 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 13566 | ac_status=$? |
| 13567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13568 | rm -f conftest.er1 |
| 13569 | cat conftest.err >&5 |
| 13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13571 | (exit $ac_status); } && |
| 13572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13573 | { (case "(($ac_try" in |
| 13574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13575 | *) ac_try_echo=$ac_try;; |
| 13576 | esac |
| 13577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13578 | (eval "$ac_try") 2>&5 |
| 13579 | ac_status=$? |
| 13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13581 | (exit $ac_status); }; } && |
| 13582 | { ac_try='test -s conftest.$ac_objext' |
| 13583 | { (case "(($ac_try" in |
| 13584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13585 | *) ac_try_echo=$ac_try;; |
| 13586 | esac |
| 13587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13588 | (eval "$ac_try") 2>&5 |
| 13589 | ac_status=$? |
| 13590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13591 | (exit $ac_status); }; }; then |
| 13592 | ac_header_compiler=yes |
| 13593 | else |
| 13594 | echo "$as_me: failed program was:" >&5 |
| 13595 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13596 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13597 | ac_header_compiler=no |
| 13598 | fi |
| 13599 | |
| 13600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13601 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13602 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 13603 | |
| 13604 | # Is the header present? |
| 13605 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 13606 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 13607 | cat >conftest.$ac_ext <<_ACEOF |
| 13608 | /* confdefs.h. */ |
| 13609 | _ACEOF |
| 13610 | cat confdefs.h >>conftest.$ac_ext |
| 13611 | cat >>conftest.$ac_ext <<_ACEOF |
| 13612 | /* end confdefs.h. */ |
| 13613 | #include <opagent.h> |
| 13614 | _ACEOF |
| 13615 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13616 | case "(($ac_try" in |
| 13617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13618 | *) ac_try_echo=$ac_try;; |
| 13619 | esac |
| 13620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13622 | ac_status=$? |
| 13623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13624 | rm -f conftest.er1 |
| 13625 | cat conftest.err >&5 |
| 13626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13627 | (exit $ac_status); } >/dev/null; then |
| 13628 | if test -s conftest.err; then |
| 13629 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13630 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13631 | else |
| 13632 | ac_cpp_err= |
| 13633 | fi |
| 13634 | else |
| 13635 | ac_cpp_err=yes |
| 13636 | fi |
| 13637 | if test -z "$ac_cpp_err"; then |
| 13638 | ac_header_preproc=yes |
| 13639 | else |
| 13640 | echo "$as_me: failed program was:" >&5 |
| 13641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13642 | |
| 13643 | ac_header_preproc=no |
| 13644 | fi |
| 13645 | |
| 13646 | rm -f conftest.err conftest.$ac_ext |
| 13647 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13648 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 13649 | |
| 13650 | # So? What about this header? |
| 13651 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13652 | yes:no: ) |
| 13653 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13654 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13655 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 13656 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 13657 | ac_header_preproc=yes |
| 13658 | ;; |
| 13659 | no:yes:* ) |
| 13660 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 13661 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 13662 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 13663 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 13664 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 13665 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 13666 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13667 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13668 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 13669 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 13670 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 13671 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 13672 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 13673 | ## ------------------------------------ ## |
| 13674 | ## Report this to http://llvm.org/bugs/ ## |
| 13675 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13676 | _ASBOX |
| 13677 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13678 | ;; |
| 13679 | esac |
| 13680 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13681 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13682 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13684 | else |
| 13685 | ac_cv_header_opagent_h=$ac_header_preproc |
| 13686 | fi |
| 13687 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13688 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13689 | |
| 13690 | fi |
| 13691 | if test $ac_cv_header_opagent_h = yes; then |
| 13692 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13693 | else |
| 13694 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13695 | echo "Error! You need to have opagent.h around." |
| 13696 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13697 | |
| 13698 | fi |
| 13699 | |
| 13700 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13701 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13702 | |
| 13703 | else |
| 13704 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13705 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13706 | |
| 13707 | |
| 13708 | fi |
| 13709 | |
| 13710 | |
| 13711 | cat >>confdefs.h <<_ACEOF |
| 13712 | #define USE_OPROFILE $USE_OPROFILE |
| 13713 | _ACEOF |
| 13714 | |
| 13715 | |
| 13716 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13717 | |
| 13718 | |
| 13719 | |
| 13720 | |
| 13721 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13722 | ac_header_dirent=no |
| 13723 | 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] | 13724 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 13725 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 13726 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 13727 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13729 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13730 | cat >conftest.$ac_ext <<_ACEOF |
| 13731 | /* confdefs.h. */ |
| 13732 | _ACEOF |
| 13733 | cat confdefs.h >>conftest.$ac_ext |
| 13734 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13735 | /* end confdefs.h. */ |
| 13736 | #include <sys/types.h> |
| 13737 | #include <$ac_hdr> |
| 13738 | |
| 13739 | int |
| 13740 | main () |
| 13741 | { |
| 13742 | if ((DIR *) 0) |
| 13743 | return 0; |
| 13744 | ; |
| 13745 | return 0; |
| 13746 | } |
| 13747 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13748 | rm -f conftest.$ac_objext |
| 13749 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 13756 | ac_status=$? |
| 13757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13758 | rm -f conftest.er1 |
| 13759 | cat conftest.err >&5 |
| 13760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13761 | (exit $ac_status); } && |
| 13762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13763 | { (case "(($ac_try" in |
| 13764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13765 | *) ac_try_echo=$ac_try;; |
| 13766 | esac |
| 13767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13768 | (eval "$ac_try") 2>&5 |
| 13769 | ac_status=$? |
| 13770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13771 | (exit $ac_status); }; } && |
| 13772 | { ac_try='test -s conftest.$ac_objext' |
| 13773 | { (case "(($ac_try" in |
| 13774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13775 | *) ac_try_echo=$ac_try;; |
| 13776 | esac |
| 13777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13778 | (eval "$ac_try") 2>&5 |
| 13779 | ac_status=$? |
| 13780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13781 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13782 | eval "$as_ac_Header=yes" |
| 13783 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13784 | echo "$as_me: failed program was:" >&5 |
| 13785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13786 | |
| 13787 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13788 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13789 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13791 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13792 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 13793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13794 | echo "${ECHO_T}$ac_res" >&6; } |
| 13795 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13796 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13797 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13798 | _ACEOF |
| 13799 | |
| 13800 | ac_header_dirent=$ac_hdr; break |
| 13801 | fi |
| 13802 | |
| 13803 | done |
| 13804 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 13805 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13806 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13807 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13808 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13810 | else |
| 13811 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13812 | cat >conftest.$ac_ext <<_ACEOF |
| 13813 | /* confdefs.h. */ |
| 13814 | _ACEOF |
| 13815 | cat confdefs.h >>conftest.$ac_ext |
| 13816 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13817 | /* end confdefs.h. */ |
| 13818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13819 | /* Override any GCC internal prototype to avoid an error. |
| 13820 | Use char because int might match the return type of a GCC |
| 13821 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13822 | #ifdef __cplusplus |
| 13823 | extern "C" |
| 13824 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13825 | char opendir (); |
| 13826 | int |
| 13827 | main () |
| 13828 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13829 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13830 | ; |
| 13831 | return 0; |
| 13832 | } |
| 13833 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13834 | for ac_lib in '' dir; do |
| 13835 | if test -z "$ac_lib"; then |
| 13836 | ac_res="none required" |
| 13837 | else |
| 13838 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13839 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13840 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13841 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13842 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13849 | ac_status=$? |
| 13850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13851 | rm -f conftest.er1 |
| 13852 | cat conftest.err >&5 |
| 13853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13854 | (exit $ac_status); } && |
| 13855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13856 | { (case "(($ac_try" in |
| 13857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13858 | *) ac_try_echo=$ac_try;; |
| 13859 | esac |
| 13860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13861 | (eval "$ac_try") 2>&5 |
| 13862 | ac_status=$? |
| 13863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13864 | (exit $ac_status); }; } && |
| 13865 | { ac_try='test -s conftest$ac_exeext' |
| 13866 | { (case "(($ac_try" in |
| 13867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13868 | *) ac_try_echo=$ac_try;; |
| 13869 | esac |
| 13870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13871 | (eval "$ac_try") 2>&5 |
| 13872 | ac_status=$? |
| 13873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13874 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13875 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13876 | else |
| 13877 | echo "$as_me: failed program was:" >&5 |
| 13878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13879 | |
| 13880 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13881 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13882 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13883 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13884 | conftest$ac_exeext |
| 13885 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13886 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13887 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13888 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13889 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13890 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13891 | else |
| 13892 | ac_cv_search_opendir=no |
| 13893 | fi |
| 13894 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13895 | LIBS=$ac_func_search_save_LIBS |
| 13896 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13897 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13898 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13899 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13900 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13901 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13902 | |
| 13903 | fi |
| 13904 | |
| 13905 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13906 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13907 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13908 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13910 | else |
| 13911 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13912 | cat >conftest.$ac_ext <<_ACEOF |
| 13913 | /* confdefs.h. */ |
| 13914 | _ACEOF |
| 13915 | cat confdefs.h >>conftest.$ac_ext |
| 13916 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13917 | /* end confdefs.h. */ |
| 13918 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13919 | /* Override any GCC internal prototype to avoid an error. |
| 13920 | Use char because int might match the return type of a GCC |
| 13921 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13922 | #ifdef __cplusplus |
| 13923 | extern "C" |
| 13924 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13925 | char opendir (); |
| 13926 | int |
| 13927 | main () |
| 13928 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13929 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13930 | ; |
| 13931 | return 0; |
| 13932 | } |
| 13933 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13934 | for ac_lib in '' x; do |
| 13935 | if test -z "$ac_lib"; then |
| 13936 | ac_res="none required" |
| 13937 | else |
| 13938 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13939 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13940 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13942 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13949 | ac_status=$? |
| 13950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13951 | rm -f conftest.er1 |
| 13952 | cat conftest.err >&5 |
| 13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13954 | (exit $ac_status); } && |
| 13955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13956 | { (case "(($ac_try" in |
| 13957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13958 | *) ac_try_echo=$ac_try;; |
| 13959 | esac |
| 13960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13961 | (eval "$ac_try") 2>&5 |
| 13962 | ac_status=$? |
| 13963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13964 | (exit $ac_status); }; } && |
| 13965 | { ac_try='test -s conftest$ac_exeext' |
| 13966 | { (case "(($ac_try" in |
| 13967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13968 | *) ac_try_echo=$ac_try;; |
| 13969 | esac |
| 13970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13971 | (eval "$ac_try") 2>&5 |
| 13972 | ac_status=$? |
| 13973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13974 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13975 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13976 | else |
| 13977 | echo "$as_me: failed program was:" >&5 |
| 13978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13979 | |
| 13980 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13981 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13982 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13983 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13984 | conftest$ac_exeext |
| 13985 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13986 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13987 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13988 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13989 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13990 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13991 | else |
| 13992 | ac_cv_search_opendir=no |
| 13993 | fi |
| 13994 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13995 | LIBS=$ac_func_search_save_LIBS |
| 13996 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13997 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13998 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13999 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14000 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14001 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14002 | |
| 14003 | fi |
| 14004 | |
| 14005 | fi |
| 14006 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14007 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14008 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14009 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14011 | else |
| 14012 | ac_ext=c |
| 14013 | ac_cpp='$CPP $CPPFLAGS' |
| 14014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14017 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14018 | cat >conftest.$ac_ext <<_ACEOF |
| 14019 | /* confdefs.h. */ |
| 14020 | _ACEOF |
| 14021 | cat confdefs.h >>conftest.$ac_ext |
| 14022 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14023 | /* end confdefs.h. */ |
| 14024 | #include <sys/mman.h> |
| 14025 | #include <unistd.h> |
| 14026 | #include <fcntl.h> |
| 14027 | int |
| 14028 | main () |
| 14029 | { |
| 14030 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14031 | ; |
| 14032 | return 0; |
| 14033 | } |
| 14034 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14035 | rm -f conftest.$ac_objext |
| 14036 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 14043 | ac_status=$? |
| 14044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14045 | rm -f conftest.er1 |
| 14046 | cat conftest.err >&5 |
| 14047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14048 | (exit $ac_status); } && |
| 14049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14050 | { (case "(($ac_try" in |
| 14051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14052 | *) ac_try_echo=$ac_try;; |
| 14053 | esac |
| 14054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14055 | (eval "$ac_try") 2>&5 |
| 14056 | ac_status=$? |
| 14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14058 | (exit $ac_status); }; } && |
| 14059 | { ac_try='test -s conftest.$ac_objext' |
| 14060 | { (case "(($ac_try" in |
| 14061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14062 | *) ac_try_echo=$ac_try;; |
| 14063 | esac |
| 14064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14065 | (eval "$ac_try") 2>&5 |
| 14066 | ac_status=$? |
| 14067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14068 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14069 | ac_cv_header_mmap_anon=yes |
| 14070 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14071 | echo "$as_me: failed program was:" >&5 |
| 14072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14073 | |
| 14074 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14075 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14078 | ac_ext=c |
| 14079 | ac_cpp='$CPP $CPPFLAGS' |
| 14080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14083 | |
| 14084 | |
| 14085 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14086 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14087 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14088 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14089 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14090 | cat >>confdefs.h <<\_ACEOF |
| 14091 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14092 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14093 | |
| 14094 | fi |
| 14095 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14096 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14097 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14098 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14100 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14101 | cat >conftest.$ac_ext <<_ACEOF |
| 14102 | /* confdefs.h. */ |
| 14103 | _ACEOF |
| 14104 | cat confdefs.h >>conftest.$ac_ext |
| 14105 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14106 | /* end confdefs.h. */ |
| 14107 | #include <sys/types.h> |
| 14108 | #include <sys/stat.h> |
| 14109 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14110 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14111 | # if S_ISBLK (S_IFDIR) |
| 14112 | You lose. |
| 14113 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14114 | #endif |
| 14115 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14116 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14117 | # if S_ISBLK (S_IFCHR) |
| 14118 | You lose. |
| 14119 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14120 | #endif |
| 14121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14122 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14123 | # if S_ISLNK (S_IFREG) |
| 14124 | You lose. |
| 14125 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14126 | #endif |
| 14127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14128 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14129 | # if S_ISSOCK (S_IFREG) |
| 14130 | You lose. |
| 14131 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14132 | #endif |
| 14133 | |
| 14134 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14136 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14137 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14138 | else |
| 14139 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14140 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14141 | rm -f conftest* |
| 14142 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14143 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14144 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14145 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14146 | if test $ac_cv_header_stat_broken = yes; then |
| 14147 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14148 | cat >>confdefs.h <<\_ACEOF |
| 14149 | #define STAT_MACROS_BROKEN 1 |
| 14150 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14151 | |
| 14152 | fi |
| 14153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14154 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 14155 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 14156 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 14157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14159 | cat >conftest.$ac_ext <<_ACEOF |
| 14160 | /* confdefs.h. */ |
| 14161 | _ACEOF |
| 14162 | cat confdefs.h >>conftest.$ac_ext |
| 14163 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14164 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14165 | #include <sys/types.h> |
| 14166 | #include <sys/wait.h> |
| 14167 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14168 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14169 | #endif |
| 14170 | #ifndef WIFEXITED |
| 14171 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 14172 | #endif |
| 14173 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14174 | int |
| 14175 | main () |
| 14176 | { |
| 14177 | int s; |
| 14178 | wait (&s); |
| 14179 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 14180 | ; |
| 14181 | return 0; |
| 14182 | } |
| 14183 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14184 | rm -f conftest.$ac_objext |
| 14185 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 14192 | ac_status=$? |
| 14193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14194 | rm -f conftest.er1 |
| 14195 | cat conftest.err >&5 |
| 14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14197 | (exit $ac_status); } && |
| 14198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14199 | { (case "(($ac_try" in |
| 14200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14201 | *) ac_try_echo=$ac_try;; |
| 14202 | esac |
| 14203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14204 | (eval "$ac_try") 2>&5 |
| 14205 | ac_status=$? |
| 14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14207 | (exit $ac_status); }; } && |
| 14208 | { ac_try='test -s conftest.$ac_objext' |
| 14209 | { (case "(($ac_try" in |
| 14210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14211 | *) ac_try_echo=$ac_try;; |
| 14212 | esac |
| 14213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14214 | (eval "$ac_try") 2>&5 |
| 14215 | ac_status=$? |
| 14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14217 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14218 | ac_cv_header_sys_wait_h=yes |
| 14219 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14220 | echo "$as_me: failed program was:" >&5 |
| 14221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14222 | |
| 14223 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14224 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14227 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14228 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 14229 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14230 | if test $ac_cv_header_sys_wait_h = yes; then |
| 14231 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14232 | cat >>confdefs.h <<\_ACEOF |
| 14233 | #define HAVE_SYS_WAIT_H 1 |
| 14234 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14235 | |
| 14236 | fi |
| 14237 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14238 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14239 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 14240 | if test "${ac_cv_header_time+set}" = set; then |
| 14241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14242 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14243 | cat >conftest.$ac_ext <<_ACEOF |
| 14244 | /* confdefs.h. */ |
| 14245 | _ACEOF |
| 14246 | cat confdefs.h >>conftest.$ac_ext |
| 14247 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14248 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14249 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14250 | #include <sys/time.h> |
| 14251 | #include <time.h> |
| 14252 | |
| 14253 | int |
| 14254 | main () |
| 14255 | { |
| 14256 | if ((struct tm *) 0) |
| 14257 | return 0; |
| 14258 | ; |
| 14259 | return 0; |
| 14260 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14261 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14262 | rm -f conftest.$ac_objext |
| 14263 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 14270 | ac_status=$? |
| 14271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14272 | rm -f conftest.er1 |
| 14273 | cat conftest.err >&5 |
| 14274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14275 | (exit $ac_status); } && |
| 14276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14277 | { (case "(($ac_try" in |
| 14278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14279 | *) ac_try_echo=$ac_try;; |
| 14280 | esac |
| 14281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14282 | (eval "$ac_try") 2>&5 |
| 14283 | ac_status=$? |
| 14284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14285 | (exit $ac_status); }; } && |
| 14286 | { ac_try='test -s conftest.$ac_objext' |
| 14287 | { (case "(($ac_try" in |
| 14288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14289 | *) ac_try_echo=$ac_try;; |
| 14290 | esac |
| 14291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14292 | (eval "$ac_try") 2>&5 |
| 14293 | ac_status=$? |
| 14294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14295 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14296 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14298 | echo "$as_me: failed program was:" >&5 |
| 14299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14300 | |
| 14301 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14302 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14305 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14306 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14307 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14308 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14309 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14310 | cat >>confdefs.h <<\_ACEOF |
| 14311 | #define TIME_WITH_SYS_TIME 1 |
| 14312 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14313 | |
| 14314 | fi |
| 14315 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14316 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14317 | |
| 14318 | |
| 14319 | |
| 14320 | |
| 14321 | |
| 14322 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14323 | 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] | 14324 | do |
| 14325 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14327 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14329 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14331 | fi |
| 14332 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14333 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14334 | echo "${ECHO_T}$ac_res" >&6; } |
| 14335 | else |
| 14336 | # Is the header compilable? |
| 14337 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14338 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14339 | cat >conftest.$ac_ext <<_ACEOF |
| 14340 | /* confdefs.h. */ |
| 14341 | _ACEOF |
| 14342 | cat confdefs.h >>conftest.$ac_ext |
| 14343 | cat >>conftest.$ac_ext <<_ACEOF |
| 14344 | /* end confdefs.h. */ |
| 14345 | $ac_includes_default |
| 14346 | #include <$ac_header> |
| 14347 | _ACEOF |
| 14348 | rm -f conftest.$ac_objext |
| 14349 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 14356 | ac_status=$? |
| 14357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14358 | rm -f conftest.er1 |
| 14359 | cat conftest.err >&5 |
| 14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14361 | (exit $ac_status); } && |
| 14362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14363 | { (case "(($ac_try" in |
| 14364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14365 | *) ac_try_echo=$ac_try;; |
| 14366 | esac |
| 14367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14368 | (eval "$ac_try") 2>&5 |
| 14369 | ac_status=$? |
| 14370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14371 | (exit $ac_status); }; } && |
| 14372 | { ac_try='test -s conftest.$ac_objext' |
| 14373 | { (case "(($ac_try" in |
| 14374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14375 | *) ac_try_echo=$ac_try;; |
| 14376 | esac |
| 14377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14378 | (eval "$ac_try") 2>&5 |
| 14379 | ac_status=$? |
| 14380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14381 | (exit $ac_status); }; }; then |
| 14382 | ac_header_compiler=yes |
| 14383 | else |
| 14384 | echo "$as_me: failed program was:" >&5 |
| 14385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14386 | |
| 14387 | ac_header_compiler=no |
| 14388 | fi |
| 14389 | |
| 14390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14391 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14392 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14393 | |
| 14394 | # Is the header present? |
| 14395 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14396 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14397 | cat >conftest.$ac_ext <<_ACEOF |
| 14398 | /* confdefs.h. */ |
| 14399 | _ACEOF |
| 14400 | cat confdefs.h >>conftest.$ac_ext |
| 14401 | cat >>conftest.$ac_ext <<_ACEOF |
| 14402 | /* end confdefs.h. */ |
| 14403 | #include <$ac_header> |
| 14404 | _ACEOF |
| 14405 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14406 | case "(($ac_try" in |
| 14407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14408 | *) ac_try_echo=$ac_try;; |
| 14409 | esac |
| 14410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14411 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14412 | ac_status=$? |
| 14413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14414 | rm -f conftest.er1 |
| 14415 | cat conftest.err >&5 |
| 14416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14417 | (exit $ac_status); } >/dev/null; then |
| 14418 | if test -s conftest.err; then |
| 14419 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14420 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14421 | else |
| 14422 | ac_cpp_err= |
| 14423 | fi |
| 14424 | else |
| 14425 | ac_cpp_err=yes |
| 14426 | fi |
| 14427 | if test -z "$ac_cpp_err"; then |
| 14428 | ac_header_preproc=yes |
| 14429 | else |
| 14430 | echo "$as_me: failed program was:" >&5 |
| 14431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14432 | |
| 14433 | ac_header_preproc=no |
| 14434 | fi |
| 14435 | |
| 14436 | rm -f conftest.err conftest.$ac_ext |
| 14437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14438 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14439 | |
| 14440 | # So? What about this header? |
| 14441 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14442 | yes:no: ) |
| 14443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14446 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14447 | ac_header_preproc=yes |
| 14448 | ;; |
| 14449 | no:yes:* ) |
| 14450 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14451 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14452 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14453 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14454 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14455 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14456 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14461 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14462 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14463 | ## ------------------------------------ ## |
| 14464 | ## Report this to http://llvm.org/bugs/ ## |
| 14465 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14466 | _ASBOX |
| 14467 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14468 | ;; |
| 14469 | esac |
| 14470 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14472 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14474 | else |
| 14475 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14476 | fi |
| 14477 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14478 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14479 | echo "${ECHO_T}$ac_res" >&6; } |
| 14480 | |
| 14481 | fi |
| 14482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14483 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14485 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14486 | |
| 14487 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14488 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14489 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14490 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14491 | |
| 14492 | |
| 14493 | |
| 14494 | |
| 14495 | |
| 14496 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14497 | 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] | 14498 | do |
| 14499 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14500 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14501 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14502 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14503 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14505 | fi |
| 14506 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14508 | echo "${ECHO_T}$ac_res" >&6; } |
| 14509 | else |
| 14510 | # Is the header compilable? |
| 14511 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14512 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14513 | cat >conftest.$ac_ext <<_ACEOF |
| 14514 | /* confdefs.h. */ |
| 14515 | _ACEOF |
| 14516 | cat confdefs.h >>conftest.$ac_ext |
| 14517 | cat >>conftest.$ac_ext <<_ACEOF |
| 14518 | /* end confdefs.h. */ |
| 14519 | $ac_includes_default |
| 14520 | #include <$ac_header> |
| 14521 | _ACEOF |
| 14522 | rm -f conftest.$ac_objext |
| 14523 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 14530 | ac_status=$? |
| 14531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14532 | rm -f conftest.er1 |
| 14533 | cat conftest.err >&5 |
| 14534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14535 | (exit $ac_status); } && |
| 14536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14537 | { (case "(($ac_try" in |
| 14538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14539 | *) ac_try_echo=$ac_try;; |
| 14540 | esac |
| 14541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14542 | (eval "$ac_try") 2>&5 |
| 14543 | ac_status=$? |
| 14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14545 | (exit $ac_status); }; } && |
| 14546 | { ac_try='test -s conftest.$ac_objext' |
| 14547 | { (case "(($ac_try" in |
| 14548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14549 | *) ac_try_echo=$ac_try;; |
| 14550 | esac |
| 14551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14552 | (eval "$ac_try") 2>&5 |
| 14553 | ac_status=$? |
| 14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14555 | (exit $ac_status); }; }; then |
| 14556 | ac_header_compiler=yes |
| 14557 | else |
| 14558 | echo "$as_me: failed program was:" >&5 |
| 14559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14560 | |
| 14561 | ac_header_compiler=no |
| 14562 | fi |
| 14563 | |
| 14564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14565 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14566 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14567 | |
| 14568 | # Is the header present? |
| 14569 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14570 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14571 | cat >conftest.$ac_ext <<_ACEOF |
| 14572 | /* confdefs.h. */ |
| 14573 | _ACEOF |
| 14574 | cat confdefs.h >>conftest.$ac_ext |
| 14575 | cat >>conftest.$ac_ext <<_ACEOF |
| 14576 | /* end confdefs.h. */ |
| 14577 | #include <$ac_header> |
| 14578 | _ACEOF |
| 14579 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14580 | case "(($ac_try" in |
| 14581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14582 | *) ac_try_echo=$ac_try;; |
| 14583 | esac |
| 14584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14585 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14586 | ac_status=$? |
| 14587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14588 | rm -f conftest.er1 |
| 14589 | cat conftest.err >&5 |
| 14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14591 | (exit $ac_status); } >/dev/null; then |
| 14592 | if test -s conftest.err; then |
| 14593 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14594 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14595 | else |
| 14596 | ac_cpp_err= |
| 14597 | fi |
| 14598 | else |
| 14599 | ac_cpp_err=yes |
| 14600 | fi |
| 14601 | if test -z "$ac_cpp_err"; then |
| 14602 | ac_header_preproc=yes |
| 14603 | else |
| 14604 | echo "$as_me: failed program was:" >&5 |
| 14605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14606 | |
| 14607 | ac_header_preproc=no |
| 14608 | fi |
| 14609 | |
| 14610 | rm -f conftest.err conftest.$ac_ext |
| 14611 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14612 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14613 | |
| 14614 | # So? What about this header? |
| 14615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14616 | yes:no: ) |
| 14617 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14618 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14620 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14621 | ac_header_preproc=yes |
| 14622 | ;; |
| 14623 | no:yes:* ) |
| 14624 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14625 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14626 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14627 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14628 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14629 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14630 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14631 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14633 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14634 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14635 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14636 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14637 | ## ------------------------------------ ## |
| 14638 | ## Report this to http://llvm.org/bugs/ ## |
| 14639 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14640 | _ASBOX |
| 14641 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14642 | ;; |
| 14643 | esac |
| 14644 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14648 | else |
| 14649 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14650 | fi |
| 14651 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14652 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14653 | echo "${ECHO_T}$ac_res" >&6; } |
| 14654 | |
| 14655 | fi |
| 14656 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14657 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14658 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14659 | _ACEOF |
| 14660 | |
| 14661 | fi |
| 14662 | |
| 14663 | done |
| 14664 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14665 | |
| 14666 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14667 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14668 | do |
| 14669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14675 | fi |
| 14676 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14678 | echo "${ECHO_T}$ac_res" >&6; } |
| 14679 | else |
| 14680 | # Is the header compilable? |
| 14681 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14683 | cat >conftest.$ac_ext <<_ACEOF |
| 14684 | /* confdefs.h. */ |
| 14685 | _ACEOF |
| 14686 | cat confdefs.h >>conftest.$ac_ext |
| 14687 | cat >>conftest.$ac_ext <<_ACEOF |
| 14688 | /* end confdefs.h. */ |
| 14689 | $ac_includes_default |
| 14690 | #include <$ac_header> |
| 14691 | _ACEOF |
| 14692 | rm -f conftest.$ac_objext |
| 14693 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 14700 | ac_status=$? |
| 14701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14702 | rm -f conftest.er1 |
| 14703 | cat conftest.err >&5 |
| 14704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14705 | (exit $ac_status); } && |
| 14706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14707 | { (case "(($ac_try" in |
| 14708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14709 | *) ac_try_echo=$ac_try;; |
| 14710 | esac |
| 14711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14712 | (eval "$ac_try") 2>&5 |
| 14713 | ac_status=$? |
| 14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14715 | (exit $ac_status); }; } && |
| 14716 | { ac_try='test -s conftest.$ac_objext' |
| 14717 | { (case "(($ac_try" in |
| 14718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14719 | *) ac_try_echo=$ac_try;; |
| 14720 | esac |
| 14721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14722 | (eval "$ac_try") 2>&5 |
| 14723 | ac_status=$? |
| 14724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14725 | (exit $ac_status); }; }; then |
| 14726 | ac_header_compiler=yes |
| 14727 | else |
| 14728 | echo "$as_me: failed program was:" >&5 |
| 14729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14730 | |
| 14731 | ac_header_compiler=no |
| 14732 | fi |
| 14733 | |
| 14734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14735 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14736 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14737 | |
| 14738 | # Is the header present? |
| 14739 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14740 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14741 | cat >conftest.$ac_ext <<_ACEOF |
| 14742 | /* confdefs.h. */ |
| 14743 | _ACEOF |
| 14744 | cat confdefs.h >>conftest.$ac_ext |
| 14745 | cat >>conftest.$ac_ext <<_ACEOF |
| 14746 | /* end confdefs.h. */ |
| 14747 | #include <$ac_header> |
| 14748 | _ACEOF |
| 14749 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14750 | case "(($ac_try" in |
| 14751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14752 | *) ac_try_echo=$ac_try;; |
| 14753 | esac |
| 14754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14756 | ac_status=$? |
| 14757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14758 | rm -f conftest.er1 |
| 14759 | cat conftest.err >&5 |
| 14760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14761 | (exit $ac_status); } >/dev/null; then |
| 14762 | if test -s conftest.err; then |
| 14763 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14764 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14765 | else |
| 14766 | ac_cpp_err= |
| 14767 | fi |
| 14768 | else |
| 14769 | ac_cpp_err=yes |
| 14770 | fi |
| 14771 | if test -z "$ac_cpp_err"; then |
| 14772 | ac_header_preproc=yes |
| 14773 | else |
| 14774 | echo "$as_me: failed program was:" >&5 |
| 14775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14776 | |
| 14777 | ac_header_preproc=no |
| 14778 | fi |
| 14779 | |
| 14780 | rm -f conftest.err conftest.$ac_ext |
| 14781 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14782 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14783 | |
| 14784 | # So? What about this header? |
| 14785 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14786 | yes:no: ) |
| 14787 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14788 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14789 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14790 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14791 | ac_header_preproc=yes |
| 14792 | ;; |
| 14793 | no:yes:* ) |
| 14794 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14795 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14796 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14797 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14798 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14799 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14800 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14801 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14803 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14804 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14805 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14806 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14807 | ## ------------------------------------ ## |
| 14808 | ## Report this to http://llvm.org/bugs/ ## |
| 14809 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14810 | _ASBOX |
| 14811 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14812 | ;; |
| 14813 | esac |
| 14814 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14816 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14818 | else |
| 14819 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14820 | fi |
| 14821 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14822 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14823 | echo "${ECHO_T}$ac_res" >&6; } |
| 14824 | |
| 14825 | fi |
| 14826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14827 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14829 | _ACEOF |
| 14830 | |
| 14831 | fi |
| 14832 | |
| 14833 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14834 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14835 | |
| 14836 | |
| 14837 | |
| 14838 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 14839 | |
| 14840 | 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] | 14841 | do |
| 14842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14843 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14844 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14846 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14848 | fi |
| 14849 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14850 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14851 | echo "${ECHO_T}$ac_res" >&6; } |
| 14852 | else |
| 14853 | # Is the header compilable? |
| 14854 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14855 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14856 | cat >conftest.$ac_ext <<_ACEOF |
| 14857 | /* confdefs.h. */ |
| 14858 | _ACEOF |
| 14859 | cat confdefs.h >>conftest.$ac_ext |
| 14860 | cat >>conftest.$ac_ext <<_ACEOF |
| 14861 | /* end confdefs.h. */ |
| 14862 | $ac_includes_default |
| 14863 | #include <$ac_header> |
| 14864 | _ACEOF |
| 14865 | rm -f conftest.$ac_objext |
| 14866 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 14873 | ac_status=$? |
| 14874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14875 | rm -f conftest.er1 |
| 14876 | cat conftest.err >&5 |
| 14877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14878 | (exit $ac_status); } && |
| 14879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14880 | { (case "(($ac_try" in |
| 14881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14882 | *) ac_try_echo=$ac_try;; |
| 14883 | esac |
| 14884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14885 | (eval "$ac_try") 2>&5 |
| 14886 | ac_status=$? |
| 14887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14888 | (exit $ac_status); }; } && |
| 14889 | { ac_try='test -s conftest.$ac_objext' |
| 14890 | { (case "(($ac_try" in |
| 14891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14892 | *) ac_try_echo=$ac_try;; |
| 14893 | esac |
| 14894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14895 | (eval "$ac_try") 2>&5 |
| 14896 | ac_status=$? |
| 14897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14898 | (exit $ac_status); }; }; then |
| 14899 | ac_header_compiler=yes |
| 14900 | else |
| 14901 | echo "$as_me: failed program was:" >&5 |
| 14902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14903 | |
| 14904 | ac_header_compiler=no |
| 14905 | fi |
| 14906 | |
| 14907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14908 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14909 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14910 | |
| 14911 | # Is the header present? |
| 14912 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14913 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14914 | cat >conftest.$ac_ext <<_ACEOF |
| 14915 | /* confdefs.h. */ |
| 14916 | _ACEOF |
| 14917 | cat confdefs.h >>conftest.$ac_ext |
| 14918 | cat >>conftest.$ac_ext <<_ACEOF |
| 14919 | /* end confdefs.h. */ |
| 14920 | #include <$ac_header> |
| 14921 | _ACEOF |
| 14922 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14923 | case "(($ac_try" in |
| 14924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14925 | *) ac_try_echo=$ac_try;; |
| 14926 | esac |
| 14927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14928 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14929 | ac_status=$? |
| 14930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14931 | rm -f conftest.er1 |
| 14932 | cat conftest.err >&5 |
| 14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14934 | (exit $ac_status); } >/dev/null; then |
| 14935 | if test -s conftest.err; then |
| 14936 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14937 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14938 | else |
| 14939 | ac_cpp_err= |
| 14940 | fi |
| 14941 | else |
| 14942 | ac_cpp_err=yes |
| 14943 | fi |
| 14944 | if test -z "$ac_cpp_err"; then |
| 14945 | ac_header_preproc=yes |
| 14946 | else |
| 14947 | echo "$as_me: failed program was:" >&5 |
| 14948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14949 | |
| 14950 | ac_header_preproc=no |
| 14951 | fi |
| 14952 | |
| 14953 | rm -f conftest.err conftest.$ac_ext |
| 14954 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14955 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14956 | |
| 14957 | # So? What about this header? |
| 14958 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14959 | yes:no: ) |
| 14960 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14961 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14963 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14964 | ac_header_preproc=yes |
| 14965 | ;; |
| 14966 | no:yes:* ) |
| 14967 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14968 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14969 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14970 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14971 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14972 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14973 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14974 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14976 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14977 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14978 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14979 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14980 | ## ------------------------------------ ## |
| 14981 | ## Report this to http://llvm.org/bugs/ ## |
| 14982 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14983 | _ASBOX |
| 14984 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14985 | ;; |
| 14986 | esac |
| 14987 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14991 | else |
| 14992 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14993 | fi |
| 14994 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14996 | echo "${ECHO_T}$ac_res" >&6; } |
| 14997 | |
| 14998 | fi |
| 14999 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15000 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15001 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15002 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15003 | |
| 15004 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15005 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15006 | done |
| 15007 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15008 | |
| 15009 | |
| 15010 | |
| 15011 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15012 | 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] | 15013 | do |
| 15014 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15016 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15018 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15020 | fi |
| 15021 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15022 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15023 | echo "${ECHO_T}$ac_res" >&6; } |
| 15024 | else |
| 15025 | # Is the header compilable? |
| 15026 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15027 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15028 | cat >conftest.$ac_ext <<_ACEOF |
| 15029 | /* confdefs.h. */ |
| 15030 | _ACEOF |
| 15031 | cat confdefs.h >>conftest.$ac_ext |
| 15032 | cat >>conftest.$ac_ext <<_ACEOF |
| 15033 | /* end confdefs.h. */ |
| 15034 | $ac_includes_default |
| 15035 | #include <$ac_header> |
| 15036 | _ACEOF |
| 15037 | rm -f conftest.$ac_objext |
| 15038 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 15045 | ac_status=$? |
| 15046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15047 | rm -f conftest.er1 |
| 15048 | cat conftest.err >&5 |
| 15049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15050 | (exit $ac_status); } && |
| 15051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15052 | { (case "(($ac_try" in |
| 15053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15054 | *) ac_try_echo=$ac_try;; |
| 15055 | esac |
| 15056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15057 | (eval "$ac_try") 2>&5 |
| 15058 | ac_status=$? |
| 15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15060 | (exit $ac_status); }; } && |
| 15061 | { ac_try='test -s conftest.$ac_objext' |
| 15062 | { (case "(($ac_try" in |
| 15063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15064 | *) ac_try_echo=$ac_try;; |
| 15065 | esac |
| 15066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15067 | (eval "$ac_try") 2>&5 |
| 15068 | ac_status=$? |
| 15069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15070 | (exit $ac_status); }; }; then |
| 15071 | ac_header_compiler=yes |
| 15072 | else |
| 15073 | echo "$as_me: failed program was:" >&5 |
| 15074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15075 | |
| 15076 | ac_header_compiler=no |
| 15077 | fi |
| 15078 | |
| 15079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15080 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15081 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15082 | |
| 15083 | # Is the header present? |
| 15084 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15085 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15086 | cat >conftest.$ac_ext <<_ACEOF |
| 15087 | /* confdefs.h. */ |
| 15088 | _ACEOF |
| 15089 | cat confdefs.h >>conftest.$ac_ext |
| 15090 | cat >>conftest.$ac_ext <<_ACEOF |
| 15091 | /* end confdefs.h. */ |
| 15092 | #include <$ac_header> |
| 15093 | _ACEOF |
| 15094 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15095 | case "(($ac_try" in |
| 15096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15097 | *) ac_try_echo=$ac_try;; |
| 15098 | esac |
| 15099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15101 | ac_status=$? |
| 15102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15103 | rm -f conftest.er1 |
| 15104 | cat conftest.err >&5 |
| 15105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15106 | (exit $ac_status); } >/dev/null; then |
| 15107 | if test -s conftest.err; then |
| 15108 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15109 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15110 | else |
| 15111 | ac_cpp_err= |
| 15112 | fi |
| 15113 | else |
| 15114 | ac_cpp_err=yes |
| 15115 | fi |
| 15116 | if test -z "$ac_cpp_err"; then |
| 15117 | ac_header_preproc=yes |
| 15118 | else |
| 15119 | echo "$as_me: failed program was:" >&5 |
| 15120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15121 | |
| 15122 | ac_header_preproc=no |
| 15123 | fi |
| 15124 | |
| 15125 | rm -f conftest.err conftest.$ac_ext |
| 15126 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15127 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15128 | |
| 15129 | # So? What about this header? |
| 15130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15131 | yes:no: ) |
| 15132 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15133 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15135 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15136 | ac_header_preproc=yes |
| 15137 | ;; |
| 15138 | no:yes:* ) |
| 15139 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15140 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15141 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15142 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15143 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15144 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15145 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15146 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15148 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15149 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15150 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15151 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15152 | ## ------------------------------------ ## |
| 15153 | ## Report this to http://llvm.org/bugs/ ## |
| 15154 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15155 | _ASBOX |
| 15156 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15157 | ;; |
| 15158 | esac |
| 15159 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15163 | else |
| 15164 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15165 | fi |
| 15166 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15167 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15168 | echo "${ECHO_T}$ac_res" >&6; } |
| 15169 | |
| 15170 | fi |
| 15171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15172 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15173 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15174 | _ACEOF |
| 15175 | |
| 15176 | fi |
| 15177 | |
| 15178 | done |
| 15179 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15180 | |
| 15181 | for ac_header in valgrind/valgrind.h |
| 15182 | do |
| 15183 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15184 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15185 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15189 | fi |
| 15190 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15191 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15192 | echo "${ECHO_T}$ac_res" >&6; } |
| 15193 | else |
| 15194 | # Is the header compilable? |
| 15195 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15196 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15197 | cat >conftest.$ac_ext <<_ACEOF |
| 15198 | /* confdefs.h. */ |
| 15199 | _ACEOF |
| 15200 | cat confdefs.h >>conftest.$ac_ext |
| 15201 | cat >>conftest.$ac_ext <<_ACEOF |
| 15202 | /* end confdefs.h. */ |
| 15203 | $ac_includes_default |
| 15204 | #include <$ac_header> |
| 15205 | _ACEOF |
| 15206 | rm -f conftest.$ac_objext |
| 15207 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 15214 | ac_status=$? |
| 15215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15216 | rm -f conftest.er1 |
| 15217 | cat conftest.err >&5 |
| 15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15219 | (exit $ac_status); } && |
| 15220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15221 | { (case "(($ac_try" in |
| 15222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15223 | *) ac_try_echo=$ac_try;; |
| 15224 | esac |
| 15225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15226 | (eval "$ac_try") 2>&5 |
| 15227 | ac_status=$? |
| 15228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15229 | (exit $ac_status); }; } && |
| 15230 | { ac_try='test -s conftest.$ac_objext' |
| 15231 | { (case "(($ac_try" in |
| 15232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15233 | *) ac_try_echo=$ac_try;; |
| 15234 | esac |
| 15235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15236 | (eval "$ac_try") 2>&5 |
| 15237 | ac_status=$? |
| 15238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15239 | (exit $ac_status); }; }; then |
| 15240 | ac_header_compiler=yes |
| 15241 | else |
| 15242 | echo "$as_me: failed program was:" >&5 |
| 15243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15244 | |
| 15245 | ac_header_compiler=no |
| 15246 | fi |
| 15247 | |
| 15248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15249 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15250 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15251 | |
| 15252 | # Is the header present? |
| 15253 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15254 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15255 | cat >conftest.$ac_ext <<_ACEOF |
| 15256 | /* confdefs.h. */ |
| 15257 | _ACEOF |
| 15258 | cat confdefs.h >>conftest.$ac_ext |
| 15259 | cat >>conftest.$ac_ext <<_ACEOF |
| 15260 | /* end confdefs.h. */ |
| 15261 | #include <$ac_header> |
| 15262 | _ACEOF |
| 15263 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15264 | case "(($ac_try" in |
| 15265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15266 | *) ac_try_echo=$ac_try;; |
| 15267 | esac |
| 15268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15269 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15270 | ac_status=$? |
| 15271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15272 | rm -f conftest.er1 |
| 15273 | cat conftest.err >&5 |
| 15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15275 | (exit $ac_status); } >/dev/null; then |
| 15276 | if test -s conftest.err; then |
| 15277 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15278 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15279 | else |
| 15280 | ac_cpp_err= |
| 15281 | fi |
| 15282 | else |
| 15283 | ac_cpp_err=yes |
| 15284 | fi |
| 15285 | if test -z "$ac_cpp_err"; then |
| 15286 | ac_header_preproc=yes |
| 15287 | else |
| 15288 | echo "$as_me: failed program was:" >&5 |
| 15289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15290 | |
| 15291 | ac_header_preproc=no |
| 15292 | fi |
| 15293 | |
| 15294 | rm -f conftest.err conftest.$ac_ext |
| 15295 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15296 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15297 | |
| 15298 | # So? What about this header? |
| 15299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15300 | yes:no: ) |
| 15301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15304 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15305 | ac_header_preproc=yes |
| 15306 | ;; |
| 15307 | no:yes:* ) |
| 15308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15312 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15313 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15314 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15315 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15318 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15319 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15320 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15321 | ## ------------------------------------ ## |
| 15322 | ## Report this to http://llvm.org/bugs/ ## |
| 15323 | ## ------------------------------------ ## |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15324 | _ASBOX |
| 15325 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15326 | ;; |
| 15327 | esac |
| 15328 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15332 | else |
| 15333 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15334 | fi |
| 15335 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15336 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15337 | echo "${ECHO_T}$ac_res" >&6; } |
| 15338 | |
| 15339 | fi |
| 15340 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15341 | cat >>confdefs.h <<_ACEOF |
| 15342 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15343 | _ACEOF |
| 15344 | |
| 15345 | fi |
| 15346 | |
| 15347 | done |
| 15348 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15349 | |
| 15350 | for ac_header in fenv.h |
| 15351 | do |
| 15352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15354 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15356 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15358 | fi |
| 15359 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15360 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15361 | echo "${ECHO_T}$ac_res" >&6; } |
| 15362 | else |
| 15363 | # Is the header compilable? |
| 15364 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15365 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15366 | cat >conftest.$ac_ext <<_ACEOF |
| 15367 | /* confdefs.h. */ |
| 15368 | _ACEOF |
| 15369 | cat confdefs.h >>conftest.$ac_ext |
| 15370 | cat >>conftest.$ac_ext <<_ACEOF |
| 15371 | /* end confdefs.h. */ |
| 15372 | $ac_includes_default |
| 15373 | #include <$ac_header> |
| 15374 | _ACEOF |
| 15375 | rm -f conftest.$ac_objext |
| 15376 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 15383 | ac_status=$? |
| 15384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15385 | rm -f conftest.er1 |
| 15386 | cat conftest.err >&5 |
| 15387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15388 | (exit $ac_status); } && |
| 15389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15390 | { (case "(($ac_try" in |
| 15391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15392 | *) ac_try_echo=$ac_try;; |
| 15393 | esac |
| 15394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15395 | (eval "$ac_try") 2>&5 |
| 15396 | ac_status=$? |
| 15397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15398 | (exit $ac_status); }; } && |
| 15399 | { ac_try='test -s conftest.$ac_objext' |
| 15400 | { (case "(($ac_try" in |
| 15401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15402 | *) ac_try_echo=$ac_try;; |
| 15403 | esac |
| 15404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15405 | (eval "$ac_try") 2>&5 |
| 15406 | ac_status=$? |
| 15407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15408 | (exit $ac_status); }; }; then |
| 15409 | ac_header_compiler=yes |
| 15410 | else |
| 15411 | echo "$as_me: failed program was:" >&5 |
| 15412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15413 | |
| 15414 | ac_header_compiler=no |
| 15415 | fi |
| 15416 | |
| 15417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15418 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15419 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15420 | |
| 15421 | # Is the header present? |
| 15422 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15423 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15424 | cat >conftest.$ac_ext <<_ACEOF |
| 15425 | /* confdefs.h. */ |
| 15426 | _ACEOF |
| 15427 | cat confdefs.h >>conftest.$ac_ext |
| 15428 | cat >>conftest.$ac_ext <<_ACEOF |
| 15429 | /* end confdefs.h. */ |
| 15430 | #include <$ac_header> |
| 15431 | _ACEOF |
| 15432 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15433 | case "(($ac_try" in |
| 15434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15435 | *) ac_try_echo=$ac_try;; |
| 15436 | esac |
| 15437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15438 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15439 | ac_status=$? |
| 15440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15441 | rm -f conftest.er1 |
| 15442 | cat conftest.err >&5 |
| 15443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15444 | (exit $ac_status); } >/dev/null; then |
| 15445 | if test -s conftest.err; then |
| 15446 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15448 | else |
| 15449 | ac_cpp_err= |
| 15450 | fi |
| 15451 | else |
| 15452 | ac_cpp_err=yes |
| 15453 | fi |
| 15454 | if test -z "$ac_cpp_err"; then |
| 15455 | ac_header_preproc=yes |
| 15456 | else |
| 15457 | echo "$as_me: failed program was:" >&5 |
| 15458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15459 | |
| 15460 | ac_header_preproc=no |
| 15461 | fi |
| 15462 | |
| 15463 | rm -f conftest.err conftest.$ac_ext |
| 15464 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15465 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15466 | |
| 15467 | # So? What about this header? |
| 15468 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15469 | yes:no: ) |
| 15470 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15471 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15473 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15474 | ac_header_preproc=yes |
| 15475 | ;; |
| 15476 | no:yes:* ) |
| 15477 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15478 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15479 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15480 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15481 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15482 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15483 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15484 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15485 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15486 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15487 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15488 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15489 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15490 | ## ------------------------------------ ## |
| 15491 | ## Report this to http://llvm.org/bugs/ ## |
| 15492 | ## ------------------------------------ ## |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15493 | _ASBOX |
| 15494 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15495 | ;; |
| 15496 | esac |
| 15497 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15499 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15501 | else |
| 15502 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15503 | fi |
| 15504 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15505 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15506 | echo "${ECHO_T}$ac_res" >&6; } |
| 15507 | |
| 15508 | fi |
| 15509 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15510 | cat >>confdefs.h <<_ACEOF |
| 15511 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15512 | _ACEOF |
| 15513 | |
| 15514 | fi |
| 15515 | |
| 15516 | done |
| 15517 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 15518 | if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15519 | |
| 15520 | for ac_header in pthread.h |
| 15521 | do |
| 15522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15524 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15528 | fi |
| 15529 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15530 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15531 | echo "${ECHO_T}$ac_res" >&6; } |
| 15532 | else |
| 15533 | # Is the header compilable? |
| 15534 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15535 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15536 | cat >conftest.$ac_ext <<_ACEOF |
| 15537 | /* confdefs.h. */ |
| 15538 | _ACEOF |
| 15539 | cat confdefs.h >>conftest.$ac_ext |
| 15540 | cat >>conftest.$ac_ext <<_ACEOF |
| 15541 | /* end confdefs.h. */ |
| 15542 | $ac_includes_default |
| 15543 | #include <$ac_header> |
| 15544 | _ACEOF |
| 15545 | rm -f conftest.$ac_objext |
| 15546 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 15553 | ac_status=$? |
| 15554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15555 | rm -f conftest.er1 |
| 15556 | cat conftest.err >&5 |
| 15557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15558 | (exit $ac_status); } && |
| 15559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15560 | { (case "(($ac_try" in |
| 15561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15562 | *) ac_try_echo=$ac_try;; |
| 15563 | esac |
| 15564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15565 | (eval "$ac_try") 2>&5 |
| 15566 | ac_status=$? |
| 15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15568 | (exit $ac_status); }; } && |
| 15569 | { ac_try='test -s conftest.$ac_objext' |
| 15570 | { (case "(($ac_try" in |
| 15571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15572 | *) ac_try_echo=$ac_try;; |
| 15573 | esac |
| 15574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15575 | (eval "$ac_try") 2>&5 |
| 15576 | ac_status=$? |
| 15577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15578 | (exit $ac_status); }; }; then |
| 15579 | ac_header_compiler=yes |
| 15580 | else |
| 15581 | echo "$as_me: failed program was:" >&5 |
| 15582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15583 | |
| 15584 | ac_header_compiler=no |
| 15585 | fi |
| 15586 | |
| 15587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15588 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15589 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15590 | |
| 15591 | # Is the header present? |
| 15592 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15593 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15594 | cat >conftest.$ac_ext <<_ACEOF |
| 15595 | /* confdefs.h. */ |
| 15596 | _ACEOF |
| 15597 | cat confdefs.h >>conftest.$ac_ext |
| 15598 | cat >>conftest.$ac_ext <<_ACEOF |
| 15599 | /* end confdefs.h. */ |
| 15600 | #include <$ac_header> |
| 15601 | _ACEOF |
| 15602 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15603 | case "(($ac_try" in |
| 15604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15605 | *) ac_try_echo=$ac_try;; |
| 15606 | esac |
| 15607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15608 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15609 | ac_status=$? |
| 15610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15611 | rm -f conftest.er1 |
| 15612 | cat conftest.err >&5 |
| 15613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15614 | (exit $ac_status); } >/dev/null; then |
| 15615 | if test -s conftest.err; then |
| 15616 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15617 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15618 | else |
| 15619 | ac_cpp_err= |
| 15620 | fi |
| 15621 | else |
| 15622 | ac_cpp_err=yes |
| 15623 | fi |
| 15624 | if test -z "$ac_cpp_err"; then |
| 15625 | ac_header_preproc=yes |
| 15626 | else |
| 15627 | echo "$as_me: failed program was:" >&5 |
| 15628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15629 | |
| 15630 | ac_header_preproc=no |
| 15631 | fi |
| 15632 | |
| 15633 | rm -f conftest.err conftest.$ac_ext |
| 15634 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15635 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15636 | |
| 15637 | # So? What about this header? |
| 15638 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15639 | yes:no: ) |
| 15640 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15641 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15643 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15644 | ac_header_preproc=yes |
| 15645 | ;; |
| 15646 | no:yes:* ) |
| 15647 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15648 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15649 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15650 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15651 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15652 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15653 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15654 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15656 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15657 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15658 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15659 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15660 | ## ------------------------------------ ## |
| 15661 | ## Report this to http://llvm.org/bugs/ ## |
| 15662 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15663 | _ASBOX |
| 15664 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15665 | ;; |
| 15666 | esac |
| 15667 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15668 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15669 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15671 | else |
| 15672 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15673 | fi |
| 15674 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15675 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15676 | echo "${ECHO_T}$ac_res" >&6; } |
| 15677 | |
| 15678 | fi |
| 15679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15680 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15681 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15682 | _ACEOF |
| 15683 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15684 | |
| 15685 | else |
| 15686 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15687 | |
| 15688 | fi |
| 15689 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15690 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15691 | |
| 15692 | else |
| 15693 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15694 | |
| 15695 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15696 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15697 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15698 | |
| 15699 | |
| 15700 | for ac_header in ffi.h ffi/ffi.h |
| 15701 | do |
| 15702 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15703 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15704 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15705 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15708 | fi |
| 15709 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15710 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15711 | echo "${ECHO_T}$ac_res" >&6; } |
| 15712 | else |
| 15713 | # Is the header compilable? |
| 15714 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15715 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15716 | cat >conftest.$ac_ext <<_ACEOF |
| 15717 | /* confdefs.h. */ |
| 15718 | _ACEOF |
| 15719 | cat confdefs.h >>conftest.$ac_ext |
| 15720 | cat >>conftest.$ac_ext <<_ACEOF |
| 15721 | /* end confdefs.h. */ |
| 15722 | $ac_includes_default |
| 15723 | #include <$ac_header> |
| 15724 | _ACEOF |
| 15725 | rm -f conftest.$ac_objext |
| 15726 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 15733 | ac_status=$? |
| 15734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15735 | rm -f conftest.er1 |
| 15736 | cat conftest.err >&5 |
| 15737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15738 | (exit $ac_status); } && |
| 15739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15740 | { (case "(($ac_try" in |
| 15741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15742 | *) ac_try_echo=$ac_try;; |
| 15743 | esac |
| 15744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15745 | (eval "$ac_try") 2>&5 |
| 15746 | ac_status=$? |
| 15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15748 | (exit $ac_status); }; } && |
| 15749 | { ac_try='test -s conftest.$ac_objext' |
| 15750 | { (case "(($ac_try" in |
| 15751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15752 | *) ac_try_echo=$ac_try;; |
| 15753 | esac |
| 15754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15755 | (eval "$ac_try") 2>&5 |
| 15756 | ac_status=$? |
| 15757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15758 | (exit $ac_status); }; }; then |
| 15759 | ac_header_compiler=yes |
| 15760 | else |
| 15761 | echo "$as_me: failed program was:" >&5 |
| 15762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15763 | |
| 15764 | ac_header_compiler=no |
| 15765 | fi |
| 15766 | |
| 15767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15768 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15769 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15770 | |
| 15771 | # Is the header present? |
| 15772 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15773 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15774 | cat >conftest.$ac_ext <<_ACEOF |
| 15775 | /* confdefs.h. */ |
| 15776 | _ACEOF |
| 15777 | cat confdefs.h >>conftest.$ac_ext |
| 15778 | cat >>conftest.$ac_ext <<_ACEOF |
| 15779 | /* end confdefs.h. */ |
| 15780 | #include <$ac_header> |
| 15781 | _ACEOF |
| 15782 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15783 | case "(($ac_try" in |
| 15784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15785 | *) ac_try_echo=$ac_try;; |
| 15786 | esac |
| 15787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15788 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15789 | ac_status=$? |
| 15790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15791 | rm -f conftest.er1 |
| 15792 | cat conftest.err >&5 |
| 15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15794 | (exit $ac_status); } >/dev/null; then |
| 15795 | if test -s conftest.err; then |
| 15796 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15798 | else |
| 15799 | ac_cpp_err= |
| 15800 | fi |
| 15801 | else |
| 15802 | ac_cpp_err=yes |
| 15803 | fi |
| 15804 | if test -z "$ac_cpp_err"; then |
| 15805 | ac_header_preproc=yes |
| 15806 | else |
| 15807 | echo "$as_me: failed program was:" >&5 |
| 15808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15809 | |
| 15810 | ac_header_preproc=no |
| 15811 | fi |
| 15812 | |
| 15813 | rm -f conftest.err conftest.$ac_ext |
| 15814 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15815 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15816 | |
| 15817 | # So? What about this header? |
| 15818 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15819 | yes:no: ) |
| 15820 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15821 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15822 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15823 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15824 | ac_header_preproc=yes |
| 15825 | ;; |
| 15826 | no:yes:* ) |
| 15827 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15828 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15829 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15830 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15831 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15832 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15833 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15834 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15835 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15836 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15837 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15838 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15839 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15840 | ## ------------------------------------ ## |
| 15841 | ## Report this to http://llvm.org/bugs/ ## |
| 15842 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15843 | _ASBOX |
| 15844 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15845 | ;; |
| 15846 | esac |
| 15847 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15849 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15851 | else |
| 15852 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15853 | fi |
| 15854 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15856 | echo "${ECHO_T}$ac_res" >&6; } |
| 15857 | |
| 15858 | fi |
| 15859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15860 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15861 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15862 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15863 | |
| 15864 | fi |
| 15865 | |
| 15866 | done |
| 15867 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15868 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15869 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 15870 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 15871 | for ac_header in CrashReporterClient.h |
| 15872 | do |
| 15873 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15875 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15877 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15879 | fi |
| 15880 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15881 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15882 | echo "${ECHO_T}$ac_res" >&6; } |
| 15883 | else |
| 15884 | # Is the header compilable? |
| 15885 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15886 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15887 | cat >conftest.$ac_ext <<_ACEOF |
| 15888 | /* confdefs.h. */ |
| 15889 | _ACEOF |
| 15890 | cat confdefs.h >>conftest.$ac_ext |
| 15891 | cat >>conftest.$ac_ext <<_ACEOF |
| 15892 | /* end confdefs.h. */ |
| 15893 | $ac_includes_default |
| 15894 | #include <$ac_header> |
| 15895 | _ACEOF |
| 15896 | rm -f conftest.$ac_objext |
| 15897 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 15904 | ac_status=$? |
| 15905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15906 | rm -f conftest.er1 |
| 15907 | cat conftest.err >&5 |
| 15908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15909 | (exit $ac_status); } && |
| 15910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15911 | { (case "(($ac_try" in |
| 15912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15913 | *) ac_try_echo=$ac_try;; |
| 15914 | esac |
| 15915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15916 | (eval "$ac_try") 2>&5 |
| 15917 | ac_status=$? |
| 15918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15919 | (exit $ac_status); }; } && |
| 15920 | { ac_try='test -s conftest.$ac_objext' |
| 15921 | { (case "(($ac_try" in |
| 15922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15923 | *) ac_try_echo=$ac_try;; |
| 15924 | esac |
| 15925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15926 | (eval "$ac_try") 2>&5 |
| 15927 | ac_status=$? |
| 15928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15929 | (exit $ac_status); }; }; then |
| 15930 | ac_header_compiler=yes |
| 15931 | else |
| 15932 | echo "$as_me: failed program was:" >&5 |
| 15933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15934 | |
| 15935 | ac_header_compiler=no |
| 15936 | fi |
| 15937 | |
| 15938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15939 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15940 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15941 | |
| 15942 | # Is the header present? |
| 15943 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15944 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15945 | cat >conftest.$ac_ext <<_ACEOF |
| 15946 | /* confdefs.h. */ |
| 15947 | _ACEOF |
| 15948 | cat confdefs.h >>conftest.$ac_ext |
| 15949 | cat >>conftest.$ac_ext <<_ACEOF |
| 15950 | /* end confdefs.h. */ |
| 15951 | #include <$ac_header> |
| 15952 | _ACEOF |
| 15953 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15954 | case "(($ac_try" in |
| 15955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15956 | *) ac_try_echo=$ac_try;; |
| 15957 | esac |
| 15958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15959 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15960 | ac_status=$? |
| 15961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15962 | rm -f conftest.er1 |
| 15963 | cat conftest.err >&5 |
| 15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15965 | (exit $ac_status); } >/dev/null; then |
| 15966 | if test -s conftest.err; then |
| 15967 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15968 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15969 | else |
| 15970 | ac_cpp_err= |
| 15971 | fi |
| 15972 | else |
| 15973 | ac_cpp_err=yes |
| 15974 | fi |
| 15975 | if test -z "$ac_cpp_err"; then |
| 15976 | ac_header_preproc=yes |
| 15977 | else |
| 15978 | echo "$as_me: failed program was:" >&5 |
| 15979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15980 | |
| 15981 | ac_header_preproc=no |
| 15982 | fi |
| 15983 | |
| 15984 | rm -f conftest.err conftest.$ac_ext |
| 15985 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15986 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15987 | |
| 15988 | # So? What about this header? |
| 15989 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15990 | yes:no: ) |
| 15991 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15992 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15994 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15995 | ac_header_preproc=yes |
| 15996 | ;; |
| 15997 | no:yes:* ) |
| 15998 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15999 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16000 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16001 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16002 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16003 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16004 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16005 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16006 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16007 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16008 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16009 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16010 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16011 | ## ------------------------------------ ## |
| 16012 | ## Report this to http://llvm.org/bugs/ ## |
| 16013 | ## ------------------------------------ ## |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16014 | _ASBOX |
| 16015 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16016 | ;; |
| 16017 | esac |
| 16018 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16020 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16022 | else |
| 16023 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16024 | fi |
| 16025 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16026 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16027 | echo "${ECHO_T}$ac_res" >&6; } |
| 16028 | |
| 16029 | fi |
| 16030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16031 | cat >>confdefs.h <<_ACEOF |
| 16032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16033 | _ACEOF |
| 16034 | |
| 16035 | fi |
| 16036 | |
| 16037 | done |
| 16038 | |
| 16039 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16040 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 16041 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16042 | cat >conftest.$ac_ext <<_ACEOF |
| 16043 | /* confdefs.h. */ |
| 16044 | _ACEOF |
| 16045 | cat confdefs.h >>conftest.$ac_ext |
| 16046 | cat >>conftest.$ac_ext <<_ACEOF |
| 16047 | /* end confdefs.h. */ |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16048 | extern const char *__crashreporter_info__; |
| 16049 | int main() { |
| 16050 | __crashreporter_info__ = "test"; |
| 16051 | return 0; |
| 16052 | } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16053 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16054 | _ACEOF |
| 16055 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16056 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 16063 | ac_status=$? |
| 16064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16065 | rm -f conftest.er1 |
| 16066 | cat conftest.err >&5 |
| 16067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16068 | (exit $ac_status); } && |
| 16069 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16070 | { (case "(($ac_try" in |
| 16071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16072 | *) ac_try_echo=$ac_try;; |
| 16073 | esac |
| 16074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16075 | (eval "$ac_try") 2>&5 |
| 16076 | ac_status=$? |
| 16077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16078 | (exit $ac_status); }; } && |
| 16079 | { ac_try='test -s conftest$ac_exeext' |
| 16080 | { (case "(($ac_try" in |
| 16081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16082 | *) ac_try_echo=$ac_try;; |
| 16083 | esac |
| 16084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16085 | (eval "$ac_try") 2>&5 |
| 16086 | ac_status=$? |
| 16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16088 | (exit $ac_status); }; }; then |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16089 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16090 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16091 | |
| 16092 | cat >>confdefs.h <<\_ACEOF |
| 16093 | #define HAVE_CRASHREPORTER_INFO 1 |
| 16094 | _ACEOF |
| 16095 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16096 | else |
| 16097 | echo "$as_me: failed program was:" >&5 |
| 16098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16099 | |
| 16100 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16101 | echo "${ECHO_T}no" >&6; } |
| 16102 | |
| 16103 | cat >>confdefs.h <<\_ACEOF |
| 16104 | #define HAVE_CRASHREPORTER_INFO 0 |
| 16105 | _ACEOF |
| 16106 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16107 | fi |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16108 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16109 | rm -f core conftest.err conftest.$ac_objext \ |
| 16110 | conftest$ac_exeext conftest.$ac_ext |
| 16111 | |
| 16112 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16113 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16114 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16115 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16116 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16117 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16119 | else |
| 16120 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16121 | ac_ext=cpp |
| 16122 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16126 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16127 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16128 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16129 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16130 | ac_cv_huge_val_sanity=yes |
| 16131 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16132 | cat >conftest.$ac_ext <<_ACEOF |
| 16133 | /* confdefs.h. */ |
| 16134 | _ACEOF |
| 16135 | cat confdefs.h >>conftest.$ac_ext |
| 16136 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16137 | /* end confdefs.h. */ |
| 16138 | #include <math.h> |
| 16139 | int |
| 16140 | main () |
| 16141 | { |
| 16142 | double x = HUGE_VAL; return x != x; |
| 16143 | ; |
| 16144 | return 0; |
| 16145 | } |
| 16146 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16147 | rm -f conftest$ac_exeext |
| 16148 | if { (ac_try="$ac_link" |
| 16149 | case "(($ac_try" in |
| 16150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16151 | *) ac_try_echo=$ac_try;; |
| 16152 | esac |
| 16153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16154 | (eval "$ac_link") 2>&5 |
| 16155 | ac_status=$? |
| 16156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16157 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16158 | { (case "(($ac_try" in |
| 16159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16160 | *) ac_try_echo=$ac_try;; |
| 16161 | esac |
| 16162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16163 | (eval "$ac_try") 2>&5 |
| 16164 | ac_status=$? |
| 16165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16166 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16167 | ac_cv_huge_val_sanity=yes |
| 16168 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16169 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16170 | echo "$as_me: failed program was:" >&5 |
| 16171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16172 | |
| 16173 | ( exit $ac_status ) |
| 16174 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16175 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16176 | 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] | 16177 | fi |
| 16178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16179 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16180 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16181 | ac_ext=c |
| 16182 | ac_cpp='$CPP $CPPFLAGS' |
| 16183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16186 | |
| 16187 | |
| 16188 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16189 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16190 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16191 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16192 | |
| 16193 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16194 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16195 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16196 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16198 | else |
| 16199 | cat >conftest.$ac_ext <<_ACEOF |
| 16200 | /* confdefs.h. */ |
| 16201 | _ACEOF |
| 16202 | cat confdefs.h >>conftest.$ac_ext |
| 16203 | cat >>conftest.$ac_ext <<_ACEOF |
| 16204 | /* end confdefs.h. */ |
| 16205 | $ac_includes_default |
| 16206 | typedef pid_t ac__type_new_; |
| 16207 | int |
| 16208 | main () |
| 16209 | { |
| 16210 | if ((ac__type_new_ *) 0) |
| 16211 | return 0; |
| 16212 | if (sizeof (ac__type_new_)) |
| 16213 | return 0; |
| 16214 | ; |
| 16215 | return 0; |
| 16216 | } |
| 16217 | _ACEOF |
| 16218 | rm -f conftest.$ac_objext |
| 16219 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 16226 | ac_status=$? |
| 16227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16228 | rm -f conftest.er1 |
| 16229 | cat conftest.err >&5 |
| 16230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16231 | (exit $ac_status); } && |
| 16232 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16233 | { (case "(($ac_try" in |
| 16234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16235 | *) ac_try_echo=$ac_try;; |
| 16236 | esac |
| 16237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16238 | (eval "$ac_try") 2>&5 |
| 16239 | ac_status=$? |
| 16240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16241 | (exit $ac_status); }; } && |
| 16242 | { ac_try='test -s conftest.$ac_objext' |
| 16243 | { (case "(($ac_try" in |
| 16244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16245 | *) ac_try_echo=$ac_try;; |
| 16246 | esac |
| 16247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16248 | (eval "$ac_try") 2>&5 |
| 16249 | ac_status=$? |
| 16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16251 | (exit $ac_status); }; }; then |
| 16252 | ac_cv_type_pid_t=yes |
| 16253 | else |
| 16254 | echo "$as_me: failed program was:" >&5 |
| 16255 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16256 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16257 | ac_cv_type_pid_t=no |
| 16258 | fi |
| 16259 | |
| 16260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16261 | fi |
| 16262 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16263 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16264 | if test $ac_cv_type_pid_t = yes; then |
| 16265 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16266 | else |
| 16267 | |
| 16268 | cat >>confdefs.h <<_ACEOF |
| 16269 | #define pid_t int |
| 16270 | _ACEOF |
| 16271 | |
| 16272 | fi |
| 16273 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16274 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16275 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16276 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16278 | else |
| 16279 | cat >conftest.$ac_ext <<_ACEOF |
| 16280 | /* confdefs.h. */ |
| 16281 | _ACEOF |
| 16282 | cat confdefs.h >>conftest.$ac_ext |
| 16283 | cat >>conftest.$ac_ext <<_ACEOF |
| 16284 | /* end confdefs.h. */ |
| 16285 | $ac_includes_default |
| 16286 | typedef size_t ac__type_new_; |
| 16287 | int |
| 16288 | main () |
| 16289 | { |
| 16290 | if ((ac__type_new_ *) 0) |
| 16291 | return 0; |
| 16292 | if (sizeof (ac__type_new_)) |
| 16293 | return 0; |
| 16294 | ; |
| 16295 | return 0; |
| 16296 | } |
| 16297 | _ACEOF |
| 16298 | rm -f conftest.$ac_objext |
| 16299 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 16306 | ac_status=$? |
| 16307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16308 | rm -f conftest.er1 |
| 16309 | cat conftest.err >&5 |
| 16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16311 | (exit $ac_status); } && |
| 16312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16313 | { (case "(($ac_try" in |
| 16314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16315 | *) ac_try_echo=$ac_try;; |
| 16316 | esac |
| 16317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16318 | (eval "$ac_try") 2>&5 |
| 16319 | ac_status=$? |
| 16320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16321 | (exit $ac_status); }; } && |
| 16322 | { ac_try='test -s conftest.$ac_objext' |
| 16323 | { (case "(($ac_try" in |
| 16324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16325 | *) ac_try_echo=$ac_try;; |
| 16326 | esac |
| 16327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16328 | (eval "$ac_try") 2>&5 |
| 16329 | ac_status=$? |
| 16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16331 | (exit $ac_status); }; }; then |
| 16332 | ac_cv_type_size_t=yes |
| 16333 | else |
| 16334 | echo "$as_me: failed program was:" >&5 |
| 16335 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16336 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16337 | ac_cv_type_size_t=no |
| 16338 | fi |
| 16339 | |
| 16340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16341 | fi |
| 16342 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16343 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16344 | if test $ac_cv_type_size_t = yes; then |
| 16345 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16346 | else |
| 16347 | |
| 16348 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16349 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16350 | _ACEOF |
| 16351 | |
| 16352 | fi |
| 16353 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16354 | |
| 16355 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16356 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16357 | _ACEOF |
| 16358 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16359 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16360 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16361 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16364 | cat >conftest.$ac_ext <<_ACEOF |
| 16365 | /* confdefs.h. */ |
| 16366 | _ACEOF |
| 16367 | cat confdefs.h >>conftest.$ac_ext |
| 16368 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16369 | /* end confdefs.h. */ |
| 16370 | #include <sys/types.h> |
| 16371 | #include <time.h> |
| 16372 | |
| 16373 | int |
| 16374 | main () |
| 16375 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16376 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16377 | ; |
| 16378 | return 0; |
| 16379 | } |
| 16380 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16381 | rm -f conftest.$ac_objext |
| 16382 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 16389 | ac_status=$? |
| 16390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16391 | rm -f conftest.er1 |
| 16392 | cat conftest.err >&5 |
| 16393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16394 | (exit $ac_status); } && |
| 16395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16396 | { (case "(($ac_try" in |
| 16397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16398 | *) ac_try_echo=$ac_try;; |
| 16399 | esac |
| 16400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16401 | (eval "$ac_try") 2>&5 |
| 16402 | ac_status=$? |
| 16403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16404 | (exit $ac_status); }; } && |
| 16405 | { ac_try='test -s conftest.$ac_objext' |
| 16406 | { (case "(($ac_try" in |
| 16407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16408 | *) ac_try_echo=$ac_try;; |
| 16409 | esac |
| 16410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16411 | (eval "$ac_try") 2>&5 |
| 16412 | ac_status=$? |
| 16413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16414 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16415 | ac_cv_struct_tm=time.h |
| 16416 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16417 | echo "$as_me: failed program was:" >&5 |
| 16418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16419 | |
| 16420 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16421 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16424 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16425 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16426 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16427 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16428 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16429 | cat >>confdefs.h <<\_ACEOF |
| 16430 | #define TM_IN_SYS_TIME 1 |
| 16431 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16432 | |
| 16433 | fi |
| 16434 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16435 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16436 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16437 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16439 | else |
| 16440 | cat >conftest.$ac_ext <<_ACEOF |
| 16441 | /* confdefs.h. */ |
| 16442 | _ACEOF |
| 16443 | cat confdefs.h >>conftest.$ac_ext |
| 16444 | cat >>conftest.$ac_ext <<_ACEOF |
| 16445 | /* end confdefs.h. */ |
| 16446 | $ac_includes_default |
| 16447 | typedef int64_t ac__type_new_; |
| 16448 | int |
| 16449 | main () |
| 16450 | { |
| 16451 | if ((ac__type_new_ *) 0) |
| 16452 | return 0; |
| 16453 | if (sizeof (ac__type_new_)) |
| 16454 | return 0; |
| 16455 | ; |
| 16456 | return 0; |
| 16457 | } |
| 16458 | _ACEOF |
| 16459 | rm -f conftest.$ac_objext |
| 16460 | if { (ac_try="$ac_compile" |
| 16461 | case "(($ac_try" in |
| 16462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16463 | *) ac_try_echo=$ac_try;; |
| 16464 | esac |
| 16465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16466 | (eval "$ac_compile") 2>conftest.er1 |
| 16467 | ac_status=$? |
| 16468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16469 | rm -f conftest.er1 |
| 16470 | cat conftest.err >&5 |
| 16471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16472 | (exit $ac_status); } && |
| 16473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16474 | { (case "(($ac_try" in |
| 16475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16476 | *) ac_try_echo=$ac_try;; |
| 16477 | esac |
| 16478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16479 | (eval "$ac_try") 2>&5 |
| 16480 | ac_status=$? |
| 16481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16482 | (exit $ac_status); }; } && |
| 16483 | { ac_try='test -s conftest.$ac_objext' |
| 16484 | { (case "(($ac_try" in |
| 16485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16486 | *) ac_try_echo=$ac_try;; |
| 16487 | esac |
| 16488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16489 | (eval "$ac_try") 2>&5 |
| 16490 | ac_status=$? |
| 16491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16492 | (exit $ac_status); }; }; then |
| 16493 | ac_cv_type_int64_t=yes |
| 16494 | else |
| 16495 | echo "$as_me: failed program was:" >&5 |
| 16496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16497 | |
| 16498 | ac_cv_type_int64_t=no |
| 16499 | fi |
| 16500 | |
| 16501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16502 | fi |
| 16503 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16504 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16505 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16506 | |
| 16507 | cat >>confdefs.h <<_ACEOF |
| 16508 | #define HAVE_INT64_T 1 |
| 16509 | _ACEOF |
| 16510 | |
| 16511 | |
| 16512 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16513 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16514 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16515 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16516 | fi |
| 16517 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16518 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16519 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16520 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16522 | else |
| 16523 | cat >conftest.$ac_ext <<_ACEOF |
| 16524 | /* confdefs.h. */ |
| 16525 | _ACEOF |
| 16526 | cat confdefs.h >>conftest.$ac_ext |
| 16527 | cat >>conftest.$ac_ext <<_ACEOF |
| 16528 | /* end confdefs.h. */ |
| 16529 | $ac_includes_default |
| 16530 | typedef uint64_t ac__type_new_; |
| 16531 | int |
| 16532 | main () |
| 16533 | { |
| 16534 | if ((ac__type_new_ *) 0) |
| 16535 | return 0; |
| 16536 | if (sizeof (ac__type_new_)) |
| 16537 | return 0; |
| 16538 | ; |
| 16539 | return 0; |
| 16540 | } |
| 16541 | _ACEOF |
| 16542 | rm -f conftest.$ac_objext |
| 16543 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 16550 | ac_status=$? |
| 16551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16552 | rm -f conftest.er1 |
| 16553 | cat conftest.err >&5 |
| 16554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16555 | (exit $ac_status); } && |
| 16556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16557 | { (case "(($ac_try" in |
| 16558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16559 | *) ac_try_echo=$ac_try;; |
| 16560 | esac |
| 16561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16562 | (eval "$ac_try") 2>&5 |
| 16563 | ac_status=$? |
| 16564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16565 | (exit $ac_status); }; } && |
| 16566 | { ac_try='test -s conftest.$ac_objext' |
| 16567 | { (case "(($ac_try" in |
| 16568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16569 | *) ac_try_echo=$ac_try;; |
| 16570 | esac |
| 16571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16572 | (eval "$ac_try") 2>&5 |
| 16573 | ac_status=$? |
| 16574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16575 | (exit $ac_status); }; }; then |
| 16576 | ac_cv_type_uint64_t=yes |
| 16577 | else |
| 16578 | echo "$as_me: failed program was:" >&5 |
| 16579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16580 | |
| 16581 | ac_cv_type_uint64_t=no |
| 16582 | fi |
| 16583 | |
| 16584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16585 | fi |
| 16586 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16587 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16588 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16589 | |
| 16590 | cat >>confdefs.h <<_ACEOF |
| 16591 | #define HAVE_UINT64_T 1 |
| 16592 | _ACEOF |
| 16593 | |
| 16594 | |
| 16595 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16596 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16597 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16598 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16600 | else |
| 16601 | cat >conftest.$ac_ext <<_ACEOF |
| 16602 | /* confdefs.h. */ |
| 16603 | _ACEOF |
| 16604 | cat confdefs.h >>conftest.$ac_ext |
| 16605 | cat >>conftest.$ac_ext <<_ACEOF |
| 16606 | /* end confdefs.h. */ |
| 16607 | $ac_includes_default |
| 16608 | typedef u_int64_t ac__type_new_; |
| 16609 | int |
| 16610 | main () |
| 16611 | { |
| 16612 | if ((ac__type_new_ *) 0) |
| 16613 | return 0; |
| 16614 | if (sizeof (ac__type_new_)) |
| 16615 | return 0; |
| 16616 | ; |
| 16617 | return 0; |
| 16618 | } |
| 16619 | _ACEOF |
| 16620 | rm -f conftest.$ac_objext |
| 16621 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 16628 | ac_status=$? |
| 16629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16630 | rm -f conftest.er1 |
| 16631 | cat conftest.err >&5 |
| 16632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16633 | (exit $ac_status); } && |
| 16634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16635 | { (case "(($ac_try" in |
| 16636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16637 | *) ac_try_echo=$ac_try;; |
| 16638 | esac |
| 16639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16640 | (eval "$ac_try") 2>&5 |
| 16641 | ac_status=$? |
| 16642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16643 | (exit $ac_status); }; } && |
| 16644 | { ac_try='test -s conftest.$ac_objext' |
| 16645 | { (case "(($ac_try" in |
| 16646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16647 | *) ac_try_echo=$ac_try;; |
| 16648 | esac |
| 16649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16650 | (eval "$ac_try") 2>&5 |
| 16651 | ac_status=$? |
| 16652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16653 | (exit $ac_status); }; }; then |
| 16654 | ac_cv_type_u_int64_t=yes |
| 16655 | else |
| 16656 | echo "$as_me: failed program was:" >&5 |
| 16657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16658 | |
| 16659 | ac_cv_type_u_int64_t=no |
| 16660 | fi |
| 16661 | |
| 16662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16663 | fi |
| 16664 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16665 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16666 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16667 | |
| 16668 | cat >>confdefs.h <<_ACEOF |
| 16669 | #define HAVE_U_INT64_T 1 |
| 16670 | _ACEOF |
| 16671 | |
| 16672 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16673 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16674 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16675 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16676 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16677 | fi |
| 16678 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16679 | fi |
| 16680 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16681 | |
| 16682 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16683 | |
| 16684 | |
| 16685 | |
| 16686 | |
| 16687 | |
| 16688 | |
| 16689 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16690 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16691 | do |
| 16692 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16693 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16694 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16695 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16697 | else |
| 16698 | cat >conftest.$ac_ext <<_ACEOF |
| 16699 | /* confdefs.h. */ |
| 16700 | _ACEOF |
| 16701 | cat confdefs.h >>conftest.$ac_ext |
| 16702 | cat >>conftest.$ac_ext <<_ACEOF |
| 16703 | /* end confdefs.h. */ |
| 16704 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16705 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16706 | #define $ac_func innocuous_$ac_func |
| 16707 | |
| 16708 | /* System header to define __stub macros and hopefully few prototypes, |
| 16709 | which can conflict with char $ac_func (); below. |
| 16710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16711 | <limits.h> exists even on freestanding compilers. */ |
| 16712 | |
| 16713 | #ifdef __STDC__ |
| 16714 | # include <limits.h> |
| 16715 | #else |
| 16716 | # include <assert.h> |
| 16717 | #endif |
| 16718 | |
| 16719 | #undef $ac_func |
| 16720 | |
| 16721 | /* Override any GCC internal prototype to avoid an error. |
| 16722 | Use char because int might match the return type of a GCC |
| 16723 | builtin and then its argument prototype would still apply. */ |
| 16724 | #ifdef __cplusplus |
| 16725 | extern "C" |
| 16726 | #endif |
| 16727 | char $ac_func (); |
| 16728 | /* The GNU C library defines this for functions which it implements |
| 16729 | to always fail with ENOSYS. Some functions are actually named |
| 16730 | something starting with __ and the normal name is an alias. */ |
| 16731 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16732 | choke me |
| 16733 | #endif |
| 16734 | |
| 16735 | int |
| 16736 | main () |
| 16737 | { |
| 16738 | return $ac_func (); |
| 16739 | ; |
| 16740 | return 0; |
| 16741 | } |
| 16742 | _ACEOF |
| 16743 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16744 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 16751 | ac_status=$? |
| 16752 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16753 | rm -f conftest.er1 |
| 16754 | cat conftest.err >&5 |
| 16755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16756 | (exit $ac_status); } && |
| 16757 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16758 | { (case "(($ac_try" in |
| 16759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16760 | *) ac_try_echo=$ac_try;; |
| 16761 | esac |
| 16762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16763 | (eval "$ac_try") 2>&5 |
| 16764 | ac_status=$? |
| 16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16766 | (exit $ac_status); }; } && |
| 16767 | { ac_try='test -s conftest$ac_exeext' |
| 16768 | { (case "(($ac_try" in |
| 16769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16770 | *) ac_try_echo=$ac_try;; |
| 16771 | esac |
| 16772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16773 | (eval "$ac_try") 2>&5 |
| 16774 | ac_status=$? |
| 16775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16776 | (exit $ac_status); }; }; then |
| 16777 | eval "$as_ac_var=yes" |
| 16778 | else |
| 16779 | echo "$as_me: failed program was:" >&5 |
| 16780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16781 | |
| 16782 | eval "$as_ac_var=no" |
| 16783 | fi |
| 16784 | |
| 16785 | rm -f core conftest.err conftest.$ac_objext \ |
| 16786 | conftest$ac_exeext conftest.$ac_ext |
| 16787 | fi |
| 16788 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16789 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16790 | echo "${ECHO_T}$ac_res" >&6; } |
| 16791 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16792 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16793 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16794 | _ACEOF |
| 16795 | |
| 16796 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16797 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16799 | |
| 16800 | |
| 16801 | |
| 16802 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16803 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16804 | do |
| 16805 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16806 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16807 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16808 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16810 | else |
| 16811 | cat >conftest.$ac_ext <<_ACEOF |
| 16812 | /* confdefs.h. */ |
| 16813 | _ACEOF |
| 16814 | cat confdefs.h >>conftest.$ac_ext |
| 16815 | cat >>conftest.$ac_ext <<_ACEOF |
| 16816 | /* end confdefs.h. */ |
| 16817 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16818 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16819 | #define $ac_func innocuous_$ac_func |
| 16820 | |
| 16821 | /* System header to define __stub macros and hopefully few prototypes, |
| 16822 | which can conflict with char $ac_func (); below. |
| 16823 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16824 | <limits.h> exists even on freestanding compilers. */ |
| 16825 | |
| 16826 | #ifdef __STDC__ |
| 16827 | # include <limits.h> |
| 16828 | #else |
| 16829 | # include <assert.h> |
| 16830 | #endif |
| 16831 | |
| 16832 | #undef $ac_func |
| 16833 | |
| 16834 | /* Override any GCC internal prototype to avoid an error. |
| 16835 | Use char because int might match the return type of a GCC |
| 16836 | builtin and then its argument prototype would still apply. */ |
| 16837 | #ifdef __cplusplus |
| 16838 | extern "C" |
| 16839 | #endif |
| 16840 | char $ac_func (); |
| 16841 | /* The GNU C library defines this for functions which it implements |
| 16842 | to always fail with ENOSYS. Some functions are actually named |
| 16843 | something starting with __ and the normal name is an alias. */ |
| 16844 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16845 | choke me |
| 16846 | #endif |
| 16847 | |
| 16848 | int |
| 16849 | main () |
| 16850 | { |
| 16851 | return $ac_func (); |
| 16852 | ; |
| 16853 | return 0; |
| 16854 | } |
| 16855 | _ACEOF |
| 16856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16857 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 16864 | ac_status=$? |
| 16865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16866 | rm -f conftest.er1 |
| 16867 | cat conftest.err >&5 |
| 16868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16869 | (exit $ac_status); } && |
| 16870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16871 | { (case "(($ac_try" in |
| 16872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16873 | *) ac_try_echo=$ac_try;; |
| 16874 | esac |
| 16875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16876 | (eval "$ac_try") 2>&5 |
| 16877 | ac_status=$? |
| 16878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16879 | (exit $ac_status); }; } && |
| 16880 | { ac_try='test -s conftest$ac_exeext' |
| 16881 | { (case "(($ac_try" in |
| 16882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16883 | *) ac_try_echo=$ac_try;; |
| 16884 | esac |
| 16885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16886 | (eval "$ac_try") 2>&5 |
| 16887 | ac_status=$? |
| 16888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16889 | (exit $ac_status); }; }; then |
| 16890 | eval "$as_ac_var=yes" |
| 16891 | else |
| 16892 | echo "$as_me: failed program was:" >&5 |
| 16893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16894 | |
| 16895 | eval "$as_ac_var=no" |
| 16896 | fi |
| 16897 | |
| 16898 | rm -f core conftest.err conftest.$ac_objext \ |
| 16899 | conftest$ac_exeext conftest.$ac_ext |
| 16900 | fi |
| 16901 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16902 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16903 | echo "${ECHO_T}$ac_res" >&6; } |
| 16904 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16905 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16906 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16907 | _ACEOF |
| 16908 | |
| 16909 | fi |
| 16910 | done |
| 16911 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16912 | |
| 16913 | |
| 16914 | |
| 16915 | |
| 16916 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 16917 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16918 | do |
| 16919 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16920 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16921 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16922 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16924 | else |
| 16925 | cat >conftest.$ac_ext <<_ACEOF |
| 16926 | /* confdefs.h. */ |
| 16927 | _ACEOF |
| 16928 | cat confdefs.h >>conftest.$ac_ext |
| 16929 | cat >>conftest.$ac_ext <<_ACEOF |
| 16930 | /* end confdefs.h. */ |
| 16931 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16933 | #define $ac_func innocuous_$ac_func |
| 16934 | |
| 16935 | /* System header to define __stub macros and hopefully few prototypes, |
| 16936 | which can conflict with char $ac_func (); below. |
| 16937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16938 | <limits.h> exists even on freestanding compilers. */ |
| 16939 | |
| 16940 | #ifdef __STDC__ |
| 16941 | # include <limits.h> |
| 16942 | #else |
| 16943 | # include <assert.h> |
| 16944 | #endif |
| 16945 | |
| 16946 | #undef $ac_func |
| 16947 | |
| 16948 | /* Override any GCC internal prototype to avoid an error. |
| 16949 | Use char because int might match the return type of a GCC |
| 16950 | builtin and then its argument prototype would still apply. */ |
| 16951 | #ifdef __cplusplus |
| 16952 | extern "C" |
| 16953 | #endif |
| 16954 | char $ac_func (); |
| 16955 | /* The GNU C library defines this for functions which it implements |
| 16956 | to always fail with ENOSYS. Some functions are actually named |
| 16957 | something starting with __ and the normal name is an alias. */ |
| 16958 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16959 | choke me |
| 16960 | #endif |
| 16961 | |
| 16962 | int |
| 16963 | main () |
| 16964 | { |
| 16965 | return $ac_func (); |
| 16966 | ; |
| 16967 | return 0; |
| 16968 | } |
| 16969 | _ACEOF |
| 16970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16971 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 16978 | ac_status=$? |
| 16979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16980 | rm -f conftest.er1 |
| 16981 | cat conftest.err >&5 |
| 16982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16983 | (exit $ac_status); } && |
| 16984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16985 | { (case "(($ac_try" in |
| 16986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16987 | *) ac_try_echo=$ac_try;; |
| 16988 | esac |
| 16989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16990 | (eval "$ac_try") 2>&5 |
| 16991 | ac_status=$? |
| 16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16993 | (exit $ac_status); }; } && |
| 16994 | { ac_try='test -s conftest$ac_exeext' |
| 16995 | { (case "(($ac_try" in |
| 16996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16997 | *) ac_try_echo=$ac_try;; |
| 16998 | esac |
| 16999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17000 | (eval "$ac_try") 2>&5 |
| 17001 | ac_status=$? |
| 17002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17003 | (exit $ac_status); }; }; then |
| 17004 | eval "$as_ac_var=yes" |
| 17005 | else |
| 17006 | echo "$as_me: failed program was:" >&5 |
| 17007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17008 | |
| 17009 | eval "$as_ac_var=no" |
| 17010 | fi |
| 17011 | |
| 17012 | rm -f core conftest.err conftest.$ac_objext \ |
| 17013 | conftest$ac_exeext conftest.$ac_ext |
| 17014 | fi |
| 17015 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17016 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17017 | echo "${ECHO_T}$ac_res" >&6; } |
| 17018 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17019 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17020 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17021 | _ACEOF |
| 17022 | |
| 17023 | fi |
| 17024 | done |
| 17025 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17026 | |
| 17027 | |
| 17028 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17029 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17030 | do |
| 17031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17032 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17034 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17036 | else |
| 17037 | cat >conftest.$ac_ext <<_ACEOF |
| 17038 | /* confdefs.h. */ |
| 17039 | _ACEOF |
| 17040 | cat confdefs.h >>conftest.$ac_ext |
| 17041 | cat >>conftest.$ac_ext <<_ACEOF |
| 17042 | /* end confdefs.h. */ |
| 17043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17045 | #define $ac_func innocuous_$ac_func |
| 17046 | |
| 17047 | /* System header to define __stub macros and hopefully few prototypes, |
| 17048 | which can conflict with char $ac_func (); below. |
| 17049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17050 | <limits.h> exists even on freestanding compilers. */ |
| 17051 | |
| 17052 | #ifdef __STDC__ |
| 17053 | # include <limits.h> |
| 17054 | #else |
| 17055 | # include <assert.h> |
| 17056 | #endif |
| 17057 | |
| 17058 | #undef $ac_func |
| 17059 | |
| 17060 | /* Override any GCC internal prototype to avoid an error. |
| 17061 | Use char because int might match the return type of a GCC |
| 17062 | builtin and then its argument prototype would still apply. */ |
| 17063 | #ifdef __cplusplus |
| 17064 | extern "C" |
| 17065 | #endif |
| 17066 | char $ac_func (); |
| 17067 | /* The GNU C library defines this for functions which it implements |
| 17068 | to always fail with ENOSYS. Some functions are actually named |
| 17069 | something starting with __ and the normal name is an alias. */ |
| 17070 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17071 | choke me |
| 17072 | #endif |
| 17073 | |
| 17074 | int |
| 17075 | main () |
| 17076 | { |
| 17077 | return $ac_func (); |
| 17078 | ; |
| 17079 | return 0; |
| 17080 | } |
| 17081 | _ACEOF |
| 17082 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17083 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 17090 | ac_status=$? |
| 17091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17092 | rm -f conftest.er1 |
| 17093 | cat conftest.err >&5 |
| 17094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17095 | (exit $ac_status); } && |
| 17096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17097 | { (case "(($ac_try" in |
| 17098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17099 | *) ac_try_echo=$ac_try;; |
| 17100 | esac |
| 17101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17102 | (eval "$ac_try") 2>&5 |
| 17103 | ac_status=$? |
| 17104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17105 | (exit $ac_status); }; } && |
| 17106 | { ac_try='test -s conftest$ac_exeext' |
| 17107 | { (case "(($ac_try" in |
| 17108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17109 | *) ac_try_echo=$ac_try;; |
| 17110 | esac |
| 17111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17112 | (eval "$ac_try") 2>&5 |
| 17113 | ac_status=$? |
| 17114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17115 | (exit $ac_status); }; }; then |
| 17116 | eval "$as_ac_var=yes" |
| 17117 | else |
| 17118 | echo "$as_me: failed program was:" >&5 |
| 17119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17120 | |
| 17121 | eval "$as_ac_var=no" |
| 17122 | fi |
| 17123 | |
| 17124 | rm -f core conftest.err conftest.$ac_objext \ |
| 17125 | conftest$ac_exeext conftest.$ac_ext |
| 17126 | fi |
| 17127 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17129 | echo "${ECHO_T}$ac_res" >&6; } |
| 17130 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17131 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17133 | _ACEOF |
| 17134 | |
| 17135 | fi |
| 17136 | done |
| 17137 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17138 | |
| 17139 | |
| 17140 | |
| 17141 | |
| 17142 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17143 | |
Benjamin Kramer | 5745fbc | 2011-11-22 12:31:53 +0000 | [diff] [blame] | 17144 | |
| 17145 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17146 | do |
| 17147 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17148 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17149 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17150 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17152 | else |
| 17153 | cat >conftest.$ac_ext <<_ACEOF |
| 17154 | /* confdefs.h. */ |
| 17155 | _ACEOF |
| 17156 | cat confdefs.h >>conftest.$ac_ext |
| 17157 | cat >>conftest.$ac_ext <<_ACEOF |
| 17158 | /* end confdefs.h. */ |
| 17159 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17160 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17161 | #define $ac_func innocuous_$ac_func |
| 17162 | |
| 17163 | /* System header to define __stub macros and hopefully few prototypes, |
| 17164 | which can conflict with char $ac_func (); below. |
| 17165 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17166 | <limits.h> exists even on freestanding compilers. */ |
| 17167 | |
| 17168 | #ifdef __STDC__ |
| 17169 | # include <limits.h> |
| 17170 | #else |
| 17171 | # include <assert.h> |
| 17172 | #endif |
| 17173 | |
| 17174 | #undef $ac_func |
| 17175 | |
| 17176 | /* Override any GCC internal prototype to avoid an error. |
| 17177 | Use char because int might match the return type of a GCC |
| 17178 | builtin and then its argument prototype would still apply. */ |
| 17179 | #ifdef __cplusplus |
| 17180 | extern "C" |
| 17181 | #endif |
| 17182 | char $ac_func (); |
| 17183 | /* The GNU C library defines this for functions which it implements |
| 17184 | to always fail with ENOSYS. Some functions are actually named |
| 17185 | something starting with __ and the normal name is an alias. */ |
| 17186 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17187 | choke me |
| 17188 | #endif |
| 17189 | |
| 17190 | int |
| 17191 | main () |
| 17192 | { |
| 17193 | return $ac_func (); |
| 17194 | ; |
| 17195 | return 0; |
| 17196 | } |
| 17197 | _ACEOF |
| 17198 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17199 | if { (ac_try="$ac_link" |
| 17200 | case "(($ac_try" in |
| 17201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17202 | *) ac_try_echo=$ac_try;; |
| 17203 | esac |
| 17204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17205 | (eval "$ac_link") 2>conftest.er1 |
| 17206 | ac_status=$? |
| 17207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17208 | rm -f conftest.er1 |
| 17209 | cat conftest.err >&5 |
| 17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17211 | (exit $ac_status); } && |
| 17212 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17213 | { (case "(($ac_try" in |
| 17214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17215 | *) ac_try_echo=$ac_try;; |
| 17216 | esac |
| 17217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17218 | (eval "$ac_try") 2>&5 |
| 17219 | ac_status=$? |
| 17220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17221 | (exit $ac_status); }; } && |
| 17222 | { ac_try='test -s conftest$ac_exeext' |
| 17223 | { (case "(($ac_try" in |
| 17224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17225 | *) ac_try_echo=$ac_try;; |
| 17226 | esac |
| 17227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17228 | (eval "$ac_try") 2>&5 |
| 17229 | ac_status=$? |
| 17230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17231 | (exit $ac_status); }; }; then |
| 17232 | eval "$as_ac_var=yes" |
| 17233 | else |
| 17234 | echo "$as_me: failed program was:" >&5 |
| 17235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17236 | |
| 17237 | eval "$as_ac_var=no" |
| 17238 | fi |
| 17239 | |
| 17240 | rm -f core conftest.err conftest.$ac_objext \ |
| 17241 | conftest$ac_exeext conftest.$ac_ext |
| 17242 | fi |
| 17243 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17244 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17245 | echo "${ECHO_T}$ac_res" >&6; } |
| 17246 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17247 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17248 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17249 | _ACEOF |
| 17250 | |
| 17251 | fi |
| 17252 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17253 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17254 | |
| 17255 | |
| 17256 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17257 | for ac_func in strerror strerror_r setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17258 | do |
| 17259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17260 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17262 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17264 | else |
| 17265 | cat >conftest.$ac_ext <<_ACEOF |
| 17266 | /* confdefs.h. */ |
| 17267 | _ACEOF |
| 17268 | cat confdefs.h >>conftest.$ac_ext |
| 17269 | cat >>conftest.$ac_ext <<_ACEOF |
| 17270 | /* end confdefs.h. */ |
| 17271 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17272 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17273 | #define $ac_func innocuous_$ac_func |
| 17274 | |
| 17275 | /* System header to define __stub macros and hopefully few prototypes, |
| 17276 | which can conflict with char $ac_func (); below. |
| 17277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17278 | <limits.h> exists even on freestanding compilers. */ |
| 17279 | |
| 17280 | #ifdef __STDC__ |
| 17281 | # include <limits.h> |
| 17282 | #else |
| 17283 | # include <assert.h> |
| 17284 | #endif |
| 17285 | |
| 17286 | #undef $ac_func |
| 17287 | |
| 17288 | /* Override any GCC internal prototype to avoid an error. |
| 17289 | Use char because int might match the return type of a GCC |
| 17290 | builtin and then its argument prototype would still apply. */ |
| 17291 | #ifdef __cplusplus |
| 17292 | extern "C" |
| 17293 | #endif |
| 17294 | char $ac_func (); |
| 17295 | /* The GNU C library defines this for functions which it implements |
| 17296 | to always fail with ENOSYS. Some functions are actually named |
| 17297 | something starting with __ and the normal name is an alias. */ |
| 17298 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17299 | choke me |
| 17300 | #endif |
| 17301 | |
| 17302 | int |
| 17303 | main () |
| 17304 | { |
| 17305 | return $ac_func (); |
| 17306 | ; |
| 17307 | return 0; |
| 17308 | } |
| 17309 | _ACEOF |
| 17310 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17311 | if { (ac_try="$ac_link" |
| 17312 | case "(($ac_try" in |
| 17313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17314 | *) ac_try_echo=$ac_try;; |
| 17315 | esac |
| 17316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17317 | (eval "$ac_link") 2>conftest.er1 |
| 17318 | ac_status=$? |
| 17319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17320 | rm -f conftest.er1 |
| 17321 | cat conftest.err >&5 |
| 17322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17323 | (exit $ac_status); } && |
| 17324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17325 | { (case "(($ac_try" in |
| 17326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17327 | *) ac_try_echo=$ac_try;; |
| 17328 | esac |
| 17329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17330 | (eval "$ac_try") 2>&5 |
| 17331 | ac_status=$? |
| 17332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17333 | (exit $ac_status); }; } && |
| 17334 | { ac_try='test -s conftest$ac_exeext' |
| 17335 | { (case "(($ac_try" in |
| 17336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17337 | *) ac_try_echo=$ac_try;; |
| 17338 | esac |
| 17339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17340 | (eval "$ac_try") 2>&5 |
| 17341 | ac_status=$? |
| 17342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17343 | (exit $ac_status); }; }; then |
| 17344 | eval "$as_ac_var=yes" |
| 17345 | else |
| 17346 | echo "$as_me: failed program was:" >&5 |
| 17347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17348 | |
| 17349 | eval "$as_ac_var=no" |
| 17350 | fi |
| 17351 | |
| 17352 | rm -f core conftest.err conftest.$ac_objext \ |
| 17353 | conftest$ac_exeext conftest.$ac_ext |
| 17354 | fi |
| 17355 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17357 | echo "${ECHO_T}$ac_res" >&6; } |
| 17358 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17359 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17360 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17361 | _ACEOF |
| 17362 | |
| 17363 | fi |
| 17364 | done |
| 17365 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17366 | |
| 17367 | |
| 17368 | |
| 17369 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17370 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17371 | do |
| 17372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17373 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17375 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17377 | else |
| 17378 | cat >conftest.$ac_ext <<_ACEOF |
| 17379 | /* confdefs.h. */ |
| 17380 | _ACEOF |
| 17381 | cat confdefs.h >>conftest.$ac_ext |
| 17382 | cat >>conftest.$ac_ext <<_ACEOF |
| 17383 | /* end confdefs.h. */ |
| 17384 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17386 | #define $ac_func innocuous_$ac_func |
| 17387 | |
| 17388 | /* System header to define __stub macros and hopefully few prototypes, |
| 17389 | which can conflict with char $ac_func (); below. |
| 17390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17391 | <limits.h> exists even on freestanding compilers. */ |
| 17392 | |
| 17393 | #ifdef __STDC__ |
| 17394 | # include <limits.h> |
| 17395 | #else |
| 17396 | # include <assert.h> |
| 17397 | #endif |
| 17398 | |
| 17399 | #undef $ac_func |
| 17400 | |
| 17401 | /* Override any GCC internal prototype to avoid an error. |
| 17402 | Use char because int might match the return type of a GCC |
| 17403 | builtin and then its argument prototype would still apply. */ |
| 17404 | #ifdef __cplusplus |
| 17405 | extern "C" |
| 17406 | #endif |
| 17407 | char $ac_func (); |
| 17408 | /* The GNU C library defines this for functions which it implements |
| 17409 | to always fail with ENOSYS. Some functions are actually named |
| 17410 | something starting with __ and the normal name is an alias. */ |
| 17411 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17412 | choke me |
| 17413 | #endif |
| 17414 | |
| 17415 | int |
| 17416 | main () |
| 17417 | { |
| 17418 | return $ac_func (); |
| 17419 | ; |
| 17420 | return 0; |
| 17421 | } |
| 17422 | _ACEOF |
| 17423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17424 | if { (ac_try="$ac_link" |
| 17425 | case "(($ac_try" in |
| 17426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17427 | *) ac_try_echo=$ac_try;; |
| 17428 | esac |
| 17429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17430 | (eval "$ac_link") 2>conftest.er1 |
| 17431 | ac_status=$? |
| 17432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17433 | rm -f conftest.er1 |
| 17434 | cat conftest.err >&5 |
| 17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17436 | (exit $ac_status); } && |
| 17437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17438 | { (case "(($ac_try" in |
| 17439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17440 | *) ac_try_echo=$ac_try;; |
| 17441 | esac |
| 17442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17443 | (eval "$ac_try") 2>&5 |
| 17444 | ac_status=$? |
| 17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17446 | (exit $ac_status); }; } && |
| 17447 | { ac_try='test -s conftest$ac_exeext' |
| 17448 | { (case "(($ac_try" in |
| 17449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17450 | *) ac_try_echo=$ac_try;; |
| 17451 | esac |
| 17452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17453 | (eval "$ac_try") 2>&5 |
| 17454 | ac_status=$? |
| 17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17456 | (exit $ac_status); }; }; then |
| 17457 | eval "$as_ac_var=yes" |
| 17458 | else |
| 17459 | echo "$as_me: failed program was:" >&5 |
| 17460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17461 | |
| 17462 | eval "$as_ac_var=no" |
| 17463 | fi |
| 17464 | |
| 17465 | rm -f core conftest.err conftest.$ac_objext \ |
| 17466 | conftest$ac_exeext conftest.$ac_ext |
| 17467 | fi |
| 17468 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17469 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17470 | echo "${ECHO_T}$ac_res" >&6; } |
| 17471 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17472 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17474 | _ACEOF |
| 17475 | |
| 17476 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17477 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17478 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17479 | |
| 17480 | |
| 17481 | |
| 17482 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17483 | |
| 17484 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17485 | do |
| 17486 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17487 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17488 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17489 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17491 | else |
| 17492 | cat >conftest.$ac_ext <<_ACEOF |
| 17493 | /* confdefs.h. */ |
| 17494 | _ACEOF |
| 17495 | cat confdefs.h >>conftest.$ac_ext |
| 17496 | cat >>conftest.$ac_ext <<_ACEOF |
| 17497 | /* end confdefs.h. */ |
| 17498 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17499 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17500 | #define $ac_func innocuous_$ac_func |
| 17501 | |
| 17502 | /* System header to define __stub macros and hopefully few prototypes, |
| 17503 | which can conflict with char $ac_func (); below. |
| 17504 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17505 | <limits.h> exists even on freestanding compilers. */ |
| 17506 | |
| 17507 | #ifdef __STDC__ |
| 17508 | # include <limits.h> |
| 17509 | #else |
| 17510 | # include <assert.h> |
| 17511 | #endif |
| 17512 | |
| 17513 | #undef $ac_func |
| 17514 | |
| 17515 | /* Override any GCC internal prototype to avoid an error. |
| 17516 | Use char because int might match the return type of a GCC |
| 17517 | builtin and then its argument prototype would still apply. */ |
| 17518 | #ifdef __cplusplus |
| 17519 | extern "C" |
| 17520 | #endif |
| 17521 | char $ac_func (); |
| 17522 | /* The GNU C library defines this for functions which it implements |
| 17523 | to always fail with ENOSYS. Some functions are actually named |
| 17524 | something starting with __ and the normal name is an alias. */ |
| 17525 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17526 | choke me |
| 17527 | #endif |
| 17528 | |
| 17529 | int |
| 17530 | main () |
| 17531 | { |
| 17532 | return $ac_func (); |
| 17533 | ; |
| 17534 | return 0; |
| 17535 | } |
| 17536 | _ACEOF |
| 17537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17538 | if { (ac_try="$ac_link" |
| 17539 | case "(($ac_try" in |
| 17540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17541 | *) ac_try_echo=$ac_try;; |
| 17542 | esac |
| 17543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17544 | (eval "$ac_link") 2>conftest.er1 |
| 17545 | ac_status=$? |
| 17546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17547 | rm -f conftest.er1 |
| 17548 | cat conftest.err >&5 |
| 17549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17550 | (exit $ac_status); } && |
| 17551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17552 | { (case "(($ac_try" in |
| 17553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17554 | *) ac_try_echo=$ac_try;; |
| 17555 | esac |
| 17556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17557 | (eval "$ac_try") 2>&5 |
| 17558 | ac_status=$? |
| 17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17560 | (exit $ac_status); }; } && |
| 17561 | { ac_try='test -s conftest$ac_exeext' |
| 17562 | { (case "(($ac_try" in |
| 17563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17564 | *) ac_try_echo=$ac_try;; |
| 17565 | esac |
| 17566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17567 | (eval "$ac_try") 2>&5 |
| 17568 | ac_status=$? |
| 17569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17570 | (exit $ac_status); }; }; then |
| 17571 | eval "$as_ac_var=yes" |
| 17572 | else |
| 17573 | echo "$as_me: failed program was:" >&5 |
| 17574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17575 | |
| 17576 | eval "$as_ac_var=no" |
| 17577 | fi |
| 17578 | |
| 17579 | rm -f core conftest.err conftest.$ac_objext \ |
| 17580 | conftest$ac_exeext conftest.$ac_ext |
| 17581 | fi |
| 17582 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17583 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17584 | echo "${ECHO_T}$ac_res" >&6; } |
| 17585 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17586 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17587 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17588 | _ACEOF |
| 17589 | |
| 17590 | fi |
| 17591 | done |
| 17592 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17593 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17594 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17595 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17597 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17598 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17599 | ac_cpp='$CPP $CPPFLAGS' |
| 17600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17604 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17605 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17606 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17607 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17608 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17609 | /* confdefs.h. */ |
| 17610 | _ACEOF |
| 17611 | cat confdefs.h >>conftest.$ac_ext |
| 17612 | cat >>conftest.$ac_ext <<_ACEOF |
| 17613 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17614 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17615 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17616 | #include <stdlib.h> |
| 17617 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17618 | int |
| 17619 | main () |
| 17620 | { |
| 17621 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17622 | volatile double A, B; |
| 17623 | char Buffer[100]; |
| 17624 | A = 1; |
| 17625 | A /= 10.0; |
| 17626 | sprintf(Buffer, "%a", A); |
| 17627 | B = atof(Buffer); |
| 17628 | if (A != B) |
| 17629 | return (1); |
| 17630 | if (A != 0x1.999999999999ap-4) |
| 17631 | return (1); |
| 17632 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17633 | ; |
| 17634 | return 0; |
| 17635 | } |
| 17636 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17637 | rm -f conftest$ac_exeext |
| 17638 | if { (ac_try="$ac_link" |
| 17639 | case "(($ac_try" in |
| 17640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17641 | *) ac_try_echo=$ac_try;; |
| 17642 | esac |
| 17643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17644 | (eval "$ac_link") 2>&5 |
| 17645 | ac_status=$? |
| 17646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17648 | { (case "(($ac_try" in |
| 17649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17650 | *) ac_try_echo=$ac_try;; |
| 17651 | esac |
| 17652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17653 | (eval "$ac_try") 2>&5 |
| 17654 | ac_status=$? |
| 17655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17656 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17657 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17658 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17659 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17660 | echo "$as_me: failed program was:" >&5 |
| 17661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17662 | |
| 17663 | ( exit $ac_status ) |
| 17664 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17665 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17666 | 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] | 17667 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17668 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17669 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17670 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17671 | ac_cpp='$CPP $CPPFLAGS' |
| 17672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17675 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17676 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17677 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17678 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17679 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17680 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17681 | cat >>confdefs.h <<\_ACEOF |
| 17682 | #define HAVE_PRINTF_A 1 |
| 17683 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17684 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17685 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17686 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17687 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17688 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17689 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17690 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17692 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17693 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17694 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17695 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17696 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17697 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17698 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17699 | cat >conftest.$ac_ext <<_ACEOF |
| 17700 | /* confdefs.h. */ |
| 17701 | _ACEOF |
| 17702 | cat confdefs.h >>conftest.$ac_ext |
| 17703 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17704 | /* end confdefs.h. */ |
| 17705 | #include <stdlib.h> |
| 17706 | int |
| 17707 | main () |
| 17708 | { |
| 17709 | srand48(0);lrand48();drand48(); |
| 17710 | ; |
| 17711 | return 0; |
| 17712 | } |
| 17713 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17714 | rm -f conftest.$ac_objext |
| 17715 | if { (ac_try="$ac_compile" |
| 17716 | case "(($ac_try" in |
| 17717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17718 | *) ac_try_echo=$ac_try;; |
| 17719 | esac |
| 17720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17721 | (eval "$ac_compile") 2>conftest.er1 |
| 17722 | ac_status=$? |
| 17723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17724 | rm -f conftest.er1 |
| 17725 | cat conftest.err >&5 |
| 17726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17727 | (exit $ac_status); } && |
| 17728 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 17729 | { (case "(($ac_try" in |
| 17730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17731 | *) ac_try_echo=$ac_try;; |
| 17732 | esac |
| 17733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17734 | (eval "$ac_try") 2>&5 |
| 17735 | ac_status=$? |
| 17736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17737 | (exit $ac_status); }; } && |
| 17738 | { ac_try='test -s conftest.$ac_objext' |
| 17739 | { (case "(($ac_try" in |
| 17740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17741 | *) ac_try_echo=$ac_try;; |
| 17742 | esac |
| 17743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17744 | (eval "$ac_try") 2>&5 |
| 17745 | ac_status=$? |
| 17746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17747 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17748 | ac_cv_func_rand48=yes |
| 17749 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17750 | echo "$as_me: failed program was:" >&5 |
| 17751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17752 | |
| 17753 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17754 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17757 | ac_ext=c |
| 17758 | ac_cpp='$CPP $CPPFLAGS' |
| 17759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17762 | |
| 17763 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17764 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 17765 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17766 | |
| 17767 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 17768 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17769 | cat >>confdefs.h <<\_ACEOF |
| 17770 | #define HAVE_RAND48 1 |
| 17771 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17772 | |
| 17773 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 17774 | |
| 17775 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17776 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 17777 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 17778 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 17779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17780 | else |
| 17781 | cat >conftest.$ac_ext <<_ACEOF |
| 17782 | /* confdefs.h. */ |
| 17783 | _ACEOF |
| 17784 | cat confdefs.h >>conftest.$ac_ext |
| 17785 | cat >>conftest.$ac_ext <<_ACEOF |
| 17786 | /* end confdefs.h. */ |
| 17787 | $ac_includes_default |
| 17788 | int |
| 17789 | main () |
| 17790 | { |
| 17791 | #ifndef strerror_s |
| 17792 | char *p = (char *) strerror_s; |
| 17793 | return !p; |
| 17794 | #endif |
| 17795 | |
| 17796 | ; |
| 17797 | return 0; |
| 17798 | } |
| 17799 | _ACEOF |
| 17800 | rm -f conftest.$ac_objext |
| 17801 | if { (ac_try="$ac_compile" |
| 17802 | case "(($ac_try" in |
| 17803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17804 | *) ac_try_echo=$ac_try;; |
| 17805 | esac |
| 17806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17807 | (eval "$ac_compile") 2>conftest.er1 |
| 17808 | ac_status=$? |
| 17809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17810 | rm -f conftest.er1 |
| 17811 | cat conftest.err >&5 |
| 17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17813 | (exit $ac_status); } && |
| 17814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17815 | { (case "(($ac_try" in |
| 17816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17817 | *) ac_try_echo=$ac_try;; |
| 17818 | esac |
| 17819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17820 | (eval "$ac_try") 2>&5 |
| 17821 | ac_status=$? |
| 17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17823 | (exit $ac_status); }; } && |
| 17824 | { ac_try='test -s conftest.$ac_objext' |
| 17825 | { (case "(($ac_try" in |
| 17826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17827 | *) ac_try_echo=$ac_try;; |
| 17828 | esac |
| 17829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17830 | (eval "$ac_try") 2>&5 |
| 17831 | ac_status=$? |
| 17832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17833 | (exit $ac_status); }; }; then |
| 17834 | ac_cv_have_decl_strerror_s=yes |
| 17835 | else |
| 17836 | echo "$as_me: failed program was:" >&5 |
| 17837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17838 | |
| 17839 | ac_cv_have_decl_strerror_s=no |
| 17840 | fi |
| 17841 | |
| 17842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17843 | fi |
| 17844 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 17845 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 17846 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 17847 | |
| 17848 | cat >>confdefs.h <<_ACEOF |
| 17849 | #define HAVE_DECL_STRERROR_S 1 |
| 17850 | _ACEOF |
| 17851 | |
| 17852 | |
| 17853 | else |
| 17854 | cat >>confdefs.h <<_ACEOF |
| 17855 | #define HAVE_DECL_STRERROR_S 0 |
| 17856 | _ACEOF |
| 17857 | |
| 17858 | |
| 17859 | fi |
| 17860 | |
| 17861 | |
| 17862 | |
NAKAMURA Takumi | 1f6832a | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 17863 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 17864 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 17865 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 17866 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 17867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17868 | else |
| 17869 | ac_check_lib_save_LIBS=$LIBS |
| 17870 | LIBS="-lgcc $LIBS" |
| 17871 | cat >conftest.$ac_ext <<_ACEOF |
| 17872 | /* confdefs.h. */ |
| 17873 | _ACEOF |
| 17874 | cat confdefs.h >>conftest.$ac_ext |
| 17875 | cat >>conftest.$ac_ext <<_ACEOF |
| 17876 | /* end confdefs.h. */ |
| 17877 | |
| 17878 | /* Override any GCC internal prototype to avoid an error. |
| 17879 | Use char because int might match the return type of a GCC |
| 17880 | builtin and then its argument prototype would still apply. */ |
| 17881 | #ifdef __cplusplus |
| 17882 | extern "C" |
| 17883 | #endif |
| 17884 | char _alloca (); |
| 17885 | int |
| 17886 | main () |
| 17887 | { |
| 17888 | return _alloca (); |
| 17889 | ; |
| 17890 | return 0; |
| 17891 | } |
| 17892 | _ACEOF |
| 17893 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17894 | if { (ac_try="$ac_link" |
| 17895 | case "(($ac_try" in |
| 17896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17897 | *) ac_try_echo=$ac_try;; |
| 17898 | esac |
| 17899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17900 | (eval "$ac_link") 2>conftest.er1 |
| 17901 | ac_status=$? |
| 17902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17903 | rm -f conftest.er1 |
| 17904 | cat conftest.err >&5 |
| 17905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17906 | (exit $ac_status); } && |
| 17907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17908 | { (case "(($ac_try" in |
| 17909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17910 | *) ac_try_echo=$ac_try;; |
| 17911 | esac |
| 17912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17913 | (eval "$ac_try") 2>&5 |
| 17914 | ac_status=$? |
| 17915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17916 | (exit $ac_status); }; } && |
| 17917 | { ac_try='test -s conftest$ac_exeext' |
| 17918 | { (case "(($ac_try" in |
| 17919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17920 | *) ac_try_echo=$ac_try;; |
| 17921 | esac |
| 17922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17923 | (eval "$ac_try") 2>&5 |
| 17924 | ac_status=$? |
| 17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17926 | (exit $ac_status); }; }; then |
| 17927 | ac_cv_lib_gcc__alloca=yes |
| 17928 | else |
| 17929 | echo "$as_me: failed program was:" >&5 |
| 17930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17931 | |
| 17932 | ac_cv_lib_gcc__alloca=no |
| 17933 | fi |
| 17934 | |
| 17935 | rm -f core conftest.err conftest.$ac_objext \ |
| 17936 | conftest$ac_exeext conftest.$ac_ext |
| 17937 | LIBS=$ac_check_lib_save_LIBS |
| 17938 | fi |
| 17939 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 17940 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 17941 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 17942 | |
| 17943 | cat >>confdefs.h <<\_ACEOF |
| 17944 | #define HAVE__ALLOCA 1 |
| 17945 | _ACEOF |
| 17946 | |
| 17947 | fi |
| 17948 | |
| 17949 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 17950 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 17951 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 17952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17953 | else |
| 17954 | ac_check_lib_save_LIBS=$LIBS |
| 17955 | LIBS="-lgcc $LIBS" |
| 17956 | cat >conftest.$ac_ext <<_ACEOF |
| 17957 | /* confdefs.h. */ |
| 17958 | _ACEOF |
| 17959 | cat confdefs.h >>conftest.$ac_ext |
| 17960 | cat >>conftest.$ac_ext <<_ACEOF |
| 17961 | /* end confdefs.h. */ |
| 17962 | |
| 17963 | /* Override any GCC internal prototype to avoid an error. |
| 17964 | Use char because int might match the return type of a GCC |
| 17965 | builtin and then its argument prototype would still apply. */ |
| 17966 | #ifdef __cplusplus |
| 17967 | extern "C" |
| 17968 | #endif |
| 17969 | char __alloca (); |
| 17970 | int |
| 17971 | main () |
| 17972 | { |
| 17973 | return __alloca (); |
| 17974 | ; |
| 17975 | return 0; |
| 17976 | } |
| 17977 | _ACEOF |
| 17978 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17979 | if { (ac_try="$ac_link" |
| 17980 | case "(($ac_try" in |
| 17981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17982 | *) ac_try_echo=$ac_try;; |
| 17983 | esac |
| 17984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17985 | (eval "$ac_link") 2>conftest.er1 |
| 17986 | ac_status=$? |
| 17987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17988 | rm -f conftest.er1 |
| 17989 | cat conftest.err >&5 |
| 17990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17991 | (exit $ac_status); } && |
| 17992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17993 | { (case "(($ac_try" in |
| 17994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17995 | *) ac_try_echo=$ac_try;; |
| 17996 | esac |
| 17997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17998 | (eval "$ac_try") 2>&5 |
| 17999 | ac_status=$? |
| 18000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18001 | (exit $ac_status); }; } && |
| 18002 | { ac_try='test -s conftest$ac_exeext' |
| 18003 | { (case "(($ac_try" in |
| 18004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18005 | *) ac_try_echo=$ac_try;; |
| 18006 | esac |
| 18007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18008 | (eval "$ac_try") 2>&5 |
| 18009 | ac_status=$? |
| 18010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18011 | (exit $ac_status); }; }; then |
| 18012 | ac_cv_lib_gcc___alloca=yes |
| 18013 | else |
| 18014 | echo "$as_me: failed program was:" >&5 |
| 18015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18016 | |
| 18017 | ac_cv_lib_gcc___alloca=no |
| 18018 | fi |
| 18019 | |
| 18020 | rm -f core conftest.err conftest.$ac_objext \ |
| 18021 | conftest$ac_exeext conftest.$ac_ext |
| 18022 | LIBS=$ac_check_lib_save_LIBS |
| 18023 | fi |
| 18024 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 18025 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 18026 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 18027 | |
| 18028 | cat >>confdefs.h <<\_ACEOF |
| 18029 | #define HAVE___ALLOCA 1 |
| 18030 | _ACEOF |
| 18031 | |
| 18032 | fi |
| 18033 | |
| 18034 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 18035 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 18036 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 18037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18038 | else |
| 18039 | ac_check_lib_save_LIBS=$LIBS |
| 18040 | LIBS="-lgcc $LIBS" |
| 18041 | cat >conftest.$ac_ext <<_ACEOF |
| 18042 | /* confdefs.h. */ |
| 18043 | _ACEOF |
| 18044 | cat confdefs.h >>conftest.$ac_ext |
| 18045 | cat >>conftest.$ac_ext <<_ACEOF |
| 18046 | /* end confdefs.h. */ |
| 18047 | |
| 18048 | /* Override any GCC internal prototype to avoid an error. |
| 18049 | Use char because int might match the return type of a GCC |
| 18050 | builtin and then its argument prototype would still apply. */ |
| 18051 | #ifdef __cplusplus |
| 18052 | extern "C" |
| 18053 | #endif |
| 18054 | char __chkstk (); |
| 18055 | int |
| 18056 | main () |
| 18057 | { |
| 18058 | return __chkstk (); |
| 18059 | ; |
| 18060 | return 0; |
| 18061 | } |
| 18062 | _ACEOF |
| 18063 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18064 | if { (ac_try="$ac_link" |
| 18065 | case "(($ac_try" in |
| 18066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18067 | *) ac_try_echo=$ac_try;; |
| 18068 | esac |
| 18069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18070 | (eval "$ac_link") 2>conftest.er1 |
| 18071 | ac_status=$? |
| 18072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18073 | rm -f conftest.er1 |
| 18074 | cat conftest.err >&5 |
| 18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18076 | (exit $ac_status); } && |
| 18077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18078 | { (case "(($ac_try" in |
| 18079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18080 | *) ac_try_echo=$ac_try;; |
| 18081 | esac |
| 18082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18083 | (eval "$ac_try") 2>&5 |
| 18084 | ac_status=$? |
| 18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18086 | (exit $ac_status); }; } && |
| 18087 | { ac_try='test -s conftest$ac_exeext' |
| 18088 | { (case "(($ac_try" in |
| 18089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18090 | *) ac_try_echo=$ac_try;; |
| 18091 | esac |
| 18092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18093 | (eval "$ac_try") 2>&5 |
| 18094 | ac_status=$? |
| 18095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18096 | (exit $ac_status); }; }; then |
| 18097 | ac_cv_lib_gcc___chkstk=yes |
| 18098 | else |
| 18099 | echo "$as_me: failed program was:" >&5 |
| 18100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18101 | |
| 18102 | ac_cv_lib_gcc___chkstk=no |
| 18103 | fi |
| 18104 | |
| 18105 | rm -f core conftest.err conftest.$ac_objext \ |
| 18106 | conftest$ac_exeext conftest.$ac_ext |
| 18107 | LIBS=$ac_check_lib_save_LIBS |
| 18108 | fi |
| 18109 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 18110 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 18111 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 18112 | |
| 18113 | cat >>confdefs.h <<\_ACEOF |
| 18114 | #define HAVE___CHKSTK 1 |
| 18115 | _ACEOF |
| 18116 | |
| 18117 | fi |
| 18118 | |
| 18119 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 18120 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 18121 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 18122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18123 | else |
| 18124 | ac_check_lib_save_LIBS=$LIBS |
| 18125 | LIBS="-lgcc $LIBS" |
| 18126 | cat >conftest.$ac_ext <<_ACEOF |
| 18127 | /* confdefs.h. */ |
| 18128 | _ACEOF |
| 18129 | cat confdefs.h >>conftest.$ac_ext |
| 18130 | cat >>conftest.$ac_ext <<_ACEOF |
| 18131 | /* end confdefs.h. */ |
| 18132 | |
| 18133 | /* Override any GCC internal prototype to avoid an error. |
| 18134 | Use char because int might match the return type of a GCC |
| 18135 | builtin and then its argument prototype would still apply. */ |
| 18136 | #ifdef __cplusplus |
| 18137 | extern "C" |
| 18138 | #endif |
| 18139 | char ___chkstk (); |
| 18140 | int |
| 18141 | main () |
| 18142 | { |
| 18143 | return ___chkstk (); |
| 18144 | ; |
| 18145 | return 0; |
| 18146 | } |
| 18147 | _ACEOF |
| 18148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18149 | if { (ac_try="$ac_link" |
| 18150 | case "(($ac_try" in |
| 18151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18152 | *) ac_try_echo=$ac_try;; |
| 18153 | esac |
| 18154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18155 | (eval "$ac_link") 2>conftest.er1 |
| 18156 | ac_status=$? |
| 18157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18158 | rm -f conftest.er1 |
| 18159 | cat conftest.err >&5 |
| 18160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18161 | (exit $ac_status); } && |
| 18162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18163 | { (case "(($ac_try" in |
| 18164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18165 | *) ac_try_echo=$ac_try;; |
| 18166 | esac |
| 18167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18168 | (eval "$ac_try") 2>&5 |
| 18169 | ac_status=$? |
| 18170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18171 | (exit $ac_status); }; } && |
| 18172 | { ac_try='test -s conftest$ac_exeext' |
| 18173 | { (case "(($ac_try" in |
| 18174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18175 | *) ac_try_echo=$ac_try;; |
| 18176 | esac |
| 18177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18178 | (eval "$ac_try") 2>&5 |
| 18179 | ac_status=$? |
| 18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18181 | (exit $ac_status); }; }; then |
| 18182 | ac_cv_lib_gcc____chkstk=yes |
| 18183 | else |
| 18184 | echo "$as_me: failed program was:" >&5 |
| 18185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18186 | |
| 18187 | ac_cv_lib_gcc____chkstk=no |
| 18188 | fi |
| 18189 | |
| 18190 | rm -f core conftest.err conftest.$ac_objext \ |
| 18191 | conftest$ac_exeext conftest.$ac_ext |
| 18192 | LIBS=$ac_check_lib_save_LIBS |
| 18193 | fi |
| 18194 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 18195 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 18196 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 18197 | |
| 18198 | cat >>confdefs.h <<\_ACEOF |
| 18199 | #define HAVE____CHKSTK 1 |
| 18200 | _ACEOF |
| 18201 | |
| 18202 | fi |
| 18203 | |
| 18204 | |
| 18205 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 18206 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 18207 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 18208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18209 | else |
| 18210 | ac_check_lib_save_LIBS=$LIBS |
| 18211 | LIBS="-lgcc $LIBS" |
| 18212 | cat >conftest.$ac_ext <<_ACEOF |
| 18213 | /* confdefs.h. */ |
| 18214 | _ACEOF |
| 18215 | cat confdefs.h >>conftest.$ac_ext |
| 18216 | cat >>conftest.$ac_ext <<_ACEOF |
| 18217 | /* end confdefs.h. */ |
| 18218 | |
| 18219 | /* Override any GCC internal prototype to avoid an error. |
| 18220 | Use char because int might match the return type of a GCC |
| 18221 | builtin and then its argument prototype would still apply. */ |
| 18222 | #ifdef __cplusplus |
| 18223 | extern "C" |
| 18224 | #endif |
| 18225 | char __ashldi3 (); |
| 18226 | int |
| 18227 | main () |
| 18228 | { |
| 18229 | return __ashldi3 (); |
| 18230 | ; |
| 18231 | return 0; |
| 18232 | } |
| 18233 | _ACEOF |
| 18234 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18235 | if { (ac_try="$ac_link" |
| 18236 | case "(($ac_try" in |
| 18237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18238 | *) ac_try_echo=$ac_try;; |
| 18239 | esac |
| 18240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18241 | (eval "$ac_link") 2>conftest.er1 |
| 18242 | ac_status=$? |
| 18243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18244 | rm -f conftest.er1 |
| 18245 | cat conftest.err >&5 |
| 18246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18247 | (exit $ac_status); } && |
| 18248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18249 | { (case "(($ac_try" in |
| 18250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18251 | *) ac_try_echo=$ac_try;; |
| 18252 | esac |
| 18253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18254 | (eval "$ac_try") 2>&5 |
| 18255 | ac_status=$? |
| 18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18257 | (exit $ac_status); }; } && |
| 18258 | { ac_try='test -s conftest$ac_exeext' |
| 18259 | { (case "(($ac_try" in |
| 18260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18261 | *) ac_try_echo=$ac_try;; |
| 18262 | esac |
| 18263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18264 | (eval "$ac_try") 2>&5 |
| 18265 | ac_status=$? |
| 18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18267 | (exit $ac_status); }; }; then |
| 18268 | ac_cv_lib_gcc___ashldi3=yes |
| 18269 | else |
| 18270 | echo "$as_me: failed program was:" >&5 |
| 18271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18272 | |
| 18273 | ac_cv_lib_gcc___ashldi3=no |
| 18274 | fi |
| 18275 | |
| 18276 | rm -f core conftest.err conftest.$ac_objext \ |
| 18277 | conftest$ac_exeext conftest.$ac_ext |
| 18278 | LIBS=$ac_check_lib_save_LIBS |
| 18279 | fi |
| 18280 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 18281 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 18282 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 18283 | |
| 18284 | cat >>confdefs.h <<\_ACEOF |
| 18285 | #define HAVE___ASHLDI3 1 |
| 18286 | _ACEOF |
| 18287 | |
| 18288 | fi |
| 18289 | |
| 18290 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 18291 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18292 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 18293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18294 | else |
| 18295 | ac_check_lib_save_LIBS=$LIBS |
| 18296 | LIBS="-lgcc $LIBS" |
| 18297 | cat >conftest.$ac_ext <<_ACEOF |
| 18298 | /* confdefs.h. */ |
| 18299 | _ACEOF |
| 18300 | cat confdefs.h >>conftest.$ac_ext |
| 18301 | cat >>conftest.$ac_ext <<_ACEOF |
| 18302 | /* end confdefs.h. */ |
| 18303 | |
| 18304 | /* Override any GCC internal prototype to avoid an error. |
| 18305 | Use char because int might match the return type of a GCC |
| 18306 | builtin and then its argument prototype would still apply. */ |
| 18307 | #ifdef __cplusplus |
| 18308 | extern "C" |
| 18309 | #endif |
| 18310 | char __ashrdi3 (); |
| 18311 | int |
| 18312 | main () |
| 18313 | { |
| 18314 | return __ashrdi3 (); |
| 18315 | ; |
| 18316 | return 0; |
| 18317 | } |
| 18318 | _ACEOF |
| 18319 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18320 | if { (ac_try="$ac_link" |
| 18321 | case "(($ac_try" in |
| 18322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18323 | *) ac_try_echo=$ac_try;; |
| 18324 | esac |
| 18325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18326 | (eval "$ac_link") 2>conftest.er1 |
| 18327 | ac_status=$? |
| 18328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18329 | rm -f conftest.er1 |
| 18330 | cat conftest.err >&5 |
| 18331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18332 | (exit $ac_status); } && |
| 18333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18334 | { (case "(($ac_try" in |
| 18335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18336 | *) ac_try_echo=$ac_try;; |
| 18337 | esac |
| 18338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18339 | (eval "$ac_try") 2>&5 |
| 18340 | ac_status=$? |
| 18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18342 | (exit $ac_status); }; } && |
| 18343 | { ac_try='test -s conftest$ac_exeext' |
| 18344 | { (case "(($ac_try" in |
| 18345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18346 | *) ac_try_echo=$ac_try;; |
| 18347 | esac |
| 18348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18349 | (eval "$ac_try") 2>&5 |
| 18350 | ac_status=$? |
| 18351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18352 | (exit $ac_status); }; }; then |
| 18353 | ac_cv_lib_gcc___ashrdi3=yes |
| 18354 | else |
| 18355 | echo "$as_me: failed program was:" >&5 |
| 18356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18357 | |
| 18358 | ac_cv_lib_gcc___ashrdi3=no |
| 18359 | fi |
| 18360 | |
| 18361 | rm -f core conftest.err conftest.$ac_objext \ |
| 18362 | conftest$ac_exeext conftest.$ac_ext |
| 18363 | LIBS=$ac_check_lib_save_LIBS |
| 18364 | fi |
| 18365 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 18366 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 18367 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 18368 | |
| 18369 | cat >>confdefs.h <<\_ACEOF |
| 18370 | #define HAVE___ASHRDI3 1 |
| 18371 | _ACEOF |
| 18372 | |
| 18373 | fi |
| 18374 | |
| 18375 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 18376 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 18377 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 18378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18379 | else |
| 18380 | ac_check_lib_save_LIBS=$LIBS |
| 18381 | LIBS="-lgcc $LIBS" |
| 18382 | cat >conftest.$ac_ext <<_ACEOF |
| 18383 | /* confdefs.h. */ |
| 18384 | _ACEOF |
| 18385 | cat confdefs.h >>conftest.$ac_ext |
| 18386 | cat >>conftest.$ac_ext <<_ACEOF |
| 18387 | /* end confdefs.h. */ |
| 18388 | |
| 18389 | /* Override any GCC internal prototype to avoid an error. |
| 18390 | Use char because int might match the return type of a GCC |
| 18391 | builtin and then its argument prototype would still apply. */ |
| 18392 | #ifdef __cplusplus |
| 18393 | extern "C" |
| 18394 | #endif |
| 18395 | char __divdi3 (); |
| 18396 | int |
| 18397 | main () |
| 18398 | { |
| 18399 | return __divdi3 (); |
| 18400 | ; |
| 18401 | return 0; |
| 18402 | } |
| 18403 | _ACEOF |
| 18404 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18405 | if { (ac_try="$ac_link" |
| 18406 | case "(($ac_try" in |
| 18407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18408 | *) ac_try_echo=$ac_try;; |
| 18409 | esac |
| 18410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18411 | (eval "$ac_link") 2>conftest.er1 |
| 18412 | ac_status=$? |
| 18413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18414 | rm -f conftest.er1 |
| 18415 | cat conftest.err >&5 |
| 18416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18417 | (exit $ac_status); } && |
| 18418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18419 | { (case "(($ac_try" in |
| 18420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18421 | *) ac_try_echo=$ac_try;; |
| 18422 | esac |
| 18423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18424 | (eval "$ac_try") 2>&5 |
| 18425 | ac_status=$? |
| 18426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18427 | (exit $ac_status); }; } && |
| 18428 | { ac_try='test -s conftest$ac_exeext' |
| 18429 | { (case "(($ac_try" in |
| 18430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18431 | *) ac_try_echo=$ac_try;; |
| 18432 | esac |
| 18433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18434 | (eval "$ac_try") 2>&5 |
| 18435 | ac_status=$? |
| 18436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18437 | (exit $ac_status); }; }; then |
| 18438 | ac_cv_lib_gcc___divdi3=yes |
| 18439 | else |
| 18440 | echo "$as_me: failed program was:" >&5 |
| 18441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18442 | |
| 18443 | ac_cv_lib_gcc___divdi3=no |
| 18444 | fi |
| 18445 | |
| 18446 | rm -f core conftest.err conftest.$ac_objext \ |
| 18447 | conftest$ac_exeext conftest.$ac_ext |
| 18448 | LIBS=$ac_check_lib_save_LIBS |
| 18449 | fi |
| 18450 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 18451 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 18452 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 18453 | |
| 18454 | cat >>confdefs.h <<\_ACEOF |
| 18455 | #define HAVE___DIVDI3 1 |
| 18456 | _ACEOF |
| 18457 | |
| 18458 | fi |
| 18459 | |
| 18460 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 18461 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 18462 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 18463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18464 | else |
| 18465 | ac_check_lib_save_LIBS=$LIBS |
| 18466 | LIBS="-lgcc $LIBS" |
| 18467 | cat >conftest.$ac_ext <<_ACEOF |
| 18468 | /* confdefs.h. */ |
| 18469 | _ACEOF |
| 18470 | cat confdefs.h >>conftest.$ac_ext |
| 18471 | cat >>conftest.$ac_ext <<_ACEOF |
| 18472 | /* end confdefs.h. */ |
| 18473 | |
| 18474 | /* Override any GCC internal prototype to avoid an error. |
| 18475 | Use char because int might match the return type of a GCC |
| 18476 | builtin and then its argument prototype would still apply. */ |
| 18477 | #ifdef __cplusplus |
| 18478 | extern "C" |
| 18479 | #endif |
| 18480 | char __fixdfdi (); |
| 18481 | int |
| 18482 | main () |
| 18483 | { |
| 18484 | return __fixdfdi (); |
| 18485 | ; |
| 18486 | return 0; |
| 18487 | } |
| 18488 | _ACEOF |
| 18489 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18490 | if { (ac_try="$ac_link" |
| 18491 | case "(($ac_try" in |
| 18492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18493 | *) ac_try_echo=$ac_try;; |
| 18494 | esac |
| 18495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18496 | (eval "$ac_link") 2>conftest.er1 |
| 18497 | ac_status=$? |
| 18498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18499 | rm -f conftest.er1 |
| 18500 | cat conftest.err >&5 |
| 18501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18502 | (exit $ac_status); } && |
| 18503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18504 | { (case "(($ac_try" in |
| 18505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18506 | *) ac_try_echo=$ac_try;; |
| 18507 | esac |
| 18508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18509 | (eval "$ac_try") 2>&5 |
| 18510 | ac_status=$? |
| 18511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18512 | (exit $ac_status); }; } && |
| 18513 | { ac_try='test -s conftest$ac_exeext' |
| 18514 | { (case "(($ac_try" in |
| 18515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18516 | *) ac_try_echo=$ac_try;; |
| 18517 | esac |
| 18518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18519 | (eval "$ac_try") 2>&5 |
| 18520 | ac_status=$? |
| 18521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18522 | (exit $ac_status); }; }; then |
| 18523 | ac_cv_lib_gcc___fixdfdi=yes |
| 18524 | else |
| 18525 | echo "$as_me: failed program was:" >&5 |
| 18526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18527 | |
| 18528 | ac_cv_lib_gcc___fixdfdi=no |
| 18529 | fi |
| 18530 | |
| 18531 | rm -f core conftest.err conftest.$ac_objext \ |
| 18532 | conftest$ac_exeext conftest.$ac_ext |
| 18533 | LIBS=$ac_check_lib_save_LIBS |
| 18534 | fi |
| 18535 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 18536 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 18537 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 18538 | |
| 18539 | cat >>confdefs.h <<\_ACEOF |
| 18540 | #define HAVE___FIXDFDI 1 |
| 18541 | _ACEOF |
| 18542 | |
| 18543 | fi |
| 18544 | |
| 18545 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 18546 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 18547 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 18548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18549 | else |
| 18550 | ac_check_lib_save_LIBS=$LIBS |
| 18551 | LIBS="-lgcc $LIBS" |
| 18552 | cat >conftest.$ac_ext <<_ACEOF |
| 18553 | /* confdefs.h. */ |
| 18554 | _ACEOF |
| 18555 | cat confdefs.h >>conftest.$ac_ext |
| 18556 | cat >>conftest.$ac_ext <<_ACEOF |
| 18557 | /* end confdefs.h. */ |
| 18558 | |
| 18559 | /* Override any GCC internal prototype to avoid an error. |
| 18560 | Use char because int might match the return type of a GCC |
| 18561 | builtin and then its argument prototype would still apply. */ |
| 18562 | #ifdef __cplusplus |
| 18563 | extern "C" |
| 18564 | #endif |
| 18565 | char __fixsfdi (); |
| 18566 | int |
| 18567 | main () |
| 18568 | { |
| 18569 | return __fixsfdi (); |
| 18570 | ; |
| 18571 | return 0; |
| 18572 | } |
| 18573 | _ACEOF |
| 18574 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18575 | if { (ac_try="$ac_link" |
| 18576 | case "(($ac_try" in |
| 18577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18578 | *) ac_try_echo=$ac_try;; |
| 18579 | esac |
| 18580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18581 | (eval "$ac_link") 2>conftest.er1 |
| 18582 | ac_status=$? |
| 18583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18584 | rm -f conftest.er1 |
| 18585 | cat conftest.err >&5 |
| 18586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18587 | (exit $ac_status); } && |
| 18588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18589 | { (case "(($ac_try" in |
| 18590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18591 | *) ac_try_echo=$ac_try;; |
| 18592 | esac |
| 18593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18594 | (eval "$ac_try") 2>&5 |
| 18595 | ac_status=$? |
| 18596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18597 | (exit $ac_status); }; } && |
| 18598 | { ac_try='test -s conftest$ac_exeext' |
| 18599 | { (case "(($ac_try" in |
| 18600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18601 | *) ac_try_echo=$ac_try;; |
| 18602 | esac |
| 18603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18604 | (eval "$ac_try") 2>&5 |
| 18605 | ac_status=$? |
| 18606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18607 | (exit $ac_status); }; }; then |
| 18608 | ac_cv_lib_gcc___fixsfdi=yes |
| 18609 | else |
| 18610 | echo "$as_me: failed program was:" >&5 |
| 18611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18612 | |
| 18613 | ac_cv_lib_gcc___fixsfdi=no |
| 18614 | fi |
| 18615 | |
| 18616 | rm -f core conftest.err conftest.$ac_objext \ |
| 18617 | conftest$ac_exeext conftest.$ac_ext |
| 18618 | LIBS=$ac_check_lib_save_LIBS |
| 18619 | fi |
| 18620 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 18621 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 18622 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 18623 | |
| 18624 | cat >>confdefs.h <<\_ACEOF |
| 18625 | #define HAVE___FIXSFDI 1 |
| 18626 | _ACEOF |
| 18627 | |
| 18628 | fi |
| 18629 | |
| 18630 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 18631 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 18632 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 18633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18634 | else |
| 18635 | ac_check_lib_save_LIBS=$LIBS |
| 18636 | LIBS="-lgcc $LIBS" |
| 18637 | cat >conftest.$ac_ext <<_ACEOF |
| 18638 | /* confdefs.h. */ |
| 18639 | _ACEOF |
| 18640 | cat confdefs.h >>conftest.$ac_ext |
| 18641 | cat >>conftest.$ac_ext <<_ACEOF |
| 18642 | /* end confdefs.h. */ |
| 18643 | |
| 18644 | /* Override any GCC internal prototype to avoid an error. |
| 18645 | Use char because int might match the return type of a GCC |
| 18646 | builtin and then its argument prototype would still apply. */ |
| 18647 | #ifdef __cplusplus |
| 18648 | extern "C" |
| 18649 | #endif |
| 18650 | char __floatdidf (); |
| 18651 | int |
| 18652 | main () |
| 18653 | { |
| 18654 | return __floatdidf (); |
| 18655 | ; |
| 18656 | return 0; |
| 18657 | } |
| 18658 | _ACEOF |
| 18659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18660 | if { (ac_try="$ac_link" |
| 18661 | case "(($ac_try" in |
| 18662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18663 | *) ac_try_echo=$ac_try;; |
| 18664 | esac |
| 18665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18666 | (eval "$ac_link") 2>conftest.er1 |
| 18667 | ac_status=$? |
| 18668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18669 | rm -f conftest.er1 |
| 18670 | cat conftest.err >&5 |
| 18671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18672 | (exit $ac_status); } && |
| 18673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18674 | { (case "(($ac_try" in |
| 18675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18676 | *) ac_try_echo=$ac_try;; |
| 18677 | esac |
| 18678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18679 | (eval "$ac_try") 2>&5 |
| 18680 | ac_status=$? |
| 18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18682 | (exit $ac_status); }; } && |
| 18683 | { ac_try='test -s conftest$ac_exeext' |
| 18684 | { (case "(($ac_try" in |
| 18685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18686 | *) ac_try_echo=$ac_try;; |
| 18687 | esac |
| 18688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18689 | (eval "$ac_try") 2>&5 |
| 18690 | ac_status=$? |
| 18691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18692 | (exit $ac_status); }; }; then |
| 18693 | ac_cv_lib_gcc___floatdidf=yes |
| 18694 | else |
| 18695 | echo "$as_me: failed program was:" >&5 |
| 18696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18697 | |
| 18698 | ac_cv_lib_gcc___floatdidf=no |
| 18699 | fi |
| 18700 | |
| 18701 | rm -f core conftest.err conftest.$ac_objext \ |
| 18702 | conftest$ac_exeext conftest.$ac_ext |
| 18703 | LIBS=$ac_check_lib_save_LIBS |
| 18704 | fi |
| 18705 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 18706 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 18707 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 18708 | |
| 18709 | cat >>confdefs.h <<\_ACEOF |
| 18710 | #define HAVE___FLOATDIDF 1 |
| 18711 | _ACEOF |
| 18712 | |
| 18713 | fi |
| 18714 | |
| 18715 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 18716 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18717 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 18718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18719 | else |
| 18720 | ac_check_lib_save_LIBS=$LIBS |
| 18721 | LIBS="-lgcc $LIBS" |
| 18722 | cat >conftest.$ac_ext <<_ACEOF |
| 18723 | /* confdefs.h. */ |
| 18724 | _ACEOF |
| 18725 | cat confdefs.h >>conftest.$ac_ext |
| 18726 | cat >>conftest.$ac_ext <<_ACEOF |
| 18727 | /* end confdefs.h. */ |
| 18728 | |
| 18729 | /* Override any GCC internal prototype to avoid an error. |
| 18730 | Use char because int might match the return type of a GCC |
| 18731 | builtin and then its argument prototype would still apply. */ |
| 18732 | #ifdef __cplusplus |
| 18733 | extern "C" |
| 18734 | #endif |
| 18735 | char __lshrdi3 (); |
| 18736 | int |
| 18737 | main () |
| 18738 | { |
| 18739 | return __lshrdi3 (); |
| 18740 | ; |
| 18741 | return 0; |
| 18742 | } |
| 18743 | _ACEOF |
| 18744 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18745 | if { (ac_try="$ac_link" |
| 18746 | case "(($ac_try" in |
| 18747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18748 | *) ac_try_echo=$ac_try;; |
| 18749 | esac |
| 18750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18751 | (eval "$ac_link") 2>conftest.er1 |
| 18752 | ac_status=$? |
| 18753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18754 | rm -f conftest.er1 |
| 18755 | cat conftest.err >&5 |
| 18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18757 | (exit $ac_status); } && |
| 18758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18759 | { (case "(($ac_try" in |
| 18760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18761 | *) ac_try_echo=$ac_try;; |
| 18762 | esac |
| 18763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18764 | (eval "$ac_try") 2>&5 |
| 18765 | ac_status=$? |
| 18766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18767 | (exit $ac_status); }; } && |
| 18768 | { ac_try='test -s conftest$ac_exeext' |
| 18769 | { (case "(($ac_try" in |
| 18770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18771 | *) ac_try_echo=$ac_try;; |
| 18772 | esac |
| 18773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18774 | (eval "$ac_try") 2>&5 |
| 18775 | ac_status=$? |
| 18776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18777 | (exit $ac_status); }; }; then |
| 18778 | ac_cv_lib_gcc___lshrdi3=yes |
| 18779 | else |
| 18780 | echo "$as_me: failed program was:" >&5 |
| 18781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18782 | |
| 18783 | ac_cv_lib_gcc___lshrdi3=no |
| 18784 | fi |
| 18785 | |
| 18786 | rm -f core conftest.err conftest.$ac_objext \ |
| 18787 | conftest$ac_exeext conftest.$ac_ext |
| 18788 | LIBS=$ac_check_lib_save_LIBS |
| 18789 | fi |
| 18790 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 18791 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 18792 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 18793 | |
| 18794 | cat >>confdefs.h <<\_ACEOF |
| 18795 | #define HAVE___LSHRDI3 1 |
| 18796 | _ACEOF |
| 18797 | |
| 18798 | fi |
| 18799 | |
| 18800 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 18801 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 18802 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 18803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18804 | else |
| 18805 | ac_check_lib_save_LIBS=$LIBS |
| 18806 | LIBS="-lgcc $LIBS" |
| 18807 | cat >conftest.$ac_ext <<_ACEOF |
| 18808 | /* confdefs.h. */ |
| 18809 | _ACEOF |
| 18810 | cat confdefs.h >>conftest.$ac_ext |
| 18811 | cat >>conftest.$ac_ext <<_ACEOF |
| 18812 | /* end confdefs.h. */ |
| 18813 | |
| 18814 | /* Override any GCC internal prototype to avoid an error. |
| 18815 | Use char because int might match the return type of a GCC |
| 18816 | builtin and then its argument prototype would still apply. */ |
| 18817 | #ifdef __cplusplus |
| 18818 | extern "C" |
| 18819 | #endif |
| 18820 | char __moddi3 (); |
| 18821 | int |
| 18822 | main () |
| 18823 | { |
| 18824 | return __moddi3 (); |
| 18825 | ; |
| 18826 | return 0; |
| 18827 | } |
| 18828 | _ACEOF |
| 18829 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18830 | if { (ac_try="$ac_link" |
| 18831 | case "(($ac_try" in |
| 18832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18833 | *) ac_try_echo=$ac_try;; |
| 18834 | esac |
| 18835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18836 | (eval "$ac_link") 2>conftest.er1 |
| 18837 | ac_status=$? |
| 18838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18839 | rm -f conftest.er1 |
| 18840 | cat conftest.err >&5 |
| 18841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18842 | (exit $ac_status); } && |
| 18843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18844 | { (case "(($ac_try" in |
| 18845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18846 | *) ac_try_echo=$ac_try;; |
| 18847 | esac |
| 18848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18849 | (eval "$ac_try") 2>&5 |
| 18850 | ac_status=$? |
| 18851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18852 | (exit $ac_status); }; } && |
| 18853 | { ac_try='test -s conftest$ac_exeext' |
| 18854 | { (case "(($ac_try" in |
| 18855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18856 | *) ac_try_echo=$ac_try;; |
| 18857 | esac |
| 18858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18859 | (eval "$ac_try") 2>&5 |
| 18860 | ac_status=$? |
| 18861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18862 | (exit $ac_status); }; }; then |
| 18863 | ac_cv_lib_gcc___moddi3=yes |
| 18864 | else |
| 18865 | echo "$as_me: failed program was:" >&5 |
| 18866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18867 | |
| 18868 | ac_cv_lib_gcc___moddi3=no |
| 18869 | fi |
| 18870 | |
| 18871 | rm -f core conftest.err conftest.$ac_objext \ |
| 18872 | conftest$ac_exeext conftest.$ac_ext |
| 18873 | LIBS=$ac_check_lib_save_LIBS |
| 18874 | fi |
| 18875 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 18876 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 18877 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 18878 | |
| 18879 | cat >>confdefs.h <<\_ACEOF |
| 18880 | #define HAVE___MODDI3 1 |
| 18881 | _ACEOF |
| 18882 | |
| 18883 | fi |
| 18884 | |
| 18885 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 18886 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 18887 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 18888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18889 | else |
| 18890 | ac_check_lib_save_LIBS=$LIBS |
| 18891 | LIBS="-lgcc $LIBS" |
| 18892 | cat >conftest.$ac_ext <<_ACEOF |
| 18893 | /* confdefs.h. */ |
| 18894 | _ACEOF |
| 18895 | cat confdefs.h >>conftest.$ac_ext |
| 18896 | cat >>conftest.$ac_ext <<_ACEOF |
| 18897 | /* end confdefs.h. */ |
| 18898 | |
| 18899 | /* Override any GCC internal prototype to avoid an error. |
| 18900 | Use char because int might match the return type of a GCC |
| 18901 | builtin and then its argument prototype would still apply. */ |
| 18902 | #ifdef __cplusplus |
| 18903 | extern "C" |
| 18904 | #endif |
| 18905 | char __udivdi3 (); |
| 18906 | int |
| 18907 | main () |
| 18908 | { |
| 18909 | return __udivdi3 (); |
| 18910 | ; |
| 18911 | return 0; |
| 18912 | } |
| 18913 | _ACEOF |
| 18914 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18915 | if { (ac_try="$ac_link" |
| 18916 | case "(($ac_try" in |
| 18917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18918 | *) ac_try_echo=$ac_try;; |
| 18919 | esac |
| 18920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18921 | (eval "$ac_link") 2>conftest.er1 |
| 18922 | ac_status=$? |
| 18923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18924 | rm -f conftest.er1 |
| 18925 | cat conftest.err >&5 |
| 18926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18927 | (exit $ac_status); } && |
| 18928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18929 | { (case "(($ac_try" in |
| 18930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18931 | *) ac_try_echo=$ac_try;; |
| 18932 | esac |
| 18933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18934 | (eval "$ac_try") 2>&5 |
| 18935 | ac_status=$? |
| 18936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18937 | (exit $ac_status); }; } && |
| 18938 | { ac_try='test -s conftest$ac_exeext' |
| 18939 | { (case "(($ac_try" in |
| 18940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18941 | *) ac_try_echo=$ac_try;; |
| 18942 | esac |
| 18943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18944 | (eval "$ac_try") 2>&5 |
| 18945 | ac_status=$? |
| 18946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18947 | (exit $ac_status); }; }; then |
| 18948 | ac_cv_lib_gcc___udivdi3=yes |
| 18949 | else |
| 18950 | echo "$as_me: failed program was:" >&5 |
| 18951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18952 | |
| 18953 | ac_cv_lib_gcc___udivdi3=no |
| 18954 | fi |
| 18955 | |
| 18956 | rm -f core conftest.err conftest.$ac_objext \ |
| 18957 | conftest$ac_exeext conftest.$ac_ext |
| 18958 | LIBS=$ac_check_lib_save_LIBS |
| 18959 | fi |
| 18960 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 18961 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 18962 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 18963 | |
| 18964 | cat >>confdefs.h <<\_ACEOF |
| 18965 | #define HAVE___UDIVDI3 1 |
| 18966 | _ACEOF |
| 18967 | |
| 18968 | fi |
| 18969 | |
| 18970 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 18971 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 18972 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 18973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18974 | else |
| 18975 | ac_check_lib_save_LIBS=$LIBS |
| 18976 | LIBS="-lgcc $LIBS" |
| 18977 | cat >conftest.$ac_ext <<_ACEOF |
| 18978 | /* confdefs.h. */ |
| 18979 | _ACEOF |
| 18980 | cat confdefs.h >>conftest.$ac_ext |
| 18981 | cat >>conftest.$ac_ext <<_ACEOF |
| 18982 | /* end confdefs.h. */ |
| 18983 | |
| 18984 | /* Override any GCC internal prototype to avoid an error. |
| 18985 | Use char because int might match the return type of a GCC |
| 18986 | builtin and then its argument prototype would still apply. */ |
| 18987 | #ifdef __cplusplus |
| 18988 | extern "C" |
| 18989 | #endif |
| 18990 | char __umoddi3 (); |
| 18991 | int |
| 18992 | main () |
| 18993 | { |
| 18994 | return __umoddi3 (); |
| 18995 | ; |
| 18996 | return 0; |
| 18997 | } |
| 18998 | _ACEOF |
| 18999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19000 | if { (ac_try="$ac_link" |
| 19001 | case "(($ac_try" in |
| 19002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19003 | *) ac_try_echo=$ac_try;; |
| 19004 | esac |
| 19005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19006 | (eval "$ac_link") 2>conftest.er1 |
| 19007 | ac_status=$? |
| 19008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19009 | rm -f conftest.er1 |
| 19010 | cat conftest.err >&5 |
| 19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19012 | (exit $ac_status); } && |
| 19013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19014 | { (case "(($ac_try" in |
| 19015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19016 | *) ac_try_echo=$ac_try;; |
| 19017 | esac |
| 19018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19019 | (eval "$ac_try") 2>&5 |
| 19020 | ac_status=$? |
| 19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19022 | (exit $ac_status); }; } && |
| 19023 | { ac_try='test -s conftest$ac_exeext' |
| 19024 | { (case "(($ac_try" in |
| 19025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19026 | *) ac_try_echo=$ac_try;; |
| 19027 | esac |
| 19028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19029 | (eval "$ac_try") 2>&5 |
| 19030 | ac_status=$? |
| 19031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19032 | (exit $ac_status); }; }; then |
| 19033 | ac_cv_lib_gcc___umoddi3=yes |
| 19034 | else |
| 19035 | echo "$as_me: failed program was:" >&5 |
| 19036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19037 | |
| 19038 | ac_cv_lib_gcc___umoddi3=no |
| 19039 | fi |
| 19040 | |
| 19041 | rm -f core conftest.err conftest.$ac_objext \ |
| 19042 | conftest$ac_exeext conftest.$ac_ext |
| 19043 | LIBS=$ac_check_lib_save_LIBS |
| 19044 | fi |
| 19045 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 19046 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 19047 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 19048 | |
| 19049 | cat >>confdefs.h <<\_ACEOF |
| 19050 | #define HAVE___UMODDI3 1 |
| 19051 | _ACEOF |
| 19052 | |
| 19053 | fi |
| 19054 | |
| 19055 | |
| 19056 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 19057 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 19058 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 19059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19060 | else |
| 19061 | ac_check_lib_save_LIBS=$LIBS |
| 19062 | LIBS="-lgcc $LIBS" |
| 19063 | cat >conftest.$ac_ext <<_ACEOF |
| 19064 | /* confdefs.h. */ |
| 19065 | _ACEOF |
| 19066 | cat confdefs.h >>conftest.$ac_ext |
| 19067 | cat >>conftest.$ac_ext <<_ACEOF |
| 19068 | /* end confdefs.h. */ |
| 19069 | |
| 19070 | /* Override any GCC internal prototype to avoid an error. |
| 19071 | Use char because int might match the return type of a GCC |
| 19072 | builtin and then its argument prototype would still apply. */ |
| 19073 | #ifdef __cplusplus |
| 19074 | extern "C" |
| 19075 | #endif |
| 19076 | char __main (); |
| 19077 | int |
| 19078 | main () |
| 19079 | { |
| 19080 | return __main (); |
| 19081 | ; |
| 19082 | return 0; |
| 19083 | } |
| 19084 | _ACEOF |
| 19085 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19086 | if { (ac_try="$ac_link" |
| 19087 | case "(($ac_try" in |
| 19088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19089 | *) ac_try_echo=$ac_try;; |
| 19090 | esac |
| 19091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19092 | (eval "$ac_link") 2>conftest.er1 |
| 19093 | ac_status=$? |
| 19094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19095 | rm -f conftest.er1 |
| 19096 | cat conftest.err >&5 |
| 19097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19098 | (exit $ac_status); } && |
| 19099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19100 | { (case "(($ac_try" in |
| 19101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19102 | *) ac_try_echo=$ac_try;; |
| 19103 | esac |
| 19104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19105 | (eval "$ac_try") 2>&5 |
| 19106 | ac_status=$? |
| 19107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19108 | (exit $ac_status); }; } && |
| 19109 | { ac_try='test -s conftest$ac_exeext' |
| 19110 | { (case "(($ac_try" in |
| 19111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19112 | *) ac_try_echo=$ac_try;; |
| 19113 | esac |
| 19114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19115 | (eval "$ac_try") 2>&5 |
| 19116 | ac_status=$? |
| 19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19118 | (exit $ac_status); }; }; then |
| 19119 | ac_cv_lib_gcc___main=yes |
| 19120 | else |
| 19121 | echo "$as_me: failed program was:" >&5 |
| 19122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19123 | |
| 19124 | ac_cv_lib_gcc___main=no |
| 19125 | fi |
| 19126 | |
| 19127 | rm -f core conftest.err conftest.$ac_objext \ |
| 19128 | conftest$ac_exeext conftest.$ac_ext |
| 19129 | LIBS=$ac_check_lib_save_LIBS |
| 19130 | fi |
| 19131 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 19132 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 19133 | if test $ac_cv_lib_gcc___main = yes; then |
| 19134 | |
| 19135 | cat >>confdefs.h <<\_ACEOF |
| 19136 | #define HAVE___MAIN 1 |
| 19137 | _ACEOF |
| 19138 | |
| 19139 | fi |
| 19140 | |
| 19141 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 19142 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 19143 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 19144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19145 | else |
| 19146 | ac_check_lib_save_LIBS=$LIBS |
| 19147 | LIBS="-lgcc $LIBS" |
| 19148 | cat >conftest.$ac_ext <<_ACEOF |
| 19149 | /* confdefs.h. */ |
| 19150 | _ACEOF |
| 19151 | cat confdefs.h >>conftest.$ac_ext |
| 19152 | cat >>conftest.$ac_ext <<_ACEOF |
| 19153 | /* end confdefs.h. */ |
| 19154 | |
| 19155 | /* Override any GCC internal prototype to avoid an error. |
| 19156 | Use char because int might match the return type of a GCC |
| 19157 | builtin and then its argument prototype would still apply. */ |
| 19158 | #ifdef __cplusplus |
| 19159 | extern "C" |
| 19160 | #endif |
| 19161 | char __cmpdi2 (); |
| 19162 | int |
| 19163 | main () |
| 19164 | { |
| 19165 | return __cmpdi2 (); |
| 19166 | ; |
| 19167 | return 0; |
| 19168 | } |
| 19169 | _ACEOF |
| 19170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19171 | if { (ac_try="$ac_link" |
| 19172 | case "(($ac_try" in |
| 19173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19174 | *) ac_try_echo=$ac_try;; |
| 19175 | esac |
| 19176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19177 | (eval "$ac_link") 2>conftest.er1 |
| 19178 | ac_status=$? |
| 19179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19180 | rm -f conftest.er1 |
| 19181 | cat conftest.err >&5 |
| 19182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19183 | (exit $ac_status); } && |
| 19184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19185 | { (case "(($ac_try" in |
| 19186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19187 | *) ac_try_echo=$ac_try;; |
| 19188 | esac |
| 19189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19190 | (eval "$ac_try") 2>&5 |
| 19191 | ac_status=$? |
| 19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19193 | (exit $ac_status); }; } && |
| 19194 | { ac_try='test -s conftest$ac_exeext' |
| 19195 | { (case "(($ac_try" in |
| 19196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19197 | *) ac_try_echo=$ac_try;; |
| 19198 | esac |
| 19199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19200 | (eval "$ac_try") 2>&5 |
| 19201 | ac_status=$? |
| 19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19203 | (exit $ac_status); }; }; then |
| 19204 | ac_cv_lib_gcc___cmpdi2=yes |
| 19205 | else |
| 19206 | echo "$as_me: failed program was:" >&5 |
| 19207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19208 | |
| 19209 | ac_cv_lib_gcc___cmpdi2=no |
| 19210 | fi |
| 19211 | |
| 19212 | rm -f core conftest.err conftest.$ac_objext \ |
| 19213 | conftest$ac_exeext conftest.$ac_ext |
| 19214 | LIBS=$ac_check_lib_save_LIBS |
| 19215 | fi |
| 19216 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 19217 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 19218 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 19219 | |
| 19220 | cat >>confdefs.h <<\_ACEOF |
| 19221 | #define HAVE___CMPDI2 1 |
| 19222 | _ACEOF |
| 19223 | |
| 19224 | fi |
| 19225 | |
| 19226 | fi |
| 19227 | |
NAKAMURA Takumi | 6073a05 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19228 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19229 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 19230 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 19231 | cat >conftest.$ac_ext <<_ACEOF |
| 19232 | #include <windows.h> |
| 19233 | #include <imagehlp.h> |
| 19234 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 19235 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 19236 | _ACEOF |
| 19237 | rm -f conftest.$ac_objext |
| 19238 | if { (ac_try="$ac_compile" |
| 19239 | case "(($ac_try" in |
| 19240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19241 | *) ac_try_echo=$ac_try;; |
| 19242 | esac |
| 19243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19244 | (eval "$ac_compile") 2>conftest.er1 |
| 19245 | ac_status=$? |
| 19246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19247 | rm -f conftest.er1 |
| 19248 | cat conftest.err >&5 |
| 19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19250 | (exit $ac_status); } && |
| 19251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19252 | { (case "(($ac_try" in |
| 19253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19254 | *) ac_try_echo=$ac_try;; |
| 19255 | esac |
| 19256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19257 | (eval "$ac_try") 2>&5 |
| 19258 | ac_status=$? |
| 19259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19260 | (exit $ac_status); }; } && |
| 19261 | { ac_try='test -s conftest.$ac_objext' |
| 19262 | { (case "(($ac_try" in |
| 19263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19264 | *) ac_try_echo=$ac_try;; |
| 19265 | esac |
| 19266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19267 | (eval "$ac_try") 2>&5 |
| 19268 | ac_status=$? |
| 19269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19270 | (exit $ac_status); }; }; then |
| 19271 | |
| 19272 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19273 | echo "${ECHO_T}yes" >&6; } |
| 19274 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 19275 | |
| 19276 | else |
| 19277 | echo "$as_me: failed program was:" >&5 |
| 19278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19279 | |
| 19280 | |
| 19281 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19282 | echo "${ECHO_T}no" >&6; } |
| 19283 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 19284 | |
| 19285 | fi |
| 19286 | |
| 19287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19288 | |
| 19289 | cat >>confdefs.h <<_ACEOF |
| 19290 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 19291 | _ACEOF |
| 19292 | |
| 19293 | fi |
| 19294 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19295 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19296 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 19297 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 19298 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 19299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19300 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19301 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19302 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19303 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19304 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19305 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19306 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19307 | cat >conftest.$ac_ext <<_ACEOF |
| 19308 | /* confdefs.h. */ |
| 19309 | _ACEOF |
| 19310 | cat confdefs.h >>conftest.$ac_ext |
| 19311 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19312 | /* end confdefs.h. */ |
| 19313 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19314 | int |
| 19315 | main () |
| 19316 | { |
| 19317 | float f; isnan(f); |
| 19318 | ; |
| 19319 | return 0; |
| 19320 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19321 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19322 | rm -f conftest.$ac_objext |
| 19323 | if { (ac_try="$ac_compile" |
| 19324 | case "(($ac_try" in |
| 19325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19326 | *) ac_try_echo=$ac_try;; |
| 19327 | esac |
| 19328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19329 | (eval "$ac_compile") 2>conftest.er1 |
| 19330 | ac_status=$? |
| 19331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19332 | rm -f conftest.er1 |
| 19333 | cat conftest.err >&5 |
| 19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19335 | (exit $ac_status); } && |
| 19336 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19337 | { (case "(($ac_try" in |
| 19338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19339 | *) ac_try_echo=$ac_try;; |
| 19340 | esac |
| 19341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19342 | (eval "$ac_try") 2>&5 |
| 19343 | ac_status=$? |
| 19344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19345 | (exit $ac_status); }; } && |
| 19346 | { ac_try='test -s conftest.$ac_objext' |
| 19347 | { (case "(($ac_try" in |
| 19348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19349 | *) ac_try_echo=$ac_try;; |
| 19350 | esac |
| 19351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19352 | (eval "$ac_try") 2>&5 |
| 19353 | ac_status=$? |
| 19354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19355 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19356 | ac_cv_func_isnan_in_math_h=yes |
| 19357 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19358 | echo "$as_me: failed program was:" >&5 |
| 19359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19360 | |
| 19361 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19362 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19365 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19366 | ac_cpp='$CPP $CPPFLAGS' |
| 19367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19370 | |
| 19371 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19372 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19373 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19374 | |
| 19375 | |
| 19376 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19377 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19378 | cat >>confdefs.h <<\_ACEOF |
| 19379 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19380 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19381 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19382 | fi |
| 19383 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19384 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19385 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19386 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19388 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19389 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19390 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19391 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19392 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19393 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19394 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19395 | cat >conftest.$ac_ext <<_ACEOF |
| 19396 | /* confdefs.h. */ |
| 19397 | _ACEOF |
| 19398 | cat confdefs.h >>conftest.$ac_ext |
| 19399 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19400 | /* end confdefs.h. */ |
| 19401 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19402 | int |
| 19403 | main () |
| 19404 | { |
| 19405 | float f; isnan(f); |
| 19406 | ; |
| 19407 | return 0; |
| 19408 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19409 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19410 | rm -f conftest.$ac_objext |
| 19411 | if { (ac_try="$ac_compile" |
| 19412 | case "(($ac_try" in |
| 19413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19414 | *) ac_try_echo=$ac_try;; |
| 19415 | esac |
| 19416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19417 | (eval "$ac_compile") 2>conftest.er1 |
| 19418 | ac_status=$? |
| 19419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19420 | rm -f conftest.er1 |
| 19421 | cat conftest.err >&5 |
| 19422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19423 | (exit $ac_status); } && |
| 19424 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19425 | { (case "(($ac_try" in |
| 19426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19427 | *) ac_try_echo=$ac_try;; |
| 19428 | esac |
| 19429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19430 | (eval "$ac_try") 2>&5 |
| 19431 | ac_status=$? |
| 19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19433 | (exit $ac_status); }; } && |
| 19434 | { ac_try='test -s conftest.$ac_objext' |
| 19435 | { (case "(($ac_try" in |
| 19436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19437 | *) ac_try_echo=$ac_try;; |
| 19438 | esac |
| 19439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19440 | (eval "$ac_try") 2>&5 |
| 19441 | ac_status=$? |
| 19442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19443 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19444 | ac_cv_func_isnan_in_cmath=yes |
| 19445 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19446 | echo "$as_me: failed program was:" >&5 |
| 19447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19448 | |
| 19449 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19450 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19451 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19453 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19454 | ac_cpp='$CPP $CPPFLAGS' |
| 19455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19458 | |
| 19459 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19460 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19461 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19462 | |
| 19463 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19464 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19465 | cat >>confdefs.h <<\_ACEOF |
| 19466 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19467 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19468 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19469 | fi |
| 19470 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19471 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19472 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19473 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19475 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19476 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19477 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19478 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19479 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19480 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19481 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19482 | cat >conftest.$ac_ext <<_ACEOF |
| 19483 | /* confdefs.h. */ |
| 19484 | _ACEOF |
| 19485 | cat confdefs.h >>conftest.$ac_ext |
| 19486 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19487 | /* end confdefs.h. */ |
| 19488 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19489 | int |
| 19490 | main () |
| 19491 | { |
| 19492 | float f; std::isnan(f); |
| 19493 | ; |
| 19494 | return 0; |
| 19495 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19496 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19497 | rm -f conftest.$ac_objext |
| 19498 | if { (ac_try="$ac_compile" |
| 19499 | case "(($ac_try" in |
| 19500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19501 | *) ac_try_echo=$ac_try;; |
| 19502 | esac |
| 19503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19504 | (eval "$ac_compile") 2>conftest.er1 |
| 19505 | ac_status=$? |
| 19506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19507 | rm -f conftest.er1 |
| 19508 | cat conftest.err >&5 |
| 19509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19510 | (exit $ac_status); } && |
| 19511 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19512 | { (case "(($ac_try" in |
| 19513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19514 | *) ac_try_echo=$ac_try;; |
| 19515 | esac |
| 19516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19517 | (eval "$ac_try") 2>&5 |
| 19518 | ac_status=$? |
| 19519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19520 | (exit $ac_status); }; } && |
| 19521 | { ac_try='test -s conftest.$ac_objext' |
| 19522 | { (case "(($ac_try" in |
| 19523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19524 | *) ac_try_echo=$ac_try;; |
| 19525 | esac |
| 19526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19527 | (eval "$ac_try") 2>&5 |
| 19528 | ac_status=$? |
| 19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19530 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19531 | ac_cv_func_std_isnan_in_cmath=yes |
| 19532 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19533 | echo "$as_me: failed program was:" >&5 |
| 19534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19535 | |
| 19536 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19537 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19540 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19541 | ac_cpp='$CPP $CPPFLAGS' |
| 19542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19545 | |
| 19546 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19547 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19548 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19549 | |
| 19550 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19551 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19552 | cat >>confdefs.h <<\_ACEOF |
| 19553 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19554 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19555 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19556 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19557 | |
| 19558 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19559 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19560 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19561 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19563 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19564 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19565 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19566 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19567 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19568 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19569 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19570 | cat >conftest.$ac_ext <<_ACEOF |
| 19571 | /* confdefs.h. */ |
| 19572 | _ACEOF |
| 19573 | cat confdefs.h >>conftest.$ac_ext |
| 19574 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19575 | /* end confdefs.h. */ |
| 19576 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19577 | int |
| 19578 | main () |
| 19579 | { |
| 19580 | float f; isinf(f); |
| 19581 | ; |
| 19582 | return 0; |
| 19583 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19584 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19585 | rm -f conftest.$ac_objext |
| 19586 | if { (ac_try="$ac_compile" |
| 19587 | case "(($ac_try" in |
| 19588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19589 | *) ac_try_echo=$ac_try;; |
| 19590 | esac |
| 19591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19592 | (eval "$ac_compile") 2>conftest.er1 |
| 19593 | ac_status=$? |
| 19594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19595 | rm -f conftest.er1 |
| 19596 | cat conftest.err >&5 |
| 19597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19598 | (exit $ac_status); } && |
| 19599 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19600 | { (case "(($ac_try" in |
| 19601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19602 | *) ac_try_echo=$ac_try;; |
| 19603 | esac |
| 19604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19605 | (eval "$ac_try") 2>&5 |
| 19606 | ac_status=$? |
| 19607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19608 | (exit $ac_status); }; } && |
| 19609 | { ac_try='test -s conftest.$ac_objext' |
| 19610 | { (case "(($ac_try" in |
| 19611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19612 | *) ac_try_echo=$ac_try;; |
| 19613 | esac |
| 19614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19615 | (eval "$ac_try") 2>&5 |
| 19616 | ac_status=$? |
| 19617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19618 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19619 | ac_cv_func_isinf_in_math_h=yes |
| 19620 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19621 | echo "$as_me: failed program was:" >&5 |
| 19622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19623 | |
| 19624 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19625 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19628 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19629 | ac_cpp='$CPP $CPPFLAGS' |
| 19630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19633 | |
| 19634 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19635 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19636 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19637 | |
| 19638 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19639 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19640 | cat >>confdefs.h <<\_ACEOF |
| 19641 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19642 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19643 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19644 | fi |
| 19645 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19646 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19647 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19648 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19650 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19651 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19652 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19656 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19657 | cat >conftest.$ac_ext <<_ACEOF |
| 19658 | /* confdefs.h. */ |
| 19659 | _ACEOF |
| 19660 | cat confdefs.h >>conftest.$ac_ext |
| 19661 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19662 | /* end confdefs.h. */ |
| 19663 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19664 | int |
| 19665 | main () |
| 19666 | { |
| 19667 | float f; isinf(f); |
| 19668 | ; |
| 19669 | return 0; |
| 19670 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19671 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19672 | rm -f conftest.$ac_objext |
| 19673 | if { (ac_try="$ac_compile" |
| 19674 | case "(($ac_try" in |
| 19675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19676 | *) ac_try_echo=$ac_try;; |
| 19677 | esac |
| 19678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19679 | (eval "$ac_compile") 2>conftest.er1 |
| 19680 | ac_status=$? |
| 19681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19682 | rm -f conftest.er1 |
| 19683 | cat conftest.err >&5 |
| 19684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19685 | (exit $ac_status); } && |
| 19686 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19687 | { (case "(($ac_try" in |
| 19688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19689 | *) ac_try_echo=$ac_try;; |
| 19690 | esac |
| 19691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19692 | (eval "$ac_try") 2>&5 |
| 19693 | ac_status=$? |
| 19694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19695 | (exit $ac_status); }; } && |
| 19696 | { ac_try='test -s conftest.$ac_objext' |
| 19697 | { (case "(($ac_try" in |
| 19698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19699 | *) ac_try_echo=$ac_try;; |
| 19700 | esac |
| 19701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19702 | (eval "$ac_try") 2>&5 |
| 19703 | ac_status=$? |
| 19704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19705 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19706 | ac_cv_func_isinf_in_cmath=yes |
| 19707 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19708 | echo "$as_me: failed program was:" >&5 |
| 19709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19710 | |
| 19711 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19712 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19715 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19716 | ac_cpp='$CPP $CPPFLAGS' |
| 19717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19720 | |
| 19721 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19722 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19723 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19724 | |
| 19725 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19726 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19727 | cat >>confdefs.h <<\_ACEOF |
| 19728 | #define HAVE_ISINF_IN_CMATH 1 |
| 19729 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19730 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19731 | fi |
| 19732 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19733 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19734 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19735 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19737 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19738 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19739 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19740 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19741 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19742 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19743 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19744 | cat >conftest.$ac_ext <<_ACEOF |
| 19745 | /* confdefs.h. */ |
| 19746 | _ACEOF |
| 19747 | cat confdefs.h >>conftest.$ac_ext |
| 19748 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19749 | /* end confdefs.h. */ |
| 19750 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19751 | int |
| 19752 | main () |
| 19753 | { |
| 19754 | float f; std::isinf(f)} |
| 19755 | ; |
| 19756 | return 0; |
| 19757 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19758 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19759 | rm -f conftest.$ac_objext |
| 19760 | if { (ac_try="$ac_compile" |
| 19761 | case "(($ac_try" in |
| 19762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19763 | *) ac_try_echo=$ac_try;; |
| 19764 | esac |
| 19765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19766 | (eval "$ac_compile") 2>conftest.er1 |
| 19767 | ac_status=$? |
| 19768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19769 | rm -f conftest.er1 |
| 19770 | cat conftest.err >&5 |
| 19771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19772 | (exit $ac_status); } && |
| 19773 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19774 | { (case "(($ac_try" in |
| 19775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19776 | *) ac_try_echo=$ac_try;; |
| 19777 | esac |
| 19778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19779 | (eval "$ac_try") 2>&5 |
| 19780 | ac_status=$? |
| 19781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19782 | (exit $ac_status); }; } && |
| 19783 | { ac_try='test -s conftest.$ac_objext' |
| 19784 | { (case "(($ac_try" in |
| 19785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19786 | *) ac_try_echo=$ac_try;; |
| 19787 | esac |
| 19788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19789 | (eval "$ac_try") 2>&5 |
| 19790 | ac_status=$? |
| 19791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19792 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19793 | ac_cv_func_std_isinf_in_cmath=yes |
| 19794 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19795 | echo "$as_me: failed program was:" >&5 |
| 19796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19797 | |
| 19798 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19799 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19800 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19802 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19803 | ac_cpp='$CPP $CPPFLAGS' |
| 19804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19807 | |
| 19808 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19809 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19810 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19811 | |
| 19812 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19813 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19814 | cat >>confdefs.h <<\_ACEOF |
| 19815 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19816 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19817 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19818 | fi |
| 19819 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19820 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19821 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19822 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19824 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19825 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19826 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19830 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19831 | cat >conftest.$ac_ext <<_ACEOF |
| 19832 | /* confdefs.h. */ |
| 19833 | _ACEOF |
| 19834 | cat confdefs.h >>conftest.$ac_ext |
| 19835 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19836 | /* end confdefs.h. */ |
| 19837 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19838 | int |
| 19839 | main () |
| 19840 | { |
| 19841 | float f; finite(f); |
| 19842 | ; |
| 19843 | return 0; |
| 19844 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19845 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19846 | rm -f conftest.$ac_objext |
| 19847 | if { (ac_try="$ac_compile" |
| 19848 | case "(($ac_try" in |
| 19849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19850 | *) ac_try_echo=$ac_try;; |
| 19851 | esac |
| 19852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19853 | (eval "$ac_compile") 2>conftest.er1 |
| 19854 | ac_status=$? |
| 19855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19856 | rm -f conftest.er1 |
| 19857 | cat conftest.err >&5 |
| 19858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19859 | (exit $ac_status); } && |
| 19860 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19861 | { (case "(($ac_try" in |
| 19862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19863 | *) ac_try_echo=$ac_try;; |
| 19864 | esac |
| 19865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19866 | (eval "$ac_try") 2>&5 |
| 19867 | ac_status=$? |
| 19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19869 | (exit $ac_status); }; } && |
| 19870 | { ac_try='test -s conftest.$ac_objext' |
| 19871 | { (case "(($ac_try" in |
| 19872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19873 | *) ac_try_echo=$ac_try;; |
| 19874 | esac |
| 19875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19876 | (eval "$ac_try") 2>&5 |
| 19877 | ac_status=$? |
| 19878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19879 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19880 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19881 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19882 | echo "$as_me: failed program was:" >&5 |
| 19883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19884 | |
| 19885 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19886 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19889 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19890 | ac_cpp='$CPP $CPPFLAGS' |
| 19891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19894 | |
| 19895 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19896 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19897 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19898 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19899 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19900 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19901 | cat >>confdefs.h <<\_ACEOF |
| 19902 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19903 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19904 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19905 | fi |
| 19906 | |
| 19907 | |
| 19908 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19909 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19910 | |
| 19911 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19912 | for ac_header in stdlib.h unistd.h |
| 19913 | do |
| 19914 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19916 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19917 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19920 | fi |
| 19921 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19922 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19923 | echo "${ECHO_T}$ac_res" >&6; } |
| 19924 | else |
| 19925 | # Is the header compilable? |
| 19926 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19927 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19928 | cat >conftest.$ac_ext <<_ACEOF |
| 19929 | /* confdefs.h. */ |
| 19930 | _ACEOF |
| 19931 | cat confdefs.h >>conftest.$ac_ext |
| 19932 | cat >>conftest.$ac_ext <<_ACEOF |
| 19933 | /* end confdefs.h. */ |
| 19934 | $ac_includes_default |
| 19935 | #include <$ac_header> |
| 19936 | _ACEOF |
| 19937 | rm -f conftest.$ac_objext |
| 19938 | if { (ac_try="$ac_compile" |
| 19939 | case "(($ac_try" in |
| 19940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19941 | *) ac_try_echo=$ac_try;; |
| 19942 | esac |
| 19943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19944 | (eval "$ac_compile") 2>conftest.er1 |
| 19945 | ac_status=$? |
| 19946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19947 | rm -f conftest.er1 |
| 19948 | cat conftest.err >&5 |
| 19949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19950 | (exit $ac_status); } && |
| 19951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19952 | { (case "(($ac_try" in |
| 19953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19954 | *) ac_try_echo=$ac_try;; |
| 19955 | esac |
| 19956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19957 | (eval "$ac_try") 2>&5 |
| 19958 | ac_status=$? |
| 19959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19960 | (exit $ac_status); }; } && |
| 19961 | { ac_try='test -s conftest.$ac_objext' |
| 19962 | { (case "(($ac_try" in |
| 19963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19964 | *) ac_try_echo=$ac_try;; |
| 19965 | esac |
| 19966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19967 | (eval "$ac_try") 2>&5 |
| 19968 | ac_status=$? |
| 19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19970 | (exit $ac_status); }; }; then |
| 19971 | ac_header_compiler=yes |
| 19972 | else |
| 19973 | echo "$as_me: failed program was:" >&5 |
| 19974 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19975 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19976 | ac_header_compiler=no |
| 19977 | fi |
| 19978 | |
| 19979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19980 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19981 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19982 | |
| 19983 | # Is the header present? |
| 19984 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19985 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19986 | cat >conftest.$ac_ext <<_ACEOF |
| 19987 | /* confdefs.h. */ |
| 19988 | _ACEOF |
| 19989 | cat confdefs.h >>conftest.$ac_ext |
| 19990 | cat >>conftest.$ac_ext <<_ACEOF |
| 19991 | /* end confdefs.h. */ |
| 19992 | #include <$ac_header> |
| 19993 | _ACEOF |
| 19994 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19995 | case "(($ac_try" in |
| 19996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19997 | *) ac_try_echo=$ac_try;; |
| 19998 | esac |
| 19999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20000 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 20001 | ac_status=$? |
| 20002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20003 | rm -f conftest.er1 |
| 20004 | cat conftest.err >&5 |
| 20005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20006 | (exit $ac_status); } >/dev/null; then |
| 20007 | if test -s conftest.err; then |
| 20008 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20009 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20010 | else |
| 20011 | ac_cpp_err= |
| 20012 | fi |
| 20013 | else |
| 20014 | ac_cpp_err=yes |
| 20015 | fi |
| 20016 | if test -z "$ac_cpp_err"; then |
| 20017 | ac_header_preproc=yes |
| 20018 | else |
| 20019 | echo "$as_me: failed program was:" >&5 |
| 20020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20021 | |
| 20022 | ac_header_preproc=no |
| 20023 | fi |
| 20024 | |
| 20025 | rm -f conftest.err conftest.$ac_ext |
| 20026 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20027 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20028 | |
| 20029 | # So? What about this header? |
| 20030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20031 | yes:no: ) |
| 20032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20036 | ac_header_preproc=yes |
| 20037 | ;; |
| 20038 | no:yes:* ) |
| 20039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20050 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20051 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 20052 | ## ------------------------------------ ## |
| 20053 | ## Report this to http://llvm.org/bugs/ ## |
| 20054 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20055 | _ASBOX |
| 20056 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 20057 | ;; |
| 20058 | esac |
| 20059 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20063 | else |
| 20064 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20065 | fi |
| 20066 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20067 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20068 | echo "${ECHO_T}$ac_res" >&6; } |
| 20069 | |
| 20070 | fi |
| 20071 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20072 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20073 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20074 | _ACEOF |
| 20075 | |
| 20076 | fi |
| 20077 | |
| 20078 | done |
| 20079 | |
| 20080 | |
| 20081 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20082 | do |
| 20083 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20084 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20085 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20086 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20088 | else |
| 20089 | cat >conftest.$ac_ext <<_ACEOF |
| 20090 | /* confdefs.h. */ |
| 20091 | _ACEOF |
| 20092 | cat confdefs.h >>conftest.$ac_ext |
| 20093 | cat >>conftest.$ac_ext <<_ACEOF |
| 20094 | /* end confdefs.h. */ |
| 20095 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20096 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20097 | #define $ac_func innocuous_$ac_func |
| 20098 | |
| 20099 | /* System header to define __stub macros and hopefully few prototypes, |
| 20100 | which can conflict with char $ac_func (); below. |
| 20101 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20102 | <limits.h> exists even on freestanding compilers. */ |
| 20103 | |
| 20104 | #ifdef __STDC__ |
| 20105 | # include <limits.h> |
| 20106 | #else |
| 20107 | # include <assert.h> |
| 20108 | #endif |
| 20109 | |
| 20110 | #undef $ac_func |
| 20111 | |
| 20112 | /* Override any GCC internal prototype to avoid an error. |
| 20113 | Use char because int might match the return type of a GCC |
| 20114 | builtin and then its argument prototype would still apply. */ |
| 20115 | #ifdef __cplusplus |
| 20116 | extern "C" |
| 20117 | #endif |
| 20118 | char $ac_func (); |
| 20119 | /* The GNU C library defines this for functions which it implements |
| 20120 | to always fail with ENOSYS. Some functions are actually named |
| 20121 | something starting with __ and the normal name is an alias. */ |
| 20122 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20123 | choke me |
| 20124 | #endif |
| 20125 | |
| 20126 | int |
| 20127 | main () |
| 20128 | { |
| 20129 | return $ac_func (); |
| 20130 | ; |
| 20131 | return 0; |
| 20132 | } |
| 20133 | _ACEOF |
| 20134 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20135 | if { (ac_try="$ac_link" |
| 20136 | case "(($ac_try" in |
| 20137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20138 | *) ac_try_echo=$ac_try;; |
| 20139 | esac |
| 20140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20141 | (eval "$ac_link") 2>conftest.er1 |
| 20142 | ac_status=$? |
| 20143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20144 | rm -f conftest.er1 |
| 20145 | cat conftest.err >&5 |
| 20146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20147 | (exit $ac_status); } && |
| 20148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20149 | { (case "(($ac_try" in |
| 20150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20151 | *) ac_try_echo=$ac_try;; |
| 20152 | esac |
| 20153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20154 | (eval "$ac_try") 2>&5 |
| 20155 | ac_status=$? |
| 20156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20157 | (exit $ac_status); }; } && |
| 20158 | { ac_try='test -s conftest$ac_exeext' |
| 20159 | { (case "(($ac_try" in |
| 20160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20161 | *) ac_try_echo=$ac_try;; |
| 20162 | esac |
| 20163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20164 | (eval "$ac_try") 2>&5 |
| 20165 | ac_status=$? |
| 20166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20167 | (exit $ac_status); }; }; then |
| 20168 | eval "$as_ac_var=yes" |
| 20169 | else |
| 20170 | echo "$as_me: failed program was:" >&5 |
| 20171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20172 | |
| 20173 | eval "$as_ac_var=no" |
| 20174 | fi |
| 20175 | |
| 20176 | rm -f core conftest.err conftest.$ac_objext \ |
| 20177 | conftest$ac_exeext conftest.$ac_ext |
| 20178 | fi |
| 20179 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20180 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20181 | echo "${ECHO_T}$ac_res" >&6; } |
| 20182 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20183 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20184 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20185 | _ACEOF |
| 20186 | |
| 20187 | fi |
| 20188 | done |
| 20189 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20190 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 20191 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 20192 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 20193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20194 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20195 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20196 | ac_cv_func_mmap_fixed_mapped=no |
| 20197 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20198 | cat >conftest.$ac_ext <<_ACEOF |
| 20199 | /* confdefs.h. */ |
| 20200 | _ACEOF |
| 20201 | cat confdefs.h >>conftest.$ac_ext |
| 20202 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20203 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20204 | $ac_includes_default |
| 20205 | /* malloc might have been renamed as rpl_malloc. */ |
| 20206 | #undef malloc |
| 20207 | |
| 20208 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 20209 | Here is a matrix of mmap possibilities: |
| 20210 | mmap private not fixed |
| 20211 | mmap private fixed at somewhere currently unmapped |
| 20212 | mmap private fixed at somewhere already mapped |
| 20213 | mmap shared not fixed |
| 20214 | mmap shared fixed at somewhere currently unmapped |
| 20215 | mmap shared fixed at somewhere already mapped |
| 20216 | For private mappings, we should verify that changes cannot be read() |
| 20217 | back from the file, nor mmap's back from the file at a different |
| 20218 | address. (There have been systems where private was not correctly |
| 20219 | implemented like the infamous i386 svr4.0, and systems where the |
| 20220 | VM page cache was not coherent with the file system buffer cache |
| 20221 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 20222 | For shared mappings, we should conversely verify that changes get |
| 20223 | propagated back to all the places they're supposed to be. |
| 20224 | |
| 20225 | Grep wants private fixed already mapped. |
| 20226 | The main things grep needs to know about mmap are: |
| 20227 | * does it exist and is it safe to write into the mmap'd area |
| 20228 | * how to use it (BSD variants) */ |
| 20229 | |
| 20230 | #include <fcntl.h> |
| 20231 | #include <sys/mman.h> |
| 20232 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20233 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20234 | char *malloc (); |
| 20235 | #endif |
| 20236 | |
| 20237 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20238 | #if !HAVE_GETPAGESIZE |
| 20239 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20240 | # if !HAVE_SYS_PARAM_H |
| 20241 | # define HAVE_SYS_PARAM_H 1 |
| 20242 | # endif |
| 20243 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20244 | # ifdef _SC_PAGESIZE |
| 20245 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20246 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20247 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20248 | # include <sys/param.h> |
| 20249 | # ifdef EXEC_PAGESIZE |
| 20250 | # define getpagesize() EXEC_PAGESIZE |
| 20251 | # else /* no EXEC_PAGESIZE */ |
| 20252 | # ifdef NBPG |
| 20253 | # define getpagesize() NBPG * CLSIZE |
| 20254 | # ifndef CLSIZE |
| 20255 | # define CLSIZE 1 |
| 20256 | # endif /* no CLSIZE */ |
| 20257 | # else /* no NBPG */ |
| 20258 | # ifdef NBPC |
| 20259 | # define getpagesize() NBPC |
| 20260 | # else /* no NBPC */ |
| 20261 | # ifdef PAGESIZE |
| 20262 | # define getpagesize() PAGESIZE |
| 20263 | # endif /* PAGESIZE */ |
| 20264 | # endif /* no NBPC */ |
| 20265 | # endif /* no NBPG */ |
| 20266 | # endif /* no EXEC_PAGESIZE */ |
| 20267 | # else /* no HAVE_SYS_PARAM_H */ |
| 20268 | # define getpagesize() 8192 /* punt totally */ |
| 20269 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20270 | # endif /* no _SC_PAGESIZE */ |
| 20271 | |
| 20272 | #endif /* no HAVE_GETPAGESIZE */ |
| 20273 | |
| 20274 | int |
| 20275 | main () |
| 20276 | { |
| 20277 | char *data, *data2, *data3; |
| 20278 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20279 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20280 | |
| 20281 | pagesize = getpagesize (); |
| 20282 | |
| 20283 | /* First, make a file with some known garbage in it. */ |
| 20284 | data = (char *) malloc (pagesize); |
| 20285 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20286 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20287 | for (i = 0; i < pagesize; ++i) |
| 20288 | *(data + i) = rand (); |
| 20289 | umask (0); |
| 20290 | fd = creat ("conftest.mmap", 0600); |
| 20291 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20292 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20293 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20294 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20295 | close (fd); |
| 20296 | |
| 20297 | /* Next, try to mmap the file at a fixed address which already has |
| 20298 | something else allocated at it. If we can, also make sure that |
| 20299 | we see the same garbage. */ |
| 20300 | fd = open ("conftest.mmap", O_RDWR); |
| 20301 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20302 | return 1; |
| 20303 | data2 = (char *) malloc (2 * pagesize); |
| 20304 | if (!data2) |
| 20305 | return 1; |
| 20306 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20307 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20308 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
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) != *(data2 + 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 | |
| 20314 | /* Finally, make sure that changes to the mapped area do not |
| 20315 | percolate back to the file as seen by read(). (This is a bug on |
| 20316 | some variants of i386 svr4.0.) */ |
| 20317 | for (i = 0; i < pagesize; ++i) |
| 20318 | *(data2 + i) = *(data2 + i) + 1; |
| 20319 | data3 = (char *) malloc (pagesize); |
| 20320 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20321 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20322 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20323 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20324 | for (i = 0; i < pagesize; ++i) |
| 20325 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20326 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20327 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20328 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20329 | } |
| 20330 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20331 | rm -f conftest$ac_exeext |
| 20332 | if { (ac_try="$ac_link" |
| 20333 | case "(($ac_try" in |
| 20334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20335 | *) ac_try_echo=$ac_try;; |
| 20336 | esac |
| 20337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20338 | (eval "$ac_link") 2>&5 |
| 20339 | ac_status=$? |
| 20340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20341 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20342 | { (case "(($ac_try" in |
| 20343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20344 | *) ac_try_echo=$ac_try;; |
| 20345 | esac |
| 20346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20347 | (eval "$ac_try") 2>&5 |
| 20348 | ac_status=$? |
| 20349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20350 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20351 | ac_cv_func_mmap_fixed_mapped=yes |
| 20352 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20353 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20354 | echo "$as_me: failed program was:" >&5 |
| 20355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20356 | |
| 20357 | ( exit $ac_status ) |
| 20358 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20360 | 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] | 20361 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20362 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20363 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20364 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20365 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20366 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20367 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20368 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20369 | cat >>confdefs.h <<\_ACEOF |
| 20370 | #define HAVE_MMAP 1 |
| 20371 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20372 | |
| 20373 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20374 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20375 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20376 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20377 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20378 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20380 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20381 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20382 | ac_cpp='$CPP $CPPFLAGS' |
| 20383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20386 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20387 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20388 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20389 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20390 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20391 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20392 | /* confdefs.h. */ |
| 20393 | _ACEOF |
| 20394 | cat confdefs.h >>conftest.$ac_ext |
| 20395 | cat >>conftest.$ac_ext <<_ACEOF |
| 20396 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20398 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20399 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20400 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20401 | |
| 20402 | int |
| 20403 | main () |
| 20404 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20405 | |
| 20406 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20407 | fd = creat ("foo",0777); |
| 20408 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20409 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20410 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20411 | ; |
| 20412 | return 0; |
| 20413 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20414 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20415 | rm -f conftest$ac_exeext |
| 20416 | if { (ac_try="$ac_link" |
| 20417 | case "(($ac_try" in |
| 20418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20419 | *) ac_try_echo=$ac_try;; |
| 20420 | esac |
| 20421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20422 | (eval "$ac_link") 2>&5 |
| 20423 | ac_status=$? |
| 20424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20425 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20426 | { (case "(($ac_try" in |
| 20427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20428 | *) ac_try_echo=$ac_try;; |
| 20429 | esac |
| 20430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20431 | (eval "$ac_try") 2>&5 |
| 20432 | ac_status=$? |
| 20433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20434 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20435 | ac_cv_func_mmap_file=yes |
| 20436 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20437 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20438 | echo "$as_me: failed program was:" >&5 |
| 20439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20440 | |
| 20441 | ( exit $ac_status ) |
| 20442 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20443 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20444 | 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] | 20445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20446 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20447 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20448 | ac_ext=c |
| 20449 | ac_cpp='$CPP $CPPFLAGS' |
| 20450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20453 | |
| 20454 | |
| 20455 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20456 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20457 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20458 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20459 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20460 | cat >>confdefs.h <<\_ACEOF |
| 20461 | #define HAVE_MMAP_FILE |
| 20462 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20463 | |
| 20464 | MMAP_FILE=yes |
| 20465 | |
| 20466 | fi |
| 20467 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20468 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20469 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20470 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20472 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20473 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20474 | ac_cv_need_dev_zero_for_mmap=yes |
| 20475 | else |
| 20476 | ac_cv_need_dev_zero_for_mmap=no |
| 20477 | fi |
| 20478 | |
| 20479 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20480 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20481 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20482 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20483 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20484 | cat >>confdefs.h <<\_ACEOF |
| 20485 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20486 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20487 | |
| 20488 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20489 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20490 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20491 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20492 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20493 | 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] | 20494 | fi |
| 20495 | if test "$ac_cv_func_mmap_file" = "no" |
| 20496 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20497 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20498 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20499 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20500 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20501 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20502 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20503 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20504 | ac_ext=cpp |
| 20505 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20506 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20507 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20508 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20509 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20510 | cat >conftest.$ac_ext <<_ACEOF |
| 20511 | /* confdefs.h. */ |
| 20512 | _ACEOF |
| 20513 | cat confdefs.h >>conftest.$ac_ext |
| 20514 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20515 | /* end confdefs.h. */ |
| 20516 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20517 | volatile unsigned long val = 1; |
| 20518 | __sync_synchronize(); |
| 20519 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20520 | __sync_add_and_fetch(&val, 1); |
| 20521 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20522 | return 0; |
| 20523 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20524 | |
| 20525 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20526 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20527 | if { (ac_try="$ac_link" |
| 20528 | case "(($ac_try" in |
| 20529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20530 | *) ac_try_echo=$ac_try;; |
| 20531 | esac |
| 20532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20533 | (eval "$ac_link") 2>conftest.er1 |
| 20534 | ac_status=$? |
| 20535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20536 | rm -f conftest.er1 |
| 20537 | cat conftest.err >&5 |
| 20538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20539 | (exit $ac_status); } && |
| 20540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20541 | { (case "(($ac_try" in |
| 20542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20543 | *) ac_try_echo=$ac_try;; |
| 20544 | esac |
| 20545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20546 | (eval "$ac_try") 2>&5 |
| 20547 | ac_status=$? |
| 20548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20549 | (exit $ac_status); }; } && |
| 20550 | { ac_try='test -s conftest$ac_exeext' |
| 20551 | { (case "(($ac_try" in |
| 20552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20553 | *) ac_try_echo=$ac_try;; |
| 20554 | esac |
| 20555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20556 | (eval "$ac_try") 2>&5 |
| 20557 | ac_status=$? |
| 20558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20559 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20560 | ac_ext=c |
| 20561 | ac_cpp='$CPP $CPPFLAGS' |
| 20562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20566 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20567 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20569 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20570 | #define LLVM_HAS_ATOMICS 1 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20571 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20572 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20573 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20574 | echo "$as_me: failed program was:" >&5 |
| 20575 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20576 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20577 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20578 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20579 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20580 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20581 | #define LLVM_HAS_ATOMICS 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20582 | _ACEOF |
| 20583 | |
| 20584 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20585 | 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] | 20586 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20587 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20588 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20589 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20590 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20591 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20592 | 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] | 20593 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20594 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20595 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20597 | else |
| 20598 | ac_ext=c |
| 20599 | ac_cpp='$CPP $CPPFLAGS' |
| 20600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20604 | cat >conftest.$ac_ext <<_ACEOF |
| 20605 | /* confdefs.h. */ |
| 20606 | _ACEOF |
| 20607 | cat confdefs.h >>conftest.$ac_ext |
| 20608 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20609 | /* end confdefs.h. */ |
| 20610 | #ifndef __x86_64__ |
| 20611 | error: Not x86-64 even if uname says so! |
| 20612 | #endif |
| 20613 | |
| 20614 | int |
| 20615 | main () |
| 20616 | { |
| 20617 | |
| 20618 | ; |
| 20619 | return 0; |
| 20620 | } |
| 20621 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20622 | rm -f conftest.$ac_objext |
| 20623 | if { (ac_try="$ac_compile" |
| 20624 | case "(($ac_try" in |
| 20625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20626 | *) ac_try_echo=$ac_try;; |
| 20627 | esac |
| 20628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20629 | (eval "$ac_compile") 2>conftest.er1 |
| 20630 | ac_status=$? |
| 20631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20632 | rm -f conftest.er1 |
| 20633 | cat conftest.err >&5 |
| 20634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20635 | (exit $ac_status); } && |
| 20636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20637 | { (case "(($ac_try" in |
| 20638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20639 | *) ac_try_echo=$ac_try;; |
| 20640 | esac |
| 20641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20642 | (eval "$ac_try") 2>&5 |
| 20643 | ac_status=$? |
| 20644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20645 | (exit $ac_status); }; } && |
| 20646 | { ac_try='test -s conftest.$ac_objext' |
| 20647 | { (case "(($ac_try" in |
| 20648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20649 | *) ac_try_echo=$ac_try;; |
| 20650 | esac |
| 20651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20652 | (eval "$ac_try") 2>&5 |
| 20653 | ac_status=$? |
| 20654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20655 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20656 | llvm_cv_linux_mixed=no |
| 20657 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20658 | echo "$as_me: failed program was:" >&5 |
| 20659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20660 | |
| 20661 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20662 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20663 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20665 | ac_ext=c |
| 20666 | ac_cpp='$CPP $CPPFLAGS' |
| 20667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20670 | |
| 20671 | |
| 20672 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20673 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20674 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20675 | |
| 20676 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20677 | llvm_cv_target_arch="x86" |
| 20678 | ARCH="x86" |
| 20679 | fi |
| 20680 | fi |
| 20681 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20682 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20683 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20684 | do |
| 20685 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20686 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20687 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20688 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20690 | else |
| 20691 | cat >conftest.$ac_ext <<_ACEOF |
| 20692 | /* confdefs.h. */ |
| 20693 | _ACEOF |
| 20694 | cat confdefs.h >>conftest.$ac_ext |
| 20695 | cat >>conftest.$ac_ext <<_ACEOF |
| 20696 | /* end confdefs.h. */ |
| 20697 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20699 | #define $ac_func innocuous_$ac_func |
| 20700 | |
| 20701 | /* System header to define __stub macros and hopefully few prototypes, |
| 20702 | which can conflict with char $ac_func (); below. |
| 20703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20704 | <limits.h> exists even on freestanding compilers. */ |
| 20705 | |
| 20706 | #ifdef __STDC__ |
| 20707 | # include <limits.h> |
| 20708 | #else |
| 20709 | # include <assert.h> |
| 20710 | #endif |
| 20711 | |
| 20712 | #undef $ac_func |
| 20713 | |
| 20714 | /* Override any GCC internal prototype to avoid an error. |
| 20715 | Use char because int might match the return type of a GCC |
| 20716 | builtin and then its argument prototype would still apply. */ |
| 20717 | #ifdef __cplusplus |
| 20718 | extern "C" |
| 20719 | #endif |
| 20720 | char $ac_func (); |
| 20721 | /* The GNU C library defines this for functions which it implements |
| 20722 | to always fail with ENOSYS. Some functions are actually named |
| 20723 | something starting with __ and the normal name is an alias. */ |
| 20724 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20725 | choke me |
| 20726 | #endif |
| 20727 | |
| 20728 | int |
| 20729 | main () |
| 20730 | { |
| 20731 | return $ac_func (); |
| 20732 | ; |
| 20733 | return 0; |
| 20734 | } |
| 20735 | _ACEOF |
| 20736 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20737 | if { (ac_try="$ac_link" |
| 20738 | case "(($ac_try" in |
| 20739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20740 | *) ac_try_echo=$ac_try;; |
| 20741 | esac |
| 20742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20743 | (eval "$ac_link") 2>conftest.er1 |
| 20744 | ac_status=$? |
| 20745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20746 | rm -f conftest.er1 |
| 20747 | cat conftest.err >&5 |
| 20748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20749 | (exit $ac_status); } && |
| 20750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20751 | { (case "(($ac_try" in |
| 20752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20753 | *) ac_try_echo=$ac_try;; |
| 20754 | esac |
| 20755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20756 | (eval "$ac_try") 2>&5 |
| 20757 | ac_status=$? |
| 20758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20759 | (exit $ac_status); }; } && |
| 20760 | { ac_try='test -s conftest$ac_exeext' |
| 20761 | { (case "(($ac_try" in |
| 20762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20763 | *) ac_try_echo=$ac_try;; |
| 20764 | esac |
| 20765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20766 | (eval "$ac_try") 2>&5 |
| 20767 | ac_status=$? |
| 20768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20769 | (exit $ac_status); }; }; then |
| 20770 | eval "$as_ac_var=yes" |
| 20771 | else |
| 20772 | echo "$as_me: failed program was:" >&5 |
| 20773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20774 | |
| 20775 | eval "$as_ac_var=no" |
| 20776 | fi |
| 20777 | |
| 20778 | rm -f core conftest.err conftest.$ac_objext \ |
| 20779 | conftest$ac_exeext conftest.$ac_ext |
| 20780 | fi |
| 20781 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20782 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20783 | echo "${ECHO_T}$ac_res" >&6; } |
| 20784 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20785 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20786 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20787 | _ACEOF |
| 20788 | |
| 20789 | fi |
| 20790 | done |
| 20791 | |
| 20792 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20793 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20794 | |
| 20795 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20796 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20797 | |
| 20798 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20799 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20800 | prefix="/usr/local" |
| 20801 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20802 | eval LLVM_PREFIX="${prefix}"; |
| 20803 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20804 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20805 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20806 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20807 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20808 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20809 | eval LLVM_INFODIR="${prefix}/info"; |
| 20810 | eval LLVM_MANDIR="${prefix}/man"; |
| 20811 | LLVM_CONFIGTIME=`date` |
| 20812 | |
| 20813 | |
| 20814 | |
| 20815 | |
| 20816 | |
| 20817 | |
| 20818 | |
| 20819 | |
| 20820 | |
| 20821 | |
| 20822 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20823 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20824 | cat >>confdefs.h <<_ACEOF |
| 20825 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20826 | _ACEOF |
| 20827 | |
| 20828 | |
| 20829 | cat >>confdefs.h <<_ACEOF |
| 20830 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20831 | _ACEOF |
| 20832 | |
| 20833 | |
| 20834 | cat >>confdefs.h <<_ACEOF |
| 20835 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20836 | _ACEOF |
| 20837 | |
| 20838 | |
| 20839 | cat >>confdefs.h <<_ACEOF |
| 20840 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20841 | _ACEOF |
| 20842 | |
| 20843 | |
| 20844 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20845 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20846 | _ACEOF |
| 20847 | |
| 20848 | |
| 20849 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20850 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20851 | _ACEOF |
| 20852 | |
| 20853 | |
| 20854 | cat >>confdefs.h <<_ACEOF |
| 20855 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20856 | _ACEOF |
| 20857 | |
| 20858 | |
| 20859 | cat >>confdefs.h <<_ACEOF |
| 20860 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20861 | _ACEOF |
| 20862 | |
| 20863 | |
| 20864 | cat >>confdefs.h <<_ACEOF |
| 20865 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20866 | _ACEOF |
| 20867 | |
| 20868 | |
| 20869 | cat >>confdefs.h <<_ACEOF |
| 20870 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20871 | _ACEOF |
| 20872 | |
| 20873 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20874 | cat >>confdefs.h <<_ACEOF |
Sebastian Pop | de2e0b5 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 20875 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20876 | _ACEOF |
| 20877 | |
| 20878 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20879 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20880 | BINDINGS_TO_BUILD="" |
| 20881 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20882 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20883 | fi |
| 20884 | fi |
| 20885 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20886 | |
| 20887 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20888 | ALL_BINDINGS=ocaml |
| 20889 | |
| 20890 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20891 | binding_prereqs_failed=0 |
| 20892 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20893 | case "$a_binding" in |
| 20894 | ocaml) |
| 20895 | if test "x$OCAMLC" = 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 ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20897 | 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] | 20898 | binding_prereqs_failed=1 |
| 20899 | fi |
| 20900 | if test "x$OCAMLDEP" = 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 ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20902 | 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] | 20903 | binding_prereqs_failed=1 |
| 20904 | fi |
| 20905 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20906 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20907 | 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] | 20908 | fi |
| 20909 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20910 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20911 | |
| 20912 | else |
| 20913 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20914 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20915 | then |
| 20916 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20917 | OCAML_LIBDIR=$ocaml_stdlib |
| 20918 | |
| 20919 | else |
| 20920 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20921 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20922 | |
| 20923 | fi |
| 20924 | fi |
| 20925 | ;; |
| 20926 | esac |
| 20927 | done |
| 20928 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20929 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20930 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20931 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20932 | fi |
| 20933 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20934 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20935 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20936 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20938 | else |
| 20939 | ac_ext=cpp |
| 20940 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20941 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20942 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20943 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20944 | |
| 20945 | oldcxxflags="$CXXFLAGS" |
NAKAMURA Takumi | 273df0b | 2012-02-19 12:05:12 +0000 | [diff] [blame] | 20946 | CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20947 | cat >conftest.$ac_ext <<_ACEOF |
| 20948 | /* confdefs.h. */ |
| 20949 | _ACEOF |
| 20950 | cat confdefs.h >>conftest.$ac_ext |
| 20951 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20952 | /* end confdefs.h. */ |
Benjamin Kramer | b8c20b8 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 20953 | template <typename T> struct X { void __attribute__((noinline)) f() {} }; |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20954 | int |
| 20955 | main () |
| 20956 | { |
Benjamin Kramer | cfe96c8 | 2011-12-22 22:25:26 +0000 | [diff] [blame] | 20957 | X<int>().f(); |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20958 | ; |
| 20959 | return 0; |
| 20960 | } |
| 20961 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20962 | rm -f conftest.$ac_objext |
| 20963 | if { (ac_try="$ac_compile" |
| 20964 | case "(($ac_try" in |
| 20965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20966 | *) ac_try_echo=$ac_try;; |
| 20967 | esac |
| 20968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20969 | (eval "$ac_compile") 2>conftest.er1 |
| 20970 | ac_status=$? |
| 20971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20972 | rm -f conftest.er1 |
| 20973 | cat conftest.err >&5 |
| 20974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20975 | (exit $ac_status); } && |
| 20976 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20977 | { (case "(($ac_try" in |
| 20978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20979 | *) ac_try_echo=$ac_try;; |
| 20980 | esac |
| 20981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20982 | (eval "$ac_try") 2>&5 |
| 20983 | ac_status=$? |
| 20984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20985 | (exit $ac_status); }; } && |
| 20986 | { ac_try='test -s conftest.$ac_objext' |
| 20987 | { (case "(($ac_try" in |
| 20988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20989 | *) ac_try_echo=$ac_try;; |
| 20990 | esac |
| 20991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20992 | (eval "$ac_try") 2>&5 |
| 20993 | ac_status=$? |
| 20994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20995 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20996 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20997 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20998 | echo "$as_me: failed program was:" >&5 |
| 20999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21000 | |
| 21001 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21002 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21003 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21005 | CXXFLAGS="$oldcxxflags" |
| 21006 | ac_ext=c |
| 21007 | ac_cpp='$CPP $CPPFLAGS' |
| 21008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21011 | |
| 21012 | |
| 21013 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21014 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 21015 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21016 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 21017 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 21018 | |
| 21019 | else |
| 21020 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 21021 | |
| 21022 | fi |
| 21023 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21024 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21025 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 21026 | RPATH="-Wl,-R" |
| 21027 | else |
| 21028 | RPATH="-Wl,-rpath" |
| 21029 | fi |
| 21030 | |
| 21031 | |
| 21032 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 21033 | RDYNAMIC="-Wl,-export-dynamic" |
| 21034 | else |
| 21035 | RDYNAMIC="" |
| 21036 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21037 | |
| 21038 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21039 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21040 | 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] | 21041 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21042 | |
| 21043 | |
| 21044 | |
| 21045 | |
| 21046 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21047 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 21048 | |
| 21049 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 21050 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21051 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 21052 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21053 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 21054 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21055 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21056 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21058 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21059 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21060 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21061 | ac_config_files="$ac_config_files llvm.spec" |
| 21062 | |
| 21063 | |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21064 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 21065 | |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21066 | |
Dylan Noblesmith | 3e82b4a | 2012-02-04 02:41:36 +0000 | [diff] [blame] | 21067 | if test "${clang_src_root}" = ""; then |
Eric Christopher | 9b3cd48 | 2012-02-02 01:11:30 +0000 | [diff] [blame] | 21068 | clang_src_root="$srcdir/tools/clang" |
Eric Christopher | ac89865 | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 21069 | fi |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21070 | if test -f ${clang_src_root}/README.txt; then |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21071 | configh="include/clang/Config/config.h" |
| 21072 | doxy="docs/doxygen.cfg" |
| 21073 | ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21074 | |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21075 | ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21076 | |
| 21077 | fi |
| 21078 | |
Torok Edwin | 4c4b71c | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 21079 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21080 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21082 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21084 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21085 | |
| 21086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21087 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21088 | |
| 21089 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21090 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21091 | |
| 21092 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21093 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21094 | |
| 21095 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21096 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 21097 | |
| 21098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21099 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21100 | |
| 21101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21102 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21103 | |
| 21104 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21105 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 21106 | |
| 21107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21108 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21109 | |
| 21110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21111 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21112 | |
| 21113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21114 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21115 | |
| 21116 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21117 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 21118 | |
| 21119 | |
| 21120 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 21121 | |
| 21122 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21123 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21124 | cat >confcache <<\_ACEOF |
| 21125 | # This file is a shell script that caches the results of configure |
| 21126 | # tests run on this system so they can be shared between configure |
| 21127 | # scripts and configure runs, see configure's option --config-cache. |
| 21128 | # It is not useful on other systems. If it contains results you don't |
| 21129 | # want to keep, you may remove or edit it. |
| 21130 | # |
| 21131 | # config.status only pays attention to the cache file if you give it |
| 21132 | # the --recheck option to rerun configure. |
| 21133 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21134 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21135 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21136 | # following values. |
| 21137 | |
| 21138 | _ACEOF |
| 21139 | |
| 21140 | # The following way of writing the cache mishandles newlines in values, |
| 21141 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21142 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21143 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21144 | # 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] | 21145 | ( |
| 21146 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21147 | eval ac_val=\$$ac_var |
| 21148 | case $ac_val in #( |
| 21149 | *${as_nl}*) |
| 21150 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21151 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21152 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21153 | esac |
| 21154 | case $ac_var in #( |
| 21155 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21156 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21157 | esac ;; |
| 21158 | esac |
| 21159 | done |
| 21160 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21161 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21162 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21163 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21164 | # `set' does not quote correctly, so add quotes (double-quote |
| 21165 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21166 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21167 | "s/'/'\\\\''/g; |
| 21168 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21169 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21170 | *) |
| 21171 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21172 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21173 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21174 | esac | |
| 21175 | sort |
| 21176 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21177 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21178 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21179 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21180 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21181 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21182 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21183 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21184 | :end' >>confcache |
| 21185 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21186 | if test -w "$cache_file"; then |
| 21187 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21188 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21189 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21190 | cat confcache >$cache_file |
| 21191 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21192 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21193 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21194 | fi |
| 21195 | fi |
| 21196 | rm -f confcache |
| 21197 | |
| 21198 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21199 | # Let make expand exec_prefix. |
| 21200 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21201 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21202 | DEFS=-DHAVE_CONFIG_H |
| 21203 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21204 | ac_libobjs= |
| 21205 | ac_ltlibobjs= |
| 21206 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21207 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21208 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21209 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21210 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21211 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21212 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21213 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21214 | done |
| 21215 | LIBOBJS=$ac_libobjs |
| 21216 | |
| 21217 | LTLIBOBJS=$ac_ltlibobjs |
| 21218 | |
| 21219 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21220 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21221 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21222 | Usually this means the macro was only invoked conditionally." >&5 |
| 21223 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21224 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21225 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21226 | fi |
| 21227 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21228 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21229 | Usually this means the macro was only invoked conditionally." >&5 |
| 21230 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21231 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21232 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21233 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21234 | |
| 21235 | : ${CONFIG_STATUS=./config.status} |
| 21236 | ac_clean_files_save=$ac_clean_files |
| 21237 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21238 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21239 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21240 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21241 | #! $SHELL |
| 21242 | # Generated by $as_me. |
| 21243 | # Run this file to recreate the current configuration. |
| 21244 | # Compiler output produced by configure, useful for debugging |
| 21245 | # configure, is in config.log if it exists. |
| 21246 | |
| 21247 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21248 | ac_cs_recheck=false |
| 21249 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21250 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21251 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21253 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21254 | ## --------------------- ## |
| 21255 | ## M4sh Initialization. ## |
| 21256 | ## --------------------- ## |
| 21257 | |
| 21258 | # Be Bourne compatible |
| 21259 | 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] | 21260 | emulate sh |
| 21261 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21263 | # is contrary to our usage. Disable this feature. |
| 21264 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21265 | setopt NO_GLOB_SUBST |
| 21266 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21268 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 21270 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21271 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21272 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21273 | # PATH needs CR |
| 21274 | # Avoid depending upon Character Ranges. |
| 21275 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21276 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21277 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21278 | as_cr_digits='0123456789' |
| 21279 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21280 | |
| 21281 | # The user is always right. |
| 21282 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21283 | echo "#! /bin/sh" >conf$$.sh |
| 21284 | echo "exit 0" >>conf$$.sh |
| 21285 | chmod +x conf$$.sh |
| 21286 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21287 | PATH_SEPARATOR=';' |
| 21288 | else |
| 21289 | PATH_SEPARATOR=: |
| 21290 | fi |
| 21291 | rm -f conf$$.sh |
| 21292 | fi |
| 21293 | |
| 21294 | # Support unset when possible. |
| 21295 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21296 | as_unset=unset |
| 21297 | else |
| 21298 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21299 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21301 | |
| 21302 | # IFS |
| 21303 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21304 | # there to prevent editors from complaining about space-tab. |
| 21305 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21306 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21307 | as_nl=' |
| 21308 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21309 | IFS=" "" $as_nl" |
| 21310 | |
| 21311 | # 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] | 21312 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21313 | *[\\/]* ) as_myself=$0 ;; |
| 21314 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21315 | for as_dir in $PATH |
| 21316 | do |
| 21317 | IFS=$as_save_IFS |
| 21318 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21319 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21320 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21321 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21323 | ;; |
| 21324 | esac |
| 21325 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21326 | # in which case we are not to be found in the path. |
| 21327 | if test "x$as_myself" = x; then |
| 21328 | as_myself=$0 |
| 21329 | fi |
| 21330 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21331 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21332 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21333 | fi |
| 21334 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21335 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21336 | for as_var in ENV MAIL MAILPATH |
| 21337 | 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] | 21338 | done |
| 21339 | PS1='$ ' |
| 21340 | PS2='> ' |
| 21341 | PS4='+ ' |
| 21342 | |
| 21343 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21344 | for as_var in \ |
| 21345 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21346 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21347 | LC_TELEPHONE LC_TIME |
| 21348 | do |
| 21349 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21350 | eval $as_var=C; export $as_var |
| 21351 | else |
| 21352 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21353 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21354 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21355 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21356 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21357 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21358 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21359 | as_expr=expr |
| 21360 | else |
| 21361 | as_expr=false |
| 21362 | fi |
| 21363 | |
| 21364 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21365 | as_basename=basename |
| 21366 | else |
| 21367 | as_basename=false |
| 21368 | fi |
| 21369 | |
| 21370 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21371 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21372 | as_me=`$as_basename -- "$0" || |
| 21373 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21374 | X"$0" : 'X\(//\)$' \| \ |
| 21375 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21376 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21377 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21378 | s//\1/ |
| 21379 | q |
| 21380 | } |
| 21381 | /^X\/\(\/\/\)$/{ |
| 21382 | s//\1/ |
| 21383 | q |
| 21384 | } |
| 21385 | /^X\/\(\/\).*/{ |
| 21386 | s//\1/ |
| 21387 | q |
| 21388 | } |
| 21389 | s/.*/./; q'` |
| 21390 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21391 | # CDPATH. |
| 21392 | $as_unset CDPATH |
| 21393 | |
| 21394 | |
| 21395 | |
| 21396 | as_lineno_1=$LINENO |
| 21397 | as_lineno_2=$LINENO |
| 21398 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21399 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 21400 | |
| 21401 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21402 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21403 | # line-number line after each line using $LINENO; the second 'sed' |
| 21404 | # does the real work. The second script uses 'N' to pair each |
| 21405 | # line-number line with the line containing $LINENO, and appends |
| 21406 | # trailing '-' during substitution so that $LINENO is not a special |
| 21407 | # case at line end. |
| 21408 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21409 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21410 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21411 | sed -n ' |
| 21412 | p |
| 21413 | /[$]LINENO/= |
| 21414 | ' <$as_myself | |
| 21415 | sed ' |
| 21416 | s/[$]LINENO.*/&-/ |
| 21417 | t lineno |
| 21418 | b |
| 21419 | :lineno |
| 21420 | N |
| 21421 | :loop |
| 21422 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 21423 | t loop |
| 21424 | s/-\n.*// |
| 21425 | ' >$as_me.lineno && |
| 21426 | chmod +x "$as_me.lineno" || |
| 21427 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 21428 | { (exit 1); exit 1; }; } |
| 21429 | |
| 21430 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21431 | # (the dirname of $[0] is not the place where we might find the |
| 21432 | # original and so on. Autoconf is especially sensitive to this). |
| 21433 | . "./$as_me.lineno" |
| 21434 | # Exit status is that of the last command. |
| 21435 | exit |
| 21436 | } |
| 21437 | |
| 21438 | |
| 21439 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21440 | as_dirname=dirname |
| 21441 | else |
| 21442 | as_dirname=false |
| 21443 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21444 | |
| 21445 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21446 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21447 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21448 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21449 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21450 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21451 | esac;; |
| 21452 | *) |
| 21453 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21454 | esac |
| 21455 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21456 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21457 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21458 | as_expr=expr |
| 21459 | else |
| 21460 | as_expr=false |
| 21461 | fi |
| 21462 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21463 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21464 | if test -d conf$$.dir; then |
| 21465 | rm -f conf$$.dir/conf$$.file |
| 21466 | else |
| 21467 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21468 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21469 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21470 | echo >conf$$.file |
| 21471 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21472 | as_ln_s='ln -s' |
| 21473 | # ... but there are two gotchas: |
| 21474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21476 | # In both cases, we have to default to `cp -p'. |
| 21477 | 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] | 21478 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21479 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21480 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21481 | else |
| 21482 | as_ln_s='cp -p' |
| 21483 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21484 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21485 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21486 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21487 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21488 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21489 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21490 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21491 | as_mkdir_p=false |
| 21492 | fi |
| 21493 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21494 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21495 | # systems may use methods other than mode bits to determine executability. |
| 21496 | cat >conf$$.file <<_ASEOF |
| 21497 | #! /bin/sh |
| 21498 | exit 0 |
| 21499 | _ASEOF |
| 21500 | chmod +x conf$$.file |
| 21501 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21502 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21503 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21504 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21505 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21506 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21507 | |
| 21508 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21509 | 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] | 21510 | |
| 21511 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21512 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21513 | |
| 21514 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21515 | exec 6>&1 |
| 21516 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21517 | # 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] | 21518 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21519 | # values after options handling. |
| 21520 | ac_log=" |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 21521 | This file was extended by LLVM $as_me 3.1svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21522 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21523 | |
| 21524 | CONFIG_FILES = $CONFIG_FILES |
| 21525 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21526 | CONFIG_LINKS = $CONFIG_LINKS |
| 21527 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21528 | $ $0 $@ |
| 21529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21530 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21531 | " |
| 21532 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21533 | _ACEOF |
| 21534 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21535 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21536 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21537 | config_files="$ac_config_files" |
| 21538 | config_headers="$ac_config_headers" |
| 21539 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21541 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21542 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21543 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21544 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21545 | \`$as_me' instantiates files from templates according to the |
| 21546 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21547 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21548 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21549 | |
| 21550 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21551 | -V, --version print version number, then exit |
| 21552 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21553 | -d, --debug don't remove temporary files |
| 21554 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21555 | --file=FILE[:TEMPLATE] |
| 21556 | instantiate the configuration file FILE |
| 21557 | --header=FILE[:TEMPLATE] |
| 21558 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21559 | |
| 21560 | Configuration files: |
| 21561 | $config_files |
| 21562 | |
| 21563 | Configuration headers: |
| 21564 | $config_headers |
| 21565 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21566 | Configuration commands: |
| 21567 | $config_commands |
| 21568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21569 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21571 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21572 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21573 | ac_cs_version="\\ |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 21574 | LLVM config.status 3.1svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21575 | configured by $0, generated by GNU Autoconf 2.60, |
| 21576 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21578 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21579 | This config.status script is free software; the Free Software Foundation |
| 21580 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21581 | |
| 21582 | ac_pwd='$ac_pwd' |
| 21583 | srcdir='$srcdir' |
| 21584 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21585 | _ACEOF |
| 21586 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21587 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21588 | # If no file are specified by the user, then we need to provide default |
| 21589 | # 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] | 21590 | ac_need_defaults=: |
| 21591 | while test $# != 0 |
| 21592 | do |
| 21593 | case $1 in |
| 21594 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21595 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21596 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21597 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21598 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21599 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21600 | ac_option=$1 |
| 21601 | ac_optarg=$2 |
| 21602 | ac_shift=shift |
| 21603 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21604 | esac |
| 21605 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21606 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21607 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21608 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21609 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21610 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21611 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21612 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21613 | debug=: ;; |
| 21614 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21615 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21616 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21617 | ac_need_defaults=false;; |
| 21618 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21619 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21620 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21621 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21622 | --he | --h) |
| 21623 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21624 | { echo "$as_me: error: ambiguous option: $1 |
| 21625 | Try \`$0 --help' for more information." >&2 |
| 21626 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21627 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21628 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21629 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21630 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21631 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21632 | |
| 21633 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21634 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21635 | Try \`$0 --help' for more information." >&2 |
| 21636 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21637 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21638 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21639 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21640 | |
| 21641 | esac |
| 21642 | shift |
| 21643 | done |
| 21644 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21645 | ac_configure_extra_args= |
| 21646 | |
| 21647 | if $ac_cs_silent; then |
| 21648 | exec 6>/dev/null |
| 21649 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21650 | fi |
| 21651 | |
| 21652 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21653 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21654 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21655 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21656 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21657 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21658 | 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] | 21659 | fi |
| 21660 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21661 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21662 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21663 | exec 5>>config.log |
| 21664 | { |
| 21665 | echo |
| 21666 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21667 | ## Running $as_me. ## |
| 21668 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21669 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21670 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21671 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21672 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21673 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21674 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21675 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21676 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21677 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21678 | |
| 21679 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21680 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21681 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21682 | |
| 21683 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21684 | for ac_config_target in $ac_config_targets |
| 21685 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21686 | case $ac_config_target in |
| 21687 | "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] | 21688 | "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] | 21689 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21690 | "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] | 21691 | "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] | 21692 | "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] | 21693 | "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] | 21694 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21695 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21696 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21697 | "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; |
| 21698 | "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21699 | "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21700 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21701 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21702 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21703 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21704 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21705 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21706 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21707 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21708 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21709 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21710 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21711 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21712 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21713 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21714 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21715 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21716 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21717 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21718 | esac |
| 21719 | done |
| 21720 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21721 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21722 | # If the user did not use the arguments to specify the items to instantiate, |
| 21723 | # then the envvar interface is used. Set only those that are not. |
| 21724 | # We use the long form for the default assignment because of an extremely |
| 21725 | # bizarre bug on SunOS 4.1.3. |
| 21726 | if $ac_need_defaults; then |
| 21727 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21728 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21729 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21730 | fi |
| 21731 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21732 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21733 | # 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] | 21734 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21735 | # Hook for its removal unless debugging. |
| 21736 | # Note that there is a small window in which the directory will not be cleaned: |
| 21737 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21738 | $debug || |
| 21739 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21740 | tmp= |
| 21741 | trap 'exit_status=$? |
| 21742 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21743 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21744 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21745 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21746 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21747 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21748 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21749 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21750 | test -n "$tmp" && test -d "$tmp" |
| 21751 | } || |
| 21752 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21753 | tmp=./conf$$-$RANDOM |
| 21754 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21755 | } || |
| 21756 | { |
| 21757 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21758 | { (exit 1); exit 1; } |
| 21759 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21760 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21761 | # |
| 21762 | # Set up the sed scripts for CONFIG_FILES section. |
| 21763 | # |
| 21764 | |
| 21765 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21766 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21767 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21768 | |
| 21769 | _ACEOF |
| 21770 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21771 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21772 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21773 | ac_delim='%!_!# ' |
| 21774 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21775 | cat >conf$$subs.sed <<_ACEOF |
| 21776 | SHELL!$SHELL$ac_delim |
| 21777 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21778 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21779 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21780 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21781 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21782 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21783 | exec_prefix!$exec_prefix$ac_delim |
| 21784 | prefix!$prefix$ac_delim |
| 21785 | program_transform_name!$program_transform_name$ac_delim |
| 21786 | bindir!$bindir$ac_delim |
| 21787 | sbindir!$sbindir$ac_delim |
| 21788 | libexecdir!$libexecdir$ac_delim |
| 21789 | datarootdir!$datarootdir$ac_delim |
| 21790 | datadir!$datadir$ac_delim |
| 21791 | sysconfdir!$sysconfdir$ac_delim |
| 21792 | sharedstatedir!$sharedstatedir$ac_delim |
| 21793 | localstatedir!$localstatedir$ac_delim |
| 21794 | includedir!$includedir$ac_delim |
| 21795 | oldincludedir!$oldincludedir$ac_delim |
| 21796 | docdir!$docdir$ac_delim |
| 21797 | infodir!$infodir$ac_delim |
| 21798 | htmldir!$htmldir$ac_delim |
| 21799 | dvidir!$dvidir$ac_delim |
| 21800 | pdfdir!$pdfdir$ac_delim |
| 21801 | psdir!$psdir$ac_delim |
| 21802 | libdir!$libdir$ac_delim |
| 21803 | localedir!$localedir$ac_delim |
| 21804 | mandir!$mandir$ac_delim |
| 21805 | DEFS!$DEFS$ac_delim |
| 21806 | ECHO_C!$ECHO_C$ac_delim |
| 21807 | ECHO_N!$ECHO_N$ac_delim |
| 21808 | ECHO_T!$ECHO_T$ac_delim |
| 21809 | LIBS!$LIBS$ac_delim |
| 21810 | build_alias!$build_alias$ac_delim |
| 21811 | host_alias!$host_alias$ac_delim |
| 21812 | target_alias!$target_alias$ac_delim |
| 21813 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21814 | CC!$CC$ac_delim |
| 21815 | CFLAGS!$CFLAGS$ac_delim |
| 21816 | LDFLAGS!$LDFLAGS$ac_delim |
| 21817 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21818 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21819 | EXEEXT!$EXEEXT$ac_delim |
| 21820 | OBJEXT!$OBJEXT$ac_delim |
| 21821 | CXX!$CXX$ac_delim |
| 21822 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21823 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21824 | CPP!$CPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21825 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 21826 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 21827 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21828 | build!$build$ac_delim |
| 21829 | build_cpu!$build_cpu$ac_delim |
| 21830 | build_vendor!$build_vendor$ac_delim |
| 21831 | build_os!$build_os$ac_delim |
| 21832 | host!$host$ac_delim |
| 21833 | host_cpu!$host_cpu$ac_delim |
| 21834 | host_vendor!$host_vendor$ac_delim |
| 21835 | host_os!$host_os$ac_delim |
| 21836 | target!$target$ac_delim |
| 21837 | target_cpu!$target_cpu$ac_delim |
| 21838 | target_vendor!$target_vendor$ac_delim |
| 21839 | target_os!$target_os$ac_delim |
| 21840 | OS!$OS$ac_delim |
| 21841 | HOST_OS!$HOST_OS$ac_delim |
| 21842 | TARGET_OS!$TARGET_OS$ac_delim |
| 21843 | LINKALL!$LINKALL$ac_delim |
| 21844 | NOLINKALL!$NOLINKALL$ac_delim |
| 21845 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21846 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21847 | ARCH!$ARCH$ac_delim |
| 21848 | ENDIAN!$ENDIAN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21849 | GREP!$GREP$ac_delim |
| 21850 | EGREP!$EGREP$ac_delim |
| 21851 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21852 | BUILD_CC!$BUILD_CC$ac_delim |
| 21853 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21854 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21855 | CVSBUILD!$CVSBUILD$ac_delim |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 21856 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21857 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21858 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21859 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21860 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21861 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21862 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21863 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21864 | JIT!$JIT$ac_delim |
| 21865 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21866 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21867 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 21868 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21869 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21870 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21871 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21872 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21873 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21874 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21875 | 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] | 21876 | break |
| 21877 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21878 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21879 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21880 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21881 | else |
| 21882 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21883 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21884 | done |
| 21885 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21886 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21887 | if test -n "$ac_eof"; then |
| 21888 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21889 | ac_eof=`expr $ac_eof + 1` |
| 21890 | fi |
| 21891 | |
| 21892 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21893 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21894 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21895 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21896 | sed ' |
| 21897 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21898 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21899 | :n |
| 21900 | t n |
| 21901 | s/'"$ac_delim"'$/,g/; t |
| 21902 | s/$/\\/; p |
| 21903 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21904 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21905 | rm -f conf$$subs.sed |
| 21906 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21907 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21908 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21909 | |
| 21910 | |
| 21911 | ac_delim='%!_!# ' |
| 21912 | for ac_last_try in false false false false false :; do |
| 21913 | cat >conf$$subs.sed <<_ACEOF |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 21914 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21915 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21916 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21917 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21918 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21919 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21920 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21921 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21922 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 21923 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 21924 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21925 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 21926 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21927 | NM!$NM$ac_delim |
| 21928 | ifGNUmake!$ifGNUmake$ac_delim |
| 21929 | LN_S!$LN_S$ac_delim |
| 21930 | CMP!$CMP$ac_delim |
| 21931 | CP!$CP$ac_delim |
| 21932 | DATE!$DATE$ac_delim |
| 21933 | FIND!$FIND$ac_delim |
| 21934 | MKDIR!$MKDIR$ac_delim |
| 21935 | MV!$MV$ac_delim |
| 21936 | RANLIB!$RANLIB$ac_delim |
| 21937 | AR!$AR$ac_delim |
| 21938 | RM!$RM$ac_delim |
| 21939 | SED!$SED$ac_delim |
| 21940 | TAR!$TAR$ac_delim |
| 21941 | BINPWD!$BINPWD$ac_delim |
| 21942 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21943 | DOT!$DOT$ac_delim |
| 21944 | FDP!$FDP$ac_delim |
| 21945 | NEATO!$NEATO$ac_delim |
| 21946 | TWOPI!$TWOPI$ac_delim |
| 21947 | CIRCO!$CIRCO$ac_delim |
| 21948 | GV!$GV$ac_delim |
| 21949 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 21950 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21951 | PERL!$PERL$ac_delim |
| 21952 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21953 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21954 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21955 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21956 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21957 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21958 | DOXYGEN!$DOXYGEN$ac_delim |
| 21959 | GROFF!$GROFF$ac_delim |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 21960 | GZIPBIN!$GZIPBIN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21961 | POD2HTML!$POD2HTML$ac_delim |
| 21962 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21963 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21964 | RUNTEST!$RUNTEST$ac_delim |
| 21965 | TCLSH!$TCLSH$ac_delim |
| 21966 | ZIP!$ZIP$ac_delim |
| 21967 | OCAMLC!$OCAMLC$ac_delim |
| 21968 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21969 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21970 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21971 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21972 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21973 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21974 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21975 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21976 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21977 | LIBADD_DL!$LIBADD_DL$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21978 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21979 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame^] | 21980 | COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21981 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21982 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21983 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21984 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21985 | MMAP_FILE!$MMAP_FILE$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21986 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21987 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21988 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21989 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21990 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21991 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21992 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21993 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21994 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21995 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21996 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21997 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21998 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21999 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22000 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 22001 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 22002 | RPATH!$RPATH$ac_delim |
| 22003 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 22004 | LIBOBJS!$LIBOBJS$ac_delim |
| 22005 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22006 | _ACEOF |
| 22007 | |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame^] | 22008 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22009 | break |
| 22010 | elif $ac_last_try; then |
| 22011 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22012 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22013 | { (exit 1); exit 1; }; } |
| 22014 | else |
| 22015 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 22016 | fi |
| 22017 | done |
| 22018 | |
| 22019 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22020 | if test -n "$ac_eof"; then |
| 22021 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22022 | ac_eof=`expr $ac_eof + 1` |
| 22023 | fi |
| 22024 | |
| 22025 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22026 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22027 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 22028 | _ACEOF |
| 22029 | sed ' |
| 22030 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22031 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22032 | :n |
| 22033 | t n |
| 22034 | s/'"$ac_delim"'$/,g/; t |
| 22035 | s/$/\\/; p |
| 22036 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22037 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22038 | rm -f conf$$subs.sed |
| 22039 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22040 | :end |
| 22041 | s/|#_!!_#|//g |
| 22042 | CEOF$ac_eof |
| 22043 | _ACEOF |
| 22044 | |
| 22045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22046 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22047 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22048 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22049 | # (actually we leave an empty line to preserve line numbers). |
| 22050 | if test "x$srcdir" = x.; then |
| 22051 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22052 | s/:*\$(srcdir):*/:/ |
| 22053 | s/:*\${srcdir}:*/:/ |
| 22054 | s/:*@srcdir@:*/:/ |
| 22055 | s/^\([^=]*=[ ]*\):*/\1/ |
| 22056 | s/:*$// |
| 22057 | s/^[^=]*=[ ]*$// |
| 22058 | }' |
| 22059 | fi |
| 22060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22061 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22062 | fi # test -n "$CONFIG_FILES" |
| 22063 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22064 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22065 | 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] | 22066 | do |
| 22067 | case $ac_tag in |
| 22068 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 22069 | esac |
| 22070 | case $ac_mode$ac_tag in |
| 22071 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22072 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 22073 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 22074 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22075 | :[FH]-) ac_tag=-:-;; |
| 22076 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 22077 | esac |
| 22078 | ac_save_IFS=$IFS |
| 22079 | IFS=: |
| 22080 | set x $ac_tag |
| 22081 | IFS=$ac_save_IFS |
| 22082 | shift |
| 22083 | ac_file=$1 |
| 22084 | shift |
| 22085 | |
| 22086 | case $ac_mode in |
| 22087 | :L) ac_source=$1;; |
| 22088 | :[FH]) |
| 22089 | ac_file_inputs= |
| 22090 | for ac_f |
| 22091 | do |
| 22092 | case $ac_f in |
| 22093 | -) ac_f="$tmp/stdin";; |
| 22094 | *) # Look for the file first in the build tree, then in the source tree |
| 22095 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 22096 | # because $ac_f cannot contain `:'. |
| 22097 | test -f "$ac_f" || |
| 22098 | case $ac_f in |
| 22099 | [\\/$]*) false;; |
| 22100 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 22101 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22102 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 22103 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 22104 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22105 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22106 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22107 | done |
| 22108 | |
| 22109 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22110 | # use $as_me), people would be surprised to read: |
| 22111 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22112 | configure_input="Generated from "`IFS=: |
| 22113 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22114 | if test x"$ac_file" != x-; then |
| 22115 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22116 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22117 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22118 | fi |
| 22119 | |
| 22120 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22121 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22122 | esac |
| 22123 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22124 | esac |
| 22125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22126 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22127 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22128 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22129 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22130 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22131 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22132 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22133 | s//\1/ |
| 22134 | q |
| 22135 | } |
| 22136 | /^X\(\/\/\)[^/].*/{ |
| 22137 | s//\1/ |
| 22138 | q |
| 22139 | } |
| 22140 | /^X\(\/\/\)$/{ |
| 22141 | s//\1/ |
| 22142 | q |
| 22143 | } |
| 22144 | /^X\(\/\).*/{ |
| 22145 | s//\1/ |
| 22146 | q |
| 22147 | } |
| 22148 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22149 | { as_dir="$ac_dir" |
| 22150 | case $as_dir in #( |
| 22151 | -*) as_dir=./$as_dir;; |
| 22152 | esac |
| 22153 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22154 | as_dirs= |
| 22155 | while :; do |
| 22156 | case $as_dir in #( |
| 22157 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22158 | *) as_qdir=$as_dir;; |
| 22159 | esac |
| 22160 | as_dirs="'$as_qdir' $as_dirs" |
| 22161 | as_dir=`$as_dirname -- "$as_dir" || |
| 22162 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22163 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22164 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22165 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22166 | echo X"$as_dir" | |
| 22167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22168 | s//\1/ |
| 22169 | q |
| 22170 | } |
| 22171 | /^X\(\/\/\)[^/].*/{ |
| 22172 | s//\1/ |
| 22173 | q |
| 22174 | } |
| 22175 | /^X\(\/\/\)$/{ |
| 22176 | s//\1/ |
| 22177 | q |
| 22178 | } |
| 22179 | /^X\(\/\).*/{ |
| 22180 | s//\1/ |
| 22181 | q |
| 22182 | } |
| 22183 | s/.*/./; q'` |
| 22184 | test -d "$as_dir" && break |
| 22185 | done |
| 22186 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22187 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22188 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22189 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22190 | ac_builddir=. |
| 22191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22192 | case "$ac_dir" in |
| 22193 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22194 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22195 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22196 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22197 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22198 | case $ac_top_builddir_sub in |
| 22199 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22200 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22201 | esac ;; |
| 22202 | esac |
| 22203 | ac_abs_top_builddir=$ac_pwd |
| 22204 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22205 | # for backward compatibility: |
| 22206 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22207 | |
| 22208 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22209 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22210 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22211 | ac_top_srcdir=$ac_top_builddir_sub |
| 22212 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22213 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22214 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22215 | ac_top_srcdir=$srcdir |
| 22216 | ac_abs_top_srcdir=$srcdir ;; |
| 22217 | *) # Relative name. |
| 22218 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22219 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22220 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22221 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22222 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22223 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22225 | case $ac_mode in |
| 22226 | :F) |
| 22227 | # |
| 22228 | # CONFIG_FILE |
| 22229 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22230 | |
| 22231 | case $INSTALL in |
| 22232 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22233 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22234 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22235 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22236 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22237 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22238 | # If the template does not know about datarootdir, expand it. |
| 22239 | # FIXME: This hack should be removed a few years after 2.60. |
| 22240 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22241 | |
| 22242 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22243 | p |
| 22244 | q |
| 22245 | } |
| 22246 | /@datadir@/p |
| 22247 | /@docdir@/p |
| 22248 | /@infodir@/p |
| 22249 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22250 | /@mandir@/p |
| 22251 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22252 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22253 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22254 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22255 | 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] | 22256 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22257 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22258 | ac_datarootdir_hack=' |
| 22259 | s&@datadir@&$datadir&g |
| 22260 | s&@docdir@&$docdir&g |
| 22261 | s&@infodir@&$infodir&g |
| 22262 | s&@localedir@&$localedir&g |
| 22263 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22264 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22265 | esac |
| 22266 | _ACEOF |
| 22267 | |
| 22268 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22269 | # Shell code in configure.ac might set extrasub. |
| 22270 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22271 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22272 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22273 | $extrasub |
| 22274 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22275 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22276 | :t |
| 22277 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22278 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22279 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22280 | s&@srcdir@&$ac_srcdir&;t t |
| 22281 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22282 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22283 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22284 | s&@builddir@&$ac_builddir&;t t |
| 22285 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22286 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22287 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22288 | $ac_datarootdir_hack |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22289 | " $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] | 22290 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22291 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22292 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22293 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22294 | { 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] | 22295 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22296 | 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] | 22297 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22298 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22299 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22300 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22301 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22302 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 22303 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22304 | ;; |
| 22305 | :H) |
| 22306 | # |
| 22307 | # CONFIG_HEADER |
| 22308 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22309 | _ACEOF |
| 22310 | |
| 22311 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22312 | # substitutes the proper values into config.h.in to produce config.h. |
| 22313 | rm -f conftest.defines conftest.tail |
| 22314 | # First, append a space to every undef/define line, to ease matching. |
| 22315 | echo 's/$/ /' >conftest.defines |
| 22316 | # Then, protect against being on the right side of a sed subst, or in |
| 22317 | # an unquoted here document, in config.status. If some macros were |
| 22318 | # called several times there might be several #defines for the same |
| 22319 | # symbol, which is useless. But do not sort them, since the last |
| 22320 | # AC_DEFINE must be honored. |
| 22321 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22322 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22323 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22324 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22325 | # just an empty string. |
| 22326 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 22327 | ac_dB='\\)[ (].*,\\1define\\2' |
| 22328 | ac_dC=' ' |
| 22329 | ac_dD=' ,' |
| 22330 | |
| 22331 | uniq confdefs.h | |
| 22332 | sed -n ' |
| 22333 | t rset |
| 22334 | :rset |
| 22335 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22336 | t ok |
| 22337 | d |
| 22338 | :ok |
| 22339 | s/[\\&,]/\\&/g |
| 22340 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 22341 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 22342 | ' >>conftest.defines |
| 22343 | |
| 22344 | # Remove the space that was appended to ease matching. |
| 22345 | # Then replace #undef with comments. This is necessary, for |
| 22346 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22347 | # on some systems where configure will not decide to define it. |
| 22348 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22349 | echo 's/ $// |
| 22350 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 22351 | |
| 22352 | # Break up conftest.defines: |
| 22353 | ac_max_sed_lines=50 |
| 22354 | |
| 22355 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22356 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22357 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22358 | # et cetera. |
| 22359 | ac_in='$ac_file_inputs' |
| 22360 | ac_out='"$tmp/out1"' |
| 22361 | ac_nxt='"$tmp/out2"' |
| 22362 | |
| 22363 | while : |
| 22364 | do |
| 22365 | # Write a here document: |
| 22366 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22367 | # First, check the format of the line: |
| 22368 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 22369 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 22370 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 22371 | b |
| 22372 | :def |
| 22373 | _ACEOF |
| 22374 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 22375 | echo 'CEOF |
| 22376 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22377 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22378 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22379 | grep . conftest.tail >/dev/null || break |
| 22380 | rm -f conftest.defines |
| 22381 | mv conftest.tail conftest.defines |
| 22382 | done |
| 22383 | rm -f conftest.defines conftest.tail |
| 22384 | |
| 22385 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 22386 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22387 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22388 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22389 | cat "$ac_result" >>"$tmp/config.h" |
| 22390 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 22391 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22392 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22394 | rm -f $ac_file |
| 22395 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22396 | fi |
| 22397 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22398 | echo "/* $configure_input */" |
| 22399 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22400 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22401 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22402 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22403 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22404 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22405 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22406 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22407 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22409 | |
| 22410 | case $ac_file$ac_mode in |
| 22411 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22412 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22413 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22414 | ${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] | 22415 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22416 | ${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] | 22417 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22418 | ${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] | 22419 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22420 | ${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] | 22421 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22422 | ${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] | 22423 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22424 | ${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] | 22425 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22426 | ${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] | 22427 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22428 | ${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] | 22429 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22430 | ${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] | 22431 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22432 | ${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] | 22433 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22434 | ${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] | 22435 | "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] | 22436 | ${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] | 22437 | |
| 22438 | esac |
| 22439 | done # for ac_tag |
| 22440 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22441 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22442 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22443 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22444 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22445 | ac_clean_files=$ac_clean_files_save |
| 22446 | |
| 22447 | |
| 22448 | # configure is writing to config.log, and then calls config.status. |
| 22449 | # config.status does its own redirection, appending to config.log. |
| 22450 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22451 | # by configure, so config.status won't be able to write to it; its |
| 22452 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22453 | # effectively closing config.log, so it can be properly (re)opened and |
| 22454 | # appended to by config.status. When coming back to configure, we |
| 22455 | # need to make the FD available again. |
| 22456 | if test "$no_create" != yes; then |
| 22457 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22458 | ac_config_status_args= |
| 22459 | test "$silent" = yes && |
| 22460 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22461 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22462 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22463 | exec 5>>config.log |
| 22464 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22465 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22466 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22467 | fi |
| 22468 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22469 | # |
| 22470 | # CONFIG_SUBDIRS section. |
| 22471 | # |
| 22472 | if test "$no_recursion" != yes; then |
| 22473 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22474 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22475 | ac_sub_configure_args= |
| 22476 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22477 | eval "set x $ac_configure_args" |
| 22478 | shift |
| 22479 | for ac_arg |
| 22480 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22481 | if test -n "$ac_prev"; then |
| 22482 | ac_prev= |
| 22483 | continue |
| 22484 | fi |
| 22485 | case $ac_arg in |
| 22486 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22487 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22488 | ac_prev=cache_file ;; |
| 22489 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22490 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22491 | | --c=*) |
| 22492 | ;; |
| 22493 | --config-cache | -C) |
| 22494 | ;; |
| 22495 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22496 | ac_prev=srcdir ;; |
| 22497 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22498 | ;; |
| 22499 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22500 | ac_prev=prefix ;; |
| 22501 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22502 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22503 | *) |
| 22504 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22505 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22506 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22507 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22508 | esac |
| 22509 | done |
| 22510 | |
| 22511 | # Always prepend --prefix to ensure using the same prefix |
| 22512 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22513 | ac_arg="--prefix=$prefix" |
| 22514 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22515 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22516 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22517 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22518 | |
| 22519 | ac_popdir=`pwd` |
| 22520 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22521 | |
| 22522 | # Do not complain, so a configure script can configure whichever |
| 22523 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22524 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22526 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22527 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22528 | echo "$ac_msg" >&6 |
| 22529 | { as_dir="$ac_dir" |
| 22530 | case $as_dir in #( |
| 22531 | -*) as_dir=./$as_dir;; |
| 22532 | esac |
| 22533 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22534 | as_dirs= |
| 22535 | while :; do |
| 22536 | case $as_dir in #( |
| 22537 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22538 | *) as_qdir=$as_dir;; |
| 22539 | esac |
| 22540 | as_dirs="'$as_qdir' $as_dirs" |
| 22541 | as_dir=`$as_dirname -- "$as_dir" || |
| 22542 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22543 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22544 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22545 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22546 | echo X"$as_dir" | |
| 22547 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22548 | s//\1/ |
| 22549 | q |
| 22550 | } |
| 22551 | /^X\(\/\/\)[^/].*/{ |
| 22552 | s//\1/ |
| 22553 | q |
| 22554 | } |
| 22555 | /^X\(\/\/\)$/{ |
| 22556 | s//\1/ |
| 22557 | q |
| 22558 | } |
| 22559 | /^X\(\/\).*/{ |
| 22560 | s//\1/ |
| 22561 | q |
| 22562 | } |
| 22563 | s/.*/./; q'` |
| 22564 | test -d "$as_dir" && break |
| 22565 | done |
| 22566 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22567 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22568 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22569 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22570 | ac_builddir=. |
| 22571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22572 | case "$ac_dir" in |
| 22573 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22574 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22575 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22576 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22577 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22578 | case $ac_top_builddir_sub in |
| 22579 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22580 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22581 | esac ;; |
| 22582 | esac |
| 22583 | ac_abs_top_builddir=$ac_pwd |
| 22584 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22585 | # for backward compatibility: |
| 22586 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22587 | |
| 22588 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22589 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22590 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22591 | ac_top_srcdir=$ac_top_builddir_sub |
| 22592 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22593 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22594 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22595 | ac_top_srcdir=$srcdir |
| 22596 | ac_abs_top_srcdir=$srcdir ;; |
| 22597 | *) # Relative name. |
| 22598 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22599 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22600 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22601 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22602 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22603 | |
| 22604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22605 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22606 | |
| 22607 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22608 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22609 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22610 | elif test -f "$ac_srcdir/configure"; then |
| 22611 | ac_sub_configure=$ac_srcdir/configure |
| 22612 | elif test -f "$ac_srcdir/configure.in"; then |
| 22613 | # This should be Cygnus configure. |
| 22614 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22615 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22616 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22617 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22618 | ac_sub_configure= |
| 22619 | fi |
| 22620 | |
| 22621 | # The recursion is here. |
| 22622 | if test -n "$ac_sub_configure"; then |
| 22623 | # Make the cache file name correct relative to the subdirectory. |
| 22624 | case $cache_file in |
| 22625 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22626 | *) # Relative name. |
| 22627 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22628 | esac |
| 22629 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22630 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22631 | 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] | 22632 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22633 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22634 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22635 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22636 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22637 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22638 | fi |
| 22639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22640 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22641 | done |
| 22642 | fi |
| 22643 | |