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 |
| 768 | USE_UDIS86 |
| 769 | USE_OPROFILE |
| 770 | HAVE_PTHREAD |
| 771 | HUGE_VAL_SANITY |
| 772 | MMAP_FILE |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 773 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 774 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 775 | LLVM_PREFIX |
| 776 | LLVM_BINDIR |
| 777 | LLVM_LIBDIR |
| 778 | LLVM_DATADIR |
| 779 | LLVM_DOCSDIR |
| 780 | LLVM_ETCDIR |
| 781 | LLVM_INCLUDEDIR |
| 782 | LLVM_INFODIR |
| 783 | LLVM_MANDIR |
| 784 | LLVM_CONFIGTIME |
| 785 | BINDINGS_TO_BUILD |
| 786 | ALL_BINDINGS |
| 787 | OCAML_LIBDIR |
| 788 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 789 | RPATH |
| 790 | RDYNAMIC |
| 791 | LIBOBJS |
| 792 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 793 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 794 | ac_precious_vars='build_alias |
| 795 | host_alias |
| 796 | target_alias |
| 797 | CC |
| 798 | CFLAGS |
| 799 | LDFLAGS |
| 800 | CPPFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 801 | CXX |
| 802 | CXXFLAGS |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 803 | CCC |
| 804 | CPP' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 805 | ac_subdirs_all='projects/llvm-gcc |
| 806 | projects/test-suite |
| 807 | projects/llvm-test |
| 808 | projects/poolalloc |
| 809 | projects/llvm-poolalloc |
| 810 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 811 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 812 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 814 | projects/llvm-java |
| 815 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 816 | projects/safecode |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 817 | projects/llvm-kernel |
| 818 | tools/polly' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 819 | |
| 820 | # Initialize some variables set by options. |
| 821 | ac_init_help= |
| 822 | ac_init_version=false |
| 823 | # The variables have the same names as the options, with |
| 824 | # dashes changed to underlines. |
| 825 | cache_file=/dev/null |
| 826 | exec_prefix=NONE |
| 827 | no_create= |
| 828 | no_recursion= |
| 829 | prefix=NONE |
| 830 | program_prefix=NONE |
| 831 | program_suffix=NONE |
| 832 | program_transform_name=s,x,x, |
| 833 | silent= |
| 834 | site= |
| 835 | srcdir= |
| 836 | verbose= |
| 837 | x_includes=NONE |
| 838 | x_libraries=NONE |
| 839 | |
| 840 | # Installation directory options. |
| 841 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 842 | # and all the variables that are supposed to be based on exec_prefix |
| 843 | # by default will actually change. |
| 844 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 845 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 846 | bindir='${exec_prefix}/bin' |
| 847 | sbindir='${exec_prefix}/sbin' |
| 848 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 849 | datarootdir='${prefix}/share' |
| 850 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 851 | sysconfdir='${prefix}/etc' |
| 852 | sharedstatedir='${prefix}/com' |
| 853 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 854 | includedir='${prefix}/include' |
| 855 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 856 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 857 | infodir='${datarootdir}/info' |
| 858 | htmldir='${docdir}' |
| 859 | dvidir='${docdir}' |
| 860 | pdfdir='${docdir}' |
| 861 | psdir='${docdir}' |
| 862 | libdir='${exec_prefix}/lib' |
| 863 | localedir='${datarootdir}/locale' |
| 864 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 865 | |
| 866 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 867 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 868 | for ac_option |
| 869 | do |
| 870 | # If the previous option needs an argument, assign it. |
| 871 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 872 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 873 | ac_prev= |
| 874 | continue |
| 875 | fi |
| 876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 877 | case $ac_option in |
| 878 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 879 | *) ac_optarg=yes ;; |
| 880 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 881 | |
| 882 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 884 | case $ac_dashdash$ac_option in |
| 885 | --) |
| 886 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 887 | |
| 888 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 889 | ac_prev=bindir ;; |
| 890 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 891 | bindir=$ac_optarg ;; |
| 892 | |
| 893 | -build | --build | --buil | --bui | --bu) |
| 894 | ac_prev=build_alias ;; |
| 895 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 896 | build_alias=$ac_optarg ;; |
| 897 | |
| 898 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 899 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 900 | ac_prev=cache_file ;; |
| 901 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 902 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 903 | cache_file=$ac_optarg ;; |
| 904 | |
| 905 | --config-cache | -C) |
| 906 | cache_file=config.cache ;; |
| 907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 908 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 909 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 910 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 911 | datadir=$ac_optarg ;; |
| 912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 913 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 914 | | --dataroo | --dataro | --datar) |
| 915 | ac_prev=datarootdir ;; |
| 916 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 917 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 918 | datarootdir=$ac_optarg ;; |
| 919 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 921 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 922 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 923 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 924 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 925 | { (exit 1); exit 1; }; } |
| 926 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 927 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 928 | |
| 929 | -docdir | --docdir | --docdi | --doc | --do) |
| 930 | ac_prev=docdir ;; |
| 931 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 932 | docdir=$ac_optarg ;; |
| 933 | |
| 934 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 935 | ac_prev=dvidir ;; |
| 936 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 937 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 938 | |
| 939 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 940 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 941 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 942 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 943 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 944 | { (exit 1); exit 1; }; } |
| 945 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 946 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 947 | |
| 948 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 949 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 950 | | --exec | --exe | --ex) |
| 951 | ac_prev=exec_prefix ;; |
| 952 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 953 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 954 | | --exec=* | --exe=* | --ex=*) |
| 955 | exec_prefix=$ac_optarg ;; |
| 956 | |
| 957 | -gas | --gas | --ga | --g) |
| 958 | # Obsolete; use --with-gas. |
| 959 | with_gas=yes ;; |
| 960 | |
| 961 | -help | --help | --hel | --he | -h) |
| 962 | ac_init_help=long ;; |
| 963 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 964 | ac_init_help=recursive ;; |
| 965 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 966 | ac_init_help=short ;; |
| 967 | |
| 968 | -host | --host | --hos | --ho) |
| 969 | ac_prev=host_alias ;; |
| 970 | -host=* | --host=* | --hos=* | --ho=*) |
| 971 | host_alias=$ac_optarg ;; |
| 972 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 973 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 974 | ac_prev=htmldir ;; |
| 975 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 976 | | --ht=*) |
| 977 | htmldir=$ac_optarg ;; |
| 978 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 979 | -includedir | --includedir | --includedi | --included | --include \ |
| 980 | | --includ | --inclu | --incl | --inc) |
| 981 | ac_prev=includedir ;; |
| 982 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 983 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 984 | includedir=$ac_optarg ;; |
| 985 | |
| 986 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 987 | ac_prev=infodir ;; |
| 988 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 989 | infodir=$ac_optarg ;; |
| 990 | |
| 991 | -libdir | --libdir | --libdi | --libd) |
| 992 | ac_prev=libdir ;; |
| 993 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 994 | libdir=$ac_optarg ;; |
| 995 | |
| 996 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 997 | | --libexe | --libex | --libe) |
| 998 | ac_prev=libexecdir ;; |
| 999 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1000 | | --libexe=* | --libex=* | --libe=*) |
| 1001 | libexecdir=$ac_optarg ;; |
| 1002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1003 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1004 | ac_prev=localedir ;; |
| 1005 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1006 | localedir=$ac_optarg ;; |
| 1007 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1008 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1010 | ac_prev=localstatedir ;; |
| 1011 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1012 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1013 | localstatedir=$ac_optarg ;; |
| 1014 | |
| 1015 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1016 | ac_prev=mandir ;; |
| 1017 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1018 | mandir=$ac_optarg ;; |
| 1019 | |
| 1020 | -nfp | --nfp | --nf) |
| 1021 | # Obsolete; use --without-fp. |
| 1022 | with_fp=no ;; |
| 1023 | |
| 1024 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1025 | | --no-cr | --no-c | -n) |
| 1026 | no_create=yes ;; |
| 1027 | |
| 1028 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1029 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1030 | no_recursion=yes ;; |
| 1031 | |
| 1032 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1033 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1034 | | --oldin | --oldi | --old | --ol | --o) |
| 1035 | ac_prev=oldincludedir ;; |
| 1036 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1037 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1038 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1039 | oldincludedir=$ac_optarg ;; |
| 1040 | |
| 1041 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1042 | ac_prev=prefix ;; |
| 1043 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1044 | prefix=$ac_optarg ;; |
| 1045 | |
| 1046 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1047 | | --program-pre | --program-pr | --program-p) |
| 1048 | ac_prev=program_prefix ;; |
| 1049 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1050 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1051 | program_prefix=$ac_optarg ;; |
| 1052 | |
| 1053 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1054 | | --program-suf | --program-su | --program-s) |
| 1055 | ac_prev=program_suffix ;; |
| 1056 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1057 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1058 | program_suffix=$ac_optarg ;; |
| 1059 | |
| 1060 | -program-transform-name | --program-transform-name \ |
| 1061 | | --program-transform-nam | --program-transform-na \ |
| 1062 | | --program-transform-n | --program-transform- \ |
| 1063 | | --program-transform | --program-transfor \ |
| 1064 | | --program-transfo | --program-transf \ |
| 1065 | | --program-trans | --program-tran \ |
| 1066 | | --progr-tra | --program-tr | --program-t) |
| 1067 | ac_prev=program_transform_name ;; |
| 1068 | -program-transform-name=* | --program-transform-name=* \ |
| 1069 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1070 | | --program-transform-n=* | --program-transform-=* \ |
| 1071 | | --program-transform=* | --program-transfor=* \ |
| 1072 | | --program-transfo=* | --program-transf=* \ |
| 1073 | | --program-trans=* | --program-tran=* \ |
| 1074 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1075 | program_transform_name=$ac_optarg ;; |
| 1076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1077 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1078 | ac_prev=pdfdir ;; |
| 1079 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1080 | pdfdir=$ac_optarg ;; |
| 1081 | |
| 1082 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1083 | ac_prev=psdir ;; |
| 1084 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1085 | psdir=$ac_optarg ;; |
| 1086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1087 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1088 | | -silent | --silent | --silen | --sile | --sil) |
| 1089 | silent=yes ;; |
| 1090 | |
| 1091 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1092 | ac_prev=sbindir ;; |
| 1093 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1094 | | --sbi=* | --sb=*) |
| 1095 | sbindir=$ac_optarg ;; |
| 1096 | |
| 1097 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1098 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1099 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1100 | | --sha | --sh) |
| 1101 | ac_prev=sharedstatedir ;; |
| 1102 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1103 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1104 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1105 | | --sha=* | --sh=*) |
| 1106 | sharedstatedir=$ac_optarg ;; |
| 1107 | |
| 1108 | -site | --site | --sit) |
| 1109 | ac_prev=site ;; |
| 1110 | -site=* | --site=* | --sit=*) |
| 1111 | site=$ac_optarg ;; |
| 1112 | |
| 1113 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1114 | ac_prev=srcdir ;; |
| 1115 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1116 | srcdir=$ac_optarg ;; |
| 1117 | |
| 1118 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1119 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1120 | ac_prev=sysconfdir ;; |
| 1121 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1122 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1123 | sysconfdir=$ac_optarg ;; |
| 1124 | |
| 1125 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1126 | ac_prev=target_alias ;; |
| 1127 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1128 | target_alias=$ac_optarg ;; |
| 1129 | |
| 1130 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1131 | verbose=yes ;; |
| 1132 | |
| 1133 | -version | --version | --versio | --versi | --vers | -V) |
| 1134 | ac_init_version=: ;; |
| 1135 | |
| 1136 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1137 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1138 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1139 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1140 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1141 | { (exit 1); exit 1; }; } |
| 1142 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1143 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1144 | |
| 1145 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1146 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1147 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1148 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1149 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1150 | { (exit 1); exit 1; }; } |
| 1151 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1152 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1153 | |
| 1154 | --x) |
| 1155 | # Obsolete; use --with-x. |
| 1156 | with_x=yes ;; |
| 1157 | |
| 1158 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1159 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1160 | ac_prev=x_includes ;; |
| 1161 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1162 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1163 | x_includes=$ac_optarg ;; |
| 1164 | |
| 1165 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1166 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1167 | ac_prev=x_libraries ;; |
| 1168 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1169 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1170 | x_libraries=$ac_optarg ;; |
| 1171 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1172 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1173 | Try \`$0 --help' for more information." >&2 |
| 1174 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1175 | ;; |
| 1176 | |
| 1177 | *=*) |
| 1178 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1179 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1180 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1181 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1182 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1183 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1184 | export $ac_envvar ;; |
| 1185 | |
| 1186 | *) |
| 1187 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1188 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1189 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1190 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1191 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1192 | ;; |
| 1193 | |
| 1194 | esac |
| 1195 | done |
| 1196 | |
| 1197 | if test -n "$ac_prev"; then |
| 1198 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1199 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1200 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1201 | fi |
| 1202 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1203 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1204 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1205 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1206 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1207 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1208 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1209 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1211 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1212 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1214 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1215 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1216 | done |
| 1217 | |
| 1218 | # There might be people who depend on the old broken behavior: `$host' |
| 1219 | # used to hold the argument of --host etc. |
| 1220 | # FIXME: To remove some day. |
| 1221 | build=$build_alias |
| 1222 | host=$host_alias |
| 1223 | target=$target_alias |
| 1224 | |
| 1225 | # FIXME: To remove some day. |
| 1226 | if test "x$host_alias" != x; then |
| 1227 | if test "x$build_alias" = x; then |
| 1228 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1229 | 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] | 1230 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1231 | elif test "x$build_alias" != "x$host_alias"; then |
| 1232 | cross_compiling=yes |
| 1233 | fi |
| 1234 | fi |
| 1235 | |
| 1236 | ac_tool_prefix= |
| 1237 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1238 | |
| 1239 | test "$silent" = yes && exec 6>/dev/null |
| 1240 | |
| 1241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1242 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1243 | ac_ls_di=`ls -di .` && |
| 1244 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1245 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1246 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1247 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1248 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1249 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1250 | |
| 1251 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1252 | # Find the source files, if location was not specified. |
| 1253 | if test -z "$srcdir"; then |
| 1254 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1255 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1256 | ac_confdir=`$as_dirname -- "$0" || |
| 1257 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1258 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1259 | X"$0" : 'X\(//\)$' \| \ |
| 1260 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1261 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1262 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1263 | s//\1/ |
| 1264 | q |
| 1265 | } |
| 1266 | /^X\(\/\/\)[^/].*/{ |
| 1267 | s//\1/ |
| 1268 | q |
| 1269 | } |
| 1270 | /^X\(\/\/\)$/{ |
| 1271 | s//\1/ |
| 1272 | q |
| 1273 | } |
| 1274 | /^X\(\/\).*/{ |
| 1275 | s//\1/ |
| 1276 | q |
| 1277 | } |
| 1278 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1279 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1280 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1281 | srcdir=.. |
| 1282 | fi |
| 1283 | else |
| 1284 | ac_srcdir_defaulted=no |
| 1285 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1286 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1287 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1288 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1289 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1290 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1291 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1292 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1293 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1294 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1295 | pwd)` |
| 1296 | # When building in place, set srcdir=. |
| 1297 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1298 | srcdir=. |
| 1299 | fi |
| 1300 | # Remove unnecessary trailing slashes from srcdir. |
| 1301 | # Double slashes in file names in object file debugging info |
| 1302 | # mess up M-x gdb in Emacs. |
| 1303 | case $srcdir in |
| 1304 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1305 | esac |
| 1306 | for ac_var in $ac_precious_vars; do |
| 1307 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1308 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1309 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1310 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1311 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1312 | |
| 1313 | # |
| 1314 | # Report the --help message. |
| 1315 | # |
| 1316 | if test "$ac_init_help" = "long"; then |
| 1317 | # Omit some internal or obsolete options to make the list less imposing. |
| 1318 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1319 | cat <<_ACEOF |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1320 | \`configure' configures LLVM 3.1svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1321 | |
| 1322 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1323 | |
| 1324 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1325 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1326 | |
| 1327 | Defaults for the options are specified in brackets. |
| 1328 | |
| 1329 | Configuration: |
| 1330 | -h, --help display this help and exit |
| 1331 | --help=short display options specific to this package |
| 1332 | --help=recursive display the short help of all the included packages |
| 1333 | -V, --version display version information and exit |
| 1334 | -q, --quiet, --silent do not print \`checking...' messages |
| 1335 | --cache-file=FILE cache test results in FILE [disabled] |
| 1336 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1337 | -n, --no-create do not create output files |
| 1338 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1339 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1340 | Installation directories: |
| 1341 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1342 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1343 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1344 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1345 | |
| 1346 | By default, \`make install' will install all the files in |
| 1347 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1348 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1349 | for instance \`--prefix=\$HOME'. |
| 1350 | |
| 1351 | For better control, use the options below. |
| 1352 | |
| 1353 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1354 | --bindir=DIR user executables [EPREFIX/bin] |
| 1355 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1356 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1357 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1358 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1359 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1360 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1361 | --includedir=DIR C header files [PREFIX/include] |
| 1362 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1363 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1364 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1365 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1366 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1367 | --mandir=DIR man documentation [DATAROOTDIR/man] |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1368 | --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1369 | --htmldir=DIR html documentation [DOCDIR] |
| 1370 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1371 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1372 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1373 | _ACEOF |
| 1374 | |
| 1375 | cat <<\_ACEOF |
| 1376 | |
| 1377 | System types: |
| 1378 | --build=BUILD configure for building on BUILD [guessed] |
| 1379 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1380 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1381 | _ACEOF |
| 1382 | fi |
| 1383 | |
| 1384 | if test -n "$ac_init_help"; then |
| 1385 | case $ac_init_help in |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1386 | short | recursive ) echo "Configuration of LLVM 3.1svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1387 | esac |
| 1388 | cat <<\_ACEOF |
| 1389 | |
| 1390 | Optional Features: |
| 1391 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1392 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1393 | --enable-polly Use polly if available (default is YES) |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 1394 | --enable-libcpp Use libc++ if available (default is NO) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1395 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1396 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1397 | --enable-assertions Compile with assertion checks enabled (default is |
| 1398 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1399 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1400 | Compile with expensive debug checks enabled (default |
| 1401 | is NO) |
| 1402 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1403 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1404 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1405 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1406 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1407 | --enable-docs Build documents (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1408 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1409 | --enable-threads Use threads if available (default is YES) |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1410 | --enable-pthreads Use pthreads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1411 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1412 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1413 | --enable-shared Build a shared library and link tools against it |
| 1414 | (default is NO) |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1415 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 1416 | Win32 DLL (default is NO) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1417 | --enable-timestamps Enable embedding timestamp information in build |
| 1418 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1419 | --enable-targets Build specific host targets: all or |
| 1420 | target1,target2,... Valid targets are: host, x86, |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1421 | x86_64, sparc, powerpc, arm, mips, spu, hexagon, |
| 1422 | xcore, msp430, ptx, cbe, and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1423 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1424 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1425 | --enable-bindings Build specific language bindings: |
| 1426 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1427 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1428 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1429 | |
| 1430 | Optional Packages: |
| 1431 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1432 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1433 | --with-optimize-option Select the compiler options to use for optimized |
| 1434 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1435 | --with-extra-options Specify additional options to compile LLVM with |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1436 | --with-extra-ld-options Specify additional options to link LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1437 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1438 | is stdlib) |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 1439 | --with-clang-srcdir Directory to the out-of-tree Clang source |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1440 | --with-clang-resource-dir |
| 1441 | Relative directory from the Clang binary for |
| 1442 | resource files |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1443 | --with-c-include-dirs Colon separated list of directories clang will |
| 1444 | search for headers |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 1445 | --with-gcc-toolchain Directory where gcc is installed. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1446 | --with-binutils-include Specify path to binutils/include/ containing |
| 1447 | plugin-api.h file for gold plugin. |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1448 | --with-bug-report-url Specify the URL where bug reports should be |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1449 | submitted (default=http://llvm.org/bugs/) |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 1450 | --with-internal-prefix Installation directory for internal files |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1451 | --with-tclinclude directory where tcl headers are |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1452 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1453 | --with-oprofile=<prefix> |
| 1454 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1455 | |
| 1456 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1457 | CC C compiler command |
| 1458 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1459 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1460 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1461 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1462 | you have headers in a nonstandard directory <include dir> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1463 | CXX C++ compiler command |
| 1464 | CXXFLAGS C++ compiler flags |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1465 | CPP C preprocessor |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1466 | |
| 1467 | Use these variables to override the choices made by `configure' or to help |
| 1468 | it to find libraries and programs with nonstandard names/locations. |
| 1469 | |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1470 | Report bugs to <http://llvm.org/bugs/>. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1472 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1473 | fi |
| 1474 | |
| 1475 | if test "$ac_init_help" = "recursive"; then |
| 1476 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1477 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1478 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1479 | ac_builddir=. |
| 1480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1481 | case "$ac_dir" in |
| 1482 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1483 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1484 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1485 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1486 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1487 | case $ac_top_builddir_sub in |
| 1488 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1489 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1490 | esac ;; |
| 1491 | esac |
| 1492 | ac_abs_top_builddir=$ac_pwd |
| 1493 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1494 | # for backward compatibility: |
| 1495 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1496 | |
| 1497 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1498 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1500 | ac_top_srcdir=$ac_top_builddir_sub |
| 1501 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1502 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1503 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1504 | ac_top_srcdir=$srcdir |
| 1505 | ac_abs_top_srcdir=$srcdir ;; |
| 1506 | *) # Relative name. |
| 1507 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1508 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1509 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1510 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1511 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1513 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1514 | # Check for guested configure. |
| 1515 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1516 | echo && |
| 1517 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1518 | elif test -f "$ac_srcdir/configure"; then |
| 1519 | echo && |
| 1520 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1522 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1523 | fi || ac_status=$? |
| 1524 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1525 | done |
| 1526 | fi |
| 1527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1529 | if $ac_init_version; then |
| 1530 | cat <<\_ACEOF |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1531 | LLVM configure 3.1svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1532 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1534 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1535 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | This configure script is free software; the Free Software Foundation |
| 1537 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1538 | |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1539 | Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1541 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1542 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1543 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | This file contains any messages produced by compilers while |
| 1545 | running configure, to aid debugging if configure makes a mistake. |
| 1546 | |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1547 | It was created by LLVM $as_me 3.1svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1548 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | |
| 1550 | $ $0 $@ |
| 1551 | |
| 1552 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1553 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | { |
| 1555 | cat <<_ASUNAME |
| 1556 | ## --------- ## |
| 1557 | ## Platform. ## |
| 1558 | ## --------- ## |
| 1559 | |
| 1560 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1561 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1562 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1563 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1564 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1565 | |
| 1566 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1567 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1568 | |
| 1569 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1570 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1571 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1572 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1573 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1574 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1575 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1576 | |
| 1577 | _ASUNAME |
| 1578 | |
| 1579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1580 | for as_dir in $PATH |
| 1581 | do |
| 1582 | IFS=$as_save_IFS |
| 1583 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1584 | echo "PATH: $as_dir" |
| 1585 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1586 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1587 | |
| 1588 | } >&5 |
| 1589 | |
| 1590 | cat >&5 <<_ACEOF |
| 1591 | |
| 1592 | |
| 1593 | ## ----------- ## |
| 1594 | ## Core tests. ## |
| 1595 | ## ----------- ## |
| 1596 | |
| 1597 | _ACEOF |
| 1598 | |
| 1599 | |
| 1600 | # Keep a trace of the command line. |
| 1601 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1602 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1603 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1604 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1606 | ac_configure_args0= |
| 1607 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1608 | ac_must_keep_next=false |
| 1609 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | for ac_arg |
| 1612 | do |
| 1613 | case $ac_arg in |
| 1614 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1615 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1616 | | -silent | --silent | --silen | --sile | --sil) |
| 1617 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1618 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1619 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1620 | esac |
| 1621 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1622 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1623 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1624 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1626 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1627 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1628 | case $ac_arg in |
| 1629 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1630 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1631 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1632 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1633 | case "$ac_configure_args0 " in |
| 1634 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1635 | esac |
| 1636 | ;; |
| 1637 | -* ) ac_must_keep_next=true ;; |
| 1638 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1639 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1640 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1641 | ;; |
| 1642 | esac |
| 1643 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1644 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1646 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1647 | |
| 1648 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1649 | # config.log. We remove comments because anyway the quotes in there |
| 1650 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1651 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1652 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1653 | trap 'exit_status=$? |
| 1654 | # Save into config.log some information that might help in debugging. |
| 1655 | { |
| 1656 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1658 | cat <<\_ASBOX |
| 1659 | ## ---------------- ## |
| 1660 | ## Cache variables. ## |
| 1661 | ## ---------------- ## |
| 1662 | _ASBOX |
| 1663 | echo |
| 1664 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1665 | ( |
| 1666 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1667 | eval ac_val=\$$ac_var |
| 1668 | case $ac_val in #( |
| 1669 | *${as_nl}*) |
| 1670 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1671 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1672 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | esac |
| 1674 | case $ac_var in #( |
| 1675 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1676 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1677 | esac ;; |
| 1678 | esac |
| 1679 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1680 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1681 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1682 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1685 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1686 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1687 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1688 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1689 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1690 | esac | |
| 1691 | sort |
| 1692 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1693 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1694 | |
| 1695 | cat <<\_ASBOX |
| 1696 | ## ----------------- ## |
| 1697 | ## Output variables. ## |
| 1698 | ## ----------------- ## |
| 1699 | _ASBOX |
| 1700 | echo |
| 1701 | for ac_var in $ac_subst_vars |
| 1702 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1703 | eval ac_val=\$$ac_var |
| 1704 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1705 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1706 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1707 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1708 | done | sort |
| 1709 | echo |
| 1710 | |
| 1711 | if test -n "$ac_subst_files"; then |
| 1712 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1713 | ## ------------------- ## |
| 1714 | ## File substitutions. ## |
| 1715 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1716 | _ASBOX |
| 1717 | echo |
| 1718 | for ac_var in $ac_subst_files |
| 1719 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1720 | eval ac_val=\$$ac_var |
| 1721 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1722 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1723 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1724 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1725 | done | sort |
| 1726 | echo |
| 1727 | fi |
| 1728 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1729 | if test -s confdefs.h; then |
| 1730 | cat <<\_ASBOX |
| 1731 | ## ----------- ## |
| 1732 | ## confdefs.h. ## |
| 1733 | ## ----------- ## |
| 1734 | _ASBOX |
| 1735 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1736 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1737 | echo |
| 1738 | fi |
| 1739 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1740 | echo "$as_me: caught signal $ac_signal" |
| 1741 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1743 | rm -f core *.core core.conftest.* && |
| 1744 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1745 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1746 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1748 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1749 | done |
| 1750 | ac_signal=0 |
| 1751 | |
| 1752 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1753 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | |
| 1755 | # Predefined preprocessor variables. |
| 1756 | |
| 1757 | cat >>confdefs.h <<_ACEOF |
| 1758 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1759 | _ACEOF |
| 1760 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1762 | cat >>confdefs.h <<_ACEOF |
| 1763 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1764 | _ACEOF |
| 1765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | cat >>confdefs.h <<_ACEOF |
| 1768 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1769 | _ACEOF |
| 1770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | cat >>confdefs.h <<_ACEOF |
| 1773 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1774 | _ACEOF |
| 1775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1779 | _ACEOF |
| 1780 | |
| 1781 | |
| 1782 | # Let the site file select an alternate cache file if it wants to. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1783 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1784 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1785 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1786 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1787 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1788 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1789 | set x "$ac_default_prefix/share/config.site" \ |
| 1790 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1791 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | shift |
| 1793 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1794 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1795 | if test -r "$ac_site_file"; then |
| 1796 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1797 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1798 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1799 | . "$ac_site_file" |
| 1800 | fi |
| 1801 | done |
| 1802 | |
| 1803 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1804 | # Some versions of bash will fail to source /dev/null (special |
| 1805 | # files actually), so we avoid doing that. |
| 1806 | if test -f "$cache_file"; then |
| 1807 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1808 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1809 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1810 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1811 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1812 | esac |
| 1813 | fi |
| 1814 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1815 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1816 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | >$cache_file |
| 1818 | fi |
| 1819 | |
| 1820 | # Check that the precious variables saved in the cache have kept the same |
| 1821 | # value. |
| 1822 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1823 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1824 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1825 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1826 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1827 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1828 | case $ac_old_set,$ac_new_set in |
| 1829 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1830 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1831 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1832 | ac_cache_corrupted=: ;; |
| 1833 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1834 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1835 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1836 | ac_cache_corrupted=: ;; |
| 1837 | ,);; |
| 1838 | *) |
| 1839 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1840 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1841 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1842 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1843 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1844 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1845 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1846 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1847 | fi;; |
| 1848 | esac |
| 1849 | # Pass precious variables to config.status. |
| 1850 | if test "$ac_new_set" = set; then |
| 1851 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1852 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1853 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1854 | esac |
| 1855 | case " $ac_configure_args " in |
| 1856 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | esac |
| 1859 | fi |
| 1860 | done |
| 1861 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1863 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1864 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1865 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1866 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1867 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1868 | |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1893 | ac_ext=c |
| 1894 | ac_cpp='$CPP $CPPFLAGS' |
| 1895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1898 | |
| 1899 | |
| 1900 | |
Dylan Noblesmith | fde8237 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1901 | cat >>confdefs.h <<\_ACEOF |
| 1902 | #define LLVM_VERSION_MAJOR 3 |
| 1903 | _ACEOF |
| 1904 | |
| 1905 | |
| 1906 | cat >>confdefs.h <<\_ACEOF |
| 1907 | #define LLVM_VERSION_MINOR 1 |
| 1908 | _ACEOF |
| 1909 | |
| 1910 | |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1911 | LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1912 | |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1919 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1920 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1921 | if test -f "$ac_dir/install-sh"; then |
| 1922 | ac_aux_dir=$ac_dir |
| 1923 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1924 | break |
| 1925 | elif test -f "$ac_dir/install.sh"; then |
| 1926 | ac_aux_dir=$ac_dir |
| 1927 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1928 | break |
| 1929 | elif test -f "$ac_dir/shtool"; then |
| 1930 | ac_aux_dir=$ac_dir |
| 1931 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1932 | break |
| 1933 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | done |
| 1935 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1936 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1937 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1938 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1939 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1940 | |
| 1941 | # These three variables are undocumented and unsupported, |
| 1942 | # and are intended to be withdrawn in a future Autoconf release. |
| 1943 | # They can cause serious problems if a builder's source tree is in a directory |
| 1944 | # whose full name contains unusual characters. |
| 1945 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1946 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1947 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1948 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1949 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1950 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1951 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1952 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1953 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1954 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1955 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1956 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1957 | fi |
| 1958 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1959 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1960 | ac_cpp='$CPP $CPPFLAGS' |
| 1961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1964 | if test -n "$ac_tool_prefix"; then |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1965 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1966 | do |
| 1967 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1968 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1971 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1973 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1974 | if test -n "$CC"; then |
| 1975 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1976 | else |
| 1977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1978 | for as_dir in $PATH |
| 1979 | do |
| 1980 | IFS=$as_save_IFS |
| 1981 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1983 | 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] | 1984 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1985 | 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] | 1986 | break 2 |
| 1987 | fi |
| 1988 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1989 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1990 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1991 | |
| 1992 | fi |
| 1993 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1994 | CC=$ac_cv_prog_CC |
| 1995 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1996 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1997 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1998 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1999 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2000 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2001 | fi |
| 2002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2003 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2004 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2005 | done |
| 2006 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2007 | if test -z "$CC"; then |
| 2008 | ac_ct_CC=$CC |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2009 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2010 | do |
| 2011 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2012 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2013 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2015 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2017 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2018 | if test -n "$ac_ct_CC"; then |
| 2019 | 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] | 2020 | else |
| 2021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2022 | for as_dir in $PATH |
| 2023 | do |
| 2024 | IFS=$as_save_IFS |
| 2025 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2027 | 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] | 2028 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2029 | 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] | 2030 | break 2 |
| 2031 | fi |
| 2032 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2033 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2034 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2035 | |
| 2036 | fi |
| 2037 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2038 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2039 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2040 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2041 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2042 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2043 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2044 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2045 | fi |
| 2046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2047 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2048 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2049 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2051 | if test "x$ac_ct_CC" = x; then |
| 2052 | CC="" |
| 2053 | else |
| 2054 | case $cross_compiling:$ac_tool_warned in |
| 2055 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2056 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2057 | whose name does not start with the host triplet. If you think this |
| 2058 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2059 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2060 | whose name does not start with the host triplet. If you think this |
| 2061 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2062 | ac_tool_warned=yes ;; |
| 2063 | esac |
| 2064 | CC=$ac_ct_CC |
| 2065 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2068 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2069 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2070 | See \`config.log' for more details." >&5 |
| 2071 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2072 | See \`config.log' for more details." >&2;} |
| 2073 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2074 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2075 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2076 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2077 | ac_compiler=`set X $ac_compile; echo $2` |
| 2078 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2079 | case "(($ac_try" in |
| 2080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2081 | *) ac_try_echo=$ac_try;; |
| 2082 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2084 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2085 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2087 | (exit $ac_status); } |
| 2088 | { (ac_try="$ac_compiler -v >&5" |
| 2089 | case "(($ac_try" in |
| 2090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2091 | *) ac_try_echo=$ac_try;; |
| 2092 | esac |
| 2093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2094 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2095 | ac_status=$? |
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2097 | (exit $ac_status); } |
| 2098 | { (ac_try="$ac_compiler -V >&5" |
| 2099 | case "(($ac_try" in |
| 2100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2101 | *) ac_try_echo=$ac_try;; |
| 2102 | esac |
| 2103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2104 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2105 | ac_status=$? |
| 2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2107 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2108 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2109 | cat >conftest.$ac_ext <<_ACEOF |
| 2110 | /* confdefs.h. */ |
| 2111 | _ACEOF |
| 2112 | cat confdefs.h >>conftest.$ac_ext |
| 2113 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2114 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2115 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2116 | int |
| 2117 | main () |
| 2118 | { |
| 2119 | |
| 2120 | ; |
| 2121 | return 0; |
| 2122 | } |
| 2123 | _ACEOF |
| 2124 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2125 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2126 | # Try to create an executable without -o first, disregard a.out. |
| 2127 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2128 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2129 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2130 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2131 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2132 | # |
| 2133 | # List of possible output files, starting from the most likely. |
| 2134 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2135 | # only as a last resort. b.out is created by i960 compilers. |
| 2136 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2137 | # |
| 2138 | # The IRIX 6 linker writes into existing files which may not be |
| 2139 | # executable, retaining their permissions. Remove them first so a |
| 2140 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2141 | ac_rmfiles= |
| 2142 | for ac_file in $ac_files |
| 2143 | do |
| 2144 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2145 | *.$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] | 2146 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2147 | esac |
| 2148 | done |
| 2149 | rm -f $ac_rmfiles |
| 2150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2151 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2152 | case "(($ac_try" in |
| 2153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2154 | *) ac_try_echo=$ac_try;; |
| 2155 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2157 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2158 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2160 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2161 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2162 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2163 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2164 | # so that the user can short-circuit this test for compilers unknown to |
| 2165 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2166 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2167 | do |
| 2168 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2169 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2170 | *.$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] | 2171 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2172 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2173 | # We found the default executable, but exeext='' is most |
| 2174 | # certainly right. |
| 2175 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2176 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2177 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2178 | then :; else |
| 2179 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2180 | fi |
| 2181 | # We set ac_cv_exeext here because the later test for it is not |
| 2182 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2183 | # argument, so we may need to know it at that point already. |
| 2184 | # Even if this section looks crufty: it has the advantage of |
| 2185 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2186 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2187 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2188 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2189 | esac |
| 2190 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2191 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2192 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2193 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2194 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2196 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2197 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2198 | See \`config.log' for more details." >&5 |
| 2199 | echo "$as_me: error: C compiler cannot create executables |
| 2200 | See \`config.log' for more details." >&2;} |
| 2201 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2202 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2203 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2204 | ac_exeext=$ac_cv_exeext |
| 2205 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2206 | echo "${ECHO_T}$ac_file" >&6; } |
| 2207 | |
| 2208 | # Check that the compiler produces executables we can run. If not, either |
| 2209 | # the compiler is broken, or we cross compile. |
| 2210 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2211 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2212 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2213 | # If not cross compiling, check that we can run a simple program. |
| 2214 | if test "$cross_compiling" != yes; then |
| 2215 | if { ac_try='./$ac_file' |
| 2216 | { (case "(($ac_try" in |
| 2217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2218 | *) ac_try_echo=$ac_try;; |
| 2219 | esac |
| 2220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2221 | (eval "$ac_try") 2>&5 |
| 2222 | ac_status=$? |
| 2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2224 | (exit $ac_status); }; }; then |
| 2225 | cross_compiling=no |
| 2226 | else |
| 2227 | if test "$cross_compiling" = maybe; then |
| 2228 | cross_compiling=yes |
| 2229 | else |
| 2230 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2231 | If you meant to cross compile, use \`--host'. |
| 2232 | See \`config.log' for more details." >&5 |
| 2233 | echo "$as_me: error: cannot run C compiled programs. |
| 2234 | If you meant to cross compile, use \`--host'. |
| 2235 | See \`config.log' for more details." >&2;} |
| 2236 | { (exit 1); exit 1; }; } |
| 2237 | fi |
| 2238 | fi |
| 2239 | fi |
| 2240 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2241 | echo "${ECHO_T}yes" >&6; } |
| 2242 | |
| 2243 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2244 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2245 | # Check that the compiler produces executables we can run. If not, either |
| 2246 | # the compiler is broken, or we cross compile. |
| 2247 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2248 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2249 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2250 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2251 | |
| 2252 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2253 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2254 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2255 | case "(($ac_try" in |
| 2256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2257 | *) ac_try_echo=$ac_try;; |
| 2258 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2260 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2261 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2263 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2264 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2265 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2266 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2267 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2268 | for ac_file in conftest.exe conftest conftest.*; do |
| 2269 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2270 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2271 | *.$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] | 2272 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2273 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2274 | * ) break;; |
| 2275 | esac |
| 2276 | done |
| 2277 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2278 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2279 | See \`config.log' for more details." >&5 |
| 2280 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2281 | See \`config.log' for more details." >&2;} |
| 2282 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2283 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2284 | |
| 2285 | rm -f conftest$ac_cv_exeext |
| 2286 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2287 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2288 | |
| 2289 | rm -f conftest.$ac_ext |
| 2290 | EXEEXT=$ac_cv_exeext |
| 2291 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2292 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2293 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2294 | if test "${ac_cv_objext+set}" = set; then |
| 2295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2296 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2297 | cat >conftest.$ac_ext <<_ACEOF |
| 2298 | /* confdefs.h. */ |
| 2299 | _ACEOF |
| 2300 | cat confdefs.h >>conftest.$ac_ext |
| 2301 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2302 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2303 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2304 | int |
| 2305 | main () |
| 2306 | { |
| 2307 | |
| 2308 | ; |
| 2309 | return 0; |
| 2310 | } |
| 2311 | _ACEOF |
| 2312 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2313 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2314 | case "(($ac_try" in |
| 2315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2316 | *) ac_try_echo=$ac_try;; |
| 2317 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2319 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2320 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2322 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2323 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2324 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2325 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2326 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2327 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2328 | break;; |
| 2329 | esac |
| 2330 | done |
| 2331 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2332 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2334 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2335 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2336 | See \`config.log' for more details." >&5 |
| 2337 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2338 | See \`config.log' for more details." >&2;} |
| 2339 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2340 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2341 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2342 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2343 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2344 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2345 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2346 | OBJEXT=$ac_cv_objext |
| 2347 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2348 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2349 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2350 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2352 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2353 | cat >conftest.$ac_ext <<_ACEOF |
| 2354 | /* confdefs.h. */ |
| 2355 | _ACEOF |
| 2356 | cat confdefs.h >>conftest.$ac_ext |
| 2357 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2358 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2359 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2360 | int |
| 2361 | main () |
| 2362 | { |
| 2363 | #ifndef __GNUC__ |
| 2364 | choke me |
| 2365 | #endif |
| 2366 | |
| 2367 | ; |
| 2368 | return 0; |
| 2369 | } |
| 2370 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2371 | rm -f conftest.$ac_objext |
| 2372 | if { (ac_try="$ac_compile" |
| 2373 | case "(($ac_try" in |
| 2374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2375 | *) ac_try_echo=$ac_try;; |
| 2376 | esac |
| 2377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2378 | (eval "$ac_compile") 2>conftest.er1 |
| 2379 | ac_status=$? |
| 2380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2381 | rm -f conftest.er1 |
| 2382 | cat conftest.err >&5 |
| 2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2384 | (exit $ac_status); } && |
| 2385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2386 | { (case "(($ac_try" in |
| 2387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2388 | *) ac_try_echo=$ac_try;; |
| 2389 | esac |
| 2390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2391 | (eval "$ac_try") 2>&5 |
| 2392 | ac_status=$? |
| 2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2394 | (exit $ac_status); }; } && |
| 2395 | { ac_try='test -s conftest.$ac_objext' |
| 2396 | { (case "(($ac_try" in |
| 2397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2398 | *) ac_try_echo=$ac_try;; |
| 2399 | esac |
| 2400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2401 | (eval "$ac_try") 2>&5 |
| 2402 | ac_status=$? |
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2404 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2405 | ac_compiler_gnu=yes |
| 2406 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2407 | echo "$as_me: failed program was:" >&5 |
| 2408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2409 | |
| 2410 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2411 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2412 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2414 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2415 | |
| 2416 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2417 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2418 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2419 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2420 | ac_test_CFLAGS=${CFLAGS+set} |
| 2421 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2422 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2423 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2424 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2426 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2427 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2428 | ac_c_werror_flag=yes |
| 2429 | ac_cv_prog_cc_g=no |
| 2430 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2431 | cat >conftest.$ac_ext <<_ACEOF |
| 2432 | /* confdefs.h. */ |
| 2433 | _ACEOF |
| 2434 | cat confdefs.h >>conftest.$ac_ext |
| 2435 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2436 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2437 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2438 | int |
| 2439 | main () |
| 2440 | { |
| 2441 | |
| 2442 | ; |
| 2443 | return 0; |
| 2444 | } |
| 2445 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2446 | rm -f conftest.$ac_objext |
| 2447 | if { (ac_try="$ac_compile" |
| 2448 | case "(($ac_try" in |
| 2449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2450 | *) ac_try_echo=$ac_try;; |
| 2451 | esac |
| 2452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2453 | (eval "$ac_compile") 2>conftest.er1 |
| 2454 | ac_status=$? |
| 2455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2456 | rm -f conftest.er1 |
| 2457 | cat conftest.err >&5 |
| 2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2459 | (exit $ac_status); } && |
| 2460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2461 | { (case "(($ac_try" in |
| 2462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2463 | *) ac_try_echo=$ac_try;; |
| 2464 | esac |
| 2465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2466 | (eval "$ac_try") 2>&5 |
| 2467 | ac_status=$? |
| 2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2469 | (exit $ac_status); }; } && |
| 2470 | { ac_try='test -s conftest.$ac_objext' |
| 2471 | { (case "(($ac_try" in |
| 2472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2473 | *) ac_try_echo=$ac_try;; |
| 2474 | esac |
| 2475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2476 | (eval "$ac_try") 2>&5 |
| 2477 | ac_status=$? |
| 2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2479 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2480 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2481 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2482 | echo "$as_me: failed program was:" >&5 |
| 2483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2484 | |
| 2485 | CFLAGS="" |
| 2486 | cat >conftest.$ac_ext <<_ACEOF |
| 2487 | /* confdefs.h. */ |
| 2488 | _ACEOF |
| 2489 | cat confdefs.h >>conftest.$ac_ext |
| 2490 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2491 | /* end confdefs.h. */ |
| 2492 | |
| 2493 | int |
| 2494 | main () |
| 2495 | { |
| 2496 | |
| 2497 | ; |
| 2498 | return 0; |
| 2499 | } |
| 2500 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2501 | rm -f conftest.$ac_objext |
| 2502 | if { (ac_try="$ac_compile" |
| 2503 | case "(($ac_try" in |
| 2504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2505 | *) ac_try_echo=$ac_try;; |
| 2506 | esac |
| 2507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2508 | (eval "$ac_compile") 2>conftest.er1 |
| 2509 | ac_status=$? |
| 2510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2511 | rm -f conftest.er1 |
| 2512 | cat conftest.err >&5 |
| 2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2514 | (exit $ac_status); } && |
| 2515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2516 | { (case "(($ac_try" in |
| 2517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2518 | *) ac_try_echo=$ac_try;; |
| 2519 | esac |
| 2520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2521 | (eval "$ac_try") 2>&5 |
| 2522 | ac_status=$? |
| 2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2524 | (exit $ac_status); }; } && |
| 2525 | { ac_try='test -s conftest.$ac_objext' |
| 2526 | { (case "(($ac_try" in |
| 2527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2528 | *) ac_try_echo=$ac_try;; |
| 2529 | esac |
| 2530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2531 | (eval "$ac_try") 2>&5 |
| 2532 | ac_status=$? |
| 2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2534 | (exit $ac_status); }; }; then |
| 2535 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2536 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2537 | echo "$as_me: failed program was:" >&5 |
| 2538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2539 | |
| 2540 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2541 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2542 | cat >conftest.$ac_ext <<_ACEOF |
| 2543 | /* confdefs.h. */ |
| 2544 | _ACEOF |
| 2545 | cat confdefs.h >>conftest.$ac_ext |
| 2546 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2547 | /* end confdefs.h. */ |
| 2548 | |
| 2549 | int |
| 2550 | main () |
| 2551 | { |
| 2552 | |
| 2553 | ; |
| 2554 | return 0; |
| 2555 | } |
| 2556 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2557 | rm -f conftest.$ac_objext |
| 2558 | if { (ac_try="$ac_compile" |
| 2559 | case "(($ac_try" in |
| 2560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2561 | *) ac_try_echo=$ac_try;; |
| 2562 | esac |
| 2563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2564 | (eval "$ac_compile") 2>conftest.er1 |
| 2565 | ac_status=$? |
| 2566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2567 | rm -f conftest.er1 |
| 2568 | cat conftest.err >&5 |
| 2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2570 | (exit $ac_status); } && |
| 2571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2572 | { (case "(($ac_try" in |
| 2573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2574 | *) ac_try_echo=$ac_try;; |
| 2575 | esac |
| 2576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2577 | (eval "$ac_try") 2>&5 |
| 2578 | ac_status=$? |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); }; } && |
| 2581 | { ac_try='test -s conftest.$ac_objext' |
| 2582 | { (case "(($ac_try" in |
| 2583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2584 | *) ac_try_echo=$ac_try;; |
| 2585 | esac |
| 2586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2587 | (eval "$ac_try") 2>&5 |
| 2588 | ac_status=$? |
| 2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2590 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2591 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2592 | else |
| 2593 | echo "$as_me: failed program was:" >&5 |
| 2594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2595 | |
| 2596 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2597 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2600 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2603 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2606 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2607 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2608 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2609 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2610 | if test "$ac_test_CFLAGS" = set; then |
| 2611 | CFLAGS=$ac_save_CFLAGS |
| 2612 | elif test $ac_cv_prog_cc_g = yes; then |
| 2613 | if test "$GCC" = yes; then |
| 2614 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2615 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2616 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2617 | fi |
| 2618 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2619 | if test "$GCC" = yes; then |
| 2620 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2621 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2622 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2623 | fi |
| 2624 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2625 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2626 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2627 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2629 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2631 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2632 | cat >conftest.$ac_ext <<_ACEOF |
| 2633 | /* confdefs.h. */ |
| 2634 | _ACEOF |
| 2635 | cat confdefs.h >>conftest.$ac_ext |
| 2636 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2637 | /* end confdefs.h. */ |
| 2638 | #include <stdarg.h> |
| 2639 | #include <stdio.h> |
| 2640 | #include <sys/types.h> |
| 2641 | #include <sys/stat.h> |
| 2642 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2643 | struct buf { int x; }; |
| 2644 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2645 | static char *e (p, i) |
| 2646 | char **p; |
| 2647 | int i; |
| 2648 | { |
| 2649 | return p[i]; |
| 2650 | } |
| 2651 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2652 | { |
| 2653 | char *s; |
| 2654 | va_list v; |
| 2655 | va_start (v,p); |
| 2656 | s = g (p, va_arg (v,int)); |
| 2657 | va_end (v); |
| 2658 | return s; |
| 2659 | } |
| 2660 | |
| 2661 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2662 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2663 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2664 | 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] | 2665 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2666 | 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] | 2667 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2668 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2670 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2671 | inside strings and character constants. */ |
| 2672 | #define FOO(x) 'x' |
| 2673 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2674 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2675 | int test (int i, double x); |
| 2676 | struct s1 {int (*f) (int a);}; |
| 2677 | struct s2 {int (*f) (double a);}; |
| 2678 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2679 | int argc; |
| 2680 | char **argv; |
| 2681 | int |
| 2682 | main () |
| 2683 | { |
| 2684 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2685 | ; |
| 2686 | return 0; |
| 2687 | } |
| 2688 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2689 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2690 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2691 | do |
| 2692 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2693 | rm -f conftest.$ac_objext |
| 2694 | if { (ac_try="$ac_compile" |
| 2695 | case "(($ac_try" in |
| 2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2697 | *) ac_try_echo=$ac_try;; |
| 2698 | esac |
| 2699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2700 | (eval "$ac_compile") 2>conftest.er1 |
| 2701 | ac_status=$? |
| 2702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2703 | rm -f conftest.er1 |
| 2704 | cat conftest.err >&5 |
| 2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2706 | (exit $ac_status); } && |
| 2707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2708 | { (case "(($ac_try" in |
| 2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2710 | *) ac_try_echo=$ac_try;; |
| 2711 | esac |
| 2712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2713 | (eval "$ac_try") 2>&5 |
| 2714 | ac_status=$? |
| 2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2716 | (exit $ac_status); }; } && |
| 2717 | { ac_try='test -s conftest.$ac_objext' |
| 2718 | { (case "(($ac_try" in |
| 2719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2720 | *) ac_try_echo=$ac_try;; |
| 2721 | esac |
| 2722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2723 | (eval "$ac_try") 2>&5 |
| 2724 | ac_status=$? |
| 2725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2726 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2727 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2728 | else |
| 2729 | echo "$as_me: failed program was:" >&5 |
| 2730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2731 | |
| 2732 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2733 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2734 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2735 | rm -f core conftest.err conftest.$ac_objext |
| 2736 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2737 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2738 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2739 | CC=$ac_save_CC |
| 2740 | |
| 2741 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2742 | # AC_CACHE_VAL |
| 2743 | case "x$ac_cv_prog_cc_c89" in |
| 2744 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2745 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2746 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2747 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2748 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2749 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2750 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2751 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2752 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2753 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2754 | esac |
| 2755 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2756 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2757 | ac_ext=c |
| 2758 | ac_cpp='$CPP $CPPFLAGS' |
| 2759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2762 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2763 | ac_ext=cpp |
| 2764 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2768 | if test -z "$CXX"; then |
| 2769 | if test -n "$CCC"; then |
| 2770 | CXX=$CCC |
| 2771 | else |
| 2772 | if test -n "$ac_tool_prefix"; then |
| 2773 | for ac_prog in clang++ llvm-g++ g++ |
| 2774 | do |
| 2775 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2776 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2777 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2779 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2781 | else |
| 2782 | if test -n "$CXX"; then |
| 2783 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2784 | else |
| 2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2786 | for as_dir in $PATH |
| 2787 | do |
| 2788 | IFS=$as_save_IFS |
| 2789 | test -z "$as_dir" && as_dir=. |
| 2790 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2792 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2794 | break 2 |
| 2795 | fi |
| 2796 | done |
| 2797 | done |
| 2798 | IFS=$as_save_IFS |
| 2799 | |
| 2800 | fi |
| 2801 | fi |
| 2802 | CXX=$ac_cv_prog_CXX |
| 2803 | if test -n "$CXX"; then |
| 2804 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2805 | echo "${ECHO_T}$CXX" >&6; } |
| 2806 | else |
| 2807 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2808 | echo "${ECHO_T}no" >&6; } |
| 2809 | fi |
| 2810 | |
| 2811 | |
| 2812 | test -n "$CXX" && break |
| 2813 | done |
| 2814 | fi |
| 2815 | if test -z "$CXX"; then |
| 2816 | ac_ct_CXX=$CXX |
| 2817 | for ac_prog in clang++ llvm-g++ g++ |
| 2818 | do |
| 2819 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2820 | set dummy $ac_prog; ac_word=$2 |
| 2821 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2823 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2825 | else |
| 2826 | if test -n "$ac_ct_CXX"; then |
| 2827 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2828 | else |
| 2829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2830 | for as_dir in $PATH |
| 2831 | do |
| 2832 | IFS=$as_save_IFS |
| 2833 | test -z "$as_dir" && as_dir=. |
| 2834 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2836 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2838 | break 2 |
| 2839 | fi |
| 2840 | done |
| 2841 | done |
| 2842 | IFS=$as_save_IFS |
| 2843 | |
| 2844 | fi |
| 2845 | fi |
| 2846 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2847 | if test -n "$ac_ct_CXX"; then |
| 2848 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2849 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2850 | else |
| 2851 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2852 | echo "${ECHO_T}no" >&6; } |
| 2853 | fi |
| 2854 | |
| 2855 | |
| 2856 | test -n "$ac_ct_CXX" && break |
| 2857 | done |
| 2858 | |
| 2859 | if test "x$ac_ct_CXX" = x; then |
| 2860 | CXX="g++" |
| 2861 | else |
| 2862 | case $cross_compiling:$ac_tool_warned in |
| 2863 | yes:) |
| 2864 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2865 | whose name does not start with the host triplet. If you think this |
| 2866 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2867 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2868 | whose name does not start with the host triplet. If you think this |
| 2869 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2870 | ac_tool_warned=yes ;; |
| 2871 | esac |
| 2872 | CXX=$ac_ct_CXX |
| 2873 | fi |
| 2874 | fi |
| 2875 | |
| 2876 | fi |
| 2877 | fi |
| 2878 | # Provide some information about the compiler. |
| 2879 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2880 | ac_compiler=`set X $ac_compile; echo $2` |
| 2881 | { (ac_try="$ac_compiler --version >&5" |
| 2882 | case "(($ac_try" in |
| 2883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2884 | *) ac_try_echo=$ac_try;; |
| 2885 | esac |
| 2886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2887 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2888 | ac_status=$? |
| 2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2890 | (exit $ac_status); } |
| 2891 | { (ac_try="$ac_compiler -v >&5" |
| 2892 | case "(($ac_try" in |
| 2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2894 | *) ac_try_echo=$ac_try;; |
| 2895 | esac |
| 2896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2897 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2898 | ac_status=$? |
| 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2900 | (exit $ac_status); } |
| 2901 | { (ac_try="$ac_compiler -V >&5" |
| 2902 | case "(($ac_try" in |
| 2903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2904 | *) ac_try_echo=$ac_try;; |
| 2905 | esac |
| 2906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2907 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2908 | ac_status=$? |
| 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2910 | (exit $ac_status); } |
| 2911 | |
| 2912 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2913 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2914 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2916 | else |
| 2917 | cat >conftest.$ac_ext <<_ACEOF |
| 2918 | /* confdefs.h. */ |
| 2919 | _ACEOF |
| 2920 | cat confdefs.h >>conftest.$ac_ext |
| 2921 | cat >>conftest.$ac_ext <<_ACEOF |
| 2922 | /* end confdefs.h. */ |
| 2923 | |
| 2924 | int |
| 2925 | main () |
| 2926 | { |
| 2927 | #ifndef __GNUC__ |
| 2928 | choke me |
| 2929 | #endif |
| 2930 | |
| 2931 | ; |
| 2932 | return 0; |
| 2933 | } |
| 2934 | _ACEOF |
| 2935 | rm -f conftest.$ac_objext |
| 2936 | if { (ac_try="$ac_compile" |
| 2937 | case "(($ac_try" in |
| 2938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2939 | *) ac_try_echo=$ac_try;; |
| 2940 | esac |
| 2941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2942 | (eval "$ac_compile") 2>conftest.er1 |
| 2943 | ac_status=$? |
| 2944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2945 | rm -f conftest.er1 |
| 2946 | cat conftest.err >&5 |
| 2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2948 | (exit $ac_status); } && |
| 2949 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2950 | { (case "(($ac_try" in |
| 2951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2952 | *) ac_try_echo=$ac_try;; |
| 2953 | esac |
| 2954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2955 | (eval "$ac_try") 2>&5 |
| 2956 | ac_status=$? |
| 2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2958 | (exit $ac_status); }; } && |
| 2959 | { ac_try='test -s conftest.$ac_objext' |
| 2960 | { (case "(($ac_try" in |
| 2961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2962 | *) ac_try_echo=$ac_try;; |
| 2963 | esac |
| 2964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2965 | (eval "$ac_try") 2>&5 |
| 2966 | ac_status=$? |
| 2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 | (exit $ac_status); }; }; then |
| 2969 | ac_compiler_gnu=yes |
| 2970 | else |
| 2971 | echo "$as_me: failed program was:" >&5 |
| 2972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2973 | |
| 2974 | ac_compiler_gnu=no |
| 2975 | fi |
| 2976 | |
| 2977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2978 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2979 | |
| 2980 | fi |
| 2981 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2982 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 2983 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2984 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2985 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2986 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2987 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 2988 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2990 | else |
| 2991 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 2992 | ac_cxx_werror_flag=yes |
| 2993 | ac_cv_prog_cxx_g=no |
| 2994 | CXXFLAGS="-g" |
| 2995 | cat >conftest.$ac_ext <<_ACEOF |
| 2996 | /* confdefs.h. */ |
| 2997 | _ACEOF |
| 2998 | cat confdefs.h >>conftest.$ac_ext |
| 2999 | cat >>conftest.$ac_ext <<_ACEOF |
| 3000 | /* end confdefs.h. */ |
| 3001 | |
| 3002 | int |
| 3003 | main () |
| 3004 | { |
| 3005 | |
| 3006 | ; |
| 3007 | return 0; |
| 3008 | } |
| 3009 | _ACEOF |
| 3010 | rm -f conftest.$ac_objext |
| 3011 | if { (ac_try="$ac_compile" |
| 3012 | case "(($ac_try" in |
| 3013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3014 | *) ac_try_echo=$ac_try;; |
| 3015 | esac |
| 3016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3017 | (eval "$ac_compile") 2>conftest.er1 |
| 3018 | ac_status=$? |
| 3019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3020 | rm -f conftest.er1 |
| 3021 | cat conftest.err >&5 |
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3023 | (exit $ac_status); } && |
| 3024 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3025 | { (case "(($ac_try" in |
| 3026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3027 | *) ac_try_echo=$ac_try;; |
| 3028 | esac |
| 3029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3030 | (eval "$ac_try") 2>&5 |
| 3031 | ac_status=$? |
| 3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3033 | (exit $ac_status); }; } && |
| 3034 | { ac_try='test -s conftest.$ac_objext' |
| 3035 | { (case "(($ac_try" in |
| 3036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3037 | *) ac_try_echo=$ac_try;; |
| 3038 | esac |
| 3039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3040 | (eval "$ac_try") 2>&5 |
| 3041 | ac_status=$? |
| 3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3043 | (exit $ac_status); }; }; then |
| 3044 | ac_cv_prog_cxx_g=yes |
| 3045 | else |
| 3046 | echo "$as_me: failed program was:" >&5 |
| 3047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3048 | |
| 3049 | CXXFLAGS="" |
| 3050 | cat >conftest.$ac_ext <<_ACEOF |
| 3051 | /* confdefs.h. */ |
| 3052 | _ACEOF |
| 3053 | cat confdefs.h >>conftest.$ac_ext |
| 3054 | cat >>conftest.$ac_ext <<_ACEOF |
| 3055 | /* end confdefs.h. */ |
| 3056 | |
| 3057 | int |
| 3058 | main () |
| 3059 | { |
| 3060 | |
| 3061 | ; |
| 3062 | return 0; |
| 3063 | } |
| 3064 | _ACEOF |
| 3065 | rm -f conftest.$ac_objext |
| 3066 | if { (ac_try="$ac_compile" |
| 3067 | case "(($ac_try" in |
| 3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3069 | *) ac_try_echo=$ac_try;; |
| 3070 | esac |
| 3071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3072 | (eval "$ac_compile") 2>conftest.er1 |
| 3073 | ac_status=$? |
| 3074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3075 | rm -f conftest.er1 |
| 3076 | cat conftest.err >&5 |
| 3077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3078 | (exit $ac_status); } && |
| 3079 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3080 | { (case "(($ac_try" in |
| 3081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3082 | *) ac_try_echo=$ac_try;; |
| 3083 | esac |
| 3084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3085 | (eval "$ac_try") 2>&5 |
| 3086 | ac_status=$? |
| 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3088 | (exit $ac_status); }; } && |
| 3089 | { ac_try='test -s conftest.$ac_objext' |
| 3090 | { (case "(($ac_try" in |
| 3091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3092 | *) ac_try_echo=$ac_try;; |
| 3093 | esac |
| 3094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3095 | (eval "$ac_try") 2>&5 |
| 3096 | ac_status=$? |
| 3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3098 | (exit $ac_status); }; }; then |
| 3099 | : |
| 3100 | else |
| 3101 | echo "$as_me: failed program was:" >&5 |
| 3102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3103 | |
| 3104 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3105 | CXXFLAGS="-g" |
| 3106 | cat >conftest.$ac_ext <<_ACEOF |
| 3107 | /* confdefs.h. */ |
| 3108 | _ACEOF |
| 3109 | cat confdefs.h >>conftest.$ac_ext |
| 3110 | cat >>conftest.$ac_ext <<_ACEOF |
| 3111 | /* end confdefs.h. */ |
| 3112 | |
| 3113 | int |
| 3114 | main () |
| 3115 | { |
| 3116 | |
| 3117 | ; |
| 3118 | return 0; |
| 3119 | } |
| 3120 | _ACEOF |
| 3121 | rm -f conftest.$ac_objext |
| 3122 | if { (ac_try="$ac_compile" |
| 3123 | case "(($ac_try" in |
| 3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3125 | *) ac_try_echo=$ac_try;; |
| 3126 | esac |
| 3127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3128 | (eval "$ac_compile") 2>conftest.er1 |
| 3129 | ac_status=$? |
| 3130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3131 | rm -f conftest.er1 |
| 3132 | cat conftest.err >&5 |
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); } && |
| 3135 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3136 | { (case "(($ac_try" in |
| 3137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3138 | *) ac_try_echo=$ac_try;; |
| 3139 | esac |
| 3140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3141 | (eval "$ac_try") 2>&5 |
| 3142 | ac_status=$? |
| 3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3144 | (exit $ac_status); }; } && |
| 3145 | { ac_try='test -s conftest.$ac_objext' |
| 3146 | { (case "(($ac_try" in |
| 3147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3148 | *) ac_try_echo=$ac_try;; |
| 3149 | esac |
| 3150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3151 | (eval "$ac_try") 2>&5 |
| 3152 | ac_status=$? |
| 3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3154 | (exit $ac_status); }; }; then |
| 3155 | ac_cv_prog_cxx_g=yes |
| 3156 | else |
| 3157 | echo "$as_me: failed program was:" >&5 |
| 3158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3159 | |
| 3160 | |
| 3161 | fi |
| 3162 | |
| 3163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3164 | fi |
| 3165 | |
| 3166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3167 | fi |
| 3168 | |
| 3169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3170 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3171 | fi |
| 3172 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3173 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3174 | if test "$ac_test_CXXFLAGS" = set; then |
| 3175 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3176 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3177 | if test "$GXX" = yes; then |
| 3178 | CXXFLAGS="-g -O2" |
| 3179 | else |
| 3180 | CXXFLAGS="-g" |
| 3181 | fi |
| 3182 | else |
| 3183 | if test "$GXX" = yes; then |
| 3184 | CXXFLAGS="-O2" |
| 3185 | else |
| 3186 | CXXFLAGS= |
| 3187 | fi |
| 3188 | fi |
| 3189 | ac_ext=c |
| 3190 | ac_cpp='$CPP $CPPFLAGS' |
| 3191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3194 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3195 | ac_ext=c |
| 3196 | ac_cpp='$CPP $CPPFLAGS' |
| 3197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3200 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3201 | 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] | 3202 | # On Suns, sometimes $CPP names a directory. |
| 3203 | if test -n "$CPP" && test -d "$CPP"; then |
| 3204 | CPP= |
| 3205 | fi |
| 3206 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3207 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3209 | else |
| 3210 | # Double quotes because CPP needs to be expanded |
| 3211 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3212 | do |
| 3213 | ac_preproc_ok=false |
| 3214 | for ac_c_preproc_warn_flag in '' yes |
| 3215 | do |
| 3216 | # Use a header file that comes with gcc, so configuring glibc |
| 3217 | # with a fresh cross-compiler works. |
| 3218 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3219 | # <limits.h> exists even on freestanding compilers. |
| 3220 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3221 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3222 | cat >conftest.$ac_ext <<_ACEOF |
| 3223 | /* confdefs.h. */ |
| 3224 | _ACEOF |
| 3225 | cat confdefs.h >>conftest.$ac_ext |
| 3226 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3227 | /* end confdefs.h. */ |
| 3228 | #ifdef __STDC__ |
| 3229 | # include <limits.h> |
| 3230 | #else |
| 3231 | # include <assert.h> |
| 3232 | #endif |
| 3233 | Syntax error |
| 3234 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3235 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3236 | case "(($ac_try" in |
| 3237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3238 | *) ac_try_echo=$ac_try;; |
| 3239 | esac |
| 3240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3241 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3242 | ac_status=$? |
| 3243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3244 | rm -f conftest.er1 |
| 3245 | cat conftest.err >&5 |
| 3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3247 | (exit $ac_status); } >/dev/null; then |
| 3248 | if test -s conftest.err; then |
| 3249 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3250 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3251 | else |
| 3252 | ac_cpp_err= |
| 3253 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3254 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3255 | ac_cpp_err=yes |
| 3256 | fi |
| 3257 | if test -z "$ac_cpp_err"; then |
| 3258 | : |
| 3259 | else |
| 3260 | echo "$as_me: failed program was:" >&5 |
| 3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3262 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3263 | # Broken: fails on valid input. |
| 3264 | continue |
| 3265 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3266 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3267 | rm -f conftest.err conftest.$ac_ext |
| 3268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3269 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3270 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3271 | cat >conftest.$ac_ext <<_ACEOF |
| 3272 | /* confdefs.h. */ |
| 3273 | _ACEOF |
| 3274 | cat confdefs.h >>conftest.$ac_ext |
| 3275 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3276 | /* end confdefs.h. */ |
| 3277 | #include <ac_nonexistent.h> |
| 3278 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3279 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3280 | case "(($ac_try" in |
| 3281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3282 | *) ac_try_echo=$ac_try;; |
| 3283 | esac |
| 3284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3285 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3286 | ac_status=$? |
| 3287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3288 | rm -f conftest.er1 |
| 3289 | cat conftest.err >&5 |
| 3290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3291 | (exit $ac_status); } >/dev/null; then |
| 3292 | if test -s conftest.err; then |
| 3293 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3294 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3295 | else |
| 3296 | ac_cpp_err= |
| 3297 | fi |
| 3298 | else |
| 3299 | ac_cpp_err=yes |
| 3300 | fi |
| 3301 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3302 | # Broken: success on invalid input. |
| 3303 | continue |
| 3304 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3305 | echo "$as_me: failed program was:" >&5 |
| 3306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3307 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3308 | # Passes both tests. |
| 3309 | ac_preproc_ok=: |
| 3310 | break |
| 3311 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3312 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3313 | rm -f conftest.err conftest.$ac_ext |
| 3314 | |
| 3315 | done |
| 3316 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3317 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3318 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3319 | break |
| 3320 | fi |
| 3321 | |
| 3322 | done |
| 3323 | ac_cv_prog_CPP=$CPP |
| 3324 | |
| 3325 | fi |
| 3326 | CPP=$ac_cv_prog_CPP |
| 3327 | else |
| 3328 | ac_cv_prog_CPP=$CPP |
| 3329 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3330 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3331 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3332 | ac_preproc_ok=false |
| 3333 | for ac_c_preproc_warn_flag in '' yes |
| 3334 | do |
| 3335 | # Use a header file that comes with gcc, so configuring glibc |
| 3336 | # with a fresh cross-compiler works. |
| 3337 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3338 | # <limits.h> exists even on freestanding compilers. |
| 3339 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3340 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3341 | cat >conftest.$ac_ext <<_ACEOF |
| 3342 | /* confdefs.h. */ |
| 3343 | _ACEOF |
| 3344 | cat confdefs.h >>conftest.$ac_ext |
| 3345 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3346 | /* end confdefs.h. */ |
| 3347 | #ifdef __STDC__ |
| 3348 | # include <limits.h> |
| 3349 | #else |
| 3350 | # include <assert.h> |
| 3351 | #endif |
| 3352 | Syntax error |
| 3353 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3354 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3355 | case "(($ac_try" in |
| 3356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3357 | *) ac_try_echo=$ac_try;; |
| 3358 | esac |
| 3359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3360 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3361 | ac_status=$? |
| 3362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3363 | rm -f conftest.er1 |
| 3364 | cat conftest.err >&5 |
| 3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3366 | (exit $ac_status); } >/dev/null; then |
| 3367 | if test -s conftest.err; then |
| 3368 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3369 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3370 | else |
| 3371 | ac_cpp_err= |
| 3372 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3373 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3374 | ac_cpp_err=yes |
| 3375 | fi |
| 3376 | if test -z "$ac_cpp_err"; then |
| 3377 | : |
| 3378 | else |
| 3379 | echo "$as_me: failed program was:" >&5 |
| 3380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3381 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3382 | # Broken: fails on valid input. |
| 3383 | continue |
| 3384 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3385 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3386 | rm -f conftest.err conftest.$ac_ext |
| 3387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3388 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3389 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3390 | cat >conftest.$ac_ext <<_ACEOF |
| 3391 | /* confdefs.h. */ |
| 3392 | _ACEOF |
| 3393 | cat confdefs.h >>conftest.$ac_ext |
| 3394 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3395 | /* end confdefs.h. */ |
| 3396 | #include <ac_nonexistent.h> |
| 3397 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3398 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3399 | case "(($ac_try" in |
| 3400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3401 | *) ac_try_echo=$ac_try;; |
| 3402 | esac |
| 3403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3404 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3405 | ac_status=$? |
| 3406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3407 | rm -f conftest.er1 |
| 3408 | cat conftest.err >&5 |
| 3409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3410 | (exit $ac_status); } >/dev/null; then |
| 3411 | if test -s conftest.err; then |
| 3412 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3413 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3414 | else |
| 3415 | ac_cpp_err= |
| 3416 | fi |
| 3417 | else |
| 3418 | ac_cpp_err=yes |
| 3419 | fi |
| 3420 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3421 | # Broken: success on invalid input. |
| 3422 | continue |
| 3423 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3424 | echo "$as_me: failed program was:" >&5 |
| 3425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3426 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3427 | # Passes both tests. |
| 3428 | ac_preproc_ok=: |
| 3429 | break |
| 3430 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3432 | rm -f conftest.err conftest.$ac_ext |
| 3433 | |
| 3434 | done |
| 3435 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3436 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3437 | if $ac_preproc_ok; then |
| 3438 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3439 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3440 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3441 | See \`config.log' for more details." >&5 |
| 3442 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3443 | See \`config.log' for more details." >&2;} |
| 3444 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3445 | fi |
| 3446 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3447 | ac_ext=c |
| 3448 | ac_cpp='$CPP $CPPFLAGS' |
| 3449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3452 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3453 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3454 | |
| 3455 | |
| 3456 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 3457 | subdirs="$subdirs projects/llvm-gcc" |
| 3458 | |
| 3459 | fi |
| 3460 | |
| 3461 | if test -d ${srcdir}/projects/test-suite ; then |
| 3462 | subdirs="$subdirs projects/test-suite" |
| 3463 | |
| 3464 | fi |
| 3465 | |
| 3466 | if test -d ${srcdir}/projects/llvm-test ; then |
| 3467 | subdirs="$subdirs projects/llvm-test" |
| 3468 | |
| 3469 | fi |
| 3470 | |
| 3471 | if test -d ${srcdir}/projects/poolalloc ; then |
| 3472 | subdirs="$subdirs projects/poolalloc" |
| 3473 | |
| 3474 | fi |
| 3475 | |
| 3476 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 3477 | subdirs="$subdirs projects/llvm-poolalloc" |
| 3478 | |
| 3479 | fi |
| 3480 | |
| 3481 | for i in `ls ${srcdir}/projects` |
| 3482 | do |
| 3483 | if test -d ${srcdir}/projects/${i} ; then |
| 3484 | case ${i} in |
| 3485 | sample) subdirs="$subdirs projects/sample" |
| 3486 | ;; |
| 3487 | privbracket) subdirs="$subdirs projects/privbracket" |
| 3488 | ;; |
| 3489 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
| 3490 | ;; |
| 3491 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
| 3492 | ;; |
| 3493 | llvm-java) subdirs="$subdirs projects/llvm-java" |
| 3494 | ;; |
| 3495 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
| 3496 | ;; |
| 3497 | safecode) subdirs="$subdirs projects/safecode" |
| 3498 | ;; |
| 3499 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
| 3500 | ;; |
Daniel Dunbar | d45162b | 2011-12-07 22:07:03 +0000 | [diff] [blame] | 3501 | compiler-rt) ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3502 | llvm-gcc) ;; |
| 3503 | test-suite) ;; |
| 3504 | llvm-test) ;; |
| 3505 | poolalloc) ;; |
| 3506 | llvm-poolalloc) ;; |
| 3507 | *) |
| 3508 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 3509 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
| 3510 | ;; |
| 3511 | esac |
| 3512 | fi |
| 3513 | done |
| 3514 | |
| 3515 | # Check whether --enable-polly was given. |
| 3516 | if test "${enable_polly+set}" = set; then |
| 3517 | enableval=$enable_polly; |
| 3518 | else |
| 3519 | enableval=default |
| 3520 | fi |
| 3521 | |
| 3522 | case "$enableval" in |
| 3523 | yes) ENABLE_POLLY=1 |
| 3524 | ;; |
| 3525 | no) ENABLE_POLLY=0 |
| 3526 | ;; |
| 3527 | default) ENABLE_POLLY=1 |
| 3528 | ;; |
| 3529 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 3530 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 3531 | { (exit 1); exit 1; }; } ;; |
| 3532 | esac |
| 3533 | |
| 3534 | |
| 3535 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 3536 | LLVM_HAS_POLLY=1 |
| 3537 | |
| 3538 | subdirs="$subdirs tools/polly" |
| 3539 | |
| 3540 | fi |
| 3541 | |
| 3542 | |
| 3543 | # Make sure we can run config.sub. |
| 3544 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3545 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3546 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3547 | { (exit 1); exit 1; }; } |
| 3548 | |
| 3549 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3550 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3551 | if test "${ac_cv_build+set}" = set; then |
| 3552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3553 | else |
| 3554 | ac_build_alias=$build_alias |
| 3555 | test "x$ac_build_alias" = x && |
| 3556 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3557 | test "x$ac_build_alias" = x && |
| 3558 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3559 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3560 | { (exit 1); exit 1; }; } |
| 3561 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3562 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3563 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3564 | { (exit 1); exit 1; }; } |
| 3565 | |
| 3566 | fi |
| 3567 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3568 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3569 | case $ac_cv_build in |
| 3570 | *-*-*) ;; |
| 3571 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3572 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3573 | { (exit 1); exit 1; }; };; |
| 3574 | esac |
| 3575 | build=$ac_cv_build |
| 3576 | ac_save_IFS=$IFS; IFS='-' |
| 3577 | set x $ac_cv_build |
| 3578 | shift |
| 3579 | build_cpu=$1 |
| 3580 | build_vendor=$2 |
| 3581 | shift; shift |
| 3582 | # Remember, the first character of IFS is used to create $*, |
| 3583 | # except with old shells: |
| 3584 | build_os=$* |
| 3585 | IFS=$ac_save_IFS |
| 3586 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3587 | |
| 3588 | |
| 3589 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3590 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3591 | if test "${ac_cv_host+set}" = set; then |
| 3592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3593 | else |
| 3594 | if test "x$host_alias" = x; then |
| 3595 | ac_cv_host=$ac_cv_build |
| 3596 | else |
| 3597 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3598 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3599 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3600 | { (exit 1); exit 1; }; } |
| 3601 | fi |
| 3602 | |
| 3603 | fi |
| 3604 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3605 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3606 | case $ac_cv_host in |
| 3607 | *-*-*) ;; |
| 3608 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3609 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3610 | { (exit 1); exit 1; }; };; |
| 3611 | esac |
| 3612 | host=$ac_cv_host |
| 3613 | ac_save_IFS=$IFS; IFS='-' |
| 3614 | set x $ac_cv_host |
| 3615 | shift |
| 3616 | host_cpu=$1 |
| 3617 | host_vendor=$2 |
| 3618 | shift; shift |
| 3619 | # Remember, the first character of IFS is used to create $*, |
| 3620 | # except with old shells: |
| 3621 | host_os=$* |
| 3622 | IFS=$ac_save_IFS |
| 3623 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3624 | |
| 3625 | |
| 3626 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 3627 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 3628 | if test "${ac_cv_target+set}" = set; then |
| 3629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3630 | else |
| 3631 | if test "x$target_alias" = x; then |
| 3632 | ac_cv_target=$ac_cv_host |
| 3633 | else |
| 3634 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3635 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 3636 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 3637 | { (exit 1); exit 1; }; } |
| 3638 | fi |
| 3639 | |
| 3640 | fi |
| 3641 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3642 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 3643 | case $ac_cv_target in |
| 3644 | *-*-*) ;; |
| 3645 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 3646 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 3647 | { (exit 1); exit 1; }; };; |
| 3648 | esac |
| 3649 | target=$ac_cv_target |
| 3650 | ac_save_IFS=$IFS; IFS='-' |
| 3651 | set x $ac_cv_target |
| 3652 | shift |
| 3653 | target_cpu=$1 |
| 3654 | target_vendor=$2 |
| 3655 | shift; shift |
| 3656 | # Remember, the first character of IFS is used to create $*, |
| 3657 | # except with old shells: |
| 3658 | target_os=$* |
| 3659 | IFS=$ac_save_IFS |
| 3660 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3661 | |
| 3662 | |
| 3663 | # The aliases save the names the user supplied, while $host etc. |
| 3664 | # will get canonicalized. |
| 3665 | test -n "$target_alias" && |
| 3666 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3667 | NONENONEs,x,x, && |
| 3668 | program_prefix=${target_alias}- |
| 3669 | |
| 3670 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 3671 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 3672 | if test "${llvm_cv_os_type+set}" = set; then |
| 3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3674 | else |
| 3675 | case $host in |
| 3676 | *-*-aix*) |
| 3677 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3678 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3679 | llvm_cv_os_type="AIX" |
| 3680 | llvm_cv_platform_type="Unix" ;; |
| 3681 | *-*-irix*) |
| 3682 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3683 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3684 | llvm_cv_os_type="IRIX" |
| 3685 | llvm_cv_platform_type="Unix" ;; |
| 3686 | *-*-cygwin*) |
| 3687 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3688 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3689 | llvm_cv_os_type="Cygwin" |
| 3690 | llvm_cv_platform_type="Unix" ;; |
| 3691 | *-*-darwin*) |
| 3692 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3693 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3694 | llvm_cv_os_type="Darwin" |
| 3695 | llvm_cv_platform_type="Unix" ;; |
| 3696 | *-*-minix*) |
| 3697 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3698 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3699 | llvm_cv_os_type="Minix" |
| 3700 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3701 | *-*-freebsd* | *-*-kfreebsd-gnu) |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3702 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3703 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3704 | llvm_cv_os_type="FreeBSD" |
| 3705 | llvm_cv_platform_type="Unix" ;; |
| 3706 | *-*-openbsd*) |
| 3707 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3708 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3709 | llvm_cv_os_type="OpenBSD" |
| 3710 | llvm_cv_platform_type="Unix" ;; |
| 3711 | *-*-netbsd*) |
| 3712 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3713 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3714 | llvm_cv_os_type="NetBSD" |
| 3715 | llvm_cv_platform_type="Unix" ;; |
| 3716 | *-*-dragonfly*) |
| 3717 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3718 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3719 | llvm_cv_os_type="DragonFly" |
| 3720 | llvm_cv_platform_type="Unix" ;; |
| 3721 | *-*-hpux*) |
| 3722 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3723 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3724 | llvm_cv_os_type="HP-UX" |
| 3725 | llvm_cv_platform_type="Unix" ;; |
| 3726 | *-*-interix*) |
| 3727 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3728 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3729 | llvm_cv_os_type="Interix" |
| 3730 | llvm_cv_platform_type="Unix" ;; |
| 3731 | *-*-linux*) |
| 3732 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3733 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3734 | llvm_cv_os_type="Linux" |
| 3735 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3736 | *-*-gnu*) |
| 3737 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3738 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3739 | llvm_cv_os_type="GNU" |
| 3740 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3741 | *-*-solaris*) |
| 3742 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3743 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
| 3744 | llvm_cv_os_type="SunOS" |
| 3745 | llvm_cv_platform_type="Unix" ;; |
| 3746 | *-*-auroraux*) |
| 3747 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3748 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 3749 | llvm_cv_os_type="AuroraUX" |
| 3750 | llvm_cv_platform_type="Unix" ;; |
| 3751 | *-*-win32*) |
| 3752 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3753 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3754 | llvm_cv_os_type="Win32" |
| 3755 | llvm_cv_platform_type="Win32" ;; |
| 3756 | *-*-mingw*) |
| 3757 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3758 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3759 | llvm_cv_os_type="MingW" |
| 3760 | llvm_cv_platform_type="Win32" ;; |
| 3761 | *-*-haiku*) |
| 3762 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3763 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3764 | llvm_cv_os_type="Haiku" |
| 3765 | llvm_cv_platform_type="Unix" ;; |
| 3766 | *-unknown-eabi*) |
| 3767 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3768 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3769 | llvm_cv_os_type="Freestanding" |
| 3770 | llvm_cv_platform_type="Unix" ;; |
| 3771 | *-unknown-elf*) |
| 3772 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3773 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3774 | llvm_cv_os_type="Freestanding" |
| 3775 | llvm_cv_platform_type="Unix" ;; |
| 3776 | *) |
| 3777 | llvm_cv_link_all_option="" |
| 3778 | llvm_cv_no_link_all_option="" |
| 3779 | llvm_cv_os_type="Unknown" |
| 3780 | llvm_cv_platform_type="Unknown" ;; |
| 3781 | esac |
| 3782 | fi |
| 3783 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 3784 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
| 3785 | |
| 3786 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 3787 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 3788 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 3789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3790 | else |
| 3791 | case $target in |
| 3792 | *-*-aix*) |
| 3793 | llvm_cv_target_os_type="AIX" ;; |
| 3794 | *-*-irix*) |
| 3795 | llvm_cv_target_os_type="IRIX" ;; |
| 3796 | *-*-cygwin*) |
| 3797 | llvm_cv_target_os_type="Cygwin" ;; |
| 3798 | *-*-darwin*) |
| 3799 | llvm_cv_target_os_type="Darwin" ;; |
| 3800 | *-*-minix*) |
| 3801 | llvm_cv_target_os_type="Minix" ;; |
| 3802 | *-*-freebsd*) |
| 3803 | llvm_cv_target_os_type="FreeBSD" ;; |
| 3804 | *-*-openbsd*) |
| 3805 | llvm_cv_target_os_type="OpenBSD" ;; |
| 3806 | *-*-netbsd*) |
| 3807 | llvm_cv_target_os_type="NetBSD" ;; |
| 3808 | *-*-dragonfly*) |
| 3809 | llvm_cv_target_os_type="DragonFly" ;; |
| 3810 | *-*-hpux*) |
| 3811 | llvm_cv_target_os_type="HP-UX" ;; |
| 3812 | *-*-interix*) |
| 3813 | llvm_cv_target_os_type="Interix" ;; |
| 3814 | *-*-linux*) |
| 3815 | llvm_cv_target_os_type="Linux" ;; |
| 3816 | *-*-solaris*) |
| 3817 | llvm_cv_target_os_type="SunOS" ;; |
| 3818 | *-*-auroraux*) |
| 3819 | llvm_cv_target_os_type="AuroraUX" ;; |
| 3820 | *-*-win32*) |
| 3821 | llvm_cv_target_os_type="Win32" ;; |
| 3822 | *-*-mingw*) |
| 3823 | llvm_cv_target_os_type="MingW" ;; |
| 3824 | *-*-haiku*) |
| 3825 | llvm_cv_target_os_type="Haiku" ;; |
| 3826 | *-*-rtems*) |
| 3827 | llvm_cv_target_os_type="RTEMS" ;; |
| 3828 | *-*-nacl*) |
| 3829 | llvm_cv_target_os_type="NativeClient" ;; |
| 3830 | *-unknown-eabi*) |
| 3831 | llvm_cv_target_os_type="Freestanding" ;; |
| 3832 | *) |
| 3833 | llvm_cv_target_os_type="Unknown" ;; |
| 3834 | esac |
| 3835 | fi |
| 3836 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 3837 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 3838 | |
| 3839 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 3840 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 3841 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 3842 | { (exit 1); exit 1; }; } |
| 3843 | fi |
| 3844 | |
| 3845 | OS=$llvm_cv_os_type |
| 3846 | |
| 3847 | HOST_OS=$llvm_cv_os_type |
| 3848 | |
| 3849 | TARGET_OS=$llvm_cv_target_os_type |
| 3850 | |
| 3851 | |
| 3852 | LINKALL=$llvm_cv_link_all_option |
| 3853 | |
| 3854 | NOLINKALL=$llvm_cv_no_link_all_option |
| 3855 | |
| 3856 | |
| 3857 | case $llvm_cv_platform_type in |
| 3858 | Unix) |
| 3859 | |
| 3860 | cat >>confdefs.h <<\_ACEOF |
| 3861 | #define LLVM_ON_UNIX 1 |
| 3862 | _ACEOF |
| 3863 | |
| 3864 | LLVM_ON_UNIX=1 |
| 3865 | |
| 3866 | LLVM_ON_WIN32=0 |
| 3867 | |
| 3868 | ;; |
| 3869 | Win32) |
| 3870 | |
| 3871 | cat >>confdefs.h <<\_ACEOF |
| 3872 | #define LLVM_ON_WIN32 1 |
| 3873 | _ACEOF |
| 3874 | |
| 3875 | LLVM_ON_UNIX=0 |
| 3876 | |
| 3877 | LLVM_ON_WIN32=1 |
| 3878 | |
| 3879 | ;; |
| 3880 | esac |
| 3881 | |
| 3882 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 3883 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 3884 | if test "${llvm_cv_target_arch+set}" = set; then |
| 3885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3886 | else |
| 3887 | case $target in |
| 3888 | i?86-*) llvm_cv_target_arch="x86" ;; |
| 3889 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
| 3890 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 3891 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3892 | arm*-*) llvm_cv_target_arch="ARM" ;; |
| 3893 | mips-*) llvm_cv_target_arch="Mips" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 3894 | mipsel-*) llvm_cv_target_arch="Mips" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3895 | xcore-*) llvm_cv_target_arch="XCore" ;; |
| 3896 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3897 | hexagon-*) llvm_cv_target_arch="Hexagon" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3898 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
| 3899 | ptx-*) llvm_cv_target_arch="PTX" ;; |
| 3900 | *) llvm_cv_target_arch="Unknown" ;; |
| 3901 | esac |
| 3902 | fi |
| 3903 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 3904 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
| 3905 | |
| 3906 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 3907 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 3908 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 3909 | fi |
| 3910 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3911 | case "$llvm_cv_target_arch" in |
| 3912 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 3913 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 3914 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 3915 | esac |
| 3916 | |
| 3917 | ARCH=$llvm_cv_target_arch |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3922 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3923 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3924 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3926 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3927 | # Extract the first word of "grep ggrep" to use in msg output |
| 3928 | if test -z "$GREP"; then |
| 3929 | set dummy grep ggrep; ac_prog_name=$2 |
| 3930 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3932 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3933 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3934 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3936 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3937 | do |
| 3938 | IFS=$as_save_IFS |
| 3939 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3940 | for ac_prog in grep ggrep; do |
| 3941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3942 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3943 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3944 | # 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] | 3945 | # Check for GNU $ac_path_GREP |
| 3946 | case `"$ac_path_GREP" --version 2>&1` in |
| 3947 | *GNU*) |
| 3948 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3949 | *) |
| 3950 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3951 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3952 | while : |
| 3953 | do |
| 3954 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3955 | mv "conftest.tmp" "conftest.in" |
| 3956 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3957 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3958 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3959 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3960 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3961 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3962 | # Best one so far, save it but keep looking for a better one |
| 3963 | ac_cv_path_GREP="$ac_path_GREP" |
| 3964 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3965 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3966 | # 10*(2^10) chars as input seems more than enough |
| 3967 | test $ac_count -gt 10 && break |
| 3968 | done |
| 3969 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3970 | esac |
| 3971 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3972 | |
| 3973 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3974 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3975 | done |
| 3976 | |
| 3977 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3978 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3979 | |
| 3980 | |
| 3981 | fi |
| 3982 | |
| 3983 | GREP="$ac_cv_path_GREP" |
| 3984 | if test -z "$GREP"; then |
| 3985 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3986 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3987 | { (exit 1); exit 1; }; } |
| 3988 | fi |
| 3989 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3990 | else |
| 3991 | ac_cv_path_GREP=$GREP |
| 3992 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3993 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3995 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3996 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3997 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3998 | GREP="$ac_cv_path_GREP" |
| 3999 | |
| 4000 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4001 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4002 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4003 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4005 | else |
| 4006 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4007 | then ac_cv_path_EGREP="$GREP -E" |
| 4008 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4009 | # Extract the first word of "egrep" to use in msg output |
| 4010 | if test -z "$EGREP"; then |
| 4011 | set dummy egrep; ac_prog_name=$2 |
| 4012 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4014 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4015 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4016 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4018 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4019 | do |
| 4020 | IFS=$as_save_IFS |
| 4021 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4022 | for ac_prog in egrep; do |
| 4023 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4024 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4025 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4026 | # 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] | 4027 | # Check for GNU $ac_path_EGREP |
| 4028 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4029 | *GNU*) |
| 4030 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4031 | *) |
| 4032 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4033 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4034 | while : |
| 4035 | do |
| 4036 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4037 | mv "conftest.tmp" "conftest.in" |
| 4038 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4039 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4040 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4041 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4042 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4043 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4044 | # Best one so far, save it but keep looking for a better one |
| 4045 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4046 | ac_path_EGREP_max=$ac_count |
| 4047 | fi |
| 4048 | # 10*(2^10) chars as input seems more than enough |
| 4049 | test $ac_count -gt 10 && break |
| 4050 | done |
| 4051 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4052 | esac |
| 4053 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4054 | |
| 4055 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4056 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4057 | done |
| 4058 | |
| 4059 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4060 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4061 | |
| 4062 | |
| 4063 | fi |
| 4064 | |
| 4065 | EGREP="$ac_cv_path_EGREP" |
| 4066 | if test -z "$EGREP"; then |
| 4067 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4068 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4069 | { (exit 1); exit 1; }; } |
| 4070 | fi |
| 4071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4072 | else |
| 4073 | ac_cv_path_EGREP=$EGREP |
| 4074 | fi |
| 4075 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4077 | fi |
| 4078 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4079 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4080 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4081 | EGREP="$ac_cv_path_EGREP" |
| 4082 | |
| 4083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4084 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4085 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4086 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4088 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4089 | cat >conftest.$ac_ext <<_ACEOF |
| 4090 | /* confdefs.h. */ |
| 4091 | _ACEOF |
| 4092 | cat confdefs.h >>conftest.$ac_ext |
| 4093 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4094 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4095 | #include <stdlib.h> |
| 4096 | #include <stdarg.h> |
| 4097 | #include <string.h> |
| 4098 | #include <float.h> |
| 4099 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4100 | int |
| 4101 | main () |
| 4102 | { |
| 4103 | |
| 4104 | ; |
| 4105 | return 0; |
| 4106 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4107 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4108 | rm -f conftest.$ac_objext |
| 4109 | if { (ac_try="$ac_compile" |
| 4110 | case "(($ac_try" in |
| 4111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4112 | *) ac_try_echo=$ac_try;; |
| 4113 | esac |
| 4114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4115 | (eval "$ac_compile") 2>conftest.er1 |
| 4116 | ac_status=$? |
| 4117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4118 | rm -f conftest.er1 |
| 4119 | cat conftest.err >&5 |
| 4120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4121 | (exit $ac_status); } && |
| 4122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4123 | { (case "(($ac_try" in |
| 4124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4125 | *) ac_try_echo=$ac_try;; |
| 4126 | esac |
| 4127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4128 | (eval "$ac_try") 2>&5 |
| 4129 | ac_status=$? |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4131 | (exit $ac_status); }; } && |
| 4132 | { ac_try='test -s conftest.$ac_objext' |
| 4133 | { (case "(($ac_try" in |
| 4134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4135 | *) ac_try_echo=$ac_try;; |
| 4136 | esac |
| 4137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4138 | (eval "$ac_try") 2>&5 |
| 4139 | ac_status=$? |
| 4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4141 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4142 | ac_cv_header_stdc=yes |
| 4143 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4144 | echo "$as_me: failed program was:" >&5 |
| 4145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4146 | |
| 4147 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4148 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4149 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4151 | |
| 4152 | if test $ac_cv_header_stdc = yes; then |
| 4153 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4154 | cat >conftest.$ac_ext <<_ACEOF |
| 4155 | /* confdefs.h. */ |
| 4156 | _ACEOF |
| 4157 | cat confdefs.h >>conftest.$ac_ext |
| 4158 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4159 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4160 | #include <string.h> |
| 4161 | |
| 4162 | _ACEOF |
| 4163 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4164 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4165 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4166 | else |
| 4167 | ac_cv_header_stdc=no |
| 4168 | fi |
| 4169 | rm -f conftest* |
| 4170 | |
| 4171 | fi |
| 4172 | |
| 4173 | if test $ac_cv_header_stdc = yes; then |
| 4174 | # 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] | 4175 | cat >conftest.$ac_ext <<_ACEOF |
| 4176 | /* confdefs.h. */ |
| 4177 | _ACEOF |
| 4178 | cat confdefs.h >>conftest.$ac_ext |
| 4179 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4180 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4181 | #include <stdlib.h> |
| 4182 | |
| 4183 | _ACEOF |
| 4184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4185 | $EGREP "free" >/dev/null 2>&1; then |
| 4186 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4187 | else |
| 4188 | ac_cv_header_stdc=no |
| 4189 | fi |
| 4190 | rm -f conftest* |
| 4191 | |
| 4192 | fi |
| 4193 | |
| 4194 | if test $ac_cv_header_stdc = yes; then |
| 4195 | # /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] | 4196 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4197 | : |
| 4198 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4199 | cat >conftest.$ac_ext <<_ACEOF |
| 4200 | /* confdefs.h. */ |
| 4201 | _ACEOF |
| 4202 | cat confdefs.h >>conftest.$ac_ext |
| 4203 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4204 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4205 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4206 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4207 | #if ((' ' & 0x0FF) == 0x020) |
| 4208 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4209 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4210 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4211 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4212 | (('a' <= (c) && (c) <= 'i') \ |
| 4213 | || ('j' <= (c) && (c) <= 'r') \ |
| 4214 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4215 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4216 | #endif |
| 4217 | |
| 4218 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4219 | int |
| 4220 | main () |
| 4221 | { |
| 4222 | int i; |
| 4223 | for (i = 0; i < 256; i++) |
| 4224 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4225 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4226 | return 2; |
| 4227 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4228 | } |
| 4229 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4230 | rm -f conftest$ac_exeext |
| 4231 | if { (ac_try="$ac_link" |
| 4232 | case "(($ac_try" in |
| 4233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4234 | *) ac_try_echo=$ac_try;; |
| 4235 | esac |
| 4236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4237 | (eval "$ac_link") 2>&5 |
| 4238 | ac_status=$? |
| 4239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4240 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4241 | { (case "(($ac_try" in |
| 4242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4243 | *) ac_try_echo=$ac_try;; |
| 4244 | esac |
| 4245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4246 | (eval "$ac_try") 2>&5 |
| 4247 | ac_status=$? |
| 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 | (exit $ac_status); }; }; then |
| 4250 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4251 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4252 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4253 | echo "$as_me: failed program was:" >&5 |
| 4254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4255 | |
| 4256 | ( exit $ac_status ) |
| 4257 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4258 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4259 | 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] | 4260 | fi |
| 4261 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4262 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4263 | fi |
| 4264 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4265 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4266 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4267 | if test $ac_cv_header_stdc = yes; then |
| 4268 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4269 | cat >>confdefs.h <<\_ACEOF |
| 4270 | #define STDC_HEADERS 1 |
| 4271 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4272 | |
| 4273 | fi |
| 4274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4275 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4276 | |
| 4277 | |
| 4278 | |
| 4279 | |
| 4280 | |
| 4281 | |
| 4282 | |
| 4283 | |
| 4284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4285 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4286 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4287 | do |
| 4288 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4289 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4291 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4293 | else |
| 4294 | cat >conftest.$ac_ext <<_ACEOF |
| 4295 | /* confdefs.h. */ |
| 4296 | _ACEOF |
| 4297 | cat confdefs.h >>conftest.$ac_ext |
| 4298 | cat >>conftest.$ac_ext <<_ACEOF |
| 4299 | /* end confdefs.h. */ |
| 4300 | $ac_includes_default |
| 4301 | |
| 4302 | #include <$ac_header> |
| 4303 | _ACEOF |
| 4304 | rm -f conftest.$ac_objext |
| 4305 | if { (ac_try="$ac_compile" |
| 4306 | case "(($ac_try" in |
| 4307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4308 | *) ac_try_echo=$ac_try;; |
| 4309 | esac |
| 4310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4311 | (eval "$ac_compile") 2>conftest.er1 |
| 4312 | ac_status=$? |
| 4313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4314 | rm -f conftest.er1 |
| 4315 | cat conftest.err >&5 |
| 4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4317 | (exit $ac_status); } && |
| 4318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4319 | { (case "(($ac_try" in |
| 4320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4321 | *) ac_try_echo=$ac_try;; |
| 4322 | esac |
| 4323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4324 | (eval "$ac_try") 2>&5 |
| 4325 | ac_status=$? |
| 4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4327 | (exit $ac_status); }; } && |
| 4328 | { ac_try='test -s conftest.$ac_objext' |
| 4329 | { (case "(($ac_try" in |
| 4330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4331 | *) ac_try_echo=$ac_try;; |
| 4332 | esac |
| 4333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4334 | (eval "$ac_try") 2>&5 |
| 4335 | ac_status=$? |
| 4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4337 | (exit $ac_status); }; }; then |
| 4338 | eval "$as_ac_Header=yes" |
| 4339 | else |
| 4340 | echo "$as_me: failed program was:" >&5 |
| 4341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4342 | |
| 4343 | eval "$as_ac_Header=no" |
| 4344 | fi |
| 4345 | |
| 4346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4347 | fi |
| 4348 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4349 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4350 | echo "${ECHO_T}$ac_res" >&6; } |
| 4351 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4352 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4353 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4354 | _ACEOF |
| 4355 | |
| 4356 | fi |
| 4357 | |
| 4358 | done |
| 4359 | |
| 4360 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4361 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4362 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4363 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4365 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4366 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4367 | cat >conftest.$ac_ext <<_ACEOF |
| 4368 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4369 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4370 | cat confdefs.h >>conftest.$ac_ext |
| 4371 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4372 | /* end confdefs.h. */ |
| 4373 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4374 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4375 | |
| 4376 | int |
| 4377 | main () |
| 4378 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4379 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4380 | bogus endian macros |
| 4381 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4382 | |
| 4383 | ; |
| 4384 | return 0; |
| 4385 | } |
| 4386 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4387 | rm -f conftest.$ac_objext |
| 4388 | if { (ac_try="$ac_compile" |
| 4389 | case "(($ac_try" in |
| 4390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4391 | *) ac_try_echo=$ac_try;; |
| 4392 | esac |
| 4393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4394 | (eval "$ac_compile") 2>conftest.er1 |
| 4395 | ac_status=$? |
| 4396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4397 | rm -f conftest.er1 |
| 4398 | cat conftest.err >&5 |
| 4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4400 | (exit $ac_status); } && |
| 4401 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4402 | { (case "(($ac_try" in |
| 4403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4404 | *) ac_try_echo=$ac_try;; |
| 4405 | esac |
| 4406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4407 | (eval "$ac_try") 2>&5 |
| 4408 | ac_status=$? |
| 4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4410 | (exit $ac_status); }; } && |
| 4411 | { ac_try='test -s conftest.$ac_objext' |
| 4412 | { (case "(($ac_try" in |
| 4413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4414 | *) ac_try_echo=$ac_try;; |
| 4415 | esac |
| 4416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4417 | (eval "$ac_try") 2>&5 |
| 4418 | ac_status=$? |
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4420 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4421 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4422 | cat >conftest.$ac_ext <<_ACEOF |
| 4423 | /* confdefs.h. */ |
| 4424 | _ACEOF |
| 4425 | cat confdefs.h >>conftest.$ac_ext |
| 4426 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4427 | /* end confdefs.h. */ |
| 4428 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4429 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4430 | |
| 4431 | int |
| 4432 | main () |
| 4433 | { |
| 4434 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4435 | not big endian |
| 4436 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4437 | |
| 4438 | ; |
| 4439 | return 0; |
| 4440 | } |
| 4441 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4442 | rm -f conftest.$ac_objext |
| 4443 | if { (ac_try="$ac_compile" |
| 4444 | case "(($ac_try" in |
| 4445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4446 | *) ac_try_echo=$ac_try;; |
| 4447 | esac |
| 4448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4449 | (eval "$ac_compile") 2>conftest.er1 |
| 4450 | ac_status=$? |
| 4451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4452 | rm -f conftest.er1 |
| 4453 | cat conftest.err >&5 |
| 4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4455 | (exit $ac_status); } && |
| 4456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4457 | { (case "(($ac_try" in |
| 4458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4459 | *) ac_try_echo=$ac_try;; |
| 4460 | esac |
| 4461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4462 | (eval "$ac_try") 2>&5 |
| 4463 | ac_status=$? |
| 4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4465 | (exit $ac_status); }; } && |
| 4466 | { ac_try='test -s conftest.$ac_objext' |
| 4467 | { (case "(($ac_try" in |
| 4468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4469 | *) ac_try_echo=$ac_try;; |
| 4470 | esac |
| 4471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4472 | (eval "$ac_try") 2>&5 |
| 4473 | ac_status=$? |
| 4474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4475 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4476 | ac_cv_c_bigendian=yes |
| 4477 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4478 | echo "$as_me: failed program was:" >&5 |
| 4479 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4481 | ac_cv_c_bigendian=no |
| 4482 | fi |
| 4483 | |
| 4484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4485 | else |
| 4486 | echo "$as_me: failed program was:" >&5 |
| 4487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4488 | |
| 4489 | # It does not; compile a test program. |
| 4490 | if test "$cross_compiling" = yes; then |
| 4491 | # try to guess the endianness by grepping values into an object file |
| 4492 | ac_cv_c_bigendian=unknown |
| 4493 | cat >conftest.$ac_ext <<_ACEOF |
| 4494 | /* confdefs.h. */ |
| 4495 | _ACEOF |
| 4496 | cat confdefs.h >>conftest.$ac_ext |
| 4497 | cat >>conftest.$ac_ext <<_ACEOF |
| 4498 | /* end confdefs.h. */ |
| 4499 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4500 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4501 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4502 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4503 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4504 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4505 | int |
| 4506 | main () |
| 4507 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4508 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4509 | ; |
| 4510 | return 0; |
| 4511 | } |
| 4512 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4513 | rm -f conftest.$ac_objext |
| 4514 | if { (ac_try="$ac_compile" |
| 4515 | case "(($ac_try" in |
| 4516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4517 | *) ac_try_echo=$ac_try;; |
| 4518 | esac |
| 4519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4520 | (eval "$ac_compile") 2>conftest.er1 |
| 4521 | ac_status=$? |
| 4522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4523 | rm -f conftest.er1 |
| 4524 | cat conftest.err >&5 |
| 4525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4526 | (exit $ac_status); } && |
| 4527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4528 | { (case "(($ac_try" in |
| 4529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4530 | *) ac_try_echo=$ac_try;; |
| 4531 | esac |
| 4532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4533 | (eval "$ac_try") 2>&5 |
| 4534 | ac_status=$? |
| 4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4536 | (exit $ac_status); }; } && |
| 4537 | { ac_try='test -s conftest.$ac_objext' |
| 4538 | { (case "(($ac_try" in |
| 4539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4540 | *) ac_try_echo=$ac_try;; |
| 4541 | esac |
| 4542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4543 | (eval "$ac_try") 2>&5 |
| 4544 | ac_status=$? |
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); }; }; then |
| 4547 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4548 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4551 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4552 | ac_cv_c_bigendian=no |
| 4553 | else |
| 4554 | # finding both strings is unlikely to happen, but who knows? |
| 4555 | ac_cv_c_bigendian=unknown |
| 4556 | fi |
| 4557 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4558 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4559 | echo "$as_me: failed program was:" >&5 |
| 4560 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4561 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4562 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4563 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4566 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4567 | cat >conftest.$ac_ext <<_ACEOF |
| 4568 | /* confdefs.h. */ |
| 4569 | _ACEOF |
| 4570 | cat confdefs.h >>conftest.$ac_ext |
| 4571 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4572 | /* end confdefs.h. */ |
| 4573 | $ac_includes_default |
| 4574 | int |
| 4575 | main () |
| 4576 | { |
| 4577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4578 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4579 | union |
| 4580 | { |
| 4581 | long int l; |
| 4582 | char c[sizeof (long int)]; |
| 4583 | } u; |
| 4584 | u.l = 1; |
| 4585 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4586 | |
| 4587 | ; |
| 4588 | return 0; |
| 4589 | } |
| 4590 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4591 | rm -f conftest$ac_exeext |
| 4592 | if { (ac_try="$ac_link" |
| 4593 | case "(($ac_try" in |
| 4594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4595 | *) ac_try_echo=$ac_try;; |
| 4596 | esac |
| 4597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4598 | (eval "$ac_link") 2>&5 |
| 4599 | ac_status=$? |
| 4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4601 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4602 | { (case "(($ac_try" in |
| 4603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4604 | *) ac_try_echo=$ac_try;; |
| 4605 | esac |
| 4606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4607 | (eval "$ac_try") 2>&5 |
| 4608 | ac_status=$? |
| 4609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4610 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4611 | ac_cv_c_bigendian=no |
| 4612 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4613 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4614 | echo "$as_me: failed program was:" >&5 |
| 4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4616 | |
| 4617 | ( exit $ac_status ) |
| 4618 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4619 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4620 | 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] | 4621 | fi |
| 4622 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4624 | fi |
| 4625 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4627 | fi |
| 4628 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4629 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4630 | case $ac_cv_c_bigendian in |
| 4631 | yes) |
| 4632 | ENDIAN=big |
| 4633 | ;; |
| 4634 | no) |
| 4635 | ENDIAN=little |
| 4636 | ;; |
| 4637 | *) |
| 4638 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4639 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4640 | echo "$as_me: error: unknown endianness |
| 4641 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4642 | { (exit 1); exit 1; }; } ;; |
| 4643 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4644 | |
| 4645 | |
| 4646 | if test "$cross_compiling" = yes; then |
| 4647 | LLVM_CROSS_COMPILING=1 |
| 4648 | |
| 4649 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4650 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4651 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4652 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4654 | else |
| 4655 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4656 | ac_cv_build_exeext=.exe |
| 4657 | else |
| 4658 | ac_build_prefix=${build_alias}- |
| 4659 | |
| 4660 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4661 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4662 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4664 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4666 | else |
| 4667 | if test -n "$BUILD_CC"; then |
| 4668 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4669 | else |
| 4670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4671 | for as_dir in $PATH |
| 4672 | do |
| 4673 | IFS=$as_save_IFS |
| 4674 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4675 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4676 | 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] | 4677 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4678 | 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] | 4679 | break 2 |
| 4680 | fi |
| 4681 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4682 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4683 | IFS=$as_save_IFS |
| 4684 | |
| 4685 | fi |
| 4686 | fi |
| 4687 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4688 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4689 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4690 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4691 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4692 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4693 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4694 | fi |
| 4695 | |
| 4696 | |
| 4697 | if test -z "$BUILD_CC"; then |
| 4698 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4699 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4700 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4702 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4704 | else |
| 4705 | if test -n "$BUILD_CC"; then |
| 4706 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4707 | else |
| 4708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4709 | for as_dir in $PATH |
| 4710 | do |
| 4711 | IFS=$as_save_IFS |
| 4712 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4714 | 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] | 4715 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4716 | 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] | 4717 | break 2 |
| 4718 | fi |
| 4719 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4720 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4721 | IFS=$as_save_IFS |
| 4722 | |
| 4723 | fi |
| 4724 | fi |
| 4725 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4726 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4727 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4728 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4729 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4730 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4731 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4732 | fi |
| 4733 | |
| 4734 | |
| 4735 | if test -z "$BUILD_CC"; then |
| 4736 | # Extract the first word of "cc", so it can be a program name with args. |
| 4737 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4738 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4740 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4742 | else |
| 4743 | if test -n "$BUILD_CC"; then |
| 4744 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4745 | else |
| 4746 | ac_prog_rejected=no |
| 4747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4748 | for as_dir in $PATH |
| 4749 | do |
| 4750 | IFS=$as_save_IFS |
| 4751 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4753 | 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] | 4754 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4755 | ac_prog_rejected=yes |
| 4756 | continue |
| 4757 | fi |
| 4758 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4759 | 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] | 4760 | break 2 |
| 4761 | fi |
| 4762 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4763 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4764 | IFS=$as_save_IFS |
| 4765 | |
| 4766 | if test $ac_prog_rejected = yes; then |
| 4767 | # We found a bogon in the path, so make sure we never use it. |
| 4768 | set dummy $ac_cv_prog_BUILD_CC |
| 4769 | shift |
| 4770 | if test $# != 0; then |
| 4771 | # We chose a different compiler from the bogus one. |
| 4772 | # However, it has the same basename, so the bogon will be chosen |
| 4773 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4774 | shift |
| 4775 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4776 | fi |
| 4777 | fi |
| 4778 | fi |
| 4779 | fi |
| 4780 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4781 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4782 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4783 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4784 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4785 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4786 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4787 | fi |
| 4788 | |
| 4789 | |
| 4790 | fi |
| 4791 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4792 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4793 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4794 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4795 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4796 | rm -f conftest* |
| 4797 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4798 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4799 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4800 | (eval $ac_build_link) 2>&5 |
| 4801 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4803 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4804 | for file in conftest.*; do |
| 4805 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4806 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4807 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4808 | esac |
| 4809 | done |
| 4810 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4811 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4812 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4813 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4814 | fi |
| 4815 | rm -f conftest* |
| 4816 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4817 | fi |
| 4818 | fi |
| 4819 | |
| 4820 | BUILD_EXEEXT="" |
| 4821 | 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] | 4822 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4823 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4824 | ac_build_exeext=$BUILD_EXEEXT |
| 4825 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4826 | ac_build_prefix=${build_alias}- |
| 4827 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4828 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4831 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4833 | else |
| 4834 | if test -n "$BUILD_CXX"; then |
| 4835 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4836 | else |
| 4837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4838 | for as_dir in $PATH |
| 4839 | do |
| 4840 | IFS=$as_save_IFS |
| 4841 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4843 | 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] | 4844 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4845 | 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] | 4846 | break 2 |
| 4847 | fi |
| 4848 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4849 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4850 | IFS=$as_save_IFS |
| 4851 | |
| 4852 | fi |
| 4853 | fi |
| 4854 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4855 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4856 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4857 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4858 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4859 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4860 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4861 | fi |
| 4862 | |
| 4863 | |
| 4864 | if test -z "$BUILD_CXX"; then |
| 4865 | # Extract the first word of "g++", so it can be a program name with args. |
| 4866 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4867 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4869 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4871 | else |
| 4872 | if test -n "$BUILD_CXX"; then |
| 4873 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4874 | else |
| 4875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4876 | for as_dir in $PATH |
| 4877 | do |
| 4878 | IFS=$as_save_IFS |
| 4879 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4881 | 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] | 4882 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4883 | 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] | 4884 | break 2 |
| 4885 | fi |
| 4886 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4887 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4888 | IFS=$as_save_IFS |
| 4889 | |
| 4890 | fi |
| 4891 | fi |
| 4892 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4893 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4894 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4895 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4896 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4897 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4898 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4899 | fi |
| 4900 | |
| 4901 | |
| 4902 | if test -z "$BUILD_CXX"; then |
| 4903 | # Extract the first word of "c++", so it can be a program name with args. |
| 4904 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4905 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4907 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4909 | else |
| 4910 | if test -n "$BUILD_CXX"; then |
| 4911 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4912 | else |
| 4913 | ac_prog_rejected=no |
| 4914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4915 | for as_dir in $PATH |
| 4916 | do |
| 4917 | IFS=$as_save_IFS |
| 4918 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4919 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4920 | 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] | 4921 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4922 | ac_prog_rejected=yes |
| 4923 | continue |
| 4924 | fi |
| 4925 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4926 | 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] | 4927 | break 2 |
| 4928 | fi |
| 4929 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4930 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4931 | IFS=$as_save_IFS |
| 4932 | |
| 4933 | if test $ac_prog_rejected = yes; then |
| 4934 | # We found a bogon in the path, so make sure we never use it. |
| 4935 | set dummy $ac_cv_prog_BUILD_CXX |
| 4936 | shift |
| 4937 | if test $# != 0; then |
| 4938 | # We chose a different compiler from the bogus one. |
| 4939 | # However, it has the same basename, so the bogon will be chosen |
| 4940 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4941 | shift |
| 4942 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4943 | fi |
| 4944 | fi |
| 4945 | fi |
| 4946 | fi |
| 4947 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4948 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4949 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4950 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4951 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4952 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4953 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4954 | fi |
| 4955 | |
| 4956 | |
| 4957 | fi |
| 4958 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4959 | else |
| 4960 | LLVM_CROSS_COMPILING=0 |
| 4961 | |
| 4962 | fi |
| 4963 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4964 | 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] | 4965 | cvsbuild="yes" |
| 4966 | optimize="no" |
| 4967 | CVSBUILD=CVSBUILD=1 |
| 4968 | |
| 4969 | else |
| 4970 | cvsbuild="no" |
| 4971 | optimize="yes" |
| 4972 | fi |
| 4973 | |
| 4974 | |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 4975 | # Check whether --enable-libcpp was given. |
| 4976 | if test "${enable_libcpp+set}" = set; then |
| 4977 | enableval=$enable_libcpp; |
| 4978 | else |
| 4979 | enableval=default |
| 4980 | fi |
| 4981 | |
| 4982 | case "$enableval" in |
| 4983 | yes) ENABLE_LIBCPP=1 |
| 4984 | ;; |
| 4985 | no) ENABLE_LIBCPP=0 |
| 4986 | ;; |
| 4987 | default) ENABLE_LIBCPP=0 |
| 4988 | ;; |
| 4989 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 |
| 4990 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} |
| 4991 | { (exit 1); exit 1; }; } ;; |
| 4992 | esac |
| 4993 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4994 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4995 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4996 | enableval=$enable_optimized; |
| 4997 | else |
| 4998 | enableval=$optimize |
| 4999 | fi |
| 5000 | |
| 5001 | if test ${enableval} = "no" ; then |
| 5002 | ENABLE_OPTIMIZED= |
| 5003 | |
| 5004 | else |
| 5005 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 5006 | |
| 5007 | fi |
| 5008 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5009 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5010 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5011 | enableval=$enable_profiling; |
| 5012 | else |
| 5013 | enableval="no" |
| 5014 | fi |
| 5015 | |
| 5016 | if test ${enableval} = "no" ; then |
| 5017 | ENABLE_PROFILING= |
| 5018 | |
| 5019 | else |
| 5020 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 5021 | |
| 5022 | fi |
| 5023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5024 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5025 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5026 | enableval=$enable_assertions; |
| 5027 | else |
| 5028 | enableval="yes" |
| 5029 | fi |
| 5030 | |
| 5031 | if test ${enableval} = "yes" ; then |
| 5032 | DISABLE_ASSERTIONS= |
| 5033 | |
| 5034 | else |
| 5035 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 5036 | |
| 5037 | fi |
| 5038 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5039 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5040 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5041 | enableval=$enable_expensive_checks; |
| 5042 | else |
| 5043 | enableval="no" |
| 5044 | fi |
| 5045 | |
| 5046 | if test ${enableval} = "yes" ; then |
| 5047 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 5048 | |
| 5049 | EXPENSIVE_CHECKS=yes |
| 5050 | |
| 5051 | else |
| 5052 | ENABLE_EXPENSIVE_CHECKS= |
| 5053 | |
| 5054 | EXPENSIVE_CHECKS=no |
| 5055 | |
| 5056 | fi |
| 5057 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5058 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5059 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5060 | enableval=$enable_debug_runtime; |
| 5061 | else |
| 5062 | enableval=no |
| 5063 | fi |
| 5064 | |
| 5065 | if test ${enableval} = "no" ; then |
| 5066 | DEBUG_RUNTIME= |
| 5067 | |
| 5068 | else |
| 5069 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 5070 | |
| 5071 | fi |
| 5072 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5073 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5074 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5075 | enableval=$enable_debug_symbols; |
| 5076 | else |
| 5077 | enableval=no |
| 5078 | fi |
| 5079 | |
| 5080 | if test ${enableval} = "no" ; then |
| 5081 | DEBUG_SYMBOLS= |
| 5082 | |
| 5083 | else |
| 5084 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 5085 | |
| 5086 | fi |
| 5087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5088 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5089 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5090 | enableval=$enable_jit; |
| 5091 | else |
| 5092 | enableval=default |
| 5093 | fi |
| 5094 | |
| 5095 | if test ${enableval} = "no" |
| 5096 | then |
| 5097 | JIT= |
| 5098 | |
| 5099 | else |
| 5100 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5101 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5102 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5103 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5104 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5105 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5106 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5107 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5108 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5109 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5110 | ;; |
Bruno Cardoso Lopes | dca6cdd | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5111 | Mips) TARGET_HAS_JIT=1 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5112 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5113 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5114 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5115 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5116 | ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5117 | Hexagon) TARGET_HAS_JIT=0 |
| 5118 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5119 | MBlaze) TARGET_HAS_JIT=0 |
| 5120 | ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5121 | PTX) TARGET_HAS_JIT=0 |
| 5122 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5123 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5124 | ;; |
| 5125 | esac |
| 5126 | fi |
| 5127 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5128 | # Check whether --enable-docs was given. |
| 5129 | if test "${enable_docs+set}" = set; then |
| 5130 | enableval=$enable_docs; |
| 5131 | else |
| 5132 | enableval=default |
| 5133 | fi |
| 5134 | |
| 5135 | case "$enableval" in |
| 5136 | yes) ENABLE_DOCS=1 |
| 5137 | ;; |
| 5138 | no) ENABLE_DOCS=0 |
| 5139 | ;; |
| 5140 | default) ENABLE_DOCS=1 |
| 5141 | ;; |
| 5142 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 5143 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 5144 | { (exit 1); exit 1; }; } ;; |
| 5145 | esac |
| 5146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5147 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5148 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5149 | enableval=$enable_doxygen; |
| 5150 | else |
| 5151 | enableval=default |
| 5152 | fi |
| 5153 | |
| 5154 | case "$enableval" in |
| 5155 | yes) ENABLE_DOXYGEN=1 |
| 5156 | ;; |
| 5157 | no) ENABLE_DOXYGEN=0 |
| 5158 | ;; |
| 5159 | default) ENABLE_DOXYGEN=0 |
| 5160 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5161 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 5162 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 5163 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5164 | esac |
| 5165 | |
| 5166 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5167 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5168 | enableval=$enable_threads; |
| 5169 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5170 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5171 | fi |
| 5172 | |
| 5173 | case "$enableval" in |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5174 | yes) LLVM_ENABLE_THREADS=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5175 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5176 | no) LLVM_ENABLE_THREADS=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5177 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5178 | default) LLVM_ENABLE_THREADS=1 |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5179 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5180 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5181 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5182 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5183 | esac |
| 5184 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5185 | cat >>confdefs.h <<_ACEOF |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5186 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5187 | _ACEOF |
| 5188 | |
| 5189 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5190 | # Check whether --enable-pthreads was given. |
| 5191 | if test "${enable_pthreads+set}" = set; then |
| 5192 | enableval=$enable_pthreads; |
| 5193 | else |
| 5194 | enableval=default |
| 5195 | fi |
| 5196 | |
| 5197 | case "$enableval" in |
| 5198 | yes) ENABLE_PTHREADS=1 |
| 5199 | ;; |
| 5200 | no) ENABLE_PTHREADS=0 |
| 5201 | ;; |
| 5202 | default) ENABLE_PTHREADS=1 |
| 5203 | ;; |
| 5204 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 5205 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 5206 | { (exit 1); exit 1; }; } ;; |
| 5207 | esac |
| 5208 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5209 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5210 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5211 | enableval=$enable_pic; |
| 5212 | else |
| 5213 | enableval=default |
| 5214 | fi |
| 5215 | |
| 5216 | case "$enableval" in |
| 5217 | yes) ENABLE_PIC=1 |
| 5218 | ;; |
| 5219 | no) ENABLE_PIC=0 |
| 5220 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5221 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5222 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5223 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5224 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5225 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5226 | esac |
| 5227 | |
| 5228 | cat >>confdefs.h <<_ACEOF |
| 5229 | #define ENABLE_PIC $ENABLE_PIC |
| 5230 | _ACEOF |
| 5231 | |
| 5232 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5233 | # Check whether --enable-shared was given. |
| 5234 | if test "${enable_shared+set}" = set; then |
| 5235 | enableval=$enable_shared; |
| 5236 | else |
| 5237 | enableval=default |
| 5238 | fi |
| 5239 | |
| 5240 | case "$enableval" in |
| 5241 | yes) ENABLE_SHARED=1 |
| 5242 | ;; |
| 5243 | no) ENABLE_SHARED=0 |
| 5244 | ;; |
| 5245 | default) ENABLE_SHARED=0 |
| 5246 | ;; |
| 5247 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5248 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5249 | { (exit 1); exit 1; }; } ;; |
| 5250 | esac |
| 5251 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5252 | # Check whether --enable-embed-stdcxx was given. |
| 5253 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5254 | enableval=$enable_embed_stdcxx; |
| 5255 | else |
| 5256 | enableval=default |
| 5257 | fi |
| 5258 | |
| 5259 | case "$enableval" in |
| 5260 | yes) ENABLE_EMBED_STDCXX=1 |
| 5261 | ;; |
| 5262 | no) ENABLE_EMBED_STDCXX=0 |
| 5263 | ;; |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5264 | default) ENABLE_EMBED_STDCXX=0 |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5265 | ;; |
| 5266 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5267 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5268 | { (exit 1); exit 1; }; } ;; |
| 5269 | esac |
| 5270 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5271 | # Check whether --enable-timestamps was given. |
| 5272 | if test "${enable_timestamps+set}" = set; then |
| 5273 | enableval=$enable_timestamps; |
| 5274 | else |
| 5275 | enableval=default |
| 5276 | fi |
| 5277 | |
| 5278 | case "$enableval" in |
| 5279 | yes) ENABLE_TIMESTAMPS=1 |
| 5280 | ;; |
| 5281 | no) ENABLE_TIMESTAMPS=0 |
| 5282 | ;; |
| 5283 | default) ENABLE_TIMESTAMPS=1 |
| 5284 | ;; |
| 5285 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5286 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5287 | { (exit 1); exit 1; }; } ;; |
| 5288 | esac |
| 5289 | |
| 5290 | cat >>confdefs.h <<_ACEOF |
| 5291 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5292 | _ACEOF |
| 5293 | |
| 5294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5295 | TARGETS_TO_BUILD="" |
| 5296 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5297 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5298 | enableval=$enable_targets; |
| 5299 | else |
| 5300 | enableval=all |
| 5301 | fi |
| 5302 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5303 | if test "$enableval" = host-only ; then |
| 5304 | enableval=host |
| 5305 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5306 | case "$enableval" in |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5307 | 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] | 5308 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5309 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5310 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5311 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5312 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5313 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5314 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5315 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 5316 | mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5317 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5318 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5319 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5320 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5321 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5322 | hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5323 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5324 | ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5325 | host) case "$llvm_cv_target_arch" in |
| 5326 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5327 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5328 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5329 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5330 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5331 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5332 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5333 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5334 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5335 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5336 | Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Nick Lewycky | de2e4ac | 2010-09-07 18:14:42 +0000 | [diff] [blame] | 5337 | PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5338 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5339 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5340 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5341 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5342 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5343 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5344 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5345 | esac |
| 5346 | done |
| 5347 | ;; |
| 5348 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5349 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5350 | |
| 5351 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5352 | for a_target in $TARGETS_TO_BUILD; do |
| 5353 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5354 | |
| 5355 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5356 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5357 | _ACEOF |
| 5358 | |
| 5359 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5360 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5361 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5362 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5363 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5364 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5365 | fi |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5366 | |
| 5367 | cat >>confdefs.h <<_ACEOF |
| 5368 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5369 | _ACEOF |
| 5370 | |
| 5371 | |
| 5372 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5373 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5374 | _ACEOF |
| 5375 | |
| 5376 | |
| 5377 | cat >>confdefs.h <<_ACEOF |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5378 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC |
Evan Cheng | 4396613 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5379 | _ACEOF |
| 5380 | |
| 5381 | |
| 5382 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5383 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5384 | _ACEOF |
| 5385 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5386 | 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] | 5387 | |
| 5388 | cat >>confdefs.h <<_ACEOF |
| 5389 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5390 | _ACEOF |
| 5391 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5392 | fi |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5393 | fi |
| 5394 | done |
| 5395 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5396 | LLVM_ENUM_TARGETS="" |
| 5397 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5398 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5399 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5400 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5401 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | e15f2e1 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5402 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 7ac1609 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5403 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5404 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5405 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5406 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5407 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5408 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5409 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5410 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5411 | done |
| 5412 | |
| 5413 | |
| 5414 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5415 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5416 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5417 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5418 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5419 | enableval=$enable_cbe_printf_a; |
| 5420 | else |
| 5421 | enableval=default |
| 5422 | fi |
| 5423 | |
| 5424 | case "$enableval" in |
| 5425 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5426 | ;; |
| 5427 | no) ENABLE_CBE_PRINTF_A=0 |
| 5428 | ;; |
| 5429 | default) ENABLE_CBE_PRINTF_A=1 |
| 5430 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5431 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5432 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5433 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5434 | esac |
| 5435 | |
| 5436 | cat >>confdefs.h <<_ACEOF |
| 5437 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5438 | _ACEOF |
| 5439 | |
| 5440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5441 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5442 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5443 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5444 | withval=$with_optimize_option; |
| 5445 | else |
| 5446 | withval=default |
| 5447 | fi |
| 5448 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5449 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5450 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5451 | case "$withval" in |
| 5452 | default) |
| 5453 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5454 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5455 | MingW) optimize_option=-O2 ;; |
| 5456 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5457 | esac ;; |
| 5458 | *) optimize_option="$withval" ;; |
| 5459 | esac |
| 5460 | OPTIMIZE_OPTION=$optimize_option |
| 5461 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5462 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5463 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5464 | |
| 5465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5466 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5467 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5468 | withval=$with_extra_options; |
| 5469 | else |
| 5470 | withval=default |
| 5471 | fi |
| 5472 | |
| 5473 | case "$withval" in |
| 5474 | default) EXTRA_OPTIONS= ;; |
| 5475 | *) EXTRA_OPTIONS=$withval ;; |
| 5476 | esac |
| 5477 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5478 | |
| 5479 | |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5480 | |
| 5481 | # Check whether --with-extra-ld-options was given. |
| 5482 | if test "${with_extra_ld_options+set}" = set; then |
| 5483 | withval=$with_extra_ld_options; |
| 5484 | else |
| 5485 | withval=default |
| 5486 | fi |
| 5487 | |
| 5488 | case "$withval" in |
| 5489 | default) EXTRA_LD_OPTIONS= ;; |
| 5490 | *) EXTRA_LD_OPTIONS=$withval ;; |
| 5491 | esac |
| 5492 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS |
| 5493 | |
| 5494 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5495 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5496 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5497 | enableval=$enable_bindings; |
| 5498 | else |
| 5499 | enableval=default |
| 5500 | fi |
| 5501 | |
| 5502 | BINDINGS_TO_BUILD="" |
| 5503 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5504 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5505 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5506 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5507 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5508 | case "$a_binding" in |
| 5509 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5510 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5511 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5512 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5513 | esac |
| 5514 | done |
| 5515 | ;; |
| 5516 | esac |
| 5517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5518 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5519 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5520 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5521 | withval=$with_ocaml_libdir; |
| 5522 | else |
| 5523 | withval=auto |
| 5524 | fi |
| 5525 | |
| 5526 | case "$withval" in |
| 5527 | auto) with_ocaml_libdir="$withval" ;; |
| 5528 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5529 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5530 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5531 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5532 | esac |
| 5533 | |
| 5534 | |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5535 | # Check whether --with-clang-srcdir was given. |
| 5536 | if test "${with_clang_srcdir+set}" = set; then |
| 5537 | withval=$with_clang_srcdir; |
| 5538 | else |
| 5539 | withval="-" |
| 5540 | fi |
| 5541 | |
| 5542 | case "$withval" in |
Eric Christopher | ac89865 | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 5543 | -) clang_src_root="" ;; |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5544 | /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; |
| 5545 | *) clang_src_root="$ac_pwd/$withval" ;; |
| 5546 | esac |
| 5547 | CLANG_SRC_ROOT=$clang_src_root |
| 5548 | |
| 5549 | |
| 5550 | |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5551 | # Check whether --with-clang-resource-dir was given. |
| 5552 | if test "${with_clang_resource_dir+set}" = set; then |
| 5553 | withval=$with_clang_resource_dir; |
| 5554 | else |
| 5555 | withval="" |
| 5556 | fi |
| 5557 | |
| 5558 | |
| 5559 | cat >>confdefs.h <<_ACEOF |
| 5560 | #define CLANG_RESOURCE_DIR "$withval" |
| 5561 | _ACEOF |
| 5562 | |
| 5563 | |
| 5564 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5565 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5566 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5567 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5568 | else |
| 5569 | withval="" |
| 5570 | fi |
| 5571 | |
| 5572 | |
| 5573 | cat >>confdefs.h <<_ACEOF |
| 5574 | #define C_INCLUDE_DIRS "$withval" |
| 5575 | _ACEOF |
| 5576 | |
| 5577 | |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5578 | # Clang normally uses the system c++ headers and libraries. With this option, |
| 5579 | # clang will use the ones provided by a gcc installation instead. This option should |
| 5580 | # 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] | 5581 | |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5582 | # Check whether --with-gcc-toolchain was given. |
| 5583 | if test "${with_gcc_toolchain+set}" = set; then |
| 5584 | withval=$with_gcc_toolchain; |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5585 | else |
| 5586 | withval="" |
| 5587 | fi |
| 5588 | |
| 5589 | |
| 5590 | cat >>confdefs.h <<_ACEOF |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5591 | #define GCC_INSTALL_PREFIX "$withval" |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5592 | _ACEOF |
| 5593 | |
| 5594 | |
| 5595 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5596 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5597 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5598 | withval=$with_binutils_include; |
| 5599 | else |
| 5600 | withval=default |
| 5601 | fi |
| 5602 | |
| 5603 | case "$withval" in |
| 5604 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5605 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5606 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5607 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5608 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5609 | esac |
| 5610 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5611 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5612 | |
| 5613 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5614 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5615 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5616 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5617 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5618 | fi |
| 5619 | fi |
| 5620 | |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5621 | |
| 5622 | # Check whether --with-bug-report-url was given. |
| 5623 | if test "${with_bug_report_url+set}" = set; then |
| 5624 | withval=$with_bug_report_url; |
| 5625 | else |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5626 | withval="http://llvm.org/bugs/" |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5627 | fi |
| 5628 | |
| 5629 | |
| 5630 | cat >>confdefs.h <<_ACEOF |
| 5631 | #define BUG_REPORT_URL "$withval" |
| 5632 | _ACEOF |
| 5633 | |
| 5634 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5635 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5636 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5637 | enableval=$enable_libffi; case "$enableval" in |
| 5638 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5639 | no) llvm_cv_enable_libffi="no" ;; |
| 5640 | *) { { 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] | 5641 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5642 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5643 | esac |
| 5644 | else |
| 5645 | llvm_cv_enable_libffi=no |
| 5646 | fi |
| 5647 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5648 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5649 | |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 5650 | # Check whether --with-internal-prefix was given. |
| 5651 | if test "${with_internal_prefix+set}" = set; then |
| 5652 | withval=$with_internal_prefix; |
| 5653 | else |
| 5654 | withval="" |
| 5655 | fi |
| 5656 | |
| 5657 | INTERNAL_PREFIX=$withval |
| 5658 | |
| 5659 | |
| 5660 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5661 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 5662 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 5663 | if test "${lt_cv_path_NM+set}" = set; then |
| 5664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5665 | else |
| 5666 | if test -n "$NM"; then |
| 5667 | # Let the user override the test. |
| 5668 | lt_cv_path_NM="$NM" |
| 5669 | else |
| 5670 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5671 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5672 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5673 | fi |
| 5674 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5675 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5676 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5677 | IFS="$lt_save_ifs" |
| 5678 | test -z "$ac_dir" && ac_dir=. |
| 5679 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5680 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5681 | # Check to see if the nm accepts a BSD-compat flag. |
| 5682 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5683 | # nm: unknown option "B" ignored |
| 5684 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5685 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5686 | */dev/null* | *'Invalid file or object type'*) |
| 5687 | lt_cv_path_NM="$tmp_nm -B" |
| 5688 | break |
| 5689 | ;; |
| 5690 | *) |
| 5691 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5692 | */dev/null*) |
| 5693 | lt_cv_path_NM="$tmp_nm -p" |
| 5694 | break |
| 5695 | ;; |
| 5696 | *) |
| 5697 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5698 | continue # so that we can try to find one that supports BSD flags |
| 5699 | ;; |
| 5700 | esac |
| 5701 | ;; |
| 5702 | esac |
| 5703 | fi |
| 5704 | done |
| 5705 | IFS="$lt_save_ifs" |
| 5706 | done |
| 5707 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5708 | fi |
| 5709 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5710 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 5711 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5712 | NM="$lt_cv_path_NM" |
| 5713 | |
| 5714 | |
| 5715 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5716 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 5717 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 5718 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5720 | else |
| 5721 | llvm_cv_gnu_make_command='' |
| 5722 | for a in "$MAKE" make gmake gnumake ; do |
| 5723 | if test -z "$a" ; then continue ; fi ; |
| 5724 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5725 | then |
| 5726 | llvm_cv_gnu_make_command=$a ; |
| 5727 | break; |
| 5728 | fi |
| 5729 | done |
| 5730 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5731 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 5732 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5733 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 5734 | ifGNUmake='' ; |
| 5735 | else |
| 5736 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5737 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 5738 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5739 | fi |
| 5740 | |
| 5741 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5742 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5743 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5744 | LN_S=$as_ln_s |
| 5745 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5746 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5747 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5748 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5749 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5750 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5751 | fi |
| 5752 | |
| 5753 | # Extract the first word of "cmp", so it can be a program name with args. |
| 5754 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5755 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5757 | if test "${ac_cv_path_CMP+set}" = set; then |
| 5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5759 | else |
| 5760 | case $CMP in |
| 5761 | [\\/]* | ?:[\\/]*) |
| 5762 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 5763 | ;; |
| 5764 | *) |
| 5765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5766 | for as_dir in $PATH |
| 5767 | do |
| 5768 | IFS=$as_save_IFS |
| 5769 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5770 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5771 | 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] | 5772 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5773 | 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] | 5774 | break 2 |
| 5775 | fi |
| 5776 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5777 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5778 | IFS=$as_save_IFS |
| 5779 | |
| 5780 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 5781 | ;; |
| 5782 | esac |
| 5783 | fi |
| 5784 | CMP=$ac_cv_path_CMP |
| 5785 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5786 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 5787 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5788 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5789 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5790 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5791 | fi |
| 5792 | |
| 5793 | |
| 5794 | # Extract the first word of "cp", so it can be a program name with args. |
| 5795 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5796 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5798 | if test "${ac_cv_path_CP+set}" = set; then |
| 5799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5800 | else |
| 5801 | case $CP in |
| 5802 | [\\/]* | ?:[\\/]*) |
| 5803 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 5804 | ;; |
| 5805 | *) |
| 5806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5807 | for as_dir in $PATH |
| 5808 | do |
| 5809 | IFS=$as_save_IFS |
| 5810 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5812 | 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] | 5813 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5814 | 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] | 5815 | break 2 |
| 5816 | fi |
| 5817 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5818 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5819 | IFS=$as_save_IFS |
| 5820 | |
| 5821 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 5822 | ;; |
| 5823 | esac |
| 5824 | fi |
| 5825 | CP=$ac_cv_path_CP |
| 5826 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5827 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 5828 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5829 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5830 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5831 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5832 | fi |
| 5833 | |
| 5834 | |
| 5835 | # Extract the first word of "date", so it can be a program name with args. |
| 5836 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5837 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5839 | if test "${ac_cv_path_DATE+set}" = set; then |
| 5840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5841 | else |
| 5842 | case $DATE in |
| 5843 | [\\/]* | ?:[\\/]*) |
| 5844 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 5845 | ;; |
| 5846 | *) |
| 5847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5848 | for as_dir in $PATH |
| 5849 | do |
| 5850 | IFS=$as_save_IFS |
| 5851 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5852 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5853 | 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] | 5854 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5855 | 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] | 5856 | break 2 |
| 5857 | fi |
| 5858 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5859 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5860 | IFS=$as_save_IFS |
| 5861 | |
| 5862 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 5863 | ;; |
| 5864 | esac |
| 5865 | fi |
| 5866 | DATE=$ac_cv_path_DATE |
| 5867 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5868 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 5869 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5870 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5871 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5872 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5873 | fi |
| 5874 | |
| 5875 | |
| 5876 | # Extract the first word of "find", so it can be a program name with args. |
| 5877 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5878 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5880 | if test "${ac_cv_path_FIND+set}" = set; then |
| 5881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5882 | else |
| 5883 | case $FIND in |
| 5884 | [\\/]* | ?:[\\/]*) |
| 5885 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 5886 | ;; |
| 5887 | *) |
| 5888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5889 | for as_dir in $PATH |
| 5890 | do |
| 5891 | IFS=$as_save_IFS |
| 5892 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5893 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5894 | 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] | 5895 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5896 | 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] | 5897 | break 2 |
| 5898 | fi |
| 5899 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5900 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5901 | IFS=$as_save_IFS |
| 5902 | |
| 5903 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 5904 | ;; |
| 5905 | esac |
| 5906 | fi |
| 5907 | FIND=$ac_cv_path_FIND |
| 5908 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5909 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 5910 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5911 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5913 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5914 | fi |
| 5915 | |
| 5916 | |
| 5917 | # Extract the first word of "grep", so it can be a program name with args. |
| 5918 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5919 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5921 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5923 | else |
| 5924 | case $GREP in |
| 5925 | [\\/]* | ?:[\\/]*) |
| 5926 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 5927 | ;; |
| 5928 | *) |
| 5929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5930 | for as_dir in $PATH |
| 5931 | do |
| 5932 | IFS=$as_save_IFS |
| 5933 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5934 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5935 | 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] | 5936 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5937 | 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] | 5938 | break 2 |
| 5939 | fi |
| 5940 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5941 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5942 | IFS=$as_save_IFS |
| 5943 | |
| 5944 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 5945 | ;; |
| 5946 | esac |
| 5947 | fi |
| 5948 | GREP=$ac_cv_path_GREP |
| 5949 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5950 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 5951 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5952 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5953 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5954 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5955 | fi |
| 5956 | |
| 5957 | |
| 5958 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 5959 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5960 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5962 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 5963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5964 | else |
| 5965 | case $MKDIR in |
| 5966 | [\\/]* | ?:[\\/]*) |
| 5967 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 5968 | ;; |
| 5969 | *) |
| 5970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5971 | for as_dir in $PATH |
| 5972 | do |
| 5973 | IFS=$as_save_IFS |
| 5974 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5976 | 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] | 5977 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5978 | 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] | 5979 | break 2 |
| 5980 | fi |
| 5981 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5982 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5983 | IFS=$as_save_IFS |
| 5984 | |
| 5985 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 5986 | ;; |
| 5987 | esac |
| 5988 | fi |
| 5989 | MKDIR=$ac_cv_path_MKDIR |
| 5990 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5991 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 5992 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5993 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5994 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5995 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5996 | fi |
| 5997 | |
| 5998 | |
| 5999 | # Extract the first word of "mv", so it can be a program name with args. |
| 6000 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6001 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6003 | if test "${ac_cv_path_MV+set}" = set; then |
| 6004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6005 | else |
| 6006 | case $MV in |
| 6007 | [\\/]* | ?:[\\/]*) |
| 6008 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6009 | ;; |
| 6010 | *) |
| 6011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6012 | for as_dir in $PATH |
| 6013 | do |
| 6014 | IFS=$as_save_IFS |
| 6015 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6016 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6017 | 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] | 6018 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6019 | 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] | 6020 | break 2 |
| 6021 | fi |
| 6022 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6023 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6024 | IFS=$as_save_IFS |
| 6025 | |
| 6026 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6027 | ;; |
| 6028 | esac |
| 6029 | fi |
| 6030 | MV=$ac_cv_path_MV |
| 6031 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6032 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6033 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6034 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6035 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6036 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6037 | fi |
| 6038 | |
| 6039 | |
| 6040 | if test -n "$ac_tool_prefix"; then |
| 6041 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6042 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6043 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6045 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6047 | else |
| 6048 | if test -n "$RANLIB"; then |
| 6049 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6050 | else |
| 6051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6052 | for as_dir in $PATH |
| 6053 | do |
| 6054 | IFS=$as_save_IFS |
| 6055 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6056 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6057 | 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] | 6058 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6059 | 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] | 6060 | break 2 |
| 6061 | fi |
| 6062 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6063 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6064 | IFS=$as_save_IFS |
| 6065 | |
| 6066 | fi |
| 6067 | fi |
| 6068 | RANLIB=$ac_cv_prog_RANLIB |
| 6069 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6070 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6071 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6072 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6073 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6074 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6075 | fi |
| 6076 | |
| 6077 | |
| 6078 | fi |
| 6079 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6080 | ac_ct_RANLIB=$RANLIB |
| 6081 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6082 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6083 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6085 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6087 | else |
| 6088 | if test -n "$ac_ct_RANLIB"; then |
| 6089 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6090 | else |
| 6091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6092 | for as_dir in $PATH |
| 6093 | do |
| 6094 | IFS=$as_save_IFS |
| 6095 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6096 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6097 | 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] | 6098 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6099 | 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] | 6100 | break 2 |
| 6101 | fi |
| 6102 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6103 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6104 | IFS=$as_save_IFS |
| 6105 | |
| 6106 | fi |
| 6107 | fi |
| 6108 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6109 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6110 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6111 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6112 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6113 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6114 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6115 | fi |
| 6116 | |
| 6117 | if test "x$ac_ct_RANLIB" = x; then |
| 6118 | RANLIB=":" |
| 6119 | else |
| 6120 | case $cross_compiling:$ac_tool_warned in |
| 6121 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6122 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6123 | whose name does not start with the host triplet. If you think this |
| 6124 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6125 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6126 | whose name does not start with the host triplet. If you think this |
| 6127 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6128 | ac_tool_warned=yes ;; |
| 6129 | esac |
| 6130 | RANLIB=$ac_ct_RANLIB |
| 6131 | fi |
| 6132 | else |
| 6133 | RANLIB="$ac_cv_prog_RANLIB" |
| 6134 | fi |
| 6135 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6136 | if test -n "$ac_tool_prefix"; then |
| 6137 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6138 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6139 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6141 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6143 | else |
| 6144 | if test -n "$AR"; then |
| 6145 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6146 | else |
| 6147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6148 | for as_dir in $PATH |
| 6149 | do |
| 6150 | IFS=$as_save_IFS |
| 6151 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6152 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6153 | 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] | 6154 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6155 | 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] | 6156 | break 2 |
| 6157 | fi |
| 6158 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6159 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6160 | IFS=$as_save_IFS |
| 6161 | |
| 6162 | fi |
| 6163 | fi |
| 6164 | AR=$ac_cv_prog_AR |
| 6165 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6166 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6167 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6168 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6169 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6170 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6171 | fi |
| 6172 | |
| 6173 | |
| 6174 | fi |
| 6175 | if test -z "$ac_cv_prog_AR"; then |
| 6176 | ac_ct_AR=$AR |
| 6177 | # Extract the first word of "ar", so it can be a program name with args. |
| 6178 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6181 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6183 | else |
| 6184 | if test -n "$ac_ct_AR"; then |
| 6185 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6186 | else |
| 6187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6188 | for as_dir in $PATH |
| 6189 | do |
| 6190 | IFS=$as_save_IFS |
| 6191 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6192 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6193 | 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] | 6194 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6195 | 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] | 6196 | break 2 |
| 6197 | fi |
| 6198 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6199 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6200 | IFS=$as_save_IFS |
| 6201 | |
| 6202 | fi |
| 6203 | fi |
| 6204 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6205 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6206 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6207 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6208 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6209 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6210 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6211 | fi |
| 6212 | |
| 6213 | if test "x$ac_ct_AR" = x; then |
| 6214 | AR="false" |
| 6215 | else |
| 6216 | case $cross_compiling:$ac_tool_warned in |
| 6217 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6218 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6219 | whose name does not start with the host triplet. If you think this |
| 6220 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6221 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6222 | whose name does not start with the host triplet. If you think this |
| 6223 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6224 | ac_tool_warned=yes ;; |
| 6225 | esac |
| 6226 | AR=$ac_ct_AR |
| 6227 | fi |
| 6228 | else |
| 6229 | AR="$ac_cv_prog_AR" |
| 6230 | fi |
| 6231 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6232 | # Extract the first word of "rm", so it can be a program name with args. |
| 6233 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6236 | if test "${ac_cv_path_RM+set}" = set; then |
| 6237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6238 | else |
| 6239 | case $RM in |
| 6240 | [\\/]* | ?:[\\/]*) |
| 6241 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6242 | ;; |
| 6243 | *) |
| 6244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6245 | for as_dir in $PATH |
| 6246 | do |
| 6247 | IFS=$as_save_IFS |
| 6248 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6249 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6250 | 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] | 6251 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6252 | 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] | 6253 | break 2 |
| 6254 | fi |
| 6255 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6256 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6257 | IFS=$as_save_IFS |
| 6258 | |
| 6259 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6260 | ;; |
| 6261 | esac |
| 6262 | fi |
| 6263 | RM=$ac_cv_path_RM |
| 6264 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6265 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6266 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6267 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6269 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6270 | fi |
| 6271 | |
| 6272 | |
| 6273 | # Extract the first word of "sed", so it can be a program name with args. |
| 6274 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6277 | if test "${ac_cv_path_SED+set}" = set; then |
| 6278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6279 | else |
| 6280 | case $SED in |
| 6281 | [\\/]* | ?:[\\/]*) |
| 6282 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6283 | ;; |
| 6284 | *) |
| 6285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6286 | for as_dir in $PATH |
| 6287 | do |
| 6288 | IFS=$as_save_IFS |
| 6289 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6290 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6291 | 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] | 6292 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6293 | 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] | 6294 | break 2 |
| 6295 | fi |
| 6296 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6297 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6298 | IFS=$as_save_IFS |
| 6299 | |
| 6300 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6301 | ;; |
| 6302 | esac |
| 6303 | fi |
| 6304 | SED=$ac_cv_path_SED |
| 6305 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6306 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6307 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6308 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6309 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6310 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6311 | fi |
| 6312 | |
| 6313 | |
| 6314 | # Extract the first word of "tar", so it can be a program name with args. |
| 6315 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6318 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6320 | else |
| 6321 | case $TAR in |
| 6322 | [\\/]* | ?:[\\/]*) |
| 6323 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6324 | ;; |
| 6325 | *) |
| 6326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6327 | for as_dir in $PATH |
| 6328 | do |
| 6329 | IFS=$as_save_IFS |
| 6330 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6331 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6332 | 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] | 6333 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6334 | 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] | 6335 | break 2 |
| 6336 | fi |
| 6337 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6338 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6339 | IFS=$as_save_IFS |
| 6340 | |
| 6341 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6342 | ;; |
| 6343 | esac |
| 6344 | fi |
| 6345 | TAR=$ac_cv_path_TAR |
| 6346 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6347 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6348 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6349 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6350 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6351 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6352 | fi |
| 6353 | |
| 6354 | |
| 6355 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6356 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6357 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6359 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6361 | else |
| 6362 | case $BINPWD in |
| 6363 | [\\/]* | ?:[\\/]*) |
| 6364 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6365 | ;; |
| 6366 | *) |
| 6367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6368 | for as_dir in $PATH |
| 6369 | do |
| 6370 | IFS=$as_save_IFS |
| 6371 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6372 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6373 | 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] | 6374 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6375 | 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] | 6376 | break 2 |
| 6377 | fi |
| 6378 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6379 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6380 | IFS=$as_save_IFS |
| 6381 | |
| 6382 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6383 | ;; |
| 6384 | esac |
| 6385 | fi |
| 6386 | BINPWD=$ac_cv_path_BINPWD |
| 6387 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6388 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6389 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6390 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6391 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6392 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6393 | fi |
| 6394 | |
| 6395 | |
| 6396 | |
| 6397 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6398 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6399 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6401 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6403 | else |
| 6404 | case $GRAPHVIZ in |
| 6405 | [\\/]* | ?:[\\/]*) |
| 6406 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6407 | ;; |
| 6408 | *) |
| 6409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6410 | for as_dir in $PATH |
| 6411 | do |
| 6412 | IFS=$as_save_IFS |
| 6413 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6414 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6415 | 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] | 6416 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6417 | 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] | 6418 | break 2 |
| 6419 | fi |
| 6420 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6421 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6422 | IFS=$as_save_IFS |
| 6423 | |
| 6424 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6425 | ;; |
| 6426 | esac |
| 6427 | fi |
| 6428 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6429 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6430 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 6431 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6432 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6433 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6434 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6435 | fi |
| 6436 | |
| 6437 | |
| 6438 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6439 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6440 | cat >>confdefs.h <<\_ACEOF |
| 6441 | #define HAVE_GRAPHVIZ 1 |
| 6442 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6443 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6444 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6445 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6446 | fi |
| 6447 | |
| 6448 | cat >>confdefs.h <<_ACEOF |
| 6449 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6450 | _ACEOF |
| 6451 | |
| 6452 | fi |
| 6453 | # Extract the first word of "dot", so it can be a program name with args. |
| 6454 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6455 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6457 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6459 | else |
| 6460 | case $DOT in |
| 6461 | [\\/]* | ?:[\\/]*) |
| 6462 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6463 | ;; |
| 6464 | *) |
| 6465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6466 | for as_dir in $PATH |
| 6467 | do |
| 6468 | IFS=$as_save_IFS |
| 6469 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6470 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6471 | 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] | 6472 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6473 | 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] | 6474 | break 2 |
| 6475 | fi |
| 6476 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6477 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6478 | IFS=$as_save_IFS |
| 6479 | |
| 6480 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6481 | ;; |
| 6482 | esac |
| 6483 | fi |
| 6484 | DOT=$ac_cv_path_DOT |
| 6485 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6486 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6487 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6488 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6489 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6490 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6491 | fi |
| 6492 | |
| 6493 | |
| 6494 | if test "$DOT" != "echo dot" ; then |
| 6495 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6496 | cat >>confdefs.h <<\_ACEOF |
| 6497 | #define HAVE_DOT 1 |
| 6498 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6499 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6500 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6501 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6502 | fi |
| 6503 | |
| 6504 | cat >>confdefs.h <<_ACEOF |
| 6505 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6506 | _ACEOF |
| 6507 | |
| 6508 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6509 | # Extract the first word of "fdp", so it can be a program name with args. |
| 6510 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6511 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6513 | if test "${ac_cv_path_FDP+set}" = set; then |
| 6514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6515 | else |
| 6516 | case $FDP in |
| 6517 | [\\/]* | ?:[\\/]*) |
| 6518 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 6519 | ;; |
| 6520 | *) |
| 6521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6522 | for as_dir in $PATH |
| 6523 | do |
| 6524 | IFS=$as_save_IFS |
| 6525 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6526 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6527 | 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] | 6528 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6529 | 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] | 6530 | break 2 |
| 6531 | fi |
| 6532 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6533 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6534 | IFS=$as_save_IFS |
| 6535 | |
| 6536 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 6537 | ;; |
| 6538 | esac |
| 6539 | fi |
| 6540 | FDP=$ac_cv_path_FDP |
| 6541 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6542 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 6543 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6544 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6546 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6547 | fi |
| 6548 | |
| 6549 | |
| 6550 | if test "$FDP" != "echo fdp" ; then |
| 6551 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6552 | cat >>confdefs.h <<\_ACEOF |
| 6553 | #define HAVE_FDP 1 |
| 6554 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6555 | |
| 6556 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6557 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6558 | fi |
| 6559 | |
| 6560 | cat >>confdefs.h <<_ACEOF |
| 6561 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 6562 | _ACEOF |
| 6563 | |
| 6564 | fi |
| 6565 | # Extract the first word of "neato", so it can be a program name with args. |
| 6566 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6567 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6569 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 6570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6571 | else |
| 6572 | case $NEATO in |
| 6573 | [\\/]* | ?:[\\/]*) |
| 6574 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 6575 | ;; |
| 6576 | *) |
| 6577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6578 | for as_dir in $PATH |
| 6579 | do |
| 6580 | IFS=$as_save_IFS |
| 6581 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6582 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6583 | 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] | 6584 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6585 | 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] | 6586 | break 2 |
| 6587 | fi |
| 6588 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6589 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6590 | IFS=$as_save_IFS |
| 6591 | |
| 6592 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 6593 | ;; |
| 6594 | esac |
| 6595 | fi |
| 6596 | NEATO=$ac_cv_path_NEATO |
| 6597 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6598 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 6599 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6600 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6601 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6602 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6603 | fi |
| 6604 | |
| 6605 | |
| 6606 | if test "$NEATO" != "echo neato" ; then |
| 6607 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6608 | cat >>confdefs.h <<\_ACEOF |
| 6609 | #define HAVE_NEATO 1 |
| 6610 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6611 | |
| 6612 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6613 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6614 | fi |
| 6615 | |
| 6616 | cat >>confdefs.h <<_ACEOF |
| 6617 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 6618 | _ACEOF |
| 6619 | |
| 6620 | fi |
| 6621 | # Extract the first word of "twopi", so it can be a program name with args. |
| 6622 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6623 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6625 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6627 | else |
| 6628 | case $TWOPI in |
| 6629 | [\\/]* | ?:[\\/]*) |
| 6630 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 6631 | ;; |
| 6632 | *) |
| 6633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6634 | for as_dir in $PATH |
| 6635 | do |
| 6636 | IFS=$as_save_IFS |
| 6637 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6638 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6639 | 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] | 6640 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6641 | 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] | 6642 | break 2 |
| 6643 | fi |
| 6644 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6645 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6646 | IFS=$as_save_IFS |
| 6647 | |
| 6648 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 6649 | ;; |
| 6650 | esac |
| 6651 | fi |
| 6652 | TWOPI=$ac_cv_path_TWOPI |
| 6653 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6654 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 6655 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6656 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6657 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6658 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6659 | fi |
| 6660 | |
| 6661 | |
| 6662 | if test "$TWOPI" != "echo twopi" ; then |
| 6663 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6664 | cat >>confdefs.h <<\_ACEOF |
| 6665 | #define HAVE_TWOPI 1 |
| 6666 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6667 | |
| 6668 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6669 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6670 | fi |
| 6671 | |
| 6672 | cat >>confdefs.h <<_ACEOF |
| 6673 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 6674 | _ACEOF |
| 6675 | |
| 6676 | fi |
| 6677 | # Extract the first word of "circo", so it can be a program name with args. |
| 6678 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6679 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6681 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 6682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6683 | else |
| 6684 | case $CIRCO in |
| 6685 | [\\/]* | ?:[\\/]*) |
| 6686 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 6687 | ;; |
| 6688 | *) |
| 6689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6690 | for as_dir in $PATH |
| 6691 | do |
| 6692 | IFS=$as_save_IFS |
| 6693 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6694 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6695 | 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] | 6696 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6697 | 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] | 6698 | break 2 |
| 6699 | fi |
| 6700 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6701 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6702 | IFS=$as_save_IFS |
| 6703 | |
| 6704 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 6705 | ;; |
| 6706 | esac |
| 6707 | fi |
| 6708 | CIRCO=$ac_cv_path_CIRCO |
| 6709 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6710 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 6711 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6712 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6713 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6714 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6715 | fi |
| 6716 | |
| 6717 | |
| 6718 | if test "$CIRCO" != "echo circo" ; then |
| 6719 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6720 | cat >>confdefs.h <<\_ACEOF |
| 6721 | #define HAVE_CIRCO 1 |
| 6722 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6723 | |
| 6724 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6725 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6726 | fi |
| 6727 | |
| 6728 | cat >>confdefs.h <<_ACEOF |
| 6729 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 6730 | _ACEOF |
| 6731 | |
| 6732 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6733 | for ac_prog in gv gsview32 |
| 6734 | do |
| 6735 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6736 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6737 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6739 | if test "${ac_cv_path_GV+set}" = set; then |
| 6740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6741 | else |
| 6742 | case $GV in |
| 6743 | [\\/]* | ?:[\\/]*) |
| 6744 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6745 | ;; |
| 6746 | *) |
| 6747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6748 | for as_dir in $PATH |
| 6749 | do |
| 6750 | IFS=$as_save_IFS |
| 6751 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6753 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6754 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6755 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6756 | break 2 |
| 6757 | fi |
| 6758 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6759 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6760 | IFS=$as_save_IFS |
| 6761 | |
| 6762 | ;; |
| 6763 | esac |
| 6764 | fi |
| 6765 | GV=$ac_cv_path_GV |
| 6766 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6767 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 6768 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6769 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6770 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6771 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6772 | fi |
| 6773 | |
| 6774 | |
| 6775 | test -n "$GV" && break |
| 6776 | done |
| 6777 | test -n "$GV" || GV="echo gv" |
| 6778 | |
| 6779 | if test "$GV" != "echo gv" ; then |
| 6780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6781 | cat >>confdefs.h <<\_ACEOF |
| 6782 | #define HAVE_GV 1 |
| 6783 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6784 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6785 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6786 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6787 | fi |
| 6788 | |
| 6789 | cat >>confdefs.h <<_ACEOF |
| 6790 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 6791 | _ACEOF |
| 6792 | |
| 6793 | fi |
| 6794 | # Extract the first word of "dotty", so it can be a program name with args. |
| 6795 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6796 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6798 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 6799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6800 | else |
| 6801 | case $DOTTY in |
| 6802 | [\\/]* | ?:[\\/]*) |
| 6803 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 6804 | ;; |
| 6805 | *) |
| 6806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6807 | for as_dir in $PATH |
| 6808 | do |
| 6809 | IFS=$as_save_IFS |
| 6810 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6812 | 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] | 6813 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6814 | 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] | 6815 | break 2 |
| 6816 | fi |
| 6817 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6818 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6819 | IFS=$as_save_IFS |
| 6820 | |
| 6821 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 6822 | ;; |
| 6823 | esac |
| 6824 | fi |
| 6825 | DOTTY=$ac_cv_path_DOTTY |
| 6826 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6827 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 6828 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6829 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6830 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6831 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6832 | fi |
| 6833 | |
| 6834 | |
| 6835 | if test "$DOTTY" != "echo dotty" ; then |
| 6836 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6837 | cat >>confdefs.h <<\_ACEOF |
| 6838 | #define HAVE_DOTTY 1 |
| 6839 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6840 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6841 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6842 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6843 | fi |
| 6844 | |
| 6845 | cat >>confdefs.h <<_ACEOF |
| 6846 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 6847 | _ACEOF |
| 6848 | |
| 6849 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 6850 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 6851 | set dummy xdot.py; ac_word=$2 |
| 6852 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6854 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 6855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6856 | else |
| 6857 | case $XDOT_PY in |
| 6858 | [\\/]* | ?:[\\/]*) |
| 6859 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 6860 | ;; |
| 6861 | *) |
| 6862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6863 | for as_dir in $PATH |
| 6864 | do |
| 6865 | IFS=$as_save_IFS |
| 6866 | test -z "$as_dir" && as_dir=. |
| 6867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6869 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 6870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6871 | break 2 |
| 6872 | fi |
| 6873 | done |
| 6874 | done |
| 6875 | IFS=$as_save_IFS |
| 6876 | |
| 6877 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 6878 | ;; |
| 6879 | esac |
| 6880 | fi |
| 6881 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 6882 | if test -n "$XDOT_PY"; then |
| 6883 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 6884 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 6885 | else |
| 6886 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6887 | echo "${ECHO_T}no" >&6; } |
| 6888 | fi |
| 6889 | |
| 6890 | |
| 6891 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 6892 | |
| 6893 | cat >>confdefs.h <<\_ACEOF |
| 6894 | #define HAVE_XDOT_PY 1 |
| 6895 | _ACEOF |
| 6896 | |
| 6897 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6898 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6899 | fi |
| 6900 | |
| 6901 | cat >>confdefs.h <<_ACEOF |
| 6902 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 6903 | _ACEOF |
| 6904 | |
| 6905 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6906 | |
| 6907 | |
| 6908 | # Extract the first word of "perl", so it can be a program name with args. |
| 6909 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6910 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6912 | if test "${ac_cv_path_PERL+set}" = set; then |
| 6913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6914 | else |
| 6915 | case $PERL in |
| 6916 | [\\/]* | ?:[\\/]*) |
| 6917 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 6918 | ;; |
| 6919 | *) |
| 6920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6921 | for as_dir in $PATH |
| 6922 | do |
| 6923 | IFS=$as_save_IFS |
| 6924 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6925 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6926 | 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] | 6927 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6928 | 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] | 6929 | break 2 |
| 6930 | fi |
| 6931 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6932 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6933 | IFS=$as_save_IFS |
| 6934 | |
| 6935 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 6936 | ;; |
| 6937 | esac |
| 6938 | fi |
| 6939 | PERL=$ac_cv_path_PERL |
| 6940 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6941 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 6942 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6943 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6944 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6945 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6946 | fi |
| 6947 | |
| 6948 | |
| 6949 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6950 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 6951 | 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] | 6952 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6953 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6954 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6955 | else |
| 6956 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6957 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 6958 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6959 | fi |
| 6960 | fi |
| 6961 | |
| 6962 | |
| 6963 | if test x"$PERL" = xnone; then |
| 6964 | HAVE_PERL=0 |
| 6965 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6966 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 6967 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 6968 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6969 | else |
| 6970 | HAVE_PERL=1 |
| 6971 | |
| 6972 | fi |
| 6973 | |
| 6974 | # Find a good install program. We prefer a C program (faster), |
| 6975 | # so one script is as good as another. But avoid the broken or |
| 6976 | # incompatible versions: |
| 6977 | # SysV /etc/install, /usr/sbin/install |
| 6978 | # SunOS /usr/etc/install |
| 6979 | # IRIX /sbin/install |
| 6980 | # AIX /bin/install |
| 6981 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6982 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6983 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6984 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6985 | # OS/2's system install, which has a completely different semantic |
| 6986 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6987 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6988 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6989 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6990 | if test "${ac_cv_path_install+set}" = set; then |
| 6991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6992 | else |
| 6993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6994 | for as_dir in $PATH |
| 6995 | do |
| 6996 | IFS=$as_save_IFS |
| 6997 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6998 | # Account for people who put trailing slashes in PATH elements. |
| 6999 | case $as_dir/ in |
| 7000 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7001 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7002 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7003 | /usr/ucb/* ) ;; |
| 7004 | *) |
| 7005 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7006 | # Don't use installbsd from OSF since it installs stuff as root |
| 7007 | # by default. |
| 7008 | for ac_prog in ginstall scoinst install; do |
| 7009 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7010 | 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] | 7011 | if test $ac_prog = install && |
| 7012 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7013 | # AIX install. It has an incompatible calling convention. |
| 7014 | : |
| 7015 | elif test $ac_prog = install && |
| 7016 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7017 | # program-specific install script used by HP pwplus--don't use. |
| 7018 | : |
| 7019 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7020 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7021 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7022 | fi |
| 7023 | fi |
| 7024 | done |
| 7025 | done |
| 7026 | ;; |
| 7027 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7028 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7029 | IFS=$as_save_IFS |
| 7030 | |
| 7031 | |
| 7032 | fi |
| 7033 | if test "${ac_cv_path_install+set}" = set; then |
| 7034 | INSTALL=$ac_cv_path_install |
| 7035 | else |
| 7036 | # As a last resort, use the slow shell script. Don't cache a |
| 7037 | # value for INSTALL within a source directory, because that will |
| 7038 | # break other packages using the cache if that directory is |
| 7039 | # removed, or if the value is a relative name. |
| 7040 | INSTALL=$ac_install_sh |
| 7041 | fi |
| 7042 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7043 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7044 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7045 | |
| 7046 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7047 | # It thinks the first close brace ends the variable substitution. |
| 7048 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7049 | |
| 7050 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7051 | |
| 7052 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7053 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7054 | case "$INSTALL" in |
| 7055 | [\\/$]* | ?:[\\/]* ) ;; |
| 7056 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 7057 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7058 | |
| 7059 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7060 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7061 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7063 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7065 | else |
| 7066 | case $BZIP2 in |
| 7067 | [\\/]* | ?:[\\/]*) |
| 7068 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7069 | ;; |
| 7070 | *) |
| 7071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7072 | for as_dir in $PATH |
| 7073 | do |
| 7074 | IFS=$as_save_IFS |
| 7075 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7076 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7077 | 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] | 7078 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7079 | 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] | 7080 | break 2 |
| 7081 | fi |
| 7082 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7083 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7084 | IFS=$as_save_IFS |
| 7085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7086 | ;; |
| 7087 | esac |
| 7088 | fi |
| 7089 | BZIP2=$ac_cv_path_BZIP2 |
| 7090 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7091 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7092 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7093 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7094 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7095 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7096 | fi |
| 7097 | |
| 7098 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7099 | # Extract the first word of "cat", so it can be a program name with args. |
| 7100 | set dummy cat; ac_word=$2 |
| 7101 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7103 | if test "${ac_cv_path_CAT+set}" = set; then |
| 7104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7105 | else |
| 7106 | case $CAT in |
| 7107 | [\\/]* | ?:[\\/]*) |
| 7108 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 7109 | ;; |
| 7110 | *) |
| 7111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7112 | for as_dir in $PATH |
| 7113 | do |
| 7114 | IFS=$as_save_IFS |
| 7115 | test -z "$as_dir" && as_dir=. |
| 7116 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7117 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7118 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 7119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7120 | break 2 |
| 7121 | fi |
| 7122 | done |
| 7123 | done |
| 7124 | IFS=$as_save_IFS |
| 7125 | |
| 7126 | ;; |
| 7127 | esac |
| 7128 | fi |
| 7129 | CAT=$ac_cv_path_CAT |
| 7130 | if test -n "$CAT"; then |
| 7131 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 7132 | echo "${ECHO_T}$CAT" >&6; } |
| 7133 | else |
| 7134 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7135 | echo "${ECHO_T}no" >&6; } |
| 7136 | fi |
| 7137 | |
| 7138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7139 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7140 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7141 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7143 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7145 | else |
| 7146 | case $DOXYGEN in |
| 7147 | [\\/]* | ?:[\\/]*) |
| 7148 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7149 | ;; |
| 7150 | *) |
| 7151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7152 | for as_dir in $PATH |
| 7153 | do |
| 7154 | IFS=$as_save_IFS |
| 7155 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7156 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7157 | 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] | 7158 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7159 | 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] | 7160 | break 2 |
| 7161 | fi |
| 7162 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7163 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7164 | IFS=$as_save_IFS |
| 7165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7166 | ;; |
| 7167 | esac |
| 7168 | fi |
| 7169 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7170 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7171 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7172 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7173 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7174 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7175 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7176 | fi |
| 7177 | |
| 7178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7179 | # Extract the first word of "groff", so it can be a program name with args. |
| 7180 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7181 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7183 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7185 | else |
| 7186 | case $GROFF in |
| 7187 | [\\/]* | ?:[\\/]*) |
| 7188 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7189 | ;; |
| 7190 | *) |
| 7191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7192 | for as_dir in $PATH |
| 7193 | do |
| 7194 | IFS=$as_save_IFS |
| 7195 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7196 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7197 | 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] | 7198 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7199 | 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] | 7200 | break 2 |
| 7201 | fi |
| 7202 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7203 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7204 | IFS=$as_save_IFS |
| 7205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7206 | ;; |
| 7207 | esac |
| 7208 | fi |
| 7209 | GROFF=$ac_cv_path_GROFF |
| 7210 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7211 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7212 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7213 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7214 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7215 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7216 | fi |
| 7217 | |
| 7218 | |
| 7219 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7220 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7221 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7223 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7225 | else |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7226 | case $GZIPBIN in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7227 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7228 | 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] | 7229 | ;; |
| 7230 | *) |
| 7231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7232 | for as_dir in $PATH |
| 7233 | do |
| 7234 | IFS=$as_save_IFS |
| 7235 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7236 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7237 | 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] | 7238 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7239 | 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] | 7240 | break 2 |
| 7241 | fi |
| 7242 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7243 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7244 | IFS=$as_save_IFS |
| 7245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7246 | ;; |
| 7247 | esac |
| 7248 | fi |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7249 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 7250 | if test -n "$GZIPBIN"; then |
| 7251 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 7252 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7253 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7254 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7255 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7256 | fi |
| 7257 | |
| 7258 | |
| 7259 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7260 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7261 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7263 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7265 | else |
| 7266 | case $POD2HTML in |
| 7267 | [\\/]* | ?:[\\/]*) |
| 7268 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7269 | ;; |
| 7270 | *) |
| 7271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7272 | for as_dir in $PATH |
| 7273 | do |
| 7274 | IFS=$as_save_IFS |
| 7275 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7277 | 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] | 7278 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7279 | 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] | 7280 | break 2 |
| 7281 | fi |
| 7282 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7283 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7284 | IFS=$as_save_IFS |
| 7285 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7286 | ;; |
| 7287 | esac |
| 7288 | fi |
| 7289 | POD2HTML=$ac_cv_path_POD2HTML |
| 7290 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7291 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7292 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7293 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7294 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7295 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7296 | fi |
| 7297 | |
| 7298 | |
| 7299 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7300 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7301 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7303 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7305 | else |
| 7306 | case $POD2MAN in |
| 7307 | [\\/]* | ?:[\\/]*) |
| 7308 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7309 | ;; |
| 7310 | *) |
| 7311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7312 | for as_dir in $PATH |
| 7313 | do |
| 7314 | IFS=$as_save_IFS |
| 7315 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7317 | 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] | 7318 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7319 | 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] | 7320 | break 2 |
| 7321 | fi |
| 7322 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7323 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7324 | IFS=$as_save_IFS |
| 7325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7326 | ;; |
| 7327 | esac |
| 7328 | fi |
| 7329 | POD2MAN=$ac_cv_path_POD2MAN |
| 7330 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7331 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7332 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7333 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7334 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7335 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7336 | fi |
| 7337 | |
| 7338 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7339 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 7340 | set dummy pdfroff; ac_word=$2 |
| 7341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7343 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 7344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7345 | else |
| 7346 | case $PDFROFF in |
| 7347 | [\\/]* | ?:[\\/]*) |
| 7348 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 7349 | ;; |
| 7350 | *) |
| 7351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7352 | for as_dir in $PATH |
| 7353 | do |
| 7354 | IFS=$as_save_IFS |
| 7355 | test -z "$as_dir" && as_dir=. |
| 7356 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7358 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7360 | break 2 |
| 7361 | fi |
| 7362 | done |
| 7363 | done |
| 7364 | IFS=$as_save_IFS |
| 7365 | |
| 7366 | ;; |
| 7367 | esac |
| 7368 | fi |
| 7369 | PDFROFF=$ac_cv_path_PDFROFF |
| 7370 | if test -n "$PDFROFF"; then |
| 7371 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 7372 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 7373 | else |
| 7374 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7375 | echo "${ECHO_T}no" >&6; } |
| 7376 | fi |
| 7377 | |
| 7378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7379 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7380 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7383 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7385 | else |
| 7386 | case $RUNTEST in |
| 7387 | [\\/]* | ?:[\\/]*) |
| 7388 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7389 | ;; |
| 7390 | *) |
| 7391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7392 | for as_dir in $PATH |
| 7393 | do |
| 7394 | IFS=$as_save_IFS |
| 7395 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7398 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7400 | break 2 |
| 7401 | fi |
| 7402 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7403 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7404 | IFS=$as_save_IFS |
| 7405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7406 | ;; |
| 7407 | esac |
| 7408 | fi |
| 7409 | RUNTEST=$ac_cv_path_RUNTEST |
| 7410 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7411 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7412 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7413 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7414 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7415 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7416 | fi |
| 7417 | |
| 7418 | |
| 7419 | |
| 7420 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7421 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7422 | 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] | 7423 | |
| 7424 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7425 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7426 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7427 | else |
| 7428 | with_tclinclude='' |
| 7429 | fi |
| 7430 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7431 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7433 | else |
| 7434 | |
| 7435 | if test x"${with_tclinclude}" != x ; then |
| 7436 | if test -f ${with_tclinclude}/tclsh ; then |
| 7437 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7438 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7439 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7440 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7441 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7442 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7443 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7444 | fi |
| 7445 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7446 | fi |
| 7447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7448 | |
| 7449 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7450 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7451 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7452 | 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 |
| 7453 | do |
| 7454 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7455 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7456 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7458 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7460 | else |
| 7461 | case $TCLSH in |
| 7462 | [\\/]* | ?:[\\/]*) |
| 7463 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7464 | ;; |
| 7465 | *) |
| 7466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7467 | for as_dir in $PATH |
| 7468 | do |
| 7469 | IFS=$as_save_IFS |
| 7470 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7471 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7472 | 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] | 7473 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7474 | 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] | 7475 | break 2 |
| 7476 | fi |
| 7477 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7478 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7479 | IFS=$as_save_IFS |
| 7480 | |
| 7481 | ;; |
| 7482 | esac |
| 7483 | fi |
| 7484 | TCLSH=$ac_cv_path_TCLSH |
| 7485 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7486 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7487 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7488 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7489 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7490 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7491 | fi |
| 7492 | |
| 7493 | |
| 7494 | test -n "$TCLSH" && break |
| 7495 | done |
| 7496 | |
| 7497 | if test x"${TCLSH}" = x ; then |
| 7498 | ac_cv_path_tclsh=''; |
| 7499 | else |
| 7500 | ac_cv_path_tclsh="${TCLSH}"; |
| 7501 | fi |
| 7502 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7503 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7504 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7505 | TCLSH="${ac_cv_path_tclsh}" |
| 7506 | |
| 7507 | fi |
| 7508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7509 | # Extract the first word of "zip", so it can be a program name with args. |
| 7510 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7511 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7513 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7515 | else |
| 7516 | case $ZIP in |
| 7517 | [\\/]* | ?:[\\/]*) |
| 7518 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7519 | ;; |
| 7520 | *) |
| 7521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7522 | for as_dir in $PATH |
| 7523 | do |
| 7524 | IFS=$as_save_IFS |
| 7525 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7526 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7527 | 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] | 7528 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7529 | 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] | 7530 | break 2 |
| 7531 | fi |
| 7532 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7533 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7534 | IFS=$as_save_IFS |
| 7535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7536 | ;; |
| 7537 | esac |
| 7538 | fi |
| 7539 | ZIP=$ac_cv_path_ZIP |
| 7540 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7541 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7542 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7543 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7544 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7545 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7546 | fi |
| 7547 | |
| 7548 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7549 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7550 | do |
| 7551 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7552 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7555 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7557 | else |
| 7558 | case $OCAMLC in |
| 7559 | [\\/]* | ?:[\\/]*) |
| 7560 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7561 | ;; |
| 7562 | *) |
| 7563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7564 | for as_dir in $PATH |
| 7565 | do |
| 7566 | IFS=$as_save_IFS |
| 7567 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7569 | 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] | 7570 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7571 | 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] | 7572 | break 2 |
| 7573 | fi |
| 7574 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7575 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7576 | IFS=$as_save_IFS |
| 7577 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7578 | ;; |
| 7579 | esac |
| 7580 | fi |
| 7581 | OCAMLC=$ac_cv_path_OCAMLC |
| 7582 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7583 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7584 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7585 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7587 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7588 | fi |
| 7589 | |
| 7590 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7591 | test -n "$OCAMLC" && break |
| 7592 | done |
| 7593 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7594 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7595 | do |
| 7596 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7597 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7598 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7600 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7602 | else |
| 7603 | case $OCAMLOPT in |
| 7604 | [\\/]* | ?:[\\/]*) |
| 7605 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7606 | ;; |
| 7607 | *) |
| 7608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7609 | for as_dir in $PATH |
| 7610 | do |
| 7611 | IFS=$as_save_IFS |
| 7612 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7614 | 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] | 7615 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7616 | 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] | 7617 | break 2 |
| 7618 | fi |
| 7619 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7620 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7621 | IFS=$as_save_IFS |
| 7622 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7623 | ;; |
| 7624 | esac |
| 7625 | fi |
| 7626 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7627 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7628 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7629 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7630 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7631 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7632 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7633 | fi |
| 7634 | |
| 7635 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7636 | test -n "$OCAMLOPT" && break |
| 7637 | done |
| 7638 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7639 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7640 | do |
| 7641 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7642 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7643 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7645 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7647 | else |
| 7648 | case $OCAMLDEP in |
| 7649 | [\\/]* | ?:[\\/]*) |
| 7650 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7651 | ;; |
| 7652 | *) |
| 7653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7654 | for as_dir in $PATH |
| 7655 | do |
| 7656 | IFS=$as_save_IFS |
| 7657 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7658 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7659 | 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] | 7660 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7661 | 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] | 7662 | break 2 |
| 7663 | fi |
| 7664 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7665 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7666 | IFS=$as_save_IFS |
| 7667 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7668 | ;; |
| 7669 | esac |
| 7670 | fi |
| 7671 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7672 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7673 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7674 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7675 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7676 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7677 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7678 | fi |
| 7679 | |
| 7680 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7681 | test -n "$OCAMLDEP" && break |
| 7682 | done |
| 7683 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7684 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7685 | do |
| 7686 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7687 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7690 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 7691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7692 | else |
| 7693 | case $OCAMLDOC in |
| 7694 | [\\/]* | ?:[\\/]*) |
| 7695 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7696 | ;; |
| 7697 | *) |
| 7698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7699 | for as_dir in $PATH |
| 7700 | do |
| 7701 | IFS=$as_save_IFS |
| 7702 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7704 | 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] | 7705 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7706 | 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] | 7707 | break 2 |
| 7708 | fi |
| 7709 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7710 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7711 | IFS=$as_save_IFS |
| 7712 | |
| 7713 | ;; |
| 7714 | esac |
| 7715 | fi |
| 7716 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7717 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7718 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 7719 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7720 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7721 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7722 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7723 | fi |
| 7724 | |
| 7725 | |
| 7726 | test -n "$OCAMLDOC" && break |
| 7727 | done |
| 7728 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7729 | for ac_prog in gas as |
| 7730 | do |
| 7731 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7732 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7733 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7735 | if test "${ac_cv_path_GAS+set}" = set; then |
| 7736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7737 | else |
| 7738 | case $GAS in |
| 7739 | [\\/]* | ?:[\\/]*) |
| 7740 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7741 | ;; |
| 7742 | *) |
| 7743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7744 | for as_dir in $PATH |
| 7745 | do |
| 7746 | IFS=$as_save_IFS |
| 7747 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7749 | 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] | 7750 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7751 | 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] | 7752 | break 2 |
| 7753 | fi |
| 7754 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7755 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7756 | IFS=$as_save_IFS |
| 7757 | |
| 7758 | ;; |
| 7759 | esac |
| 7760 | fi |
| 7761 | GAS=$ac_cv_path_GAS |
| 7762 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7763 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7764 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7765 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7766 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7767 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 7768 | fi |
| 7769 | |
| 7770 | |
| 7771 | test -n "$GAS" && break |
| 7772 | done |
| 7773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7774 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7775 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 7776 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 7777 | if test "${llvm_cv_link_version+set}" = set; then |
| 7778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7779 | else |
| 7780 | |
| 7781 | version_string="$(ld -v 2>&1 | head -1)" |
| 7782 | |
| 7783 | # Check for ld64. |
| 7784 | if (echo "$version_string" | grep -q "ld64"); then |
| 7785 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 7786 | else |
| 7787 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 7788 | fi |
| 7789 | |
| 7790 | fi |
| 7791 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 7792 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 7793 | |
| 7794 | cat >>confdefs.h <<_ACEOF |
| 7795 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 7796 | _ACEOF |
| 7797 | |
| 7798 | |
| 7799 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7800 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7801 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7802 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7804 | else |
| 7805 | ac_ext=c |
| 7806 | ac_cpp='$CPP $CPPFLAGS' |
| 7807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7810 | |
| 7811 | oldcflags="$CFLAGS" |
| 7812 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7813 | cat >conftest.$ac_ext <<_ACEOF |
| 7814 | /* confdefs.h. */ |
| 7815 | _ACEOF |
| 7816 | cat confdefs.h >>conftest.$ac_ext |
| 7817 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7818 | /* end confdefs.h. */ |
| 7819 | |
| 7820 | int |
| 7821 | main () |
| 7822 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7823 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7824 | ; |
| 7825 | return 0; |
| 7826 | } |
| 7827 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7828 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7829 | if { (ac_try="$ac_link" |
| 7830 | case "(($ac_try" in |
| 7831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7832 | *) ac_try_echo=$ac_try;; |
| 7833 | esac |
| 7834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7835 | (eval "$ac_link") 2>conftest.er1 |
| 7836 | ac_status=$? |
| 7837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7838 | rm -f conftest.er1 |
| 7839 | cat conftest.err >&5 |
| 7840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7841 | (exit $ac_status); } && |
| 7842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7843 | { (case "(($ac_try" in |
| 7844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7845 | *) ac_try_echo=$ac_try;; |
| 7846 | esac |
| 7847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7848 | (eval "$ac_try") 2>&5 |
| 7849 | ac_status=$? |
| 7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7851 | (exit $ac_status); }; } && |
| 7852 | { ac_try='test -s conftest$ac_exeext' |
| 7853 | { (case "(($ac_try" in |
| 7854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7855 | *) ac_try_echo=$ac_try;; |
| 7856 | esac |
| 7857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7858 | (eval "$ac_try") 2>&5 |
| 7859 | ac_status=$? |
| 7860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7861 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7862 | llvm_cv_link_use_r=yes |
| 7863 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7864 | echo "$as_me: failed program was:" >&5 |
| 7865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7866 | |
| 7867 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7868 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7869 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7870 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7871 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7872 | CFLAGS="$oldcflags" |
| 7873 | ac_ext=c |
| 7874 | ac_cpp='$CPP $CPPFLAGS' |
| 7875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7878 | |
| 7879 | |
| 7880 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7881 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7882 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7883 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7884 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7885 | cat >>confdefs.h <<\_ACEOF |
| 7886 | #define HAVE_LINK_R 1 |
| 7887 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7888 | |
| 7889 | fi |
| 7890 | |
| 7891 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7892 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 7893 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 7894 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 7895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7896 | else |
| 7897 | ac_ext=c |
| 7898 | ac_cpp='$CPP $CPPFLAGS' |
| 7899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7902 | |
| 7903 | oldcflags="$CFLAGS" |
| 7904 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7905 | cat >conftest.$ac_ext <<_ACEOF |
| 7906 | /* confdefs.h. */ |
| 7907 | _ACEOF |
| 7908 | cat confdefs.h >>conftest.$ac_ext |
| 7909 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7910 | /* end confdefs.h. */ |
| 7911 | |
| 7912 | int |
| 7913 | main () |
| 7914 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7915 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7916 | ; |
| 7917 | return 0; |
| 7918 | } |
| 7919 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7920 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7921 | if { (ac_try="$ac_link" |
| 7922 | case "(($ac_try" in |
| 7923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7924 | *) ac_try_echo=$ac_try;; |
| 7925 | esac |
| 7926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7927 | (eval "$ac_link") 2>conftest.er1 |
| 7928 | ac_status=$? |
| 7929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7930 | rm -f conftest.er1 |
| 7931 | cat conftest.err >&5 |
| 7932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7933 | (exit $ac_status); } && |
| 7934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7935 | { (case "(($ac_try" in |
| 7936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7937 | *) ac_try_echo=$ac_try;; |
| 7938 | esac |
| 7939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7940 | (eval "$ac_try") 2>&5 |
| 7941 | ac_status=$? |
| 7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7943 | (exit $ac_status); }; } && |
| 7944 | { ac_try='test -s conftest$ac_exeext' |
| 7945 | { (case "(($ac_try" in |
| 7946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7947 | *) ac_try_echo=$ac_try;; |
| 7948 | esac |
| 7949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7950 | (eval "$ac_try") 2>&5 |
| 7951 | ac_status=$? |
| 7952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7953 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7954 | llvm_cv_link_use_export_dynamic=yes |
| 7955 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7956 | echo "$as_me: failed program was:" >&5 |
| 7957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7958 | |
| 7959 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7960 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7961 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7962 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7963 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7964 | CFLAGS="$oldcflags" |
| 7965 | ac_ext=c |
| 7966 | ac_cpp='$CPP $CPPFLAGS' |
| 7967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7970 | |
| 7971 | |
| 7972 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7973 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 7974 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7975 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 7976 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7977 | cat >>confdefs.h <<\_ACEOF |
| 7978 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 7979 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7980 | |
| 7981 | fi |
| 7982 | |
| 7983 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7984 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 7985 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 7986 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7988 | else |
| 7989 | ac_ext=c |
| 7990 | ac_cpp='$CPP $CPPFLAGS' |
| 7991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7994 | |
| 7995 | oldcflags="$CFLAGS" |
| 7996 | |
| 7997 | # The following code is from the autoconf manual, |
| 7998 | # "11.13: Limitations of Usual Tools". |
| 7999 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 8000 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 8001 | # with $RANDOM to make collisions less likely. |
| 8002 | : ${TMPDIR=/tmp} |
| 8003 | { |
| 8004 | tmp=` |
| 8005 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 8006 | ` && |
| 8007 | test -n "$tmp" && test -d "$tmp" |
| 8008 | } || { |
| 8009 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8010 | (umask 077 && mkdir "$tmp") |
| 8011 | } || exit $? |
| 8012 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8013 | echo "{" > "$tmp/export.map" |
| 8014 | echo " global: main;" >> "$tmp/export.map" |
| 8015 | echo " local: *;" >> "$tmp/export.map" |
| 8016 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8017 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8018 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8019 | cat >conftest.$ac_ext <<_ACEOF |
| 8020 | /* confdefs.h. */ |
| 8021 | _ACEOF |
| 8022 | cat confdefs.h >>conftest.$ac_ext |
| 8023 | cat >>conftest.$ac_ext <<_ACEOF |
| 8024 | /* end confdefs.h. */ |
| 8025 | |
| 8026 | int |
| 8027 | main () |
| 8028 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8029 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8030 | ; |
| 8031 | return 0; |
| 8032 | } |
| 8033 | _ACEOF |
| 8034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8035 | if { (ac_try="$ac_link" |
| 8036 | case "(($ac_try" in |
| 8037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8038 | *) ac_try_echo=$ac_try;; |
| 8039 | esac |
| 8040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8041 | (eval "$ac_link") 2>conftest.er1 |
| 8042 | ac_status=$? |
| 8043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8044 | rm -f conftest.er1 |
| 8045 | cat conftest.err >&5 |
| 8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8047 | (exit $ac_status); } && |
| 8048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8049 | { (case "(($ac_try" in |
| 8050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8051 | *) ac_try_echo=$ac_try;; |
| 8052 | esac |
| 8053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8054 | (eval "$ac_try") 2>&5 |
| 8055 | ac_status=$? |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); }; } && |
| 8058 | { ac_try='test -s conftest$ac_exeext' |
| 8059 | { (case "(($ac_try" in |
| 8060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8061 | *) ac_try_echo=$ac_try;; |
| 8062 | esac |
| 8063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8064 | (eval "$ac_try") 2>&5 |
| 8065 | ac_status=$? |
| 8066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8067 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8068 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8069 | else |
| 8070 | echo "$as_me: failed program was:" >&5 |
| 8071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8072 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8073 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8074 | fi |
| 8075 | |
| 8076 | rm -f core conftest.err conftest.$ac_objext \ |
| 8077 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8078 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8079 | rmdir "$tmp" |
| 8080 | CFLAGS="$oldcflags" |
| 8081 | ac_ext=c |
| 8082 | ac_cpp='$CPP $CPPFLAGS' |
| 8083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8086 | |
| 8087 | |
| 8088 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8089 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 8090 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 8091 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 8092 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8093 | |
| 8094 | fi |
| 8095 | |
| 8096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8097 | |
| 8098 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8099 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8100 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8101 | if test "${ac_cv_c_const+set}" = set; then |
| 8102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8103 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8104 | cat >conftest.$ac_ext <<_ACEOF |
| 8105 | /* confdefs.h. */ |
| 8106 | _ACEOF |
| 8107 | cat confdefs.h >>conftest.$ac_ext |
| 8108 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8109 | /* end confdefs.h. */ |
| 8110 | |
| 8111 | int |
| 8112 | main () |
| 8113 | { |
| 8114 | /* FIXME: Include the comments suggested by Paul. */ |
| 8115 | #ifndef __cplusplus |
| 8116 | /* Ultrix mips cc rejects this. */ |
| 8117 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8118 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8119 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8120 | char const *const *ccp; |
| 8121 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8122 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8123 | struct point {int x, y;}; |
| 8124 | static struct point const zero = {0,0}; |
| 8125 | /* AIX XL C 1.02.0.0 rejects this. |
| 8126 | It does not let you subtract one const X* pointer from another in |
| 8127 | an arm of an if-expression whose if-part is not a constant |
| 8128 | expression */ |
| 8129 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8130 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8131 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8132 | ++ccp; |
| 8133 | p = (char**) ccp; |
| 8134 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8135 | { /* SCO 3.2v4 cc rejects this. */ |
| 8136 | char *t; |
| 8137 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8138 | |
| 8139 | *t++ = 0; |
| 8140 | if (s) return 0; |
| 8141 | } |
| 8142 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8143 | int x[] = {25, 17}; |
| 8144 | const int *foo = &x[0]; |
| 8145 | ++foo; |
| 8146 | } |
| 8147 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8148 | typedef const int *iptr; |
| 8149 | iptr p = 0; |
| 8150 | ++p; |
| 8151 | } |
| 8152 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8153 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8154 | struct s { int j; const int *ap[3]; }; |
| 8155 | struct s *b; b->j = 5; |
| 8156 | } |
| 8157 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8158 | const int foo = 10; |
| 8159 | if (!foo) return 0; |
| 8160 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8161 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8162 | #endif |
| 8163 | |
| 8164 | ; |
| 8165 | return 0; |
| 8166 | } |
| 8167 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8168 | rm -f conftest.$ac_objext |
| 8169 | if { (ac_try="$ac_compile" |
| 8170 | case "(($ac_try" in |
| 8171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8172 | *) ac_try_echo=$ac_try;; |
| 8173 | esac |
| 8174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8175 | (eval "$ac_compile") 2>conftest.er1 |
| 8176 | ac_status=$? |
| 8177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8178 | rm -f conftest.er1 |
| 8179 | cat conftest.err >&5 |
| 8180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8181 | (exit $ac_status); } && |
| 8182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8183 | { (case "(($ac_try" in |
| 8184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8185 | *) ac_try_echo=$ac_try;; |
| 8186 | esac |
| 8187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8188 | (eval "$ac_try") 2>&5 |
| 8189 | ac_status=$? |
| 8190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8191 | (exit $ac_status); }; } && |
| 8192 | { ac_try='test -s conftest.$ac_objext' |
| 8193 | { (case "(($ac_try" in |
| 8194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8195 | *) ac_try_echo=$ac_try;; |
| 8196 | esac |
| 8197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8198 | (eval "$ac_try") 2>&5 |
| 8199 | ac_status=$? |
| 8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8201 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8202 | ac_cv_c_const=yes |
| 8203 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8204 | echo "$as_me: failed program was:" >&5 |
| 8205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8206 | |
| 8207 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8208 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8211 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8212 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8213 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8214 | if test $ac_cv_c_const = no; then |
| 8215 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8216 | cat >>confdefs.h <<\_ACEOF |
| 8217 | #define const |
| 8218 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8219 | |
| 8220 | fi |
| 8221 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8222 | |
| 8223 | |
| 8224 | |
| 8225 | |
| 8226 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8227 | ac_header_dirent=no |
| 8228 | 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] | 8229 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8230 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8231 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8232 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8234 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8235 | cat >conftest.$ac_ext <<_ACEOF |
| 8236 | /* confdefs.h. */ |
| 8237 | _ACEOF |
| 8238 | cat confdefs.h >>conftest.$ac_ext |
| 8239 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8240 | /* end confdefs.h. */ |
| 8241 | #include <sys/types.h> |
| 8242 | #include <$ac_hdr> |
| 8243 | |
| 8244 | int |
| 8245 | main () |
| 8246 | { |
| 8247 | if ((DIR *) 0) |
| 8248 | return 0; |
| 8249 | ; |
| 8250 | return 0; |
| 8251 | } |
| 8252 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8253 | rm -f conftest.$ac_objext |
| 8254 | if { (ac_try="$ac_compile" |
| 8255 | case "(($ac_try" in |
| 8256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8257 | *) ac_try_echo=$ac_try;; |
| 8258 | esac |
| 8259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8260 | (eval "$ac_compile") 2>conftest.er1 |
| 8261 | ac_status=$? |
| 8262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8263 | rm -f conftest.er1 |
| 8264 | cat conftest.err >&5 |
| 8265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8266 | (exit $ac_status); } && |
| 8267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8268 | { (case "(($ac_try" in |
| 8269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8270 | *) ac_try_echo=$ac_try;; |
| 8271 | esac |
| 8272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8273 | (eval "$ac_try") 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 | (exit $ac_status); }; } && |
| 8277 | { ac_try='test -s conftest.$ac_objext' |
| 8278 | { (case "(($ac_try" in |
| 8279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8280 | *) ac_try_echo=$ac_try;; |
| 8281 | esac |
| 8282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8283 | (eval "$ac_try") 2>&5 |
| 8284 | ac_status=$? |
| 8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8286 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8287 | eval "$as_ac_Header=yes" |
| 8288 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8289 | echo "$as_me: failed program was:" >&5 |
| 8290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8291 | |
| 8292 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8293 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8296 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8297 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8298 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8299 | echo "${ECHO_T}$ac_res" >&6; } |
| 8300 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8301 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8302 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8303 | _ACEOF |
| 8304 | |
| 8305 | ac_header_dirent=$ac_hdr; break |
| 8306 | fi |
| 8307 | |
| 8308 | done |
| 8309 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8310 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8311 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8312 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8313 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8315 | else |
| 8316 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8317 | cat >conftest.$ac_ext <<_ACEOF |
| 8318 | /* confdefs.h. */ |
| 8319 | _ACEOF |
| 8320 | cat confdefs.h >>conftest.$ac_ext |
| 8321 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8322 | /* end confdefs.h. */ |
| 8323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8324 | /* Override any GCC internal prototype to avoid an error. |
| 8325 | Use char because int might match the return type of a GCC |
| 8326 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8327 | #ifdef __cplusplus |
| 8328 | extern "C" |
| 8329 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8330 | char opendir (); |
| 8331 | int |
| 8332 | main () |
| 8333 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8334 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8335 | ; |
| 8336 | return 0; |
| 8337 | } |
| 8338 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8339 | for ac_lib in '' dir; do |
| 8340 | if test -z "$ac_lib"; then |
| 8341 | ac_res="none required" |
| 8342 | else |
| 8343 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8344 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8345 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8346 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8347 | if { (ac_try="$ac_link" |
| 8348 | case "(($ac_try" in |
| 8349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8350 | *) ac_try_echo=$ac_try;; |
| 8351 | esac |
| 8352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8353 | (eval "$ac_link") 2>conftest.er1 |
| 8354 | ac_status=$? |
| 8355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8356 | rm -f conftest.er1 |
| 8357 | cat conftest.err >&5 |
| 8358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8359 | (exit $ac_status); } && |
| 8360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8361 | { (case "(($ac_try" in |
| 8362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8363 | *) ac_try_echo=$ac_try;; |
| 8364 | esac |
| 8365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8366 | (eval "$ac_try") 2>&5 |
| 8367 | ac_status=$? |
| 8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8369 | (exit $ac_status); }; } && |
| 8370 | { ac_try='test -s conftest$ac_exeext' |
| 8371 | { (case "(($ac_try" in |
| 8372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8373 | *) ac_try_echo=$ac_try;; |
| 8374 | esac |
| 8375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8376 | (eval "$ac_try") 2>&5 |
| 8377 | ac_status=$? |
| 8378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8379 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8380 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8381 | else |
| 8382 | echo "$as_me: failed program was:" >&5 |
| 8383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8384 | |
| 8385 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8386 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8387 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8388 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8389 | conftest$ac_exeext |
| 8390 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8391 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8392 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8393 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8394 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8395 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8396 | else |
| 8397 | ac_cv_search_opendir=no |
| 8398 | fi |
| 8399 | rm conftest.$ac_ext |
| 8400 | LIBS=$ac_func_search_save_LIBS |
| 8401 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8402 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8403 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8404 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8405 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8406 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8408 | fi |
| 8409 | |
| 8410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8411 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8412 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8413 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8415 | else |
| 8416 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8417 | cat >conftest.$ac_ext <<_ACEOF |
| 8418 | /* confdefs.h. */ |
| 8419 | _ACEOF |
| 8420 | cat confdefs.h >>conftest.$ac_ext |
| 8421 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8422 | /* end confdefs.h. */ |
| 8423 | |
| 8424 | /* Override any GCC internal prototype to avoid an error. |
| 8425 | Use char because int might match the return type of a GCC |
| 8426 | builtin and then its argument prototype would still apply. */ |
| 8427 | #ifdef __cplusplus |
| 8428 | extern "C" |
| 8429 | #endif |
| 8430 | char opendir (); |
| 8431 | int |
| 8432 | main () |
| 8433 | { |
| 8434 | return opendir (); |
| 8435 | ; |
| 8436 | return 0; |
| 8437 | } |
| 8438 | _ACEOF |
| 8439 | for ac_lib in '' x; do |
| 8440 | if test -z "$ac_lib"; then |
| 8441 | ac_res="none required" |
| 8442 | else |
| 8443 | ac_res=-l$ac_lib |
| 8444 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8446 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8447 | if { (ac_try="$ac_link" |
| 8448 | case "(($ac_try" in |
| 8449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8450 | *) ac_try_echo=$ac_try;; |
| 8451 | esac |
| 8452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8453 | (eval "$ac_link") 2>conftest.er1 |
| 8454 | ac_status=$? |
| 8455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8456 | rm -f conftest.er1 |
| 8457 | cat conftest.err >&5 |
| 8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8459 | (exit $ac_status); } && |
| 8460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8461 | { (case "(($ac_try" in |
| 8462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8463 | *) ac_try_echo=$ac_try;; |
| 8464 | esac |
| 8465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8466 | (eval "$ac_try") 2>&5 |
| 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); }; } && |
| 8470 | { ac_try='test -s conftest$ac_exeext' |
| 8471 | { (case "(($ac_try" in |
| 8472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8473 | *) ac_try_echo=$ac_try;; |
| 8474 | esac |
| 8475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8476 | (eval "$ac_try") 2>&5 |
| 8477 | ac_status=$? |
| 8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8479 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8480 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8481 | else |
| 8482 | echo "$as_me: failed program was:" >&5 |
| 8483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8484 | |
| 8485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8486 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8487 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8488 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8489 | conftest$ac_exeext |
| 8490 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8491 | break |
| 8492 | fi |
| 8493 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8494 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8495 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8496 | else |
| 8497 | ac_cv_search_opendir=no |
| 8498 | fi |
| 8499 | rm conftest.$ac_ext |
| 8500 | LIBS=$ac_func_search_save_LIBS |
| 8501 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8502 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8503 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8504 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8505 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8506 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8507 | |
| 8508 | fi |
| 8509 | |
| 8510 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8511 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8512 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8513 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8514 | do |
| 8515 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8516 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8517 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8518 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8519 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8521 | fi |
| 8522 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8523 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8524 | echo "${ECHO_T}$ac_res" >&6; } |
| 8525 | else |
| 8526 | # Is the header compilable? |
| 8527 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8528 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 8529 | cat >conftest.$ac_ext <<_ACEOF |
| 8530 | /* confdefs.h. */ |
| 8531 | _ACEOF |
| 8532 | cat confdefs.h >>conftest.$ac_ext |
| 8533 | cat >>conftest.$ac_ext <<_ACEOF |
| 8534 | /* end confdefs.h. */ |
| 8535 | $ac_includes_default |
| 8536 | #include <$ac_header> |
| 8537 | _ACEOF |
| 8538 | rm -f conftest.$ac_objext |
| 8539 | if { (ac_try="$ac_compile" |
| 8540 | case "(($ac_try" in |
| 8541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8542 | *) ac_try_echo=$ac_try;; |
| 8543 | esac |
| 8544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8545 | (eval "$ac_compile") 2>conftest.er1 |
| 8546 | ac_status=$? |
| 8547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8548 | rm -f conftest.er1 |
| 8549 | cat conftest.err >&5 |
| 8550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8551 | (exit $ac_status); } && |
| 8552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8553 | { (case "(($ac_try" in |
| 8554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8555 | *) ac_try_echo=$ac_try;; |
| 8556 | esac |
| 8557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8558 | (eval "$ac_try") 2>&5 |
| 8559 | ac_status=$? |
| 8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8561 | (exit $ac_status); }; } && |
| 8562 | { ac_try='test -s conftest.$ac_objext' |
| 8563 | { (case "(($ac_try" in |
| 8564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8565 | *) ac_try_echo=$ac_try;; |
| 8566 | esac |
| 8567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8568 | (eval "$ac_try") 2>&5 |
| 8569 | ac_status=$? |
| 8570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8571 | (exit $ac_status); }; }; then |
| 8572 | ac_header_compiler=yes |
| 8573 | else |
| 8574 | echo "$as_me: failed program was:" >&5 |
| 8575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8576 | |
| 8577 | ac_header_compiler=no |
| 8578 | fi |
| 8579 | |
| 8580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8581 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8582 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8583 | |
| 8584 | # Is the header present? |
| 8585 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8586 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 8587 | cat >conftest.$ac_ext <<_ACEOF |
| 8588 | /* confdefs.h. */ |
| 8589 | _ACEOF |
| 8590 | cat confdefs.h >>conftest.$ac_ext |
| 8591 | cat >>conftest.$ac_ext <<_ACEOF |
| 8592 | /* end confdefs.h. */ |
| 8593 | #include <$ac_header> |
| 8594 | _ACEOF |
| 8595 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8596 | case "(($ac_try" in |
| 8597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8598 | *) ac_try_echo=$ac_try;; |
| 8599 | esac |
| 8600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8601 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8602 | ac_status=$? |
| 8603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8604 | rm -f conftest.er1 |
| 8605 | cat conftest.err >&5 |
| 8606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8607 | (exit $ac_status); } >/dev/null; then |
| 8608 | if test -s conftest.err; then |
| 8609 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8610 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8611 | else |
| 8612 | ac_cpp_err= |
| 8613 | fi |
| 8614 | else |
| 8615 | ac_cpp_err=yes |
| 8616 | fi |
| 8617 | if test -z "$ac_cpp_err"; then |
| 8618 | ac_header_preproc=yes |
| 8619 | else |
| 8620 | echo "$as_me: failed program was:" >&5 |
| 8621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8622 | |
| 8623 | ac_header_preproc=no |
| 8624 | fi |
| 8625 | |
| 8626 | rm -f conftest.err conftest.$ac_ext |
| 8627 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8628 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8629 | |
| 8630 | # So? What about this header? |
| 8631 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8632 | yes:no: ) |
| 8633 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8634 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8636 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8637 | ac_header_preproc=yes |
| 8638 | ;; |
| 8639 | no:yes:* ) |
| 8640 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8641 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8642 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8643 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8644 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8645 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8646 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8647 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8649 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8650 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8651 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8652 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 8653 | ## ------------------------------------ ## |
| 8654 | ## Report this to http://llvm.org/bugs/ ## |
| 8655 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8656 | _ASBOX |
| 8657 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 8658 | ;; |
| 8659 | esac |
| 8660 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8662 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8664 | else |
| 8665 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8666 | fi |
| 8667 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8668 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8669 | echo "${ECHO_T}$ac_res" >&6; } |
| 8670 | |
| 8671 | fi |
| 8672 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8673 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8674 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8675 | _ACEOF |
| 8676 | |
| 8677 | fi |
| 8678 | |
| 8679 | done |
| 8680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8681 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8682 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8683 | enableval=$enable_ltdl_install; |
| 8684 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8685 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8686 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8687 | |
| 8688 | |
| 8689 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8690 | INSTALL_LTDL_TRUE= |
| 8691 | INSTALL_LTDL_FALSE='#' |
| 8692 | else |
| 8693 | INSTALL_LTDL_TRUE='#' |
| 8694 | INSTALL_LTDL_FALSE= |
| 8695 | fi |
| 8696 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8697 | |
| 8698 | |
| 8699 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8700 | CONVENIENCE_LTDL_TRUE= |
| 8701 | CONVENIENCE_LTDL_FALSE='#' |
| 8702 | else |
| 8703 | CONVENIENCE_LTDL_TRUE='#' |
| 8704 | CONVENIENCE_LTDL_FALSE= |
| 8705 | fi |
| 8706 | |
| 8707 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8708 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8709 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8710 | library_names_spec= |
| 8711 | libname_spec='lib$name' |
| 8712 | soname_spec= |
| 8713 | shrext_cmds=".so" |
| 8714 | postinstall_cmds= |
| 8715 | postuninstall_cmds= |
| 8716 | finish_cmds= |
| 8717 | finish_eval= |
| 8718 | shlibpath_var= |
| 8719 | shlibpath_overrides_runpath=unknown |
| 8720 | version_type=none |
| 8721 | dynamic_linker="$host_os ld.so" |
| 8722 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8723 | if test "$GCC" = yes; then |
| 8724 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8725 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8726 | # if the path contains ";" then we assume it to be the separator |
| 8727 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8728 | # assumed that no part of a normal pathname contains ";" but that should |
| 8729 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8730 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8731 | else |
| 8732 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8733 | fi |
| 8734 | else |
| 8735 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8736 | fi |
| 8737 | need_lib_prefix=unknown |
| 8738 | hardcode_into_libs=no |
| 8739 | |
| 8740 | # when you set need_version to no, make sure it does not cause -set_version |
| 8741 | # flags to be left without arguments |
| 8742 | need_version=unknown |
| 8743 | |
| 8744 | case $host_os in |
| 8745 | aix3*) |
| 8746 | version_type=linux |
| 8747 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8748 | shlibpath_var=LIBPATH |
| 8749 | |
| 8750 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8751 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8752 | ;; |
| 8753 | |
| 8754 | aix4* | aix5*) |
| 8755 | version_type=linux |
| 8756 | need_lib_prefix=no |
| 8757 | need_version=no |
| 8758 | hardcode_into_libs=yes |
| 8759 | if test "$host_cpu" = ia64; then |
| 8760 | # AIX 5 supports IA64 |
| 8761 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8762 | shlibpath_var=LD_LIBRARY_PATH |
| 8763 | else |
| 8764 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8765 | # for dependence libraries. The import file would start with |
| 8766 | # the line `#! .'. This would cause the generated library to |
| 8767 | # depend on `.', always an invalid library. This was fixed in |
| 8768 | # development snapshots of GCC prior to 3.0. |
| 8769 | case $host_os in |
| 8770 | aix4 | aix4.[01] | aix4.[01].*) |
| 8771 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8772 | echo ' yes ' |
| 8773 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8774 | : |
| 8775 | else |
| 8776 | can_build_shared=no |
| 8777 | fi |
| 8778 | ;; |
| 8779 | esac |
| 8780 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8781 | # soname into executable. Probably we can add versioning support to |
| 8782 | # collect2, so additional links can be useful in future. |
| 8783 | if test "$aix_use_runtimelinking" = yes; then |
| 8784 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8785 | # instead of lib<name>.a to let people know that these are not |
| 8786 | # typical AIX shared libraries. |
| 8787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8788 | else |
| 8789 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8790 | # and later when we are not doing run time linking. |
| 8791 | library_names_spec='${libname}${release}.a $libname.a' |
| 8792 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8793 | fi |
| 8794 | shlibpath_var=LIBPATH |
| 8795 | fi |
| 8796 | ;; |
| 8797 | |
| 8798 | amigaos*) |
| 8799 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8800 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8801 | 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' |
| 8802 | ;; |
| 8803 | |
| 8804 | beos*) |
| 8805 | library_names_spec='${libname}${shared_ext}' |
| 8806 | dynamic_linker="$host_os ld.so" |
| 8807 | shlibpath_var=LIBRARY_PATH |
| 8808 | ;; |
| 8809 | |
| 8810 | bsdi[45]*) |
| 8811 | version_type=linux |
| 8812 | need_version=no |
| 8813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8815 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8816 | shlibpath_var=LD_LIBRARY_PATH |
| 8817 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8818 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8819 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8820 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8821 | # libtool to hard-code these into programs |
| 8822 | ;; |
| 8823 | |
| 8824 | cygwin* | mingw* | pw32*) |
| 8825 | version_type=windows |
| 8826 | shrext_cmds=".dll" |
| 8827 | need_version=no |
| 8828 | need_lib_prefix=no |
| 8829 | |
| 8830 | case $GCC,$host_os in |
| 8831 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8832 | library_names_spec='$libname.dll.a' |
| 8833 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8834 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8835 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8836 | dldir=$destdir/`dirname \$dlpath`~ |
| 8837 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8838 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8839 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8840 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8841 | dlpath=$dir/\$dldll~ |
| 8842 | $rm \$dlpath' |
| 8843 | shlibpath_overrides_runpath=yes |
| 8844 | |
| 8845 | case $host_os in |
| 8846 | cygwin*) |
| 8847 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8848 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8849 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8850 | ;; |
| 8851 | mingw*) |
| 8852 | # MinGW DLLs use traditional 'lib' prefix |
| 8853 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8854 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8855 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8856 | # It is most probably a Windows format PATH printed by |
| 8857 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8858 | # path with ; separators, and with drive letters. We can handle the |
| 8859 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8860 | # especially as we might pass files found there to a mingw objdump, |
| 8861 | # which wouldn't understand a cygwinified path. Ahh. |
| 8862 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8863 | else |
| 8864 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8865 | fi |
| 8866 | ;; |
| 8867 | pw32*) |
| 8868 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8869 | 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] | 8870 | ;; |
| 8871 | esac |
| 8872 | ;; |
| 8873 | |
| 8874 | *) |
| 8875 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8876 | ;; |
| 8877 | esac |
| 8878 | dynamic_linker='Win32 ld.exe' |
| 8879 | # FIXME: first we should search . and the directory the executable is in |
| 8880 | shlibpath_var=PATH |
| 8881 | ;; |
| 8882 | |
| 8883 | darwin* | rhapsody*) |
| 8884 | dynamic_linker="$host_os dyld" |
| 8885 | version_type=darwin |
| 8886 | need_lib_prefix=no |
| 8887 | need_version=no |
| 8888 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8889 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8890 | shlibpath_overrides_runpath=yes |
| 8891 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8892 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8893 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8894 | if test "$GCC" = yes; then |
| 8895 | 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"` |
| 8896 | else |
| 8897 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8898 | fi |
| 8899 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8900 | ;; |
| 8901 | |
| 8902 | dgux*) |
| 8903 | version_type=linux |
| 8904 | need_lib_prefix=no |
| 8905 | need_version=no |
| 8906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8907 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8908 | shlibpath_var=LD_LIBRARY_PATH |
| 8909 | ;; |
| 8910 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8911 | freebsd1.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8912 | dynamic_linker=no |
| 8913 | ;; |
| 8914 | |
| 8915 | kfreebsd*-gnu) |
| 8916 | version_type=linux |
| 8917 | need_lib_prefix=no |
| 8918 | need_version=no |
| 8919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8920 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8921 | shlibpath_var=LD_LIBRARY_PATH |
| 8922 | shlibpath_overrides_runpath=no |
| 8923 | hardcode_into_libs=yes |
| 8924 | dynamic_linker='GNU ld.so' |
| 8925 | ;; |
| 8926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8927 | freebsd* | dragonfly*) |
| 8928 | # DragonFly does not have aout. When/if they implement a new |
| 8929 | # versioning mechanism, adjust this. |
| 8930 | if test -x /usr/bin/objformat; then |
| 8931 | objformat=`/usr/bin/objformat` |
| 8932 | else |
| 8933 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8934 | freebsd[123].*) objformat=aout ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8935 | *) objformat=elf ;; |
| 8936 | esac |
| 8937 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8938 | version_type=freebsd-$objformat |
| 8939 | case $version_type in |
| 8940 | freebsd-elf*) |
| 8941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8942 | need_version=no |
| 8943 | need_lib_prefix=no |
| 8944 | ;; |
| 8945 | freebsd-*) |
| 8946 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8947 | need_version=yes |
| 8948 | ;; |
| 8949 | esac |
| 8950 | shlibpath_var=LD_LIBRARY_PATH |
| 8951 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8952 | freebsd2.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8953 | shlibpath_overrides_runpath=yes |
| 8954 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8955 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8956 | shlibpath_overrides_runpath=yes |
| 8957 | hardcode_into_libs=yes |
| 8958 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8959 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8960 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8961 | shlibpath_overrides_runpath=no |
| 8962 | hardcode_into_libs=yes |
| 8963 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8964 | freebsd*) # from 4.6 on |
| 8965 | shlibpath_overrides_runpath=yes |
| 8966 | hardcode_into_libs=yes |
| 8967 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8968 | esac |
| 8969 | ;; |
| 8970 | |
| 8971 | gnu*) |
| 8972 | version_type=linux |
| 8973 | need_lib_prefix=no |
| 8974 | need_version=no |
| 8975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8976 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8977 | shlibpath_var=LD_LIBRARY_PATH |
| 8978 | hardcode_into_libs=yes |
| 8979 | ;; |
| 8980 | |
| 8981 | hpux9* | hpux10* | hpux11*) |
| 8982 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8983 | # link against other versions. |
| 8984 | version_type=sunos |
| 8985 | need_lib_prefix=no |
| 8986 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8987 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8988 | ia64*) |
| 8989 | shrext_cmds='.so' |
| 8990 | hardcode_into_libs=yes |
| 8991 | dynamic_linker="$host_os dld.so" |
| 8992 | shlibpath_var=LD_LIBRARY_PATH |
| 8993 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8995 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8996 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8997 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8998 | else |
| 8999 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9000 | fi |
| 9001 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9002 | ;; |
| 9003 | hppa*64*) |
| 9004 | shrext_cmds='.sl' |
| 9005 | hardcode_into_libs=yes |
| 9006 | dynamic_linker="$host_os dld.sl" |
| 9007 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9008 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9010 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9011 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9012 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9013 | ;; |
| 9014 | *) |
| 9015 | shrext_cmds='.sl' |
| 9016 | dynamic_linker="$host_os dld.sl" |
| 9017 | shlibpath_var=SHLIB_PATH |
| 9018 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9020 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9021 | ;; |
| 9022 | esac |
| 9023 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9024 | postinstall_cmds='chmod 555 $lib' |
| 9025 | ;; |
| 9026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9027 | interix3*) |
| 9028 | version_type=linux |
| 9029 | need_lib_prefix=no |
| 9030 | need_version=no |
| 9031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9032 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9033 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9034 | shlibpath_var=LD_LIBRARY_PATH |
| 9035 | shlibpath_overrides_runpath=no |
| 9036 | hardcode_into_libs=yes |
| 9037 | ;; |
| 9038 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9039 | irix5* | irix6* | nonstopux*) |
| 9040 | case $host_os in |
| 9041 | nonstopux*) version_type=nonstopux ;; |
| 9042 | *) |
| 9043 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9044 | version_type=linux |
| 9045 | else |
| 9046 | version_type=irix |
| 9047 | fi ;; |
| 9048 | esac |
| 9049 | need_lib_prefix=no |
| 9050 | need_version=no |
| 9051 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9053 | case $host_os in |
| 9054 | irix5* | nonstopux*) |
| 9055 | libsuff= shlibsuff= |
| 9056 | ;; |
| 9057 | *) |
| 9058 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9059 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9060 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9061 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9062 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9063 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9064 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9065 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9066 | esac |
| 9067 | ;; |
| 9068 | esac |
| 9069 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9070 | shlibpath_overrides_runpath=no |
| 9071 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9072 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9073 | hardcode_into_libs=yes |
| 9074 | ;; |
| 9075 | |
| 9076 | # No shared lib support for Linux oldld, aout, or coff. |
| 9077 | linux*oldld* | linux*aout* | linux*coff*) |
| 9078 | dynamic_linker=no |
| 9079 | ;; |
| 9080 | |
| 9081 | # This must be Linux ELF. |
| 9082 | linux*) |
| 9083 | version_type=linux |
| 9084 | need_lib_prefix=no |
| 9085 | need_version=no |
| 9086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9087 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9088 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9089 | shlibpath_var=LD_LIBRARY_PATH |
| 9090 | shlibpath_overrides_runpath=no |
| 9091 | # This implies no fast_install, which is unacceptable. |
| 9092 | # Some rework will be needed to allow for fast_install |
| 9093 | # before this can be enabled. |
| 9094 | hardcode_into_libs=yes |
| 9095 | |
| 9096 | # Append ld.so.conf contents to the search path |
| 9097 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9098 | 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] | 9099 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9100 | fi |
| 9101 | |
| 9102 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9103 | # powerpc, because MkLinux only supported shared libraries with the |
| 9104 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9105 | # most powerpc-linux boxes support dynamic linking these days and |
| 9106 | # people can always --disable-shared, the test was removed, and we |
| 9107 | # assume the GNU/Linux dynamic linker is in use. |
| 9108 | dynamic_linker='GNU/Linux ld.so' |
| 9109 | ;; |
| 9110 | |
| 9111 | knetbsd*-gnu) |
| 9112 | version_type=linux |
| 9113 | need_lib_prefix=no |
| 9114 | need_version=no |
| 9115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9116 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9117 | shlibpath_var=LD_LIBRARY_PATH |
| 9118 | shlibpath_overrides_runpath=no |
| 9119 | hardcode_into_libs=yes |
| 9120 | dynamic_linker='GNU ld.so' |
| 9121 | ;; |
| 9122 | |
| 9123 | netbsd*) |
| 9124 | version_type=sunos |
| 9125 | need_lib_prefix=no |
| 9126 | need_version=no |
| 9127 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9129 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9130 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9131 | else |
| 9132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9133 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9134 | dynamic_linker='NetBSD ld.elf_so' |
| 9135 | fi |
| 9136 | shlibpath_var=LD_LIBRARY_PATH |
| 9137 | shlibpath_overrides_runpath=yes |
| 9138 | hardcode_into_libs=yes |
| 9139 | ;; |
| 9140 | |
| 9141 | newsos6) |
| 9142 | version_type=linux |
| 9143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9144 | shlibpath_var=LD_LIBRARY_PATH |
| 9145 | shlibpath_overrides_runpath=yes |
| 9146 | ;; |
| 9147 | |
| 9148 | nto-qnx*) |
| 9149 | version_type=linux |
| 9150 | need_lib_prefix=no |
| 9151 | need_version=no |
| 9152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9153 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9154 | shlibpath_var=LD_LIBRARY_PATH |
| 9155 | shlibpath_overrides_runpath=yes |
| 9156 | ;; |
| 9157 | |
| 9158 | openbsd*) |
| 9159 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9160 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9161 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9162 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9163 | case $host_os in |
| 9164 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9165 | *) need_version=no ;; |
| 9166 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9168 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9169 | shlibpath_var=LD_LIBRARY_PATH |
| 9170 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9171 | case $host_os in |
| 9172 | openbsd2.[89] | openbsd2.[89].*) |
| 9173 | shlibpath_overrides_runpath=no |
| 9174 | ;; |
| 9175 | *) |
| 9176 | shlibpath_overrides_runpath=yes |
| 9177 | ;; |
| 9178 | esac |
| 9179 | else |
| 9180 | shlibpath_overrides_runpath=yes |
| 9181 | fi |
| 9182 | ;; |
| 9183 | |
| 9184 | os2*) |
| 9185 | libname_spec='$name' |
| 9186 | shrext_cmds=".dll" |
| 9187 | need_lib_prefix=no |
| 9188 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9189 | dynamic_linker='OS/2 ld.exe' |
| 9190 | shlibpath_var=LIBPATH |
| 9191 | ;; |
| 9192 | |
| 9193 | osf3* | osf4* | osf5*) |
| 9194 | version_type=osf |
| 9195 | need_lib_prefix=no |
| 9196 | need_version=no |
| 9197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9199 | shlibpath_var=LD_LIBRARY_PATH |
| 9200 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9201 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9202 | ;; |
| 9203 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9204 | solaris*) |
| 9205 | version_type=linux |
| 9206 | need_lib_prefix=no |
| 9207 | need_version=no |
| 9208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9209 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9210 | shlibpath_var=LD_LIBRARY_PATH |
| 9211 | shlibpath_overrides_runpath=yes |
| 9212 | hardcode_into_libs=yes |
| 9213 | # ldd complains unless libraries are executable |
| 9214 | postinstall_cmds='chmod +x $lib' |
| 9215 | ;; |
| 9216 | |
| 9217 | sunos4*) |
| 9218 | version_type=sunos |
| 9219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9220 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9221 | shlibpath_var=LD_LIBRARY_PATH |
| 9222 | shlibpath_overrides_runpath=yes |
| 9223 | if test "$with_gnu_ld" = yes; then |
| 9224 | need_lib_prefix=no |
| 9225 | fi |
| 9226 | need_version=yes |
| 9227 | ;; |
| 9228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9229 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9230 | version_type=linux |
| 9231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9233 | shlibpath_var=LD_LIBRARY_PATH |
| 9234 | case $host_vendor in |
| 9235 | sni) |
| 9236 | shlibpath_overrides_runpath=no |
| 9237 | need_lib_prefix=no |
| 9238 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9239 | runpath_var=LD_RUN_PATH |
| 9240 | ;; |
| 9241 | siemens) |
| 9242 | need_lib_prefix=no |
| 9243 | ;; |
| 9244 | motorola) |
| 9245 | need_lib_prefix=no |
| 9246 | need_version=no |
| 9247 | shlibpath_overrides_runpath=no |
| 9248 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9249 | ;; |
| 9250 | esac |
| 9251 | ;; |
| 9252 | |
| 9253 | sysv4*MP*) |
| 9254 | if test -d /usr/nec ;then |
| 9255 | version_type=linux |
| 9256 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9257 | soname_spec='$libname${shared_ext}.$major' |
| 9258 | shlibpath_var=LD_LIBRARY_PATH |
| 9259 | fi |
| 9260 | ;; |
| 9261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9262 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9263 | version_type=freebsd-elf |
| 9264 | need_lib_prefix=no |
| 9265 | need_version=no |
| 9266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9267 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9268 | shlibpath_var=LD_LIBRARY_PATH |
| 9269 | hardcode_into_libs=yes |
| 9270 | if test "$with_gnu_ld" = yes; then |
| 9271 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9272 | shlibpath_overrides_runpath=no |
| 9273 | else |
| 9274 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9275 | shlibpath_overrides_runpath=yes |
| 9276 | case $host_os in |
| 9277 | sco3.2v5*) |
| 9278 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9279 | ;; |
| 9280 | esac |
| 9281 | fi |
| 9282 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9283 | ;; |
| 9284 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9285 | uts4*) |
| 9286 | version_type=linux |
| 9287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9288 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9289 | shlibpath_var=LD_LIBRARY_PATH |
| 9290 | ;; |
| 9291 | |
| 9292 | *) |
| 9293 | dynamic_linker=no |
| 9294 | ;; |
| 9295 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9296 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9297 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9298 | test "$dynamic_linker" = no && can_build_shared=no |
| 9299 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9300 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9301 | if test "$GCC" = yes; then |
| 9302 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9303 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9304 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9305 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9306 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9307 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9308 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9310 | else |
| 9311 | |
| 9312 | module=yes |
| 9313 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9314 | |
| 9315 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9316 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9317 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9318 | if test -n "$libltdl_cv_shlibext"; then |
| 9319 | |
| 9320 | cat >>confdefs.h <<_ACEOF |
| 9321 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9322 | _ACEOF |
| 9323 | |
| 9324 | fi |
| 9325 | |
| 9326 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9327 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9328 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9329 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9331 | else |
| 9332 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9334 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9335 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9336 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9337 | |
| 9338 | cat >>confdefs.h <<_ACEOF |
| 9339 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9340 | _ACEOF |
| 9341 | |
| 9342 | fi |
| 9343 | |
| 9344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9345 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9346 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9347 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9349 | else |
| 9350 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9351 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9352 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9353 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9354 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9355 | sys_search_path= |
| 9356 | for dir in $libltdl_cv_sys_search_path; do |
| 9357 | if test -z "$sys_search_path"; then |
| 9358 | sys_search_path="$dir" |
| 9359 | else |
| 9360 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9361 | fi |
| 9362 | done |
| 9363 | |
| 9364 | cat >>confdefs.h <<_ACEOF |
| 9365 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9366 | _ACEOF |
| 9367 | |
| 9368 | fi |
| 9369 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9370 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9371 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9372 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9374 | else |
| 9375 | libltdl_cv_objdir="$objdir" |
| 9376 | if test -n "$objdir"; then |
| 9377 | : |
| 9378 | else |
| 9379 | rm -f .libs 2>/dev/null |
| 9380 | mkdir .libs 2>/dev/null |
| 9381 | if test -d .libs; then |
| 9382 | libltdl_cv_objdir=.libs |
| 9383 | else |
| 9384 | # MS-DOS does not allow filenames that begin with a dot. |
| 9385 | libltdl_cv_objdir=_libs |
| 9386 | fi |
| 9387 | rmdir .libs 2>/dev/null |
| 9388 | fi |
| 9389 | |
| 9390 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9391 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9392 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9393 | |
| 9394 | cat >>confdefs.h <<_ACEOF |
| 9395 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9396 | _ACEOF |
| 9397 | |
| 9398 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9399 | |
| 9400 | |
| 9401 | |
| 9402 | |
| 9403 | # 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] | 9404 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9405 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 9406 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9408 | else |
| 9409 | |
| 9410 | # These are sane defaults that work on at least a few old systems. |
| 9411 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9412 | |
| 9413 | # Character class describing NM global symbol codes. |
| 9414 | symcode='[BCDEGRST]' |
| 9415 | |
| 9416 | # Regexp to match symbols that can be accessed directly from C. |
| 9417 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9418 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9419 | # Transform an extracted symbol line into a proper C declaration |
| 9420 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9421 | |
| 9422 | # Transform an extracted symbol line into symbol name and symbol address |
| 9423 | 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'" |
| 9424 | |
| 9425 | # Define system-specific variables. |
| 9426 | case $host_os in |
| 9427 | aix*) |
| 9428 | symcode='[BCDT]' |
| 9429 | ;; |
| 9430 | cygwin* | mingw* | pw32*) |
| 9431 | symcode='[ABCDGISTW]' |
| 9432 | ;; |
| 9433 | hpux*) # Its linker distinguishes data from code symbols |
| 9434 | if test "$host_cpu" = ia64; then |
| 9435 | symcode='[ABCDEGRST]' |
| 9436 | fi |
| 9437 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9438 | 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'" |
| 9439 | ;; |
| 9440 | linux*) |
| 9441 | if test "$host_cpu" = ia64; then |
| 9442 | symcode='[ABCDGIRSTW]' |
| 9443 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9444 | 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'" |
| 9445 | fi |
| 9446 | ;; |
| 9447 | irix* | nonstopux*) |
| 9448 | symcode='[BCDEGRST]' |
| 9449 | ;; |
| 9450 | osf*) |
| 9451 | symcode='[BCDEGQRST]' |
| 9452 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9453 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9454 | symcode='[BDRT]' |
| 9455 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9456 | sco3.2v5*) |
| 9457 | symcode='[DT]' |
| 9458 | ;; |
| 9459 | sysv4.2uw2*) |
| 9460 | symcode='[DT]' |
| 9461 | ;; |
| 9462 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9463 | symcode='[ABDT]' |
| 9464 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9465 | sysv4) |
| 9466 | symcode='[DFNSTU]' |
| 9467 | ;; |
| 9468 | esac |
| 9469 | |
| 9470 | # Handle CRLF in mingw tool chain |
| 9471 | opt_cr= |
| 9472 | case $build_os in |
| 9473 | mingw*) |
| 9474 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9475 | ;; |
| 9476 | esac |
| 9477 | |
| 9478 | # If we're using GNU nm, then use its standard symbol codes. |
| 9479 | case `$NM -V 2>&1` in |
| 9480 | *GNU* | *'with BFD'*) |
| 9481 | symcode='[ABCDGIRSTW]' ;; |
| 9482 | esac |
| 9483 | |
| 9484 | # Try without a prefix undercore, then with it. |
| 9485 | for ac_symprfx in "" "_"; do |
| 9486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9487 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9488 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9489 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9490 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9491 | 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] | 9492 | |
| 9493 | # Check to see that the pipe works correctly. |
| 9494 | pipe_works=no |
| 9495 | |
| 9496 | rm -f conftest* |
| 9497 | cat > conftest.$ac_ext <<EOF |
| 9498 | #ifdef __cplusplus |
| 9499 | extern "C" { |
| 9500 | #endif |
| 9501 | char nm_test_var; |
| 9502 | void nm_test_func(){} |
| 9503 | #ifdef __cplusplus |
| 9504 | } |
| 9505 | #endif |
| 9506 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9507 | EOF |
| 9508 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9510 | (eval $ac_compile) 2>&5 |
| 9511 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9513 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9514 | # Now try to grab the symbols. |
| 9515 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9516 | 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] | 9517 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9518 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9520 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9521 | # Try sorting and uniquifying the output. |
| 9522 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9523 | mv -f "$nlist"T "$nlist" |
| 9524 | else |
| 9525 | rm -f "$nlist"T |
| 9526 | fi |
| 9527 | |
| 9528 | # Make sure that we snagged all the symbols we need. |
| 9529 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9530 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9531 | cat <<EOF > conftest.$ac_ext |
| 9532 | #ifdef __cplusplus |
| 9533 | extern "C" { |
| 9534 | #endif |
| 9535 | |
| 9536 | EOF |
| 9537 | # Now generate the symbol file. |
| 9538 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9539 | |
| 9540 | cat <<EOF >> conftest.$ac_ext |
| 9541 | #if defined (__STDC__) && __STDC__ |
| 9542 | # define lt_ptr_t void * |
| 9543 | #else |
| 9544 | # define lt_ptr_t char * |
| 9545 | # define const |
| 9546 | #endif |
| 9547 | |
| 9548 | /* The mapping between symbol names and symbols. */ |
| 9549 | const struct { |
| 9550 | const char *name; |
| 9551 | lt_ptr_t address; |
| 9552 | } |
| 9553 | lt_preloaded_symbols[] = |
| 9554 | { |
| 9555 | EOF |
| 9556 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9557 | cat <<\EOF >> conftest.$ac_ext |
| 9558 | {0, (lt_ptr_t) 0} |
| 9559 | }; |
| 9560 | |
| 9561 | #ifdef __cplusplus |
| 9562 | } |
| 9563 | #endif |
| 9564 | EOF |
| 9565 | # Now try linking the two files. |
| 9566 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9567 | lt_save_LIBS="$LIBS" |
| 9568 | lt_save_CFLAGS="$CFLAGS" |
| 9569 | LIBS="conftstm.$ac_objext" |
| 9570 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9572 | (eval $ac_link) 2>&5 |
| 9573 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9575 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9576 | pipe_works=yes |
| 9577 | fi |
| 9578 | LIBS="$lt_save_LIBS" |
| 9579 | CFLAGS="$lt_save_CFLAGS" |
| 9580 | else |
| 9581 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9582 | fi |
| 9583 | else |
| 9584 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9585 | fi |
| 9586 | else |
| 9587 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9588 | fi |
| 9589 | else |
| 9590 | echo "$progname: failed program was:" >&5 |
| 9591 | cat conftest.$ac_ext >&5 |
| 9592 | fi |
| 9593 | rm -f conftest* conftst* |
| 9594 | |
| 9595 | # Do not use the global_symbol_pipe unless it works. |
| 9596 | if test "$pipe_works" = yes; then |
| 9597 | break |
| 9598 | else |
| 9599 | lt_cv_sys_global_symbol_pipe= |
| 9600 | fi |
| 9601 | done |
| 9602 | |
| 9603 | fi |
| 9604 | |
| 9605 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9606 | lt_cv_sys_global_symbol_to_cdecl= |
| 9607 | fi |
| 9608 | 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] | 9609 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9610 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9611 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9612 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9613 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9614 | fi |
| 9615 | |
| 9616 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9617 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9618 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 9619 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9621 | else |
| 9622 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9623 | libltdl_cv_preloaded_symbols=yes |
| 9624 | else |
| 9625 | libltdl_cv_preloaded_symbols=no |
| 9626 | fi |
| 9627 | |
| 9628 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9629 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9630 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9631 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9632 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9633 | cat >>confdefs.h <<\_ACEOF |
| 9634 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9635 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9636 | |
| 9637 | fi |
| 9638 | |
| 9639 | LIBADD_DL= |
| 9640 | |
| 9641 | ac_ext=c |
| 9642 | ac_cpp='$CPP $CPPFLAGS' |
| 9643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9646 | |
| 9647 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9648 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9649 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 9650 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9652 | else |
| 9653 | cat >conftest.$ac_ext <<_ACEOF |
| 9654 | /* confdefs.h. */ |
| 9655 | _ACEOF |
| 9656 | cat confdefs.h >>conftest.$ac_ext |
| 9657 | cat >>conftest.$ac_ext <<_ACEOF |
| 9658 | /* end confdefs.h. */ |
| 9659 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9660 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9661 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9662 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9663 | /* System header to define __stub macros and hopefully few prototypes, |
| 9664 | which can conflict with char shl_load (); below. |
| 9665 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9666 | <limits.h> exists even on freestanding compilers. */ |
| 9667 | |
| 9668 | #ifdef __STDC__ |
| 9669 | # include <limits.h> |
| 9670 | #else |
| 9671 | # include <assert.h> |
| 9672 | #endif |
| 9673 | |
| 9674 | #undef shl_load |
| 9675 | |
| 9676 | /* Override any GCC internal prototype to avoid an error. |
| 9677 | Use char because int might match the return type of a GCC |
| 9678 | builtin and then its argument prototype would still apply. */ |
| 9679 | #ifdef __cplusplus |
| 9680 | extern "C" |
| 9681 | #endif |
| 9682 | char shl_load (); |
| 9683 | /* The GNU C library defines this for functions which it implements |
| 9684 | to always fail with ENOSYS. Some functions are actually named |
| 9685 | something starting with __ and the normal name is an alias. */ |
| 9686 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9687 | choke me |
| 9688 | #endif |
| 9689 | |
| 9690 | int |
| 9691 | main () |
| 9692 | { |
| 9693 | return shl_load (); |
| 9694 | ; |
| 9695 | return 0; |
| 9696 | } |
| 9697 | _ACEOF |
| 9698 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9699 | if { (ac_try="$ac_link" |
| 9700 | case "(($ac_try" in |
| 9701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9702 | *) ac_try_echo=$ac_try;; |
| 9703 | esac |
| 9704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9705 | (eval "$ac_link") 2>conftest.er1 |
| 9706 | ac_status=$? |
| 9707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9708 | rm -f conftest.er1 |
| 9709 | cat conftest.err >&5 |
| 9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9711 | (exit $ac_status); } && |
| 9712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9713 | { (case "(($ac_try" in |
| 9714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9715 | *) ac_try_echo=$ac_try;; |
| 9716 | esac |
| 9717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9718 | (eval "$ac_try") 2>&5 |
| 9719 | ac_status=$? |
| 9720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9721 | (exit $ac_status); }; } && |
| 9722 | { ac_try='test -s conftest$ac_exeext' |
| 9723 | { (case "(($ac_try" in |
| 9724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9725 | *) ac_try_echo=$ac_try;; |
| 9726 | esac |
| 9727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9728 | (eval "$ac_try") 2>&5 |
| 9729 | ac_status=$? |
| 9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9731 | (exit $ac_status); }; }; then |
| 9732 | ac_cv_func_shl_load=yes |
| 9733 | else |
| 9734 | echo "$as_me: failed program was:" >&5 |
| 9735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9736 | |
| 9737 | ac_cv_func_shl_load=no |
| 9738 | fi |
| 9739 | |
| 9740 | rm -f core conftest.err conftest.$ac_objext \ |
| 9741 | conftest$ac_exeext conftest.$ac_ext |
| 9742 | fi |
| 9743 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9744 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 9745 | if test $ac_cv_func_shl_load = yes; then |
| 9746 | |
| 9747 | cat >>confdefs.h <<\_ACEOF |
| 9748 | #define HAVE_SHL_LOAD 1 |
| 9749 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9750 | |
| 9751 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9752 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9753 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 9754 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9756 | else |
| 9757 | ac_check_lib_save_LIBS=$LIBS |
| 9758 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9759 | cat >conftest.$ac_ext <<_ACEOF |
| 9760 | /* confdefs.h. */ |
| 9761 | _ACEOF |
| 9762 | cat confdefs.h >>conftest.$ac_ext |
| 9763 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9764 | /* end confdefs.h. */ |
| 9765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9766 | /* Override any GCC internal prototype to avoid an error. |
| 9767 | Use char because int might match the return type of a GCC |
| 9768 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9769 | #ifdef __cplusplus |
| 9770 | extern "C" |
| 9771 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9772 | char shl_load (); |
| 9773 | int |
| 9774 | main () |
| 9775 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9776 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9777 | ; |
| 9778 | return 0; |
| 9779 | } |
| 9780 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9782 | if { (ac_try="$ac_link" |
| 9783 | case "(($ac_try" in |
| 9784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9785 | *) ac_try_echo=$ac_try;; |
| 9786 | esac |
| 9787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9788 | (eval "$ac_link") 2>conftest.er1 |
| 9789 | ac_status=$? |
| 9790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9791 | rm -f conftest.er1 |
| 9792 | cat conftest.err >&5 |
| 9793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9794 | (exit $ac_status); } && |
| 9795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9796 | { (case "(($ac_try" in |
| 9797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9798 | *) ac_try_echo=$ac_try;; |
| 9799 | esac |
| 9800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9801 | (eval "$ac_try") 2>&5 |
| 9802 | ac_status=$? |
| 9803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9804 | (exit $ac_status); }; } && |
| 9805 | { ac_try='test -s conftest$ac_exeext' |
| 9806 | { (case "(($ac_try" in |
| 9807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9808 | *) ac_try_echo=$ac_try;; |
| 9809 | esac |
| 9810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9811 | (eval "$ac_try") 2>&5 |
| 9812 | ac_status=$? |
| 9813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9814 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9815 | ac_cv_lib_dld_shl_load=yes |
| 9816 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9817 | echo "$as_me: failed program was:" >&5 |
| 9818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9819 | |
| 9820 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9821 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9822 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9823 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9824 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9825 | LIBS=$ac_check_lib_save_LIBS |
| 9826 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9827 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9828 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 9829 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9830 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9831 | cat >>confdefs.h <<\_ACEOF |
| 9832 | #define HAVE_SHL_LOAD 1 |
| 9833 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9834 | |
| 9835 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9836 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9837 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9838 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9839 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9841 | else |
| 9842 | ac_check_lib_save_LIBS=$LIBS |
| 9843 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9844 | cat >conftest.$ac_ext <<_ACEOF |
| 9845 | /* confdefs.h. */ |
| 9846 | _ACEOF |
| 9847 | cat confdefs.h >>conftest.$ac_ext |
| 9848 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9849 | /* end confdefs.h. */ |
| 9850 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9851 | /* Override any GCC internal prototype to avoid an error. |
| 9852 | Use char because int might match the return type of a GCC |
| 9853 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9854 | #ifdef __cplusplus |
| 9855 | extern "C" |
| 9856 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9857 | char dlopen (); |
| 9858 | int |
| 9859 | main () |
| 9860 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9861 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9862 | ; |
| 9863 | return 0; |
| 9864 | } |
| 9865 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9866 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9867 | if { (ac_try="$ac_link" |
| 9868 | case "(($ac_try" in |
| 9869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9870 | *) ac_try_echo=$ac_try;; |
| 9871 | esac |
| 9872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9873 | (eval "$ac_link") 2>conftest.er1 |
| 9874 | ac_status=$? |
| 9875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9876 | rm -f conftest.er1 |
| 9877 | cat conftest.err >&5 |
| 9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9879 | (exit $ac_status); } && |
| 9880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9881 | { (case "(($ac_try" in |
| 9882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9883 | *) ac_try_echo=$ac_try;; |
| 9884 | esac |
| 9885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9886 | (eval "$ac_try") 2>&5 |
| 9887 | ac_status=$? |
| 9888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9889 | (exit $ac_status); }; } && |
| 9890 | { ac_try='test -s conftest$ac_exeext' |
| 9891 | { (case "(($ac_try" in |
| 9892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9893 | *) ac_try_echo=$ac_try;; |
| 9894 | esac |
| 9895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9896 | (eval "$ac_try") 2>&5 |
| 9897 | ac_status=$? |
| 9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9899 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9900 | ac_cv_lib_dl_dlopen=yes |
| 9901 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9902 | echo "$as_me: failed program was:" >&5 |
| 9903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9904 | |
| 9905 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9906 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9907 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9908 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9909 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9910 | LIBS=$ac_check_lib_save_LIBS |
| 9911 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9912 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9913 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9914 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9915 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9916 | cat >>confdefs.h <<\_ACEOF |
| 9917 | #define HAVE_LIBDL 1 |
| 9918 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9919 | |
| 9920 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9921 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9922 | cat >conftest.$ac_ext <<_ACEOF |
| 9923 | /* confdefs.h. */ |
| 9924 | _ACEOF |
| 9925 | cat confdefs.h >>conftest.$ac_ext |
| 9926 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9927 | /* end confdefs.h. */ |
| 9928 | #if HAVE_DLFCN_H |
| 9929 | # include <dlfcn.h> |
| 9930 | #endif |
| 9931 | |
| 9932 | int |
| 9933 | main () |
| 9934 | { |
| 9935 | dlopen(0, 0); |
| 9936 | ; |
| 9937 | return 0; |
| 9938 | } |
| 9939 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9941 | if { (ac_try="$ac_link" |
| 9942 | case "(($ac_try" in |
| 9943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9944 | *) ac_try_echo=$ac_try;; |
| 9945 | esac |
| 9946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9947 | (eval "$ac_link") 2>conftest.er1 |
| 9948 | ac_status=$? |
| 9949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9950 | rm -f conftest.er1 |
| 9951 | cat conftest.err >&5 |
| 9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9953 | (exit $ac_status); } && |
| 9954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9955 | { (case "(($ac_try" in |
| 9956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9957 | *) ac_try_echo=$ac_try;; |
| 9958 | esac |
| 9959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9960 | (eval "$ac_try") 2>&5 |
| 9961 | ac_status=$? |
| 9962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9963 | (exit $ac_status); }; } && |
| 9964 | { ac_try='test -s conftest$ac_exeext' |
| 9965 | { (case "(($ac_try" in |
| 9966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9967 | *) ac_try_echo=$ac_try;; |
| 9968 | esac |
| 9969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9970 | (eval "$ac_try") 2>&5 |
| 9971 | ac_status=$? |
| 9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9973 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9974 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9975 | cat >>confdefs.h <<\_ACEOF |
| 9976 | #define HAVE_LIBDL 1 |
| 9977 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9978 | libltdl_cv_func_dlopen="yes" |
| 9979 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9980 | echo "$as_me: failed program was:" >&5 |
| 9981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9982 | |
| 9983 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9984 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 9985 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9987 | else |
| 9988 | ac_check_lib_save_LIBS=$LIBS |
| 9989 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9990 | cat >conftest.$ac_ext <<_ACEOF |
| 9991 | /* confdefs.h. */ |
| 9992 | _ACEOF |
| 9993 | cat confdefs.h >>conftest.$ac_ext |
| 9994 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9995 | /* end confdefs.h. */ |
| 9996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9997 | /* Override any GCC internal prototype to avoid an error. |
| 9998 | Use char because int might match the return type of a GCC |
| 9999 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10000 | #ifdef __cplusplus |
| 10001 | extern "C" |
| 10002 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10003 | char dlopen (); |
| 10004 | int |
| 10005 | main () |
| 10006 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10007 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10008 | ; |
| 10009 | return 0; |
| 10010 | } |
| 10011 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10013 | if { (ac_try="$ac_link" |
| 10014 | case "(($ac_try" in |
| 10015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10016 | *) ac_try_echo=$ac_try;; |
| 10017 | esac |
| 10018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10019 | (eval "$ac_link") 2>conftest.er1 |
| 10020 | ac_status=$? |
| 10021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10022 | rm -f conftest.er1 |
| 10023 | cat conftest.err >&5 |
| 10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10025 | (exit $ac_status); } && |
| 10026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10027 | { (case "(($ac_try" in |
| 10028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10029 | *) ac_try_echo=$ac_try;; |
| 10030 | esac |
| 10031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10032 | (eval "$ac_try") 2>&5 |
| 10033 | ac_status=$? |
| 10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10035 | (exit $ac_status); }; } && |
| 10036 | { ac_try='test -s conftest$ac_exeext' |
| 10037 | { (case "(($ac_try" in |
| 10038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10039 | *) ac_try_echo=$ac_try;; |
| 10040 | esac |
| 10041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10042 | (eval "$ac_try") 2>&5 |
| 10043 | ac_status=$? |
| 10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10045 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10046 | ac_cv_lib_svld_dlopen=yes |
| 10047 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10048 | echo "$as_me: failed program was:" >&5 |
| 10049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10050 | |
| 10051 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10052 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10053 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10054 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10055 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10056 | LIBS=$ac_check_lib_save_LIBS |
| 10057 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10058 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10059 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10060 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10061 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10062 | cat >>confdefs.h <<\_ACEOF |
| 10063 | #define HAVE_LIBDL 1 |
| 10064 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10065 | |
| 10066 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10067 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10068 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10069 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10070 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10072 | else |
| 10073 | ac_check_lib_save_LIBS=$LIBS |
| 10074 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10075 | cat >conftest.$ac_ext <<_ACEOF |
| 10076 | /* confdefs.h. */ |
| 10077 | _ACEOF |
| 10078 | cat confdefs.h >>conftest.$ac_ext |
| 10079 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10080 | /* end confdefs.h. */ |
| 10081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10082 | /* Override any GCC internal prototype to avoid an error. |
| 10083 | Use char because int might match the return type of a GCC |
| 10084 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10085 | #ifdef __cplusplus |
| 10086 | extern "C" |
| 10087 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10088 | char dld_link (); |
| 10089 | int |
| 10090 | main () |
| 10091 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10092 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10093 | ; |
| 10094 | return 0; |
| 10095 | } |
| 10096 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10097 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10098 | if { (ac_try="$ac_link" |
| 10099 | case "(($ac_try" in |
| 10100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10101 | *) ac_try_echo=$ac_try;; |
| 10102 | esac |
| 10103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10104 | (eval "$ac_link") 2>conftest.er1 |
| 10105 | ac_status=$? |
| 10106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10107 | rm -f conftest.er1 |
| 10108 | cat conftest.err >&5 |
| 10109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10110 | (exit $ac_status); } && |
| 10111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10112 | { (case "(($ac_try" in |
| 10113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10114 | *) ac_try_echo=$ac_try;; |
| 10115 | esac |
| 10116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10117 | (eval "$ac_try") 2>&5 |
| 10118 | ac_status=$? |
| 10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10120 | (exit $ac_status); }; } && |
| 10121 | { ac_try='test -s conftest$ac_exeext' |
| 10122 | { (case "(($ac_try" in |
| 10123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10124 | *) ac_try_echo=$ac_try;; |
| 10125 | esac |
| 10126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10127 | (eval "$ac_try") 2>&5 |
| 10128 | ac_status=$? |
| 10129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10130 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10131 | ac_cv_lib_dld_dld_link=yes |
| 10132 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10133 | echo "$as_me: failed program was:" >&5 |
| 10134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10135 | |
| 10136 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10137 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10138 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10139 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10140 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10141 | LIBS=$ac_check_lib_save_LIBS |
| 10142 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10143 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10144 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10145 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10146 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10147 | cat >>confdefs.h <<\_ACEOF |
| 10148 | #define HAVE_DLD 1 |
| 10149 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10150 | |
| 10151 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10152 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10153 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10154 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10155 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10157 | else |
| 10158 | cat >conftest.$ac_ext <<_ACEOF |
| 10159 | /* confdefs.h. */ |
| 10160 | _ACEOF |
| 10161 | cat confdefs.h >>conftest.$ac_ext |
| 10162 | cat >>conftest.$ac_ext <<_ACEOF |
| 10163 | /* end confdefs.h. */ |
| 10164 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10166 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10167 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10168 | /* System header to define __stub macros and hopefully few prototypes, |
| 10169 | which can conflict with char _dyld_func_lookup (); below. |
| 10170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10171 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10172 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10173 | #ifdef __STDC__ |
| 10174 | # include <limits.h> |
| 10175 | #else |
| 10176 | # include <assert.h> |
| 10177 | #endif |
| 10178 | |
| 10179 | #undef _dyld_func_lookup |
| 10180 | |
| 10181 | /* Override any GCC internal prototype to avoid an error. |
| 10182 | Use char because int might match the return type of a GCC |
| 10183 | builtin and then its argument prototype would still apply. */ |
| 10184 | #ifdef __cplusplus |
| 10185 | extern "C" |
| 10186 | #endif |
| 10187 | char _dyld_func_lookup (); |
| 10188 | /* The GNU C library defines this for functions which it implements |
| 10189 | to always fail with ENOSYS. Some functions are actually named |
| 10190 | something starting with __ and the normal name is an alias. */ |
| 10191 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10192 | choke me |
| 10193 | #endif |
| 10194 | |
| 10195 | int |
| 10196 | main () |
| 10197 | { |
| 10198 | return _dyld_func_lookup (); |
| 10199 | ; |
| 10200 | return 0; |
| 10201 | } |
| 10202 | _ACEOF |
| 10203 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10204 | if { (ac_try="$ac_link" |
| 10205 | case "(($ac_try" in |
| 10206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10207 | *) ac_try_echo=$ac_try;; |
| 10208 | esac |
| 10209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10210 | (eval "$ac_link") 2>conftest.er1 |
| 10211 | ac_status=$? |
| 10212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10213 | rm -f conftest.er1 |
| 10214 | cat conftest.err >&5 |
| 10215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10216 | (exit $ac_status); } && |
| 10217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10218 | { (case "(($ac_try" in |
| 10219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10220 | *) ac_try_echo=$ac_try;; |
| 10221 | esac |
| 10222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10223 | (eval "$ac_try") 2>&5 |
| 10224 | ac_status=$? |
| 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10226 | (exit $ac_status); }; } && |
| 10227 | { ac_try='test -s conftest$ac_exeext' |
| 10228 | { (case "(($ac_try" in |
| 10229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10230 | *) ac_try_echo=$ac_try;; |
| 10231 | esac |
| 10232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10233 | (eval "$ac_try") 2>&5 |
| 10234 | ac_status=$? |
| 10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10236 | (exit $ac_status); }; }; then |
| 10237 | ac_cv_func__dyld_func_lookup=yes |
| 10238 | else |
| 10239 | echo "$as_me: failed program was:" >&5 |
| 10240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10241 | |
| 10242 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10244 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10245 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10246 | conftest$ac_exeext conftest.$ac_ext |
| 10247 | fi |
| 10248 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10249 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10250 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10251 | |
| 10252 | cat >>confdefs.h <<\_ACEOF |
| 10253 | #define HAVE_DYLD 1 |
| 10254 | _ACEOF |
| 10255 | |
| 10256 | fi |
| 10257 | |
| 10258 | |
| 10259 | fi |
| 10260 | |
| 10261 | |
| 10262 | fi |
| 10263 | |
| 10264 | |
| 10265 | fi |
| 10266 | |
| 10267 | rm -f core conftest.err conftest.$ac_objext \ |
| 10268 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10269 | |
| 10270 | fi |
| 10271 | |
| 10272 | |
| 10273 | fi |
| 10274 | |
| 10275 | |
| 10276 | fi |
| 10277 | |
| 10278 | |
| 10279 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10280 | then |
| 10281 | lt_save_LIBS="$LIBS" |
| 10282 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10283 | |
| 10284 | for ac_func in dlerror |
| 10285 | do |
| 10286 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10287 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10288 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10289 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10291 | else |
| 10292 | cat >conftest.$ac_ext <<_ACEOF |
| 10293 | /* confdefs.h. */ |
| 10294 | _ACEOF |
| 10295 | cat confdefs.h >>conftest.$ac_ext |
| 10296 | cat >>conftest.$ac_ext <<_ACEOF |
| 10297 | /* end confdefs.h. */ |
| 10298 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10299 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10300 | #define $ac_func innocuous_$ac_func |
| 10301 | |
| 10302 | /* System header to define __stub macros and hopefully few prototypes, |
| 10303 | which can conflict with char $ac_func (); below. |
| 10304 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10305 | <limits.h> exists even on freestanding compilers. */ |
| 10306 | |
| 10307 | #ifdef __STDC__ |
| 10308 | # include <limits.h> |
| 10309 | #else |
| 10310 | # include <assert.h> |
| 10311 | #endif |
| 10312 | |
| 10313 | #undef $ac_func |
| 10314 | |
| 10315 | /* Override any GCC internal prototype to avoid an error. |
| 10316 | Use char because int might match the return type of a GCC |
| 10317 | builtin and then its argument prototype would still apply. */ |
| 10318 | #ifdef __cplusplus |
| 10319 | extern "C" |
| 10320 | #endif |
| 10321 | char $ac_func (); |
| 10322 | /* The GNU C library defines this for functions which it implements |
| 10323 | to always fail with ENOSYS. Some functions are actually named |
| 10324 | something starting with __ and the normal name is an alias. */ |
| 10325 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10326 | choke me |
| 10327 | #endif |
| 10328 | |
| 10329 | int |
| 10330 | main () |
| 10331 | { |
| 10332 | return $ac_func (); |
| 10333 | ; |
| 10334 | return 0; |
| 10335 | } |
| 10336 | _ACEOF |
| 10337 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10338 | if { (ac_try="$ac_link" |
| 10339 | case "(($ac_try" in |
| 10340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10341 | *) ac_try_echo=$ac_try;; |
| 10342 | esac |
| 10343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10344 | (eval "$ac_link") 2>conftest.er1 |
| 10345 | ac_status=$? |
| 10346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10347 | rm -f conftest.er1 |
| 10348 | cat conftest.err >&5 |
| 10349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10350 | (exit $ac_status); } && |
| 10351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10352 | { (case "(($ac_try" in |
| 10353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10354 | *) ac_try_echo=$ac_try;; |
| 10355 | esac |
| 10356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10357 | (eval "$ac_try") 2>&5 |
| 10358 | ac_status=$? |
| 10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10360 | (exit $ac_status); }; } && |
| 10361 | { ac_try='test -s conftest$ac_exeext' |
| 10362 | { (case "(($ac_try" in |
| 10363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10364 | *) ac_try_echo=$ac_try;; |
| 10365 | esac |
| 10366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10367 | (eval "$ac_try") 2>&5 |
| 10368 | ac_status=$? |
| 10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10370 | (exit $ac_status); }; }; then |
| 10371 | eval "$as_ac_var=yes" |
| 10372 | else |
| 10373 | echo "$as_me: failed program was:" >&5 |
| 10374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10375 | |
| 10376 | eval "$as_ac_var=no" |
| 10377 | fi |
| 10378 | |
| 10379 | rm -f core conftest.err conftest.$ac_objext \ |
| 10380 | conftest$ac_exeext conftest.$ac_ext |
| 10381 | fi |
| 10382 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10383 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10384 | echo "${ECHO_T}$ac_res" >&6; } |
| 10385 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10386 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10387 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10388 | _ACEOF |
| 10389 | |
| 10390 | fi |
| 10391 | done |
| 10392 | |
| 10393 | LIBS="$lt_save_LIBS" |
| 10394 | fi |
| 10395 | ac_ext=c |
| 10396 | ac_cpp='$CPP $CPPFLAGS' |
| 10397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10400 | |
| 10401 | |
| 10402 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10403 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10404 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10405 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10407 | else |
| 10408 | ac_cv_sys_symbol_underscore=no |
| 10409 | cat > conftest.$ac_ext <<EOF |
| 10410 | void nm_test_func(){} |
| 10411 | int main(){nm_test_func;return 0;} |
| 10412 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10414 | (eval $ac_compile) 2>&5 |
| 10415 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10417 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10418 | # Now try to grab the symbols. |
| 10419 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10420 | 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] | 10421 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10422 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10424 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10425 | # See whether the symbols have a leading underscore. |
| 10426 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10427 | ac_cv_sys_symbol_underscore=yes |
| 10428 | else |
| 10429 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10430 | : |
| 10431 | else |
| 10432 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10433 | fi |
| 10434 | fi |
| 10435 | else |
| 10436 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10437 | fi |
| 10438 | else |
| 10439 | echo "configure: failed program was:" >&5 |
| 10440 | cat conftest.c >&5 |
| 10441 | fi |
| 10442 | rm -rf conftest* |
| 10443 | |
| 10444 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10445 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10446 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10447 | |
| 10448 | |
| 10449 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10450 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10451 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10452 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10453 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 10454 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10456 | else |
| 10457 | libltdl_cv_need_uscore=unknown |
| 10458 | save_LIBS="$LIBS" |
| 10459 | LIBS="$LIBS $LIBADD_DL" |
| 10460 | if test "$cross_compiling" = yes; then : |
| 10461 | libltdl_cv_need_uscore=cross |
| 10462 | else |
| 10463 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10464 | lt_status=$lt_dlunknown |
| 10465 | cat > conftest.$ac_ext <<EOF |
Dylan Noblesmith | fde8237 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 10466 | #line 10466 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10467 | #include "confdefs.h" |
| 10468 | |
| 10469 | #if HAVE_DLFCN_H |
| 10470 | #include <dlfcn.h> |
| 10471 | #endif |
| 10472 | |
| 10473 | #include <stdio.h> |
| 10474 | |
| 10475 | #ifdef RTLD_GLOBAL |
| 10476 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10477 | #else |
| 10478 | # ifdef DL_GLOBAL |
| 10479 | # define LT_DLGLOBAL DL_GLOBAL |
| 10480 | # else |
| 10481 | # define LT_DLGLOBAL 0 |
| 10482 | # endif |
| 10483 | #endif |
| 10484 | |
| 10485 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10486 | find out it does not work in some platform. */ |
| 10487 | #ifndef LT_DLLAZY_OR_NOW |
| 10488 | # ifdef RTLD_LAZY |
| 10489 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10490 | # else |
| 10491 | # ifdef DL_LAZY |
| 10492 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10493 | # else |
| 10494 | # ifdef RTLD_NOW |
| 10495 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10496 | # else |
| 10497 | # ifdef DL_NOW |
| 10498 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10499 | # else |
| 10500 | # define LT_DLLAZY_OR_NOW 0 |
| 10501 | # endif |
| 10502 | # endif |
| 10503 | # endif |
| 10504 | # endif |
| 10505 | #endif |
| 10506 | |
| 10507 | #ifdef __cplusplus |
| 10508 | extern "C" void exit (int); |
| 10509 | #endif |
| 10510 | |
| 10511 | void fnord() { int i=42;} |
| 10512 | int main () |
| 10513 | { |
| 10514 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10515 | int status = $lt_dlunknown; |
| 10516 | |
| 10517 | if (self) |
| 10518 | { |
| 10519 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10520 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10521 | /* dlclose (self); */ |
| 10522 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10523 | else |
| 10524 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10525 | |
| 10526 | exit (status); |
| 10527 | } |
| 10528 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10530 | (eval $ac_link) 2>&5 |
| 10531 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10533 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10534 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10535 | lt_status=$? |
| 10536 | case x$lt_status in |
| 10537 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10538 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10539 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10540 | esac |
| 10541 | else : |
| 10542 | # compilation failed |
| 10543 | |
| 10544 | fi |
| 10545 | fi |
| 10546 | rm -fr conftest* |
| 10547 | |
| 10548 | LIBS="$save_LIBS" |
| 10549 | |
| 10550 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10551 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10552 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10553 | fi |
| 10554 | fi |
| 10555 | |
| 10556 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10557 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10558 | cat >>confdefs.h <<\_ACEOF |
| 10559 | #define NEED_USCORE 1 |
| 10560 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10561 | |
| 10562 | fi |
| 10563 | |
| 10564 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10565 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10566 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 10567 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | else |
| 10570 | # PORTME does your system automatically load deplibs for dlopen? |
| 10571 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10572 | # For now, we just catch OSes we know something about -- in the |
| 10573 | # future, we'll try test this programmatically. |
| 10574 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10575 | case "$host_os" in |
| 10576 | aix3*|aix4.1.*|aix4.2.*) |
| 10577 | # Unknown whether this is true for these versions of AIX, but |
| 10578 | # we want this `case' here to explicitly catch those versions. |
| 10579 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10580 | ;; |
| 10581 | aix[45]*) |
| 10582 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10583 | ;; |
| 10584 | darwin*) |
| 10585 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10586 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10587 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10588 | ;; |
| 10589 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10590 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10591 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10592 | ;; |
| 10593 | hpux10*|hpux11*) |
| 10594 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10595 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10596 | interix*) |
| 10597 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10598 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10599 | irix[12345]*|irix6.[01]*) |
| 10600 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10601 | # know how it worked for any of those versions. |
| 10602 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10603 | ;; |
| 10604 | irix*) |
| 10605 | # The case above catches anything before 6.2, and it's known that |
| 10606 | # at 6.2 and later dlopen does load deplibs. |
| 10607 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10608 | ;; |
| 10609 | netbsd*) |
| 10610 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10611 | ;; |
| 10612 | openbsd*) |
| 10613 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10614 | ;; |
| 10615 | osf[1234]*) |
| 10616 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10617 | # 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] | 10618 | # library depends on, so we explicitly say `no'. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10619 | libltdl_cv_sys_dlopen_deplibs=no |
| 10620 | ;; |
| 10621 | osf5.0|osf5.0a|osf5.1) |
| 10622 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10623 | # it even uses RPATH in a shared library to search for shared objects |
| 10624 | # that the library depends on, but there's no easy way to know if that |
| 10625 | # patch is installed. Since this is the case, all we can really |
| 10626 | # say is unknown -- it depends on the patch being installed. If |
| 10627 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10628 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10629 | ;; |
| 10630 | osf*) |
| 10631 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10632 | # the comments above for what we know about them. |
| 10633 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10634 | # is used to find them so we can finally say `yes'. |
| 10635 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10636 | ;; |
| 10637 | solaris*) |
| 10638 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10639 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10640 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10641 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10642 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10643 | esac |
| 10644 | |
| 10645 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10646 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10647 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10648 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10649 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10650 | cat >>confdefs.h <<\_ACEOF |
| 10651 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10652 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10653 | |
| 10654 | fi |
| 10655 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10656 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10657 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10658 | do |
| 10659 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10660 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10661 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10665 | fi |
| 10666 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10667 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10668 | echo "${ECHO_T}$ac_res" >&6; } |
| 10669 | else |
| 10670 | # Is the header compilable? |
| 10671 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10672 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10673 | cat >conftest.$ac_ext <<_ACEOF |
| 10674 | /* confdefs.h. */ |
| 10675 | _ACEOF |
| 10676 | cat confdefs.h >>conftest.$ac_ext |
| 10677 | cat >>conftest.$ac_ext <<_ACEOF |
| 10678 | /* end confdefs.h. */ |
| 10679 | $ac_includes_default |
| 10680 | #include <$ac_header> |
| 10681 | _ACEOF |
| 10682 | rm -f conftest.$ac_objext |
| 10683 | if { (ac_try="$ac_compile" |
| 10684 | case "(($ac_try" in |
| 10685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10686 | *) ac_try_echo=$ac_try;; |
| 10687 | esac |
| 10688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10689 | (eval "$ac_compile") 2>conftest.er1 |
| 10690 | ac_status=$? |
| 10691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10692 | rm -f conftest.er1 |
| 10693 | cat conftest.err >&5 |
| 10694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10695 | (exit $ac_status); } && |
| 10696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10697 | { (case "(($ac_try" in |
| 10698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10699 | *) ac_try_echo=$ac_try;; |
| 10700 | esac |
| 10701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10702 | (eval "$ac_try") 2>&5 |
| 10703 | ac_status=$? |
| 10704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10705 | (exit $ac_status); }; } && |
| 10706 | { ac_try='test -s conftest.$ac_objext' |
| 10707 | { (case "(($ac_try" in |
| 10708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10709 | *) ac_try_echo=$ac_try;; |
| 10710 | esac |
| 10711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10712 | (eval "$ac_try") 2>&5 |
| 10713 | ac_status=$? |
| 10714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10715 | (exit $ac_status); }; }; then |
| 10716 | ac_header_compiler=yes |
| 10717 | else |
| 10718 | echo "$as_me: failed program was:" >&5 |
| 10719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10720 | |
| 10721 | ac_header_compiler=no |
| 10722 | fi |
| 10723 | |
| 10724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10725 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10726 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10727 | |
| 10728 | # Is the header present? |
| 10729 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10730 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10731 | cat >conftest.$ac_ext <<_ACEOF |
| 10732 | /* confdefs.h. */ |
| 10733 | _ACEOF |
| 10734 | cat confdefs.h >>conftest.$ac_ext |
| 10735 | cat >>conftest.$ac_ext <<_ACEOF |
| 10736 | /* end confdefs.h. */ |
| 10737 | #include <$ac_header> |
| 10738 | _ACEOF |
| 10739 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10740 | case "(($ac_try" in |
| 10741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10742 | *) ac_try_echo=$ac_try;; |
| 10743 | esac |
| 10744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10745 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10746 | ac_status=$? |
| 10747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10748 | rm -f conftest.er1 |
| 10749 | cat conftest.err >&5 |
| 10750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10751 | (exit $ac_status); } >/dev/null; then |
| 10752 | if test -s conftest.err; then |
| 10753 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10754 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10755 | else |
| 10756 | ac_cpp_err= |
| 10757 | fi |
| 10758 | else |
| 10759 | ac_cpp_err=yes |
| 10760 | fi |
| 10761 | if test -z "$ac_cpp_err"; then |
| 10762 | ac_header_preproc=yes |
| 10763 | else |
| 10764 | echo "$as_me: failed program was:" >&5 |
| 10765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10766 | |
| 10767 | ac_header_preproc=no |
| 10768 | fi |
| 10769 | |
| 10770 | rm -f conftest.err conftest.$ac_ext |
| 10771 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10772 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10773 | |
| 10774 | # So? What about this header? |
| 10775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10776 | yes:no: ) |
| 10777 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10778 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10780 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10781 | ac_header_preproc=yes |
| 10782 | ;; |
| 10783 | no:yes:* ) |
| 10784 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10785 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10786 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10787 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10788 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10789 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10790 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10791 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10794 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10795 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10796 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 10797 | ## ------------------------------------ ## |
| 10798 | ## Report this to http://llvm.org/bugs/ ## |
| 10799 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10800 | _ASBOX |
| 10801 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 10802 | ;; |
| 10803 | esac |
| 10804 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10806 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10808 | else |
| 10809 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10810 | fi |
| 10811 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10812 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10813 | echo "${ECHO_T}$ac_res" >&6; } |
| 10814 | |
| 10815 | fi |
| 10816 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10817 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10818 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10819 | _ACEOF |
| 10820 | |
| 10821 | fi |
| 10822 | |
| 10823 | done |
| 10824 | |
| 10825 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10826 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10827 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 10828 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10830 | else |
| 10831 | cat >conftest.$ac_ext <<_ACEOF |
| 10832 | /* confdefs.h. */ |
| 10833 | _ACEOF |
| 10834 | cat confdefs.h >>conftest.$ac_ext |
| 10835 | cat >>conftest.$ac_ext <<_ACEOF |
| 10836 | /* end confdefs.h. */ |
| 10837 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10838 | # include <argz.h> |
| 10839 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10840 | |
| 10841 | typedef error_t ac__type_new_; |
| 10842 | int |
| 10843 | main () |
| 10844 | { |
| 10845 | if ((ac__type_new_ *) 0) |
| 10846 | return 0; |
| 10847 | if (sizeof (ac__type_new_)) |
| 10848 | return 0; |
| 10849 | ; |
| 10850 | return 0; |
| 10851 | } |
| 10852 | _ACEOF |
| 10853 | rm -f conftest.$ac_objext |
| 10854 | if { (ac_try="$ac_compile" |
| 10855 | case "(($ac_try" in |
| 10856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10857 | *) ac_try_echo=$ac_try;; |
| 10858 | esac |
| 10859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10860 | (eval "$ac_compile") 2>conftest.er1 |
| 10861 | ac_status=$? |
| 10862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10863 | rm -f conftest.er1 |
| 10864 | cat conftest.err >&5 |
| 10865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10866 | (exit $ac_status); } && |
| 10867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10868 | { (case "(($ac_try" in |
| 10869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10870 | *) ac_try_echo=$ac_try;; |
| 10871 | esac |
| 10872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10873 | (eval "$ac_try") 2>&5 |
| 10874 | ac_status=$? |
| 10875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10876 | (exit $ac_status); }; } && |
| 10877 | { ac_try='test -s conftest.$ac_objext' |
| 10878 | { (case "(($ac_try" in |
| 10879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10880 | *) ac_try_echo=$ac_try;; |
| 10881 | esac |
| 10882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10883 | (eval "$ac_try") 2>&5 |
| 10884 | ac_status=$? |
| 10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10886 | (exit $ac_status); }; }; then |
| 10887 | ac_cv_type_error_t=yes |
| 10888 | else |
| 10889 | echo "$as_me: failed program was:" >&5 |
| 10890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10891 | |
| 10892 | ac_cv_type_error_t=no |
| 10893 | fi |
| 10894 | |
| 10895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10896 | fi |
| 10897 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10898 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 10899 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10900 | |
| 10901 | cat >>confdefs.h <<_ACEOF |
| 10902 | #define HAVE_ERROR_T 1 |
| 10903 | _ACEOF |
| 10904 | |
| 10905 | |
| 10906 | else |
| 10907 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10908 | cat >>confdefs.h <<\_ACEOF |
| 10909 | #define error_t int |
| 10910 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10911 | |
| 10912 | fi |
| 10913 | |
| 10914 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10915 | |
| 10916 | |
| 10917 | |
| 10918 | |
| 10919 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10920 | 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] | 10921 | do |
| 10922 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10923 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10924 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10925 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10927 | else |
| 10928 | cat >conftest.$ac_ext <<_ACEOF |
| 10929 | /* confdefs.h. */ |
| 10930 | _ACEOF |
| 10931 | cat confdefs.h >>conftest.$ac_ext |
| 10932 | cat >>conftest.$ac_ext <<_ACEOF |
| 10933 | /* end confdefs.h. */ |
| 10934 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10936 | #define $ac_func innocuous_$ac_func |
| 10937 | |
| 10938 | /* System header to define __stub macros and hopefully few prototypes, |
| 10939 | which can conflict with char $ac_func (); below. |
| 10940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10941 | <limits.h> exists even on freestanding compilers. */ |
| 10942 | |
| 10943 | #ifdef __STDC__ |
| 10944 | # include <limits.h> |
| 10945 | #else |
| 10946 | # include <assert.h> |
| 10947 | #endif |
| 10948 | |
| 10949 | #undef $ac_func |
| 10950 | |
| 10951 | /* Override any GCC internal prototype to avoid an error. |
| 10952 | Use char because int might match the return type of a GCC |
| 10953 | builtin and then its argument prototype would still apply. */ |
| 10954 | #ifdef __cplusplus |
| 10955 | extern "C" |
| 10956 | #endif |
| 10957 | char $ac_func (); |
| 10958 | /* The GNU C library defines this for functions which it implements |
| 10959 | to always fail with ENOSYS. Some functions are actually named |
| 10960 | something starting with __ and the normal name is an alias. */ |
| 10961 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10962 | choke me |
| 10963 | #endif |
| 10964 | |
| 10965 | int |
| 10966 | main () |
| 10967 | { |
| 10968 | return $ac_func (); |
| 10969 | ; |
| 10970 | return 0; |
| 10971 | } |
| 10972 | _ACEOF |
| 10973 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10974 | if { (ac_try="$ac_link" |
| 10975 | case "(($ac_try" in |
| 10976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10977 | *) ac_try_echo=$ac_try;; |
| 10978 | esac |
| 10979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10980 | (eval "$ac_link") 2>conftest.er1 |
| 10981 | ac_status=$? |
| 10982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10983 | rm -f conftest.er1 |
| 10984 | cat conftest.err >&5 |
| 10985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10986 | (exit $ac_status); } && |
| 10987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10988 | { (case "(($ac_try" in |
| 10989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10990 | *) ac_try_echo=$ac_try;; |
| 10991 | esac |
| 10992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10993 | (eval "$ac_try") 2>&5 |
| 10994 | ac_status=$? |
| 10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10996 | (exit $ac_status); }; } && |
| 10997 | { ac_try='test -s conftest$ac_exeext' |
| 10998 | { (case "(($ac_try" in |
| 10999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11000 | *) ac_try_echo=$ac_try;; |
| 11001 | esac |
| 11002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11003 | (eval "$ac_try") 2>&5 |
| 11004 | ac_status=$? |
| 11005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11006 | (exit $ac_status); }; }; then |
| 11007 | eval "$as_ac_var=yes" |
| 11008 | else |
| 11009 | echo "$as_me: failed program was:" >&5 |
| 11010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11011 | |
| 11012 | eval "$as_ac_var=no" |
| 11013 | fi |
| 11014 | |
| 11015 | rm -f core conftest.err conftest.$ac_objext \ |
| 11016 | conftest$ac_exeext conftest.$ac_ext |
| 11017 | fi |
| 11018 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11019 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11020 | echo "${ECHO_T}$ac_res" >&6; } |
| 11021 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11022 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11024 | _ACEOF |
| 11025 | |
| 11026 | fi |
| 11027 | done |
| 11028 | |
| 11029 | |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | |
| 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | |
| 11043 | |
| 11044 | |
| 11045 | |
| 11046 | |
| 11047 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11048 | |
| 11049 | |
| 11050 | |
| 11051 | |
| 11052 | |
| 11053 | |
| 11054 | |
| 11055 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11056 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11057 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11058 | do |
| 11059 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11060 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11061 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11063 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11065 | fi |
| 11066 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11067 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11068 | echo "${ECHO_T}$ac_res" >&6; } |
| 11069 | else |
| 11070 | # Is the header compilable? |
| 11071 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11072 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11073 | cat >conftest.$ac_ext <<_ACEOF |
| 11074 | /* confdefs.h. */ |
| 11075 | _ACEOF |
| 11076 | cat confdefs.h >>conftest.$ac_ext |
| 11077 | cat >>conftest.$ac_ext <<_ACEOF |
| 11078 | /* end confdefs.h. */ |
| 11079 | $ac_includes_default |
| 11080 | #include <$ac_header> |
| 11081 | _ACEOF |
| 11082 | rm -f conftest.$ac_objext |
| 11083 | if { (ac_try="$ac_compile" |
| 11084 | case "(($ac_try" in |
| 11085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11086 | *) ac_try_echo=$ac_try;; |
| 11087 | esac |
| 11088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11089 | (eval "$ac_compile") 2>conftest.er1 |
| 11090 | ac_status=$? |
| 11091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11092 | rm -f conftest.er1 |
| 11093 | cat conftest.err >&5 |
| 11094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11095 | (exit $ac_status); } && |
| 11096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11097 | { (case "(($ac_try" in |
| 11098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11099 | *) ac_try_echo=$ac_try;; |
| 11100 | esac |
| 11101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11102 | (eval "$ac_try") 2>&5 |
| 11103 | ac_status=$? |
| 11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11105 | (exit $ac_status); }; } && |
| 11106 | { ac_try='test -s conftest.$ac_objext' |
| 11107 | { (case "(($ac_try" in |
| 11108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11109 | *) ac_try_echo=$ac_try;; |
| 11110 | esac |
| 11111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11112 | (eval "$ac_try") 2>&5 |
| 11113 | ac_status=$? |
| 11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11115 | (exit $ac_status); }; }; then |
| 11116 | ac_header_compiler=yes |
| 11117 | else |
| 11118 | echo "$as_me: failed program was:" >&5 |
| 11119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11120 | |
| 11121 | ac_header_compiler=no |
| 11122 | fi |
| 11123 | |
| 11124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11125 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11126 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11127 | |
| 11128 | # Is the header present? |
| 11129 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11130 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11131 | cat >conftest.$ac_ext <<_ACEOF |
| 11132 | /* confdefs.h. */ |
| 11133 | _ACEOF |
| 11134 | cat confdefs.h >>conftest.$ac_ext |
| 11135 | cat >>conftest.$ac_ext <<_ACEOF |
| 11136 | /* end confdefs.h. */ |
| 11137 | #include <$ac_header> |
| 11138 | _ACEOF |
| 11139 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11140 | case "(($ac_try" in |
| 11141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11142 | *) ac_try_echo=$ac_try;; |
| 11143 | esac |
| 11144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11145 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11146 | ac_status=$? |
| 11147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11148 | rm -f conftest.er1 |
| 11149 | cat conftest.err >&5 |
| 11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11151 | (exit $ac_status); } >/dev/null; then |
| 11152 | if test -s conftest.err; then |
| 11153 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11154 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11155 | else |
| 11156 | ac_cpp_err= |
| 11157 | fi |
| 11158 | else |
| 11159 | ac_cpp_err=yes |
| 11160 | fi |
| 11161 | if test -z "$ac_cpp_err"; then |
| 11162 | ac_header_preproc=yes |
| 11163 | else |
| 11164 | echo "$as_me: failed program was:" >&5 |
| 11165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11166 | |
| 11167 | ac_header_preproc=no |
| 11168 | fi |
| 11169 | |
| 11170 | rm -f conftest.err conftest.$ac_ext |
| 11171 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11172 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11173 | |
| 11174 | # So? What about this header? |
| 11175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11176 | yes:no: ) |
| 11177 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11178 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11180 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11181 | ac_header_preproc=yes |
| 11182 | ;; |
| 11183 | no:yes:* ) |
| 11184 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11185 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11186 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11187 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11188 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11189 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11190 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11191 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11193 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11194 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11195 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11196 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11197 | ## ------------------------------------ ## |
| 11198 | ## Report this to http://llvm.org/bugs/ ## |
| 11199 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11200 | _ASBOX |
| 11201 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11202 | ;; |
| 11203 | esac |
| 11204 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11208 | else |
| 11209 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11210 | fi |
| 11211 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11212 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11213 | echo "${ECHO_T}$ac_res" >&6; } |
| 11214 | |
| 11215 | fi |
| 11216 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11217 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11218 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11219 | _ACEOF |
| 11220 | |
| 11221 | fi |
| 11222 | |
| 11223 | done |
| 11224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11225 | |
| 11226 | |
| 11227 | |
| 11228 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11229 | 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] | 11230 | do |
| 11231 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11232 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11233 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11234 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11235 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11237 | fi |
| 11238 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11239 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11240 | echo "${ECHO_T}$ac_res" >&6; } |
| 11241 | else |
| 11242 | # Is the header compilable? |
| 11243 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11244 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11245 | cat >conftest.$ac_ext <<_ACEOF |
| 11246 | /* confdefs.h. */ |
| 11247 | _ACEOF |
| 11248 | cat confdefs.h >>conftest.$ac_ext |
| 11249 | cat >>conftest.$ac_ext <<_ACEOF |
| 11250 | /* end confdefs.h. */ |
| 11251 | $ac_includes_default |
| 11252 | #include <$ac_header> |
| 11253 | _ACEOF |
| 11254 | rm -f conftest.$ac_objext |
| 11255 | if { (ac_try="$ac_compile" |
| 11256 | case "(($ac_try" in |
| 11257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11258 | *) ac_try_echo=$ac_try;; |
| 11259 | esac |
| 11260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11261 | (eval "$ac_compile") 2>conftest.er1 |
| 11262 | ac_status=$? |
| 11263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11264 | rm -f conftest.er1 |
| 11265 | cat conftest.err >&5 |
| 11266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11267 | (exit $ac_status); } && |
| 11268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11269 | { (case "(($ac_try" in |
| 11270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11271 | *) ac_try_echo=$ac_try;; |
| 11272 | esac |
| 11273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11274 | (eval "$ac_try") 2>&5 |
| 11275 | ac_status=$? |
| 11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11277 | (exit $ac_status); }; } && |
| 11278 | { ac_try='test -s conftest.$ac_objext' |
| 11279 | { (case "(($ac_try" in |
| 11280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11281 | *) ac_try_echo=$ac_try;; |
| 11282 | esac |
| 11283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11284 | (eval "$ac_try") 2>&5 |
| 11285 | ac_status=$? |
| 11286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11287 | (exit $ac_status); }; }; then |
| 11288 | ac_header_compiler=yes |
| 11289 | else |
| 11290 | echo "$as_me: failed program was:" >&5 |
| 11291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11292 | |
| 11293 | ac_header_compiler=no |
| 11294 | fi |
| 11295 | |
| 11296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11297 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11298 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11299 | |
| 11300 | # Is the header present? |
| 11301 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11302 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11303 | cat >conftest.$ac_ext <<_ACEOF |
| 11304 | /* confdefs.h. */ |
| 11305 | _ACEOF |
| 11306 | cat confdefs.h >>conftest.$ac_ext |
| 11307 | cat >>conftest.$ac_ext <<_ACEOF |
| 11308 | /* end confdefs.h. */ |
| 11309 | #include <$ac_header> |
| 11310 | _ACEOF |
| 11311 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11312 | case "(($ac_try" in |
| 11313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11314 | *) ac_try_echo=$ac_try;; |
| 11315 | esac |
| 11316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11317 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11318 | ac_status=$? |
| 11319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11320 | rm -f conftest.er1 |
| 11321 | cat conftest.err >&5 |
| 11322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11323 | (exit $ac_status); } >/dev/null; then |
| 11324 | if test -s conftest.err; then |
| 11325 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11326 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11327 | else |
| 11328 | ac_cpp_err= |
| 11329 | fi |
| 11330 | else |
| 11331 | ac_cpp_err=yes |
| 11332 | fi |
| 11333 | if test -z "$ac_cpp_err"; then |
| 11334 | ac_header_preproc=yes |
| 11335 | else |
| 11336 | echo "$as_me: failed program was:" >&5 |
| 11337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11338 | |
| 11339 | ac_header_preproc=no |
| 11340 | fi |
| 11341 | |
| 11342 | rm -f conftest.err conftest.$ac_ext |
| 11343 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11344 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11345 | |
| 11346 | # So? What about this header? |
| 11347 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11348 | yes:no: ) |
| 11349 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11350 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11351 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11352 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11353 | ac_header_preproc=yes |
| 11354 | ;; |
| 11355 | no:yes:* ) |
| 11356 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11357 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11358 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11359 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11360 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11361 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11362 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11363 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11364 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11365 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11366 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11367 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11368 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11369 | ## ------------------------------------ ## |
| 11370 | ## Report this to http://llvm.org/bugs/ ## |
| 11371 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11372 | _ASBOX |
| 11373 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11374 | ;; |
| 11375 | esac |
| 11376 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11378 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11380 | else |
| 11381 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11382 | fi |
| 11383 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11384 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11385 | echo "${ECHO_T}$ac_res" >&6; } |
| 11386 | |
| 11387 | fi |
| 11388 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11389 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11390 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11391 | _ACEOF |
| 11392 | |
| 11393 | fi |
| 11394 | |
| 11395 | done |
| 11396 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11397 | |
| 11398 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11399 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11400 | do |
| 11401 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11403 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11405 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11407 | fi |
| 11408 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11409 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11410 | echo "${ECHO_T}$ac_res" >&6; } |
| 11411 | else |
| 11412 | # Is the header compilable? |
| 11413 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11414 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11415 | cat >conftest.$ac_ext <<_ACEOF |
| 11416 | /* confdefs.h. */ |
| 11417 | _ACEOF |
| 11418 | cat confdefs.h >>conftest.$ac_ext |
| 11419 | cat >>conftest.$ac_ext <<_ACEOF |
| 11420 | /* end confdefs.h. */ |
| 11421 | $ac_includes_default |
| 11422 | #include <$ac_header> |
| 11423 | _ACEOF |
| 11424 | rm -f conftest.$ac_objext |
| 11425 | if { (ac_try="$ac_compile" |
| 11426 | case "(($ac_try" in |
| 11427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11428 | *) ac_try_echo=$ac_try;; |
| 11429 | esac |
| 11430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11431 | (eval "$ac_compile") 2>conftest.er1 |
| 11432 | ac_status=$? |
| 11433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11434 | rm -f conftest.er1 |
| 11435 | cat conftest.err >&5 |
| 11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11437 | (exit $ac_status); } && |
| 11438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11439 | { (case "(($ac_try" in |
| 11440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11441 | *) ac_try_echo=$ac_try;; |
| 11442 | esac |
| 11443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11444 | (eval "$ac_try") 2>&5 |
| 11445 | ac_status=$? |
| 11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11447 | (exit $ac_status); }; } && |
| 11448 | { ac_try='test -s conftest.$ac_objext' |
| 11449 | { (case "(($ac_try" in |
| 11450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11451 | *) ac_try_echo=$ac_try;; |
| 11452 | esac |
| 11453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11454 | (eval "$ac_try") 2>&5 |
| 11455 | ac_status=$? |
| 11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11457 | (exit $ac_status); }; }; then |
| 11458 | ac_header_compiler=yes |
| 11459 | else |
| 11460 | echo "$as_me: failed program was:" >&5 |
| 11461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11462 | |
| 11463 | ac_header_compiler=no |
| 11464 | fi |
| 11465 | |
| 11466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11467 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11468 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11469 | |
| 11470 | # Is the header present? |
| 11471 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11472 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11473 | cat >conftest.$ac_ext <<_ACEOF |
| 11474 | /* confdefs.h. */ |
| 11475 | _ACEOF |
| 11476 | cat confdefs.h >>conftest.$ac_ext |
| 11477 | cat >>conftest.$ac_ext <<_ACEOF |
| 11478 | /* end confdefs.h. */ |
| 11479 | #include <$ac_header> |
| 11480 | _ACEOF |
| 11481 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11482 | case "(($ac_try" in |
| 11483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11484 | *) ac_try_echo=$ac_try;; |
| 11485 | esac |
| 11486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11487 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11488 | ac_status=$? |
| 11489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11490 | rm -f conftest.er1 |
| 11491 | cat conftest.err >&5 |
| 11492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11493 | (exit $ac_status); } >/dev/null; then |
| 11494 | if test -s conftest.err; then |
| 11495 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11496 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11497 | else |
| 11498 | ac_cpp_err= |
| 11499 | fi |
| 11500 | else |
| 11501 | ac_cpp_err=yes |
| 11502 | fi |
| 11503 | if test -z "$ac_cpp_err"; then |
| 11504 | ac_header_preproc=yes |
| 11505 | else |
| 11506 | echo "$as_me: failed program was:" >&5 |
| 11507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11508 | |
| 11509 | ac_header_preproc=no |
| 11510 | fi |
| 11511 | |
| 11512 | rm -f conftest.err conftest.$ac_ext |
| 11513 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11514 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11515 | |
| 11516 | # So? What about this header? |
| 11517 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11518 | yes:no: ) |
| 11519 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11520 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11521 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11522 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11523 | ac_header_preproc=yes |
| 11524 | ;; |
| 11525 | no:yes:* ) |
| 11526 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11527 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11528 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11529 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11530 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11531 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11532 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11533 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11534 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11535 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11536 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11537 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11538 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11539 | ## ------------------------------------ ## |
| 11540 | ## Report this to http://llvm.org/bugs/ ## |
| 11541 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11542 | _ASBOX |
| 11543 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11544 | ;; |
| 11545 | esac |
| 11546 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11547 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11550 | else |
| 11551 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11552 | fi |
| 11553 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11554 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11555 | echo "${ECHO_T}$ac_res" >&6; } |
| 11556 | |
| 11557 | fi |
| 11558 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11559 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11560 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11561 | _ACEOF |
| 11562 | break |
| 11563 | fi |
| 11564 | |
| 11565 | done |
| 11566 | |
| 11567 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11568 | |
| 11569 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11570 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11571 | do |
| 11572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11573 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11575 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11577 | else |
| 11578 | cat >conftest.$ac_ext <<_ACEOF |
| 11579 | /* confdefs.h. */ |
| 11580 | _ACEOF |
| 11581 | cat confdefs.h >>conftest.$ac_ext |
| 11582 | cat >>conftest.$ac_ext <<_ACEOF |
| 11583 | /* end confdefs.h. */ |
| 11584 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11586 | #define $ac_func innocuous_$ac_func |
| 11587 | |
| 11588 | /* System header to define __stub macros and hopefully few prototypes, |
| 11589 | which can conflict with char $ac_func (); below. |
| 11590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11591 | <limits.h> exists even on freestanding compilers. */ |
| 11592 | |
| 11593 | #ifdef __STDC__ |
| 11594 | # include <limits.h> |
| 11595 | #else |
| 11596 | # include <assert.h> |
| 11597 | #endif |
| 11598 | |
| 11599 | #undef $ac_func |
| 11600 | |
| 11601 | /* Override any GCC internal prototype to avoid an error. |
| 11602 | Use char because int might match the return type of a GCC |
| 11603 | builtin and then its argument prototype would still apply. */ |
| 11604 | #ifdef __cplusplus |
| 11605 | extern "C" |
| 11606 | #endif |
| 11607 | char $ac_func (); |
| 11608 | /* The GNU C library defines this for functions which it implements |
| 11609 | to always fail with ENOSYS. Some functions are actually named |
| 11610 | something starting with __ and the normal name is an alias. */ |
| 11611 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11612 | choke me |
| 11613 | #endif |
| 11614 | |
| 11615 | int |
| 11616 | main () |
| 11617 | { |
| 11618 | return $ac_func (); |
| 11619 | ; |
| 11620 | return 0; |
| 11621 | } |
| 11622 | _ACEOF |
| 11623 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11624 | if { (ac_try="$ac_link" |
| 11625 | case "(($ac_try" in |
| 11626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11627 | *) ac_try_echo=$ac_try;; |
| 11628 | esac |
| 11629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11630 | (eval "$ac_link") 2>conftest.er1 |
| 11631 | ac_status=$? |
| 11632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11633 | rm -f conftest.er1 |
| 11634 | cat conftest.err >&5 |
| 11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11636 | (exit $ac_status); } && |
| 11637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11638 | { (case "(($ac_try" in |
| 11639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11640 | *) ac_try_echo=$ac_try;; |
| 11641 | esac |
| 11642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11643 | (eval "$ac_try") 2>&5 |
| 11644 | ac_status=$? |
| 11645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11646 | (exit $ac_status); }; } && |
| 11647 | { ac_try='test -s conftest$ac_exeext' |
| 11648 | { (case "(($ac_try" in |
| 11649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11650 | *) ac_try_echo=$ac_try;; |
| 11651 | esac |
| 11652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11653 | (eval "$ac_try") 2>&5 |
| 11654 | ac_status=$? |
| 11655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11656 | (exit $ac_status); }; }; then |
| 11657 | eval "$as_ac_var=yes" |
| 11658 | else |
| 11659 | echo "$as_me: failed program was:" >&5 |
| 11660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11661 | |
| 11662 | eval "$as_ac_var=no" |
| 11663 | fi |
| 11664 | |
| 11665 | rm -f core conftest.err conftest.$ac_objext \ |
| 11666 | conftest$ac_exeext conftest.$ac_ext |
| 11667 | fi |
| 11668 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11669 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11670 | echo "${ECHO_T}$ac_res" >&6; } |
| 11671 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11672 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11673 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11674 | _ACEOF |
| 11675 | break |
| 11676 | fi |
| 11677 | done |
| 11678 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11679 | |
| 11680 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11681 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11682 | do |
| 11683 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11684 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11685 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11686 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11688 | else |
| 11689 | cat >conftest.$ac_ext <<_ACEOF |
| 11690 | /* confdefs.h. */ |
| 11691 | _ACEOF |
| 11692 | cat confdefs.h >>conftest.$ac_ext |
| 11693 | cat >>conftest.$ac_ext <<_ACEOF |
| 11694 | /* end confdefs.h. */ |
| 11695 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11696 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11697 | #define $ac_func innocuous_$ac_func |
| 11698 | |
| 11699 | /* System header to define __stub macros and hopefully few prototypes, |
| 11700 | which can conflict with char $ac_func (); below. |
| 11701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11702 | <limits.h> exists even on freestanding compilers. */ |
| 11703 | |
| 11704 | #ifdef __STDC__ |
| 11705 | # include <limits.h> |
| 11706 | #else |
| 11707 | # include <assert.h> |
| 11708 | #endif |
| 11709 | |
| 11710 | #undef $ac_func |
| 11711 | |
| 11712 | /* Override any GCC internal prototype to avoid an error. |
| 11713 | Use char because int might match the return type of a GCC |
| 11714 | builtin and then its argument prototype would still apply. */ |
| 11715 | #ifdef __cplusplus |
| 11716 | extern "C" |
| 11717 | #endif |
| 11718 | char $ac_func (); |
| 11719 | /* The GNU C library defines this for functions which it implements |
| 11720 | to always fail with ENOSYS. Some functions are actually named |
| 11721 | something starting with __ and the normal name is an alias. */ |
| 11722 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11723 | choke me |
| 11724 | #endif |
| 11725 | |
| 11726 | int |
| 11727 | main () |
| 11728 | { |
| 11729 | return $ac_func (); |
| 11730 | ; |
| 11731 | return 0; |
| 11732 | } |
| 11733 | _ACEOF |
| 11734 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11735 | if { (ac_try="$ac_link" |
| 11736 | case "(($ac_try" in |
| 11737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11738 | *) ac_try_echo=$ac_try;; |
| 11739 | esac |
| 11740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11741 | (eval "$ac_link") 2>conftest.er1 |
| 11742 | ac_status=$? |
| 11743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11744 | rm -f conftest.er1 |
| 11745 | cat conftest.err >&5 |
| 11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11747 | (exit $ac_status); } && |
| 11748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11749 | { (case "(($ac_try" in |
| 11750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11751 | *) ac_try_echo=$ac_try;; |
| 11752 | esac |
| 11753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11754 | (eval "$ac_try") 2>&5 |
| 11755 | ac_status=$? |
| 11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11757 | (exit $ac_status); }; } && |
| 11758 | { ac_try='test -s conftest$ac_exeext' |
| 11759 | { (case "(($ac_try" in |
| 11760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11761 | *) ac_try_echo=$ac_try;; |
| 11762 | esac |
| 11763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11764 | (eval "$ac_try") 2>&5 |
| 11765 | ac_status=$? |
| 11766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11767 | (exit $ac_status); }; }; then |
| 11768 | eval "$as_ac_var=yes" |
| 11769 | else |
| 11770 | echo "$as_me: failed program was:" >&5 |
| 11771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11772 | |
| 11773 | eval "$as_ac_var=no" |
| 11774 | fi |
| 11775 | |
| 11776 | rm -f core conftest.err conftest.$ac_objext \ |
| 11777 | conftest$ac_exeext conftest.$ac_ext |
| 11778 | fi |
| 11779 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11780 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11781 | echo "${ECHO_T}$ac_res" >&6; } |
| 11782 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11783 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11784 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11785 | _ACEOF |
| 11786 | break |
| 11787 | fi |
| 11788 | done |
| 11789 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11790 | |
| 11791 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11792 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11793 | do |
| 11794 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11795 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11796 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11797 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11799 | else |
| 11800 | cat >conftest.$ac_ext <<_ACEOF |
| 11801 | /* confdefs.h. */ |
| 11802 | _ACEOF |
| 11803 | cat confdefs.h >>conftest.$ac_ext |
| 11804 | cat >>conftest.$ac_ext <<_ACEOF |
| 11805 | /* end confdefs.h. */ |
| 11806 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11807 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11808 | #define $ac_func innocuous_$ac_func |
| 11809 | |
| 11810 | /* System header to define __stub macros and hopefully few prototypes, |
| 11811 | which can conflict with char $ac_func (); below. |
| 11812 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11813 | <limits.h> exists even on freestanding compilers. */ |
| 11814 | |
| 11815 | #ifdef __STDC__ |
| 11816 | # include <limits.h> |
| 11817 | #else |
| 11818 | # include <assert.h> |
| 11819 | #endif |
| 11820 | |
| 11821 | #undef $ac_func |
| 11822 | |
| 11823 | /* Override any GCC internal prototype to avoid an error. |
| 11824 | Use char because int might match the return type of a GCC |
| 11825 | builtin and then its argument prototype would still apply. */ |
| 11826 | #ifdef __cplusplus |
| 11827 | extern "C" |
| 11828 | #endif |
| 11829 | char $ac_func (); |
| 11830 | /* The GNU C library defines this for functions which it implements |
| 11831 | to always fail with ENOSYS. Some functions are actually named |
| 11832 | something starting with __ and the normal name is an alias. */ |
| 11833 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11834 | choke me |
| 11835 | #endif |
| 11836 | |
| 11837 | int |
| 11838 | main () |
| 11839 | { |
| 11840 | return $ac_func (); |
| 11841 | ; |
| 11842 | return 0; |
| 11843 | } |
| 11844 | _ACEOF |
| 11845 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11846 | if { (ac_try="$ac_link" |
| 11847 | case "(($ac_try" in |
| 11848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11849 | *) ac_try_echo=$ac_try;; |
| 11850 | esac |
| 11851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11852 | (eval "$ac_link") 2>conftest.er1 |
| 11853 | ac_status=$? |
| 11854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11855 | rm -f conftest.er1 |
| 11856 | cat conftest.err >&5 |
| 11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11858 | (exit $ac_status); } && |
| 11859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11860 | { (case "(($ac_try" in |
| 11861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11862 | *) ac_try_echo=$ac_try;; |
| 11863 | esac |
| 11864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11865 | (eval "$ac_try") 2>&5 |
| 11866 | ac_status=$? |
| 11867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11868 | (exit $ac_status); }; } && |
| 11869 | { ac_try='test -s conftest$ac_exeext' |
| 11870 | { (case "(($ac_try" in |
| 11871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11872 | *) ac_try_echo=$ac_try;; |
| 11873 | esac |
| 11874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11875 | (eval "$ac_try") 2>&5 |
| 11876 | ac_status=$? |
| 11877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11878 | (exit $ac_status); }; }; then |
| 11879 | eval "$as_ac_var=yes" |
| 11880 | else |
| 11881 | echo "$as_me: failed program was:" >&5 |
| 11882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11883 | |
| 11884 | eval "$as_ac_var=no" |
| 11885 | fi |
| 11886 | |
| 11887 | rm -f core conftest.err conftest.$ac_objext \ |
| 11888 | conftest$ac_exeext conftest.$ac_ext |
| 11889 | fi |
| 11890 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11891 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11892 | echo "${ECHO_T}$ac_res" >&6; } |
| 11893 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11894 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11895 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11896 | _ACEOF |
| 11897 | break |
| 11898 | fi |
| 11899 | done |
| 11900 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11901 | |
| 11902 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11903 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11904 | do |
| 11905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11906 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11908 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11910 | else |
| 11911 | cat >conftest.$ac_ext <<_ACEOF |
| 11912 | /* confdefs.h. */ |
| 11913 | _ACEOF |
| 11914 | cat confdefs.h >>conftest.$ac_ext |
| 11915 | cat >>conftest.$ac_ext <<_ACEOF |
| 11916 | /* end confdefs.h. */ |
| 11917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11919 | #define $ac_func innocuous_$ac_func |
| 11920 | |
| 11921 | /* System header to define __stub macros and hopefully few prototypes, |
| 11922 | which can conflict with char $ac_func (); below. |
| 11923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11924 | <limits.h> exists even on freestanding compilers. */ |
| 11925 | |
| 11926 | #ifdef __STDC__ |
| 11927 | # include <limits.h> |
| 11928 | #else |
| 11929 | # include <assert.h> |
| 11930 | #endif |
| 11931 | |
| 11932 | #undef $ac_func |
| 11933 | |
| 11934 | /* Override any GCC internal prototype to avoid an error. |
| 11935 | Use char because int might match the return type of a GCC |
| 11936 | builtin and then its argument prototype would still apply. */ |
| 11937 | #ifdef __cplusplus |
| 11938 | extern "C" |
| 11939 | #endif |
| 11940 | char $ac_func (); |
| 11941 | /* The GNU C library defines this for functions which it implements |
| 11942 | to always fail with ENOSYS. Some functions are actually named |
| 11943 | something starting with __ and the normal name is an alias. */ |
| 11944 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11945 | choke me |
| 11946 | #endif |
| 11947 | |
| 11948 | int |
| 11949 | main () |
| 11950 | { |
| 11951 | return $ac_func (); |
| 11952 | ; |
| 11953 | return 0; |
| 11954 | } |
| 11955 | _ACEOF |
| 11956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11957 | if { (ac_try="$ac_link" |
| 11958 | case "(($ac_try" in |
| 11959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11960 | *) ac_try_echo=$ac_try;; |
| 11961 | esac |
| 11962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11963 | (eval "$ac_link") 2>conftest.er1 |
| 11964 | ac_status=$? |
| 11965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11966 | rm -f conftest.er1 |
| 11967 | cat conftest.err >&5 |
| 11968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11969 | (exit $ac_status); } && |
| 11970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11971 | { (case "(($ac_try" in |
| 11972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11973 | *) ac_try_echo=$ac_try;; |
| 11974 | esac |
| 11975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11976 | (eval "$ac_try") 2>&5 |
| 11977 | ac_status=$? |
| 11978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11979 | (exit $ac_status); }; } && |
| 11980 | { ac_try='test -s conftest$ac_exeext' |
| 11981 | { (case "(($ac_try" in |
| 11982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11983 | *) ac_try_echo=$ac_try;; |
| 11984 | esac |
| 11985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11986 | (eval "$ac_try") 2>&5 |
| 11987 | ac_status=$? |
| 11988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11989 | (exit $ac_status); }; }; then |
| 11990 | eval "$as_ac_var=yes" |
| 11991 | else |
| 11992 | echo "$as_me: failed program was:" >&5 |
| 11993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11994 | |
| 11995 | eval "$as_ac_var=no" |
| 11996 | fi |
| 11997 | |
| 11998 | rm -f core conftest.err conftest.$ac_objext \ |
| 11999 | conftest$ac_exeext conftest.$ac_ext |
| 12000 | fi |
| 12001 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12003 | echo "${ECHO_T}$ac_res" >&6; } |
| 12004 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12005 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12007 | _ACEOF |
| 12008 | |
| 12009 | fi |
| 12010 | done |
| 12011 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12012 | |
| 12013 | |
| 12014 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12015 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12016 | do |
| 12017 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12018 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12019 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12020 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12022 | else |
| 12023 | cat >conftest.$ac_ext <<_ACEOF |
| 12024 | /* confdefs.h. */ |
| 12025 | _ACEOF |
| 12026 | cat confdefs.h >>conftest.$ac_ext |
| 12027 | cat >>conftest.$ac_ext <<_ACEOF |
| 12028 | /* end confdefs.h. */ |
| 12029 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12030 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12031 | #define $ac_func innocuous_$ac_func |
| 12032 | |
| 12033 | /* System header to define __stub macros and hopefully few prototypes, |
| 12034 | which can conflict with char $ac_func (); below. |
| 12035 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12036 | <limits.h> exists even on freestanding compilers. */ |
| 12037 | |
| 12038 | #ifdef __STDC__ |
| 12039 | # include <limits.h> |
| 12040 | #else |
| 12041 | # include <assert.h> |
| 12042 | #endif |
| 12043 | |
| 12044 | #undef $ac_func |
| 12045 | |
| 12046 | /* Override any GCC internal prototype to avoid an error. |
| 12047 | Use char because int might match the return type of a GCC |
| 12048 | builtin and then its argument prototype would still apply. */ |
| 12049 | #ifdef __cplusplus |
| 12050 | extern "C" |
| 12051 | #endif |
| 12052 | char $ac_func (); |
| 12053 | /* The GNU C library defines this for functions which it implements |
| 12054 | to always fail with ENOSYS. Some functions are actually named |
| 12055 | something starting with __ and the normal name is an alias. */ |
| 12056 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12057 | choke me |
| 12058 | #endif |
| 12059 | |
| 12060 | int |
| 12061 | main () |
| 12062 | { |
| 12063 | return $ac_func (); |
| 12064 | ; |
| 12065 | return 0; |
| 12066 | } |
| 12067 | _ACEOF |
| 12068 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12069 | if { (ac_try="$ac_link" |
| 12070 | case "(($ac_try" in |
| 12071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12072 | *) ac_try_echo=$ac_try;; |
| 12073 | esac |
| 12074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12075 | (eval "$ac_link") 2>conftest.er1 |
| 12076 | ac_status=$? |
| 12077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12078 | rm -f conftest.er1 |
| 12079 | cat conftest.err >&5 |
| 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12081 | (exit $ac_status); } && |
| 12082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12083 | { (case "(($ac_try" in |
| 12084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12085 | *) ac_try_echo=$ac_try;; |
| 12086 | esac |
| 12087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12088 | (eval "$ac_try") 2>&5 |
| 12089 | ac_status=$? |
| 12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12091 | (exit $ac_status); }; } && |
| 12092 | { ac_try='test -s conftest$ac_exeext' |
| 12093 | { (case "(($ac_try" in |
| 12094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12095 | *) ac_try_echo=$ac_try;; |
| 12096 | esac |
| 12097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12098 | (eval "$ac_try") 2>&5 |
| 12099 | ac_status=$? |
| 12100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12101 | (exit $ac_status); }; }; then |
| 12102 | eval "$as_ac_var=yes" |
| 12103 | else |
| 12104 | echo "$as_me: failed program was:" >&5 |
| 12105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12106 | |
| 12107 | eval "$as_ac_var=no" |
| 12108 | fi |
| 12109 | |
| 12110 | rm -f core conftest.err conftest.$ac_objext \ |
| 12111 | conftest$ac_exeext conftest.$ac_ext |
| 12112 | fi |
| 12113 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12114 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12115 | echo "${ECHO_T}$ac_res" >&6; } |
| 12116 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12117 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12118 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12119 | _ACEOF |
| 12120 | |
| 12121 | fi |
| 12122 | done |
| 12123 | |
| 12124 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12125 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12126 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12127 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12128 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12129 | ICC=no |
| 12130 | IXX=no |
| 12131 | case $CC in |
| 12132 | icc*|icpc*) |
| 12133 | ICC=yes |
| 12134 | IXX=yes |
| 12135 | ;; |
| 12136 | *) |
| 12137 | ;; |
| 12138 | esac |
| 12139 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12140 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12141 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12142 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12143 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12144 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12145 | fi |
| 12146 | |
| 12147 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12148 | then |
Eric Christopher | 73e36da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 12149 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 12150 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12151 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12152 | fi |
| 12153 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12154 | if test "$GCC" = "yes" |
| 12155 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12156 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12157 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12158 | #error Unsupported GCC version |
| 12159 | #endif |
| 12160 | |
| 12161 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12162 | rm -f conftest.$ac_objext |
| 12163 | if { (ac_try="$ac_compile" |
| 12164 | case "(($ac_try" in |
| 12165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12166 | *) ac_try_echo=$ac_try;; |
| 12167 | esac |
| 12168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12169 | (eval "$ac_compile") 2>conftest.er1 |
| 12170 | ac_status=$? |
| 12171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12172 | rm -f conftest.er1 |
| 12173 | cat conftest.err >&5 |
| 12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12175 | (exit $ac_status); } && |
| 12176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12177 | { (case "(($ac_try" in |
| 12178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12179 | *) ac_try_echo=$ac_try;; |
| 12180 | esac |
| 12181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12182 | (eval "$ac_try") 2>&5 |
| 12183 | ac_status=$? |
| 12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12185 | (exit $ac_status); }; } && |
| 12186 | { ac_try='test -s conftest.$ac_objext' |
| 12187 | { (case "(($ac_try" in |
| 12188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12189 | *) ac_try_echo=$ac_try;; |
| 12190 | esac |
| 12191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12192 | (eval "$ac_try") 2>&5 |
| 12193 | ac_status=$? |
| 12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12195 | (exit $ac_status); }; }; then |
| 12196 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12197 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12198 | echo "$as_me: failed program was:" >&5 |
| 12199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12200 | |
| 12201 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12202 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12203 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12204 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12205 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12207 | fi |
| 12208 | |
| 12209 | if test -z "$llvm_cv_gnu_make_command" |
| 12210 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12211 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12212 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12213 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12214 | fi |
| 12215 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12216 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12217 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12219 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12220 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12221 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 12222 | |
| 12223 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 12224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12225 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 12226 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12227 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12228 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12229 | |
| 12230 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12231 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12232 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12234 | else |
| 12235 | ac_check_lib_save_LIBS=$LIBS |
| 12236 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12237 | cat >conftest.$ac_ext <<_ACEOF |
| 12238 | /* confdefs.h. */ |
| 12239 | _ACEOF |
| 12240 | cat confdefs.h >>conftest.$ac_ext |
| 12241 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12242 | /* end confdefs.h. */ |
| 12243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12244 | /* Override any GCC internal prototype to avoid an error. |
| 12245 | Use char because int might match the return type of a GCC |
| 12246 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12247 | #ifdef __cplusplus |
| 12248 | extern "C" |
| 12249 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12250 | char sin (); |
| 12251 | int |
| 12252 | main () |
| 12253 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12254 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12255 | ; |
| 12256 | return 0; |
| 12257 | } |
| 12258 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12259 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12260 | if { (ac_try="$ac_link" |
| 12261 | case "(($ac_try" in |
| 12262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12263 | *) ac_try_echo=$ac_try;; |
| 12264 | esac |
| 12265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12266 | (eval "$ac_link") 2>conftest.er1 |
| 12267 | ac_status=$? |
| 12268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12269 | rm -f conftest.er1 |
| 12270 | cat conftest.err >&5 |
| 12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12272 | (exit $ac_status); } && |
| 12273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12274 | { (case "(($ac_try" in |
| 12275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12276 | *) ac_try_echo=$ac_try;; |
| 12277 | esac |
| 12278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12279 | (eval "$ac_try") 2>&5 |
| 12280 | ac_status=$? |
| 12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12282 | (exit $ac_status); }; } && |
| 12283 | { ac_try='test -s conftest$ac_exeext' |
| 12284 | { (case "(($ac_try" in |
| 12285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12286 | *) ac_try_echo=$ac_try;; |
| 12287 | esac |
| 12288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12289 | (eval "$ac_try") 2>&5 |
| 12290 | ac_status=$? |
| 12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12292 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12293 | ac_cv_lib_m_sin=yes |
| 12294 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12295 | echo "$as_me: failed program was:" >&5 |
| 12296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12297 | |
| 12298 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12299 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12300 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12301 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12302 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12303 | LIBS=$ac_check_lib_save_LIBS |
| 12304 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12305 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 12306 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 12307 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12308 | cat >>confdefs.h <<_ACEOF |
| 12309 | #define HAVE_LIBM 1 |
| 12310 | _ACEOF |
| 12311 | |
| 12312 | LIBS="-lm $LIBS" |
| 12313 | |
| 12314 | fi |
| 12315 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12316 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12317 | |
| 12318 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 12319 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 12320 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 12321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12322 | else |
| 12323 | ac_check_lib_save_LIBS=$LIBS |
| 12324 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12325 | cat >conftest.$ac_ext <<_ACEOF |
| 12326 | /* confdefs.h. */ |
| 12327 | _ACEOF |
| 12328 | cat confdefs.h >>conftest.$ac_ext |
| 12329 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12330 | /* end confdefs.h. */ |
| 12331 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12332 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12333 | int |
| 12334 | main () |
| 12335 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12336 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12337 | ; |
| 12338 | return 0; |
| 12339 | } |
| 12340 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12341 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12342 | if { (ac_try="$ac_link" |
| 12343 | case "(($ac_try" in |
| 12344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12345 | *) ac_try_echo=$ac_try;; |
| 12346 | esac |
| 12347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12348 | (eval "$ac_link") 2>conftest.er1 |
| 12349 | ac_status=$? |
| 12350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12351 | rm -f conftest.er1 |
| 12352 | cat conftest.err >&5 |
| 12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12354 | (exit $ac_status); } && |
| 12355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12356 | { (case "(($ac_try" in |
| 12357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12358 | *) ac_try_echo=$ac_try;; |
| 12359 | esac |
| 12360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12361 | (eval "$ac_try") 2>&5 |
| 12362 | ac_status=$? |
| 12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12364 | (exit $ac_status); }; } && |
| 12365 | { ac_try='test -s conftest$ac_exeext' |
| 12366 | { (case "(($ac_try" in |
| 12367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12368 | *) ac_try_echo=$ac_try;; |
| 12369 | esac |
| 12370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12371 | (eval "$ac_try") 2>&5 |
| 12372 | ac_status=$? |
| 12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12374 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12375 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12376 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12377 | echo "$as_me: failed program was:" >&5 |
| 12378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12379 | |
| 12380 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12381 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12382 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12383 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12384 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12385 | LIBS=$ac_check_lib_save_LIBS |
| 12386 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12387 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 12388 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 12389 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12390 | cat >>confdefs.h <<_ACEOF |
| 12391 | #define HAVE_LIBIMAGEHLP 1 |
| 12392 | _ACEOF |
| 12393 | |
| 12394 | LIBS="-limagehlp $LIBS" |
| 12395 | |
| 12396 | fi |
| 12397 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12398 | |
| 12399 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 12400 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 12401 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 12402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12403 | else |
| 12404 | ac_check_lib_save_LIBS=$LIBS |
| 12405 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12406 | cat >conftest.$ac_ext <<_ACEOF |
| 12407 | /* confdefs.h. */ |
| 12408 | _ACEOF |
| 12409 | cat confdefs.h >>conftest.$ac_ext |
| 12410 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12411 | /* end confdefs.h. */ |
| 12412 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12413 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12414 | int |
| 12415 | main () |
| 12416 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12417 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12418 | ; |
| 12419 | return 0; |
| 12420 | } |
| 12421 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12423 | if { (ac_try="$ac_link" |
| 12424 | case "(($ac_try" in |
| 12425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12426 | *) ac_try_echo=$ac_try;; |
| 12427 | esac |
| 12428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12429 | (eval "$ac_link") 2>conftest.er1 |
| 12430 | ac_status=$? |
| 12431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12432 | rm -f conftest.er1 |
| 12433 | cat conftest.err >&5 |
| 12434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12435 | (exit $ac_status); } && |
| 12436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12437 | { (case "(($ac_try" in |
| 12438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12439 | *) ac_try_echo=$ac_try;; |
| 12440 | esac |
| 12441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12442 | (eval "$ac_try") 2>&5 |
| 12443 | ac_status=$? |
| 12444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12445 | (exit $ac_status); }; } && |
| 12446 | { ac_try='test -s conftest$ac_exeext' |
| 12447 | { (case "(($ac_try" in |
| 12448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12449 | *) ac_try_echo=$ac_try;; |
| 12450 | esac |
| 12451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12452 | (eval "$ac_try") 2>&5 |
| 12453 | ac_status=$? |
| 12454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12455 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12456 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12457 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12458 | echo "$as_me: failed program was:" >&5 |
| 12459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12460 | |
| 12461 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12462 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12463 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12464 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12465 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12466 | LIBS=$ac_check_lib_save_LIBS |
| 12467 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12468 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 12469 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 12470 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12471 | cat >>confdefs.h <<_ACEOF |
| 12472 | #define HAVE_LIBPSAPI 1 |
| 12473 | _ACEOF |
| 12474 | |
| 12475 | LIBS="-lpsapi $LIBS" |
| 12476 | |
| 12477 | fi |
| 12478 | |
| 12479 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12481 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 12482 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 12483 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12485 | else |
| 12486 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12487 | cat >conftest.$ac_ext <<_ACEOF |
| 12488 | /* confdefs.h. */ |
| 12489 | _ACEOF |
| 12490 | cat confdefs.h >>conftest.$ac_ext |
| 12491 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12492 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12494 | /* Override any GCC internal prototype to avoid an error. |
| 12495 | Use char because int might match the return type of a GCC |
| 12496 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12497 | #ifdef __cplusplus |
| 12498 | extern "C" |
| 12499 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12500 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12501 | int |
| 12502 | main () |
| 12503 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12504 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12505 | ; |
| 12506 | return 0; |
| 12507 | } |
| 12508 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12509 | for ac_lib in '' dl; do |
| 12510 | if test -z "$ac_lib"; then |
| 12511 | ac_res="none required" |
| 12512 | else |
| 12513 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12514 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12515 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12516 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12517 | if { (ac_try="$ac_link" |
| 12518 | case "(($ac_try" in |
| 12519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12520 | *) ac_try_echo=$ac_try;; |
| 12521 | esac |
| 12522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12523 | (eval "$ac_link") 2>conftest.er1 |
| 12524 | ac_status=$? |
| 12525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12526 | rm -f conftest.er1 |
| 12527 | cat conftest.err >&5 |
| 12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12529 | (exit $ac_status); } && |
| 12530 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12531 | { (case "(($ac_try" in |
| 12532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12533 | *) ac_try_echo=$ac_try;; |
| 12534 | esac |
| 12535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12536 | (eval "$ac_try") 2>&5 |
| 12537 | ac_status=$? |
| 12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12539 | (exit $ac_status); }; } && |
| 12540 | { ac_try='test -s conftest$ac_exeext' |
| 12541 | { (case "(($ac_try" in |
| 12542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12543 | *) ac_try_echo=$ac_try;; |
| 12544 | esac |
| 12545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12546 | (eval "$ac_try") 2>&5 |
| 12547 | ac_status=$? |
| 12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12549 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12550 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12551 | else |
| 12552 | echo "$as_me: failed program was:" >&5 |
| 12553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12554 | |
| 12555 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12556 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12557 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12558 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12559 | conftest$ac_exeext |
| 12560 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12561 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12562 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12563 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12564 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12565 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12566 | else |
| 12567 | ac_cv_search_dlopen=no |
| 12568 | fi |
| 12569 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12570 | LIBS=$ac_func_search_save_LIBS |
| 12571 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12572 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 12573 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12574 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12575 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12576 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12578 | cat >>confdefs.h <<\_ACEOF |
| 12579 | #define HAVE_DLOPEN 1 |
| 12580 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12581 | |
| 12582 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12583 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 12584 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12585 | fi |
| 12586 | |
| 12587 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12588 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12589 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 12590 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 12591 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12593 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12594 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12595 | cat >conftest.$ac_ext <<_ACEOF |
| 12596 | /* confdefs.h. */ |
| 12597 | _ACEOF |
| 12598 | cat confdefs.h >>conftest.$ac_ext |
| 12599 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12600 | /* end confdefs.h. */ |
| 12601 | |
| 12602 | /* Override any GCC internal prototype to avoid an error. |
| 12603 | Use char because int might match the return type of a GCC |
| 12604 | builtin and then its argument prototype would still apply. */ |
| 12605 | #ifdef __cplusplus |
| 12606 | extern "C" |
| 12607 | #endif |
| 12608 | char ffi_call (); |
| 12609 | int |
| 12610 | main () |
| 12611 | { |
| 12612 | return ffi_call (); |
| 12613 | ; |
| 12614 | return 0; |
| 12615 | } |
| 12616 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12617 | for ac_lib in '' ffi; do |
| 12618 | if test -z "$ac_lib"; then |
| 12619 | ac_res="none required" |
| 12620 | else |
| 12621 | ac_res=-l$ac_lib |
| 12622 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12623 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12625 | if { (ac_try="$ac_link" |
| 12626 | case "(($ac_try" in |
| 12627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12628 | *) ac_try_echo=$ac_try;; |
| 12629 | esac |
| 12630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12631 | (eval "$ac_link") 2>conftest.er1 |
| 12632 | ac_status=$? |
| 12633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12634 | rm -f conftest.er1 |
| 12635 | cat conftest.err >&5 |
| 12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12637 | (exit $ac_status); } && |
| 12638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12639 | { (case "(($ac_try" in |
| 12640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12641 | *) ac_try_echo=$ac_try;; |
| 12642 | esac |
| 12643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12644 | (eval "$ac_try") 2>&5 |
| 12645 | ac_status=$? |
| 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12647 | (exit $ac_status); }; } && |
| 12648 | { ac_try='test -s conftest$ac_exeext' |
| 12649 | { (case "(($ac_try" in |
| 12650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12651 | *) ac_try_echo=$ac_try;; |
| 12652 | esac |
| 12653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12654 | (eval "$ac_try") 2>&5 |
| 12655 | ac_status=$? |
| 12656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12657 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12658 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12659 | else |
| 12660 | echo "$as_me: failed program was:" >&5 |
| 12661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12662 | |
| 12663 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12664 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12665 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12666 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12667 | conftest$ac_exeext |
| 12668 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12669 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12670 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12671 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12672 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12673 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12674 | else |
| 12675 | ac_cv_search_ffi_call=no |
| 12676 | fi |
| 12677 | rm conftest.$ac_ext |
| 12678 | LIBS=$ac_func_search_save_LIBS |
| 12679 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12680 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 12681 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12682 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12683 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12684 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12685 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12686 | cat >>confdefs.h <<\_ACEOF |
| 12687 | #define HAVE_FFI_CALL 1 |
| 12688 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12689 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12690 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12691 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 12692 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 12693 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12694 | fi |
| 12695 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12696 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12698 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 12699 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 12700 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12702 | else |
| 12703 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12704 | cat >conftest.$ac_ext <<_ACEOF |
| 12705 | /* confdefs.h. */ |
| 12706 | _ACEOF |
| 12707 | cat confdefs.h >>conftest.$ac_ext |
| 12708 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12709 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12710 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12711 | /* Override any GCC internal prototype to avoid an error. |
| 12712 | Use char because int might match the return type of a GCC |
| 12713 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12714 | #ifdef __cplusplus |
| 12715 | extern "C" |
| 12716 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12717 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12718 | int |
| 12719 | main () |
| 12720 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12721 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12722 | ; |
| 12723 | return 0; |
| 12724 | } |
| 12725 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12726 | for ac_lib in '' malloc; do |
| 12727 | if test -z "$ac_lib"; then |
| 12728 | ac_res="none required" |
| 12729 | else |
| 12730 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12731 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12732 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12734 | if { (ac_try="$ac_link" |
| 12735 | case "(($ac_try" in |
| 12736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12737 | *) ac_try_echo=$ac_try;; |
| 12738 | esac |
| 12739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12740 | (eval "$ac_link") 2>conftest.er1 |
| 12741 | ac_status=$? |
| 12742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12743 | rm -f conftest.er1 |
| 12744 | cat conftest.err >&5 |
| 12745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12746 | (exit $ac_status); } && |
| 12747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12748 | { (case "(($ac_try" in |
| 12749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12750 | *) ac_try_echo=$ac_try;; |
| 12751 | esac |
| 12752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12753 | (eval "$ac_try") 2>&5 |
| 12754 | ac_status=$? |
| 12755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12756 | (exit $ac_status); }; } && |
| 12757 | { ac_try='test -s conftest$ac_exeext' |
| 12758 | { (case "(($ac_try" in |
| 12759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12760 | *) ac_try_echo=$ac_try;; |
| 12761 | esac |
| 12762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12763 | (eval "$ac_try") 2>&5 |
| 12764 | ac_status=$? |
| 12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12766 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12767 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12768 | else |
| 12769 | echo "$as_me: failed program was:" >&5 |
| 12770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12771 | |
| 12772 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12773 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12774 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12775 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12776 | conftest$ac_exeext |
| 12777 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12778 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12779 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12780 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12781 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12782 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12783 | else |
| 12784 | ac_cv_search_mallinfo=no |
| 12785 | fi |
| 12786 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12787 | LIBS=$ac_func_search_save_LIBS |
| 12788 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12789 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 12790 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12791 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12792 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12793 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12795 | cat >>confdefs.h <<\_ACEOF |
| 12796 | #define HAVE_MALLINFO 1 |
| 12797 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12798 | |
| 12799 | fi |
| 12800 | |
| 12801 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12802 | 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] | 12803 | |
| 12804 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 12805 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 12806 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 12807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12808 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12809 | ac_check_lib_save_LIBS=$LIBS |
| 12810 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12811 | cat >conftest.$ac_ext <<_ACEOF |
| 12812 | /* confdefs.h. */ |
| 12813 | _ACEOF |
| 12814 | cat confdefs.h >>conftest.$ac_ext |
| 12815 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12816 | /* end confdefs.h. */ |
| 12817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12818 | /* Override any GCC internal prototype to avoid an error. |
| 12819 | Use char because int might match the return type of a GCC |
| 12820 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12821 | #ifdef __cplusplus |
| 12822 | extern "C" |
| 12823 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12824 | char pthread_mutex_init (); |
| 12825 | int |
| 12826 | main () |
| 12827 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12828 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12829 | ; |
| 12830 | return 0; |
| 12831 | } |
| 12832 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12833 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12834 | if { (ac_try="$ac_link" |
| 12835 | case "(($ac_try" in |
| 12836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12837 | *) ac_try_echo=$ac_try;; |
| 12838 | esac |
| 12839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12840 | (eval "$ac_link") 2>conftest.er1 |
| 12841 | ac_status=$? |
| 12842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12843 | rm -f conftest.er1 |
| 12844 | cat conftest.err >&5 |
| 12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12846 | (exit $ac_status); } && |
| 12847 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12848 | { (case "(($ac_try" in |
| 12849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12850 | *) ac_try_echo=$ac_try;; |
| 12851 | esac |
| 12852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12853 | (eval "$ac_try") 2>&5 |
| 12854 | ac_status=$? |
| 12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12856 | (exit $ac_status); }; } && |
| 12857 | { ac_try='test -s conftest$ac_exeext' |
| 12858 | { (case "(($ac_try" in |
| 12859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12860 | *) ac_try_echo=$ac_try;; |
| 12861 | esac |
| 12862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12863 | (eval "$ac_try") 2>&5 |
| 12864 | ac_status=$? |
| 12865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12866 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12867 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12868 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12869 | echo "$as_me: failed program was:" >&5 |
| 12870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12871 | |
| 12872 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12873 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12874 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12875 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12876 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12877 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12878 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12879 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 12880 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 12881 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12882 | cat >>confdefs.h <<_ACEOF |
| 12883 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12884 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12885 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12886 | LIBS="-lpthread $LIBS" |
| 12887 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12888 | fi |
| 12889 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12890 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 12891 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 12892 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12894 | else |
| 12895 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12896 | cat >conftest.$ac_ext <<_ACEOF |
| 12897 | /* confdefs.h. */ |
| 12898 | _ACEOF |
| 12899 | cat confdefs.h >>conftest.$ac_ext |
| 12900 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12901 | /* end confdefs.h. */ |
| 12902 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12903 | /* Override any GCC internal prototype to avoid an error. |
| 12904 | Use char because int might match the return type of a GCC |
| 12905 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12906 | #ifdef __cplusplus |
| 12907 | extern "C" |
| 12908 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12909 | char pthread_mutex_lock (); |
| 12910 | int |
| 12911 | main () |
| 12912 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12913 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12914 | ; |
| 12915 | return 0; |
| 12916 | } |
| 12917 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12918 | for ac_lib in '' pthread; do |
| 12919 | if test -z "$ac_lib"; then |
| 12920 | ac_res="none required" |
| 12921 | else |
| 12922 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12923 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12924 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12925 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12926 | if { (ac_try="$ac_link" |
| 12927 | case "(($ac_try" in |
| 12928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12929 | *) ac_try_echo=$ac_try;; |
| 12930 | esac |
| 12931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12932 | (eval "$ac_link") 2>conftest.er1 |
| 12933 | ac_status=$? |
| 12934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12935 | rm -f conftest.er1 |
| 12936 | cat conftest.err >&5 |
| 12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12938 | (exit $ac_status); } && |
| 12939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12940 | { (case "(($ac_try" in |
| 12941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12942 | *) ac_try_echo=$ac_try;; |
| 12943 | esac |
| 12944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12945 | (eval "$ac_try") 2>&5 |
| 12946 | ac_status=$? |
| 12947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12948 | (exit $ac_status); }; } && |
| 12949 | { ac_try='test -s conftest$ac_exeext' |
| 12950 | { (case "(($ac_try" in |
| 12951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12952 | *) ac_try_echo=$ac_try;; |
| 12953 | esac |
| 12954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12955 | (eval "$ac_try") 2>&5 |
| 12956 | ac_status=$? |
| 12957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12958 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12959 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12960 | else |
| 12961 | echo "$as_me: failed program was:" >&5 |
| 12962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12963 | |
| 12964 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12965 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12966 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12967 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12968 | conftest$ac_exeext |
| 12969 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12970 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12971 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12972 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12973 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12974 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12975 | else |
| 12976 | ac_cv_search_pthread_mutex_lock=no |
| 12977 | fi |
| 12978 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12979 | LIBS=$ac_func_search_save_LIBS |
| 12980 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12981 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 12982 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12983 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12984 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12985 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12986 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12987 | cat >>confdefs.h <<\_ACEOF |
| 12988 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 12989 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 12990 | |
| 12991 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12992 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12993 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 12994 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 12995 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 12996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12997 | else |
| 12998 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12999 | cat >conftest.$ac_ext <<_ACEOF |
| 13000 | /* confdefs.h. */ |
| 13001 | _ACEOF |
| 13002 | cat confdefs.h >>conftest.$ac_ext |
| 13003 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13004 | /* end confdefs.h. */ |
| 13005 | |
| 13006 | /* Override any GCC internal prototype to avoid an error. |
| 13007 | Use char because int might match the return type of a GCC |
| 13008 | builtin and then its argument prototype would still apply. */ |
| 13009 | #ifdef __cplusplus |
| 13010 | extern "C" |
| 13011 | #endif |
| 13012 | char pthread_rwlock_init (); |
| 13013 | int |
| 13014 | main () |
| 13015 | { |
| 13016 | return pthread_rwlock_init (); |
| 13017 | ; |
| 13018 | return 0; |
| 13019 | } |
| 13020 | _ACEOF |
| 13021 | for ac_lib in '' pthread; do |
| 13022 | if test -z "$ac_lib"; then |
| 13023 | ac_res="none required" |
| 13024 | else |
| 13025 | ac_res=-l$ac_lib |
| 13026 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13027 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13028 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13029 | if { (ac_try="$ac_link" |
| 13030 | case "(($ac_try" in |
| 13031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13032 | *) ac_try_echo=$ac_try;; |
| 13033 | esac |
| 13034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13035 | (eval "$ac_link") 2>conftest.er1 |
| 13036 | ac_status=$? |
| 13037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13038 | rm -f conftest.er1 |
| 13039 | cat conftest.err >&5 |
| 13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13041 | (exit $ac_status); } && |
| 13042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13043 | { (case "(($ac_try" in |
| 13044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13045 | *) ac_try_echo=$ac_try;; |
| 13046 | esac |
| 13047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13048 | (eval "$ac_try") 2>&5 |
| 13049 | ac_status=$? |
| 13050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13051 | (exit $ac_status); }; } && |
| 13052 | { ac_try='test -s conftest$ac_exeext' |
| 13053 | { (case "(($ac_try" in |
| 13054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13055 | *) ac_try_echo=$ac_try;; |
| 13056 | esac |
| 13057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13058 | (eval "$ac_try") 2>&5 |
| 13059 | ac_status=$? |
| 13060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13061 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13062 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13063 | else |
| 13064 | echo "$as_me: failed program was:" >&5 |
| 13065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13066 | |
| 13067 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13068 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13069 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13070 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13071 | conftest$ac_exeext |
| 13072 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13073 | break |
| 13074 | fi |
| 13075 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13076 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13077 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13078 | else |
| 13079 | ac_cv_search_pthread_rwlock_init=no |
| 13080 | fi |
| 13081 | rm conftest.$ac_ext |
| 13082 | LIBS=$ac_func_search_save_LIBS |
| 13083 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13084 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13085 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13086 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13087 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13088 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13089 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13090 | cat >>confdefs.h <<\_ACEOF |
| 13091 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13092 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13093 | |
| 13094 | fi |
| 13095 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13096 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13097 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13098 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13100 | else |
| 13101 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13102 | cat >conftest.$ac_ext <<_ACEOF |
| 13103 | /* confdefs.h. */ |
| 13104 | _ACEOF |
| 13105 | cat confdefs.h >>conftest.$ac_ext |
| 13106 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13107 | /* end confdefs.h. */ |
| 13108 | |
| 13109 | /* Override any GCC internal prototype to avoid an error. |
| 13110 | Use char because int might match the return type of a GCC |
| 13111 | builtin and then its argument prototype would still apply. */ |
| 13112 | #ifdef __cplusplus |
| 13113 | extern "C" |
| 13114 | #endif |
| 13115 | char pthread_getspecific (); |
| 13116 | int |
| 13117 | main () |
| 13118 | { |
| 13119 | return pthread_getspecific (); |
| 13120 | ; |
| 13121 | return 0; |
| 13122 | } |
| 13123 | _ACEOF |
| 13124 | for ac_lib in '' pthread; do |
| 13125 | if test -z "$ac_lib"; then |
| 13126 | ac_res="none required" |
| 13127 | else |
| 13128 | ac_res=-l$ac_lib |
| 13129 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13130 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13131 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13132 | if { (ac_try="$ac_link" |
| 13133 | case "(($ac_try" in |
| 13134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13135 | *) ac_try_echo=$ac_try;; |
| 13136 | esac |
| 13137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13138 | (eval "$ac_link") 2>conftest.er1 |
| 13139 | ac_status=$? |
| 13140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13141 | rm -f conftest.er1 |
| 13142 | cat conftest.err >&5 |
| 13143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13144 | (exit $ac_status); } && |
| 13145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13146 | { (case "(($ac_try" in |
| 13147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13148 | *) ac_try_echo=$ac_try;; |
| 13149 | esac |
| 13150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13151 | (eval "$ac_try") 2>&5 |
| 13152 | ac_status=$? |
| 13153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13154 | (exit $ac_status); }; } && |
| 13155 | { ac_try='test -s conftest$ac_exeext' |
| 13156 | { (case "(($ac_try" in |
| 13157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13158 | *) ac_try_echo=$ac_try;; |
| 13159 | esac |
| 13160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13161 | (eval "$ac_try") 2>&5 |
| 13162 | ac_status=$? |
| 13163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13164 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13165 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13166 | else |
| 13167 | echo "$as_me: failed program was:" >&5 |
| 13168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13169 | |
| 13170 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13171 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13172 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13173 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13174 | conftest$ac_exeext |
| 13175 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13176 | break |
| 13177 | fi |
| 13178 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13179 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13180 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13181 | else |
| 13182 | ac_cv_search_pthread_getspecific=no |
| 13183 | fi |
| 13184 | rm conftest.$ac_ext |
| 13185 | LIBS=$ac_func_search_save_LIBS |
| 13186 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13187 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13188 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13189 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13190 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13191 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13192 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13193 | cat >>confdefs.h <<\_ACEOF |
| 13194 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13195 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13196 | |
| 13197 | fi |
| 13198 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13199 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13200 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13201 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13202 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13203 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13204 | withval=$with_udis86; |
| 13205 | USE_UDIS86=1 |
| 13206 | |
| 13207 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13208 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13209 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13210 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13211 | |
| 13212 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13213 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13214 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13216 | else |
| 13217 | ac_check_lib_save_LIBS=$LIBS |
| 13218 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13219 | cat >conftest.$ac_ext <<_ACEOF |
| 13220 | /* confdefs.h. */ |
| 13221 | _ACEOF |
| 13222 | cat confdefs.h >>conftest.$ac_ext |
| 13223 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13224 | /* end confdefs.h. */ |
| 13225 | |
| 13226 | /* Override any GCC internal prototype to avoid an error. |
| 13227 | Use char because int might match the return type of a GCC |
| 13228 | builtin and then its argument prototype would still apply. */ |
| 13229 | #ifdef __cplusplus |
| 13230 | extern "C" |
| 13231 | #endif |
| 13232 | char ud_init (); |
| 13233 | int |
| 13234 | main () |
| 13235 | { |
| 13236 | return ud_init (); |
| 13237 | ; |
| 13238 | return 0; |
| 13239 | } |
| 13240 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13242 | if { (ac_try="$ac_link" |
| 13243 | case "(($ac_try" in |
| 13244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13245 | *) ac_try_echo=$ac_try;; |
| 13246 | esac |
| 13247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13248 | (eval "$ac_link") 2>conftest.er1 |
| 13249 | ac_status=$? |
| 13250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13251 | rm -f conftest.er1 |
| 13252 | cat conftest.err >&5 |
| 13253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13254 | (exit $ac_status); } && |
| 13255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13256 | { (case "(($ac_try" in |
| 13257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13258 | *) ac_try_echo=$ac_try;; |
| 13259 | esac |
| 13260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13261 | (eval "$ac_try") 2>&5 |
| 13262 | ac_status=$? |
| 13263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13264 | (exit $ac_status); }; } && |
| 13265 | { ac_try='test -s conftest$ac_exeext' |
| 13266 | { (case "(($ac_try" in |
| 13267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13268 | *) ac_try_echo=$ac_try;; |
| 13269 | esac |
| 13270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13271 | (eval "$ac_try") 2>&5 |
| 13272 | ac_status=$? |
| 13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13274 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13275 | ac_cv_lib_udis86_ud_init=yes |
| 13276 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13277 | echo "$as_me: failed program was:" >&5 |
| 13278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13279 | |
| 13280 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13281 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13282 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13283 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13284 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13285 | LIBS=$ac_check_lib_save_LIBS |
| 13286 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13287 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13288 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13289 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13290 | cat >>confdefs.h <<_ACEOF |
| 13291 | #define HAVE_LIBUDIS86 1 |
| 13292 | _ACEOF |
| 13293 | |
| 13294 | LIBS="-ludis86 $LIBS" |
| 13295 | |
| 13296 | else |
| 13297 | |
| 13298 | echo "Error! You need to have libudis86 around." |
| 13299 | exit -1 |
| 13300 | |
| 13301 | fi |
| 13302 | |
| 13303 | |
| 13304 | else |
| 13305 | USE_UDIS86=0 |
| 13306 | |
| 13307 | fi |
| 13308 | |
| 13309 | |
| 13310 | cat >>confdefs.h <<_ACEOF |
| 13311 | #define USE_UDIS86 $USE_UDIS86 |
| 13312 | _ACEOF |
| 13313 | |
| 13314 | |
| 13315 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13316 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13317 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13318 | withval=$with_oprofile; |
| 13319 | USE_OPROFILE=1 |
| 13320 | |
| 13321 | case "$withval" in |
| 13322 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13323 | no) llvm_cv_oppath= |
| 13324 | USE_OPROFILE=0 |
| 13325 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13326 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 13327 | CPPFLAGS="-I${withval}/include";; |
| 13328 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13329 | if test -n "$llvm_cv_oppath" ; then |
| 13330 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13331 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 13332 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 13333 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13335 | else |
| 13336 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13337 | cat >conftest.$ac_ext <<_ACEOF |
| 13338 | /* confdefs.h. */ |
| 13339 | _ACEOF |
| 13340 | cat confdefs.h >>conftest.$ac_ext |
| 13341 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13342 | /* end confdefs.h. */ |
| 13343 | |
| 13344 | /* Override any GCC internal prototype to avoid an error. |
| 13345 | Use char because int might match the return type of a GCC |
| 13346 | builtin and then its argument prototype would still apply. */ |
| 13347 | #ifdef __cplusplus |
| 13348 | extern "C" |
| 13349 | #endif |
| 13350 | char bfd_init (); |
| 13351 | int |
| 13352 | main () |
| 13353 | { |
| 13354 | return bfd_init (); |
| 13355 | ; |
| 13356 | return 0; |
| 13357 | } |
| 13358 | _ACEOF |
| 13359 | for ac_lib in '' bfd; do |
| 13360 | if test -z "$ac_lib"; then |
| 13361 | ac_res="none required" |
| 13362 | else |
| 13363 | ac_res=-l$ac_lib |
| 13364 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13365 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13367 | if { (ac_try="$ac_link" |
| 13368 | case "(($ac_try" in |
| 13369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13370 | *) ac_try_echo=$ac_try;; |
| 13371 | esac |
| 13372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13373 | (eval "$ac_link") 2>conftest.er1 |
| 13374 | ac_status=$? |
| 13375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13376 | rm -f conftest.er1 |
| 13377 | cat conftest.err >&5 |
| 13378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13379 | (exit $ac_status); } && |
| 13380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13381 | { (case "(($ac_try" in |
| 13382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13383 | *) ac_try_echo=$ac_try;; |
| 13384 | esac |
| 13385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13386 | (eval "$ac_try") 2>&5 |
| 13387 | ac_status=$? |
| 13388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13389 | (exit $ac_status); }; } && |
| 13390 | { ac_try='test -s conftest$ac_exeext' |
| 13391 | { (case "(($ac_try" in |
| 13392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13393 | *) ac_try_echo=$ac_try;; |
| 13394 | esac |
| 13395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13396 | (eval "$ac_try") 2>&5 |
| 13397 | ac_status=$? |
| 13398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13399 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13400 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13401 | else |
| 13402 | echo "$as_me: failed program was:" >&5 |
| 13403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13404 | |
| 13405 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13406 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13407 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13408 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13409 | conftest$ac_exeext |
| 13410 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13411 | break |
| 13412 | fi |
| 13413 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13414 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13415 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13416 | else |
| 13417 | ac_cv_search_bfd_init=no |
| 13418 | fi |
| 13419 | rm conftest.$ac_ext |
| 13420 | LIBS=$ac_func_search_save_LIBS |
| 13421 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13422 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 13423 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13424 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13425 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13426 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13427 | |
| 13428 | fi |
| 13429 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13430 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 13431 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 13432 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13434 | else |
| 13435 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13436 | cat >conftest.$ac_ext <<_ACEOF |
| 13437 | /* confdefs.h. */ |
| 13438 | _ACEOF |
| 13439 | cat confdefs.h >>conftest.$ac_ext |
| 13440 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13441 | /* end confdefs.h. */ |
| 13442 | |
| 13443 | /* Override any GCC internal prototype to avoid an error. |
| 13444 | Use char because int might match the return type of a GCC |
| 13445 | builtin and then its argument prototype would still apply. */ |
| 13446 | #ifdef __cplusplus |
| 13447 | extern "C" |
| 13448 | #endif |
| 13449 | char op_open_agent (); |
| 13450 | int |
| 13451 | main () |
| 13452 | { |
| 13453 | return op_open_agent (); |
| 13454 | ; |
| 13455 | return 0; |
| 13456 | } |
| 13457 | _ACEOF |
| 13458 | for ac_lib in '' opagent; do |
| 13459 | if test -z "$ac_lib"; then |
| 13460 | ac_res="none required" |
| 13461 | else |
| 13462 | ac_res=-l$ac_lib |
| 13463 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13464 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13465 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13466 | if { (ac_try="$ac_link" |
| 13467 | case "(($ac_try" in |
| 13468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13469 | *) ac_try_echo=$ac_try;; |
| 13470 | esac |
| 13471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13472 | (eval "$ac_link") 2>conftest.er1 |
| 13473 | ac_status=$? |
| 13474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13475 | rm -f conftest.er1 |
| 13476 | cat conftest.err >&5 |
| 13477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13478 | (exit $ac_status); } && |
| 13479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13480 | { (case "(($ac_try" in |
| 13481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13482 | *) ac_try_echo=$ac_try;; |
| 13483 | esac |
| 13484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13485 | (eval "$ac_try") 2>&5 |
| 13486 | ac_status=$? |
| 13487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13488 | (exit $ac_status); }; } && |
| 13489 | { ac_try='test -s conftest$ac_exeext' |
| 13490 | { (case "(($ac_try" in |
| 13491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13492 | *) ac_try_echo=$ac_try;; |
| 13493 | esac |
| 13494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13495 | (eval "$ac_try") 2>&5 |
| 13496 | ac_status=$? |
| 13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13498 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13499 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13500 | else |
| 13501 | echo "$as_me: failed program was:" >&5 |
| 13502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13503 | |
| 13504 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13505 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13506 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13507 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13508 | conftest$ac_exeext |
| 13509 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13510 | break |
| 13511 | fi |
| 13512 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13513 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13514 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13515 | else |
| 13516 | ac_cv_search_op_open_agent=no |
| 13517 | fi |
| 13518 | rm conftest.$ac_ext |
| 13519 | LIBS=$ac_func_search_save_LIBS |
| 13520 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13521 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 13522 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13523 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13524 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13525 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13526 | |
| 13527 | else |
| 13528 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13529 | echo "Error! You need to have libopagent around." |
| 13530 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13531 | |
| 13532 | fi |
| 13533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13534 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13535 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13536 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13537 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13539 | fi |
| 13540 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13541 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13542 | else |
| 13543 | # Is the header compilable? |
| 13544 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 13545 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 13546 | cat >conftest.$ac_ext <<_ACEOF |
| 13547 | /* confdefs.h. */ |
| 13548 | _ACEOF |
| 13549 | cat confdefs.h >>conftest.$ac_ext |
| 13550 | cat >>conftest.$ac_ext <<_ACEOF |
| 13551 | /* end confdefs.h. */ |
| 13552 | $ac_includes_default |
| 13553 | #include <opagent.h> |
| 13554 | _ACEOF |
| 13555 | rm -f conftest.$ac_objext |
| 13556 | if { (ac_try="$ac_compile" |
| 13557 | case "(($ac_try" in |
| 13558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13559 | *) ac_try_echo=$ac_try;; |
| 13560 | esac |
| 13561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13562 | (eval "$ac_compile") 2>conftest.er1 |
| 13563 | ac_status=$? |
| 13564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13565 | rm -f conftest.er1 |
| 13566 | cat conftest.err >&5 |
| 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13568 | (exit $ac_status); } && |
| 13569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13570 | { (case "(($ac_try" in |
| 13571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13572 | *) ac_try_echo=$ac_try;; |
| 13573 | esac |
| 13574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13575 | (eval "$ac_try") 2>&5 |
| 13576 | ac_status=$? |
| 13577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13578 | (exit $ac_status); }; } && |
| 13579 | { ac_try='test -s conftest.$ac_objext' |
| 13580 | { (case "(($ac_try" in |
| 13581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13582 | *) ac_try_echo=$ac_try;; |
| 13583 | esac |
| 13584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13585 | (eval "$ac_try") 2>&5 |
| 13586 | ac_status=$? |
| 13587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13588 | (exit $ac_status); }; }; then |
| 13589 | ac_header_compiler=yes |
| 13590 | else |
| 13591 | echo "$as_me: failed program was:" >&5 |
| 13592 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13593 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13594 | ac_header_compiler=no |
| 13595 | fi |
| 13596 | |
| 13597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13598 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13599 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 13600 | |
| 13601 | # Is the header present? |
| 13602 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 13603 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 13604 | cat >conftest.$ac_ext <<_ACEOF |
| 13605 | /* confdefs.h. */ |
| 13606 | _ACEOF |
| 13607 | cat confdefs.h >>conftest.$ac_ext |
| 13608 | cat >>conftest.$ac_ext <<_ACEOF |
| 13609 | /* end confdefs.h. */ |
| 13610 | #include <opagent.h> |
| 13611 | _ACEOF |
| 13612 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13613 | case "(($ac_try" in |
| 13614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13615 | *) ac_try_echo=$ac_try;; |
| 13616 | esac |
| 13617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13618 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13619 | ac_status=$? |
| 13620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13621 | rm -f conftest.er1 |
| 13622 | cat conftest.err >&5 |
| 13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13624 | (exit $ac_status); } >/dev/null; then |
| 13625 | if test -s conftest.err; then |
| 13626 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13627 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13628 | else |
| 13629 | ac_cpp_err= |
| 13630 | fi |
| 13631 | else |
| 13632 | ac_cpp_err=yes |
| 13633 | fi |
| 13634 | if test -z "$ac_cpp_err"; then |
| 13635 | ac_header_preproc=yes |
| 13636 | else |
| 13637 | echo "$as_me: failed program was:" >&5 |
| 13638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13639 | |
| 13640 | ac_header_preproc=no |
| 13641 | fi |
| 13642 | |
| 13643 | rm -f conftest.err conftest.$ac_ext |
| 13644 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13645 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 13646 | |
| 13647 | # So? What about this header? |
| 13648 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13649 | yes:no: ) |
| 13650 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13651 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13652 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 13653 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 13654 | ac_header_preproc=yes |
| 13655 | ;; |
| 13656 | no:yes:* ) |
| 13657 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 13658 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 13659 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 13660 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 13661 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 13662 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 13663 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13664 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13665 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 13666 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 13667 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 13668 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 13669 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 13670 | ## ------------------------------------ ## |
| 13671 | ## Report this to http://llvm.org/bugs/ ## |
| 13672 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13673 | _ASBOX |
| 13674 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13675 | ;; |
| 13676 | esac |
| 13677 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13678 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13679 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13681 | else |
| 13682 | ac_cv_header_opagent_h=$ac_header_preproc |
| 13683 | fi |
| 13684 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13685 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13686 | |
| 13687 | fi |
| 13688 | if test $ac_cv_header_opagent_h = yes; then |
| 13689 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13690 | else |
| 13691 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13692 | echo "Error! You need to have opagent.h around." |
| 13693 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13694 | |
| 13695 | fi |
| 13696 | |
| 13697 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13698 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13699 | |
| 13700 | else |
| 13701 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13702 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13703 | |
| 13704 | |
| 13705 | fi |
| 13706 | |
| 13707 | |
| 13708 | cat >>confdefs.h <<_ACEOF |
| 13709 | #define USE_OPROFILE $USE_OPROFILE |
| 13710 | _ACEOF |
| 13711 | |
| 13712 | |
| 13713 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13714 | |
| 13715 | |
| 13716 | |
| 13717 | |
| 13718 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13719 | ac_header_dirent=no |
| 13720 | 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] | 13721 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 13722 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 13723 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 13724 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13726 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13727 | cat >conftest.$ac_ext <<_ACEOF |
| 13728 | /* confdefs.h. */ |
| 13729 | _ACEOF |
| 13730 | cat confdefs.h >>conftest.$ac_ext |
| 13731 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13732 | /* end confdefs.h. */ |
| 13733 | #include <sys/types.h> |
| 13734 | #include <$ac_hdr> |
| 13735 | |
| 13736 | int |
| 13737 | main () |
| 13738 | { |
| 13739 | if ((DIR *) 0) |
| 13740 | return 0; |
| 13741 | ; |
| 13742 | return 0; |
| 13743 | } |
| 13744 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13745 | rm -f conftest.$ac_objext |
| 13746 | if { (ac_try="$ac_compile" |
| 13747 | case "(($ac_try" in |
| 13748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13749 | *) ac_try_echo=$ac_try;; |
| 13750 | esac |
| 13751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13752 | (eval "$ac_compile") 2>conftest.er1 |
| 13753 | ac_status=$? |
| 13754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13755 | rm -f conftest.er1 |
| 13756 | cat conftest.err >&5 |
| 13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13758 | (exit $ac_status); } && |
| 13759 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13760 | { (case "(($ac_try" in |
| 13761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13762 | *) ac_try_echo=$ac_try;; |
| 13763 | esac |
| 13764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13765 | (eval "$ac_try") 2>&5 |
| 13766 | ac_status=$? |
| 13767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13768 | (exit $ac_status); }; } && |
| 13769 | { ac_try='test -s conftest.$ac_objext' |
| 13770 | { (case "(($ac_try" in |
| 13771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13772 | *) ac_try_echo=$ac_try;; |
| 13773 | esac |
| 13774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13775 | (eval "$ac_try") 2>&5 |
| 13776 | ac_status=$? |
| 13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13778 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13779 | eval "$as_ac_Header=yes" |
| 13780 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13781 | echo "$as_me: failed program was:" >&5 |
| 13782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13783 | |
| 13784 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13785 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13786 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 13790 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13791 | echo "${ECHO_T}$ac_res" >&6; } |
| 13792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13793 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13794 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13795 | _ACEOF |
| 13796 | |
| 13797 | ac_header_dirent=$ac_hdr; break |
| 13798 | fi |
| 13799 | |
| 13800 | done |
| 13801 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 13802 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13803 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13804 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13805 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13807 | else |
| 13808 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13809 | cat >conftest.$ac_ext <<_ACEOF |
| 13810 | /* confdefs.h. */ |
| 13811 | _ACEOF |
| 13812 | cat confdefs.h >>conftest.$ac_ext |
| 13813 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13814 | /* end confdefs.h. */ |
| 13815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13816 | /* Override any GCC internal prototype to avoid an error. |
| 13817 | Use char because int might match the return type of a GCC |
| 13818 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13819 | #ifdef __cplusplus |
| 13820 | extern "C" |
| 13821 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13822 | char opendir (); |
| 13823 | int |
| 13824 | main () |
| 13825 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13826 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13827 | ; |
| 13828 | return 0; |
| 13829 | } |
| 13830 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13831 | for ac_lib in '' dir; do |
| 13832 | if test -z "$ac_lib"; then |
| 13833 | ac_res="none required" |
| 13834 | else |
| 13835 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13836 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13837 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13839 | if { (ac_try="$ac_link" |
| 13840 | case "(($ac_try" in |
| 13841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13842 | *) ac_try_echo=$ac_try;; |
| 13843 | esac |
| 13844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13845 | (eval "$ac_link") 2>conftest.er1 |
| 13846 | ac_status=$? |
| 13847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13848 | rm -f conftest.er1 |
| 13849 | cat conftest.err >&5 |
| 13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13851 | (exit $ac_status); } && |
| 13852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13853 | { (case "(($ac_try" in |
| 13854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13855 | *) ac_try_echo=$ac_try;; |
| 13856 | esac |
| 13857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13858 | (eval "$ac_try") 2>&5 |
| 13859 | ac_status=$? |
| 13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13861 | (exit $ac_status); }; } && |
| 13862 | { ac_try='test -s conftest$ac_exeext' |
| 13863 | { (case "(($ac_try" in |
| 13864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13865 | *) ac_try_echo=$ac_try;; |
| 13866 | esac |
| 13867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13868 | (eval "$ac_try") 2>&5 |
| 13869 | ac_status=$? |
| 13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13871 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13872 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13873 | else |
| 13874 | echo "$as_me: failed program was:" >&5 |
| 13875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13876 | |
| 13877 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13878 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13879 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13880 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13881 | conftest$ac_exeext |
| 13882 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13883 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13884 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13885 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13886 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13887 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13888 | else |
| 13889 | ac_cv_search_opendir=no |
| 13890 | fi |
| 13891 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13892 | LIBS=$ac_func_search_save_LIBS |
| 13893 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13894 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13895 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13896 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13897 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13898 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13899 | |
| 13900 | fi |
| 13901 | |
| 13902 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13903 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13904 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13905 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13907 | else |
| 13908 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13909 | cat >conftest.$ac_ext <<_ACEOF |
| 13910 | /* confdefs.h. */ |
| 13911 | _ACEOF |
| 13912 | cat confdefs.h >>conftest.$ac_ext |
| 13913 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13914 | /* end confdefs.h. */ |
| 13915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13916 | /* Override any GCC internal prototype to avoid an error. |
| 13917 | Use char because int might match the return type of a GCC |
| 13918 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13919 | #ifdef __cplusplus |
| 13920 | extern "C" |
| 13921 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13922 | char opendir (); |
| 13923 | int |
| 13924 | main () |
| 13925 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13926 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13927 | ; |
| 13928 | return 0; |
| 13929 | } |
| 13930 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13931 | for ac_lib in '' x; do |
| 13932 | if test -z "$ac_lib"; then |
| 13933 | ac_res="none required" |
| 13934 | else |
| 13935 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13936 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13937 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13938 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13939 | if { (ac_try="$ac_link" |
| 13940 | case "(($ac_try" in |
| 13941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13942 | *) ac_try_echo=$ac_try;; |
| 13943 | esac |
| 13944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13945 | (eval "$ac_link") 2>conftest.er1 |
| 13946 | ac_status=$? |
| 13947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13948 | rm -f conftest.er1 |
| 13949 | cat conftest.err >&5 |
| 13950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13951 | (exit $ac_status); } && |
| 13952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13953 | { (case "(($ac_try" in |
| 13954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13955 | *) ac_try_echo=$ac_try;; |
| 13956 | esac |
| 13957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13958 | (eval "$ac_try") 2>&5 |
| 13959 | ac_status=$? |
| 13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13961 | (exit $ac_status); }; } && |
| 13962 | { ac_try='test -s conftest$ac_exeext' |
| 13963 | { (case "(($ac_try" in |
| 13964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13965 | *) ac_try_echo=$ac_try;; |
| 13966 | esac |
| 13967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13968 | (eval "$ac_try") 2>&5 |
| 13969 | ac_status=$? |
| 13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13971 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13972 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13973 | else |
| 13974 | echo "$as_me: failed program was:" >&5 |
| 13975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13976 | |
| 13977 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13978 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13979 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13980 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13981 | conftest$ac_exeext |
| 13982 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13983 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13984 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13985 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13986 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13987 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13988 | else |
| 13989 | ac_cv_search_opendir=no |
| 13990 | fi |
| 13991 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13992 | LIBS=$ac_func_search_save_LIBS |
| 13993 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13994 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13995 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13996 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13997 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13998 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13999 | |
| 14000 | fi |
| 14001 | |
| 14002 | fi |
| 14003 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14004 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14005 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14006 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14008 | else |
| 14009 | ac_ext=c |
| 14010 | ac_cpp='$CPP $CPPFLAGS' |
| 14011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14014 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14015 | cat >conftest.$ac_ext <<_ACEOF |
| 14016 | /* confdefs.h. */ |
| 14017 | _ACEOF |
| 14018 | cat confdefs.h >>conftest.$ac_ext |
| 14019 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14020 | /* end confdefs.h. */ |
| 14021 | #include <sys/mman.h> |
| 14022 | #include <unistd.h> |
| 14023 | #include <fcntl.h> |
| 14024 | int |
| 14025 | main () |
| 14026 | { |
| 14027 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14028 | ; |
| 14029 | return 0; |
| 14030 | } |
| 14031 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14032 | rm -f conftest.$ac_objext |
| 14033 | if { (ac_try="$ac_compile" |
| 14034 | case "(($ac_try" in |
| 14035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14036 | *) ac_try_echo=$ac_try;; |
| 14037 | esac |
| 14038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14039 | (eval "$ac_compile") 2>conftest.er1 |
| 14040 | ac_status=$? |
| 14041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14042 | rm -f conftest.er1 |
| 14043 | cat conftest.err >&5 |
| 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14045 | (exit $ac_status); } && |
| 14046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14047 | { (case "(($ac_try" in |
| 14048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14049 | *) ac_try_echo=$ac_try;; |
| 14050 | esac |
| 14051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14052 | (eval "$ac_try") 2>&5 |
| 14053 | ac_status=$? |
| 14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14055 | (exit $ac_status); }; } && |
| 14056 | { ac_try='test -s conftest.$ac_objext' |
| 14057 | { (case "(($ac_try" in |
| 14058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14059 | *) ac_try_echo=$ac_try;; |
| 14060 | esac |
| 14061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14062 | (eval "$ac_try") 2>&5 |
| 14063 | ac_status=$? |
| 14064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14065 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14066 | ac_cv_header_mmap_anon=yes |
| 14067 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14068 | echo "$as_me: failed program was:" >&5 |
| 14069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14070 | |
| 14071 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14072 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14075 | ac_ext=c |
| 14076 | ac_cpp='$CPP $CPPFLAGS' |
| 14077 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14078 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14079 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14080 | |
| 14081 | |
| 14082 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14083 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14084 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14085 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14086 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14087 | cat >>confdefs.h <<\_ACEOF |
| 14088 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14089 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14090 | |
| 14091 | fi |
| 14092 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14093 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14094 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14095 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14097 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14098 | cat >conftest.$ac_ext <<_ACEOF |
| 14099 | /* confdefs.h. */ |
| 14100 | _ACEOF |
| 14101 | cat confdefs.h >>conftest.$ac_ext |
| 14102 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14103 | /* end confdefs.h. */ |
| 14104 | #include <sys/types.h> |
| 14105 | #include <sys/stat.h> |
| 14106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14107 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14108 | # if S_ISBLK (S_IFDIR) |
| 14109 | You lose. |
| 14110 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14111 | #endif |
| 14112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14113 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14114 | # if S_ISBLK (S_IFCHR) |
| 14115 | You lose. |
| 14116 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14117 | #endif |
| 14118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14119 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14120 | # if S_ISLNK (S_IFREG) |
| 14121 | You lose. |
| 14122 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14123 | #endif |
| 14124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14125 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14126 | # if S_ISSOCK (S_IFREG) |
| 14127 | You lose. |
| 14128 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14129 | #endif |
| 14130 | |
| 14131 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14133 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14134 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14135 | else |
| 14136 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14137 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14138 | rm -f conftest* |
| 14139 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14140 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14141 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14142 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14143 | if test $ac_cv_header_stat_broken = yes; then |
| 14144 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14145 | cat >>confdefs.h <<\_ACEOF |
| 14146 | #define STAT_MACROS_BROKEN 1 |
| 14147 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14148 | |
| 14149 | fi |
| 14150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14151 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 14152 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 14153 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 14154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14155 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14156 | cat >conftest.$ac_ext <<_ACEOF |
| 14157 | /* confdefs.h. */ |
| 14158 | _ACEOF |
| 14159 | cat confdefs.h >>conftest.$ac_ext |
| 14160 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14161 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14162 | #include <sys/types.h> |
| 14163 | #include <sys/wait.h> |
| 14164 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14165 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14166 | #endif |
| 14167 | #ifndef WIFEXITED |
| 14168 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 14169 | #endif |
| 14170 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14171 | int |
| 14172 | main () |
| 14173 | { |
| 14174 | int s; |
| 14175 | wait (&s); |
| 14176 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 14177 | ; |
| 14178 | return 0; |
| 14179 | } |
| 14180 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14181 | rm -f conftest.$ac_objext |
| 14182 | if { (ac_try="$ac_compile" |
| 14183 | case "(($ac_try" in |
| 14184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14185 | *) ac_try_echo=$ac_try;; |
| 14186 | esac |
| 14187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14188 | (eval "$ac_compile") 2>conftest.er1 |
| 14189 | ac_status=$? |
| 14190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14191 | rm -f conftest.er1 |
| 14192 | cat conftest.err >&5 |
| 14193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14194 | (exit $ac_status); } && |
| 14195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14196 | { (case "(($ac_try" in |
| 14197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14198 | *) ac_try_echo=$ac_try;; |
| 14199 | esac |
| 14200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14201 | (eval "$ac_try") 2>&5 |
| 14202 | ac_status=$? |
| 14203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14204 | (exit $ac_status); }; } && |
| 14205 | { ac_try='test -s conftest.$ac_objext' |
| 14206 | { (case "(($ac_try" in |
| 14207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14208 | *) ac_try_echo=$ac_try;; |
| 14209 | esac |
| 14210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14211 | (eval "$ac_try") 2>&5 |
| 14212 | ac_status=$? |
| 14213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14214 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14215 | ac_cv_header_sys_wait_h=yes |
| 14216 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14217 | echo "$as_me: failed program was:" >&5 |
| 14218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14219 | |
| 14220 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14221 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 14226 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14227 | if test $ac_cv_header_sys_wait_h = yes; then |
| 14228 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14229 | cat >>confdefs.h <<\_ACEOF |
| 14230 | #define HAVE_SYS_WAIT_H 1 |
| 14231 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14232 | |
| 14233 | fi |
| 14234 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14235 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14236 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 14237 | if test "${ac_cv_header_time+set}" = set; then |
| 14238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14239 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14240 | cat >conftest.$ac_ext <<_ACEOF |
| 14241 | /* confdefs.h. */ |
| 14242 | _ACEOF |
| 14243 | cat confdefs.h >>conftest.$ac_ext |
| 14244 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14245 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14246 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14247 | #include <sys/time.h> |
| 14248 | #include <time.h> |
| 14249 | |
| 14250 | int |
| 14251 | main () |
| 14252 | { |
| 14253 | if ((struct tm *) 0) |
| 14254 | return 0; |
| 14255 | ; |
| 14256 | return 0; |
| 14257 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14258 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14259 | rm -f conftest.$ac_objext |
| 14260 | if { (ac_try="$ac_compile" |
| 14261 | case "(($ac_try" in |
| 14262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14263 | *) ac_try_echo=$ac_try;; |
| 14264 | esac |
| 14265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14266 | (eval "$ac_compile") 2>conftest.er1 |
| 14267 | ac_status=$? |
| 14268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14269 | rm -f conftest.er1 |
| 14270 | cat conftest.err >&5 |
| 14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14272 | (exit $ac_status); } && |
| 14273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14274 | { (case "(($ac_try" in |
| 14275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14276 | *) ac_try_echo=$ac_try;; |
| 14277 | esac |
| 14278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14279 | (eval "$ac_try") 2>&5 |
| 14280 | ac_status=$? |
| 14281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14282 | (exit $ac_status); }; } && |
| 14283 | { ac_try='test -s conftest.$ac_objext' |
| 14284 | { (case "(($ac_try" in |
| 14285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14286 | *) ac_try_echo=$ac_try;; |
| 14287 | esac |
| 14288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14289 | (eval "$ac_try") 2>&5 |
| 14290 | ac_status=$? |
| 14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14292 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14293 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14294 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14295 | echo "$as_me: failed program was:" >&5 |
| 14296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14297 | |
| 14298 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14299 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14302 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14303 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14304 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14305 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14306 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14307 | cat >>confdefs.h <<\_ACEOF |
| 14308 | #define TIME_WITH_SYS_TIME 1 |
| 14309 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14310 | |
| 14311 | fi |
| 14312 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14313 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14314 | |
| 14315 | |
| 14316 | |
| 14317 | |
| 14318 | |
| 14319 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14320 | 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] | 14321 | do |
| 14322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14324 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14328 | fi |
| 14329 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14330 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14331 | echo "${ECHO_T}$ac_res" >&6; } |
| 14332 | else |
| 14333 | # Is the header compilable? |
| 14334 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14335 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14336 | cat >conftest.$ac_ext <<_ACEOF |
| 14337 | /* confdefs.h. */ |
| 14338 | _ACEOF |
| 14339 | cat confdefs.h >>conftest.$ac_ext |
| 14340 | cat >>conftest.$ac_ext <<_ACEOF |
| 14341 | /* end confdefs.h. */ |
| 14342 | $ac_includes_default |
| 14343 | #include <$ac_header> |
| 14344 | _ACEOF |
| 14345 | rm -f conftest.$ac_objext |
| 14346 | if { (ac_try="$ac_compile" |
| 14347 | case "(($ac_try" in |
| 14348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14349 | *) ac_try_echo=$ac_try;; |
| 14350 | esac |
| 14351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14352 | (eval "$ac_compile") 2>conftest.er1 |
| 14353 | ac_status=$? |
| 14354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14355 | rm -f conftest.er1 |
| 14356 | cat conftest.err >&5 |
| 14357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14358 | (exit $ac_status); } && |
| 14359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14360 | { (case "(($ac_try" in |
| 14361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14362 | *) ac_try_echo=$ac_try;; |
| 14363 | esac |
| 14364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14365 | (eval "$ac_try") 2>&5 |
| 14366 | ac_status=$? |
| 14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14368 | (exit $ac_status); }; } && |
| 14369 | { ac_try='test -s conftest.$ac_objext' |
| 14370 | { (case "(($ac_try" in |
| 14371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14372 | *) ac_try_echo=$ac_try;; |
| 14373 | esac |
| 14374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14375 | (eval "$ac_try") 2>&5 |
| 14376 | ac_status=$? |
| 14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14378 | (exit $ac_status); }; }; then |
| 14379 | ac_header_compiler=yes |
| 14380 | else |
| 14381 | echo "$as_me: failed program was:" >&5 |
| 14382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14383 | |
| 14384 | ac_header_compiler=no |
| 14385 | fi |
| 14386 | |
| 14387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14388 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14389 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14390 | |
| 14391 | # Is the header present? |
| 14392 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14393 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14394 | cat >conftest.$ac_ext <<_ACEOF |
| 14395 | /* confdefs.h. */ |
| 14396 | _ACEOF |
| 14397 | cat confdefs.h >>conftest.$ac_ext |
| 14398 | cat >>conftest.$ac_ext <<_ACEOF |
| 14399 | /* end confdefs.h. */ |
| 14400 | #include <$ac_header> |
| 14401 | _ACEOF |
| 14402 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14403 | case "(($ac_try" in |
| 14404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14405 | *) ac_try_echo=$ac_try;; |
| 14406 | esac |
| 14407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14408 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14409 | ac_status=$? |
| 14410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14411 | rm -f conftest.er1 |
| 14412 | cat conftest.err >&5 |
| 14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14414 | (exit $ac_status); } >/dev/null; then |
| 14415 | if test -s conftest.err; then |
| 14416 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14418 | else |
| 14419 | ac_cpp_err= |
| 14420 | fi |
| 14421 | else |
| 14422 | ac_cpp_err=yes |
| 14423 | fi |
| 14424 | if test -z "$ac_cpp_err"; then |
| 14425 | ac_header_preproc=yes |
| 14426 | else |
| 14427 | echo "$as_me: failed program was:" >&5 |
| 14428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14429 | |
| 14430 | ac_header_preproc=no |
| 14431 | fi |
| 14432 | |
| 14433 | rm -f conftest.err conftest.$ac_ext |
| 14434 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14435 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14436 | |
| 14437 | # So? What about this header? |
| 14438 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14439 | yes:no: ) |
| 14440 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14441 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14442 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14443 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14444 | ac_header_preproc=yes |
| 14445 | ;; |
| 14446 | no:yes:* ) |
| 14447 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14448 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14449 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14450 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14451 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14452 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14453 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14454 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14456 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14457 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14458 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14459 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14460 | ## ------------------------------------ ## |
| 14461 | ## Report this to http://llvm.org/bugs/ ## |
| 14462 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14463 | _ASBOX |
| 14464 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14465 | ;; |
| 14466 | esac |
| 14467 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14469 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14471 | else |
| 14472 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14473 | fi |
| 14474 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14475 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14476 | echo "${ECHO_T}$ac_res" >&6; } |
| 14477 | |
| 14478 | fi |
| 14479 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14480 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14481 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14482 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14483 | |
| 14484 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14485 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14486 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14487 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14488 | |
| 14489 | |
| 14490 | |
| 14491 | |
| 14492 | |
| 14493 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14494 | 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] | 14495 | do |
| 14496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14498 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14500 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14502 | fi |
| 14503 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14504 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14505 | echo "${ECHO_T}$ac_res" >&6; } |
| 14506 | else |
| 14507 | # Is the header compilable? |
| 14508 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14510 | cat >conftest.$ac_ext <<_ACEOF |
| 14511 | /* confdefs.h. */ |
| 14512 | _ACEOF |
| 14513 | cat confdefs.h >>conftest.$ac_ext |
| 14514 | cat >>conftest.$ac_ext <<_ACEOF |
| 14515 | /* end confdefs.h. */ |
| 14516 | $ac_includes_default |
| 14517 | #include <$ac_header> |
| 14518 | _ACEOF |
| 14519 | rm -f conftest.$ac_objext |
| 14520 | if { (ac_try="$ac_compile" |
| 14521 | case "(($ac_try" in |
| 14522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14523 | *) ac_try_echo=$ac_try;; |
| 14524 | esac |
| 14525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14526 | (eval "$ac_compile") 2>conftest.er1 |
| 14527 | ac_status=$? |
| 14528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14529 | rm -f conftest.er1 |
| 14530 | cat conftest.err >&5 |
| 14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14532 | (exit $ac_status); } && |
| 14533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14534 | { (case "(($ac_try" in |
| 14535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14536 | *) ac_try_echo=$ac_try;; |
| 14537 | esac |
| 14538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14539 | (eval "$ac_try") 2>&5 |
| 14540 | ac_status=$? |
| 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14542 | (exit $ac_status); }; } && |
| 14543 | { ac_try='test -s conftest.$ac_objext' |
| 14544 | { (case "(($ac_try" in |
| 14545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14546 | *) ac_try_echo=$ac_try;; |
| 14547 | esac |
| 14548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14549 | (eval "$ac_try") 2>&5 |
| 14550 | ac_status=$? |
| 14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); }; }; then |
| 14553 | ac_header_compiler=yes |
| 14554 | else |
| 14555 | echo "$as_me: failed program was:" >&5 |
| 14556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14557 | |
| 14558 | ac_header_compiler=no |
| 14559 | fi |
| 14560 | |
| 14561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14563 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14564 | |
| 14565 | # Is the header present? |
| 14566 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14568 | cat >conftest.$ac_ext <<_ACEOF |
| 14569 | /* confdefs.h. */ |
| 14570 | _ACEOF |
| 14571 | cat confdefs.h >>conftest.$ac_ext |
| 14572 | cat >>conftest.$ac_ext <<_ACEOF |
| 14573 | /* end confdefs.h. */ |
| 14574 | #include <$ac_header> |
| 14575 | _ACEOF |
| 14576 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14577 | case "(($ac_try" in |
| 14578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14579 | *) ac_try_echo=$ac_try;; |
| 14580 | esac |
| 14581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14582 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14583 | ac_status=$? |
| 14584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14585 | rm -f conftest.er1 |
| 14586 | cat conftest.err >&5 |
| 14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14588 | (exit $ac_status); } >/dev/null; then |
| 14589 | if test -s conftest.err; then |
| 14590 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14591 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14592 | else |
| 14593 | ac_cpp_err= |
| 14594 | fi |
| 14595 | else |
| 14596 | ac_cpp_err=yes |
| 14597 | fi |
| 14598 | if test -z "$ac_cpp_err"; then |
| 14599 | ac_header_preproc=yes |
| 14600 | else |
| 14601 | echo "$as_me: failed program was:" >&5 |
| 14602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14603 | |
| 14604 | ac_header_preproc=no |
| 14605 | fi |
| 14606 | |
| 14607 | rm -f conftest.err conftest.$ac_ext |
| 14608 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14609 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14610 | |
| 14611 | # So? What about this header? |
| 14612 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14613 | yes:no: ) |
| 14614 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14615 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14617 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14618 | ac_header_preproc=yes |
| 14619 | ;; |
| 14620 | no:yes:* ) |
| 14621 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14622 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14623 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14624 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14625 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14626 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14627 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14628 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14630 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14631 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14632 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14633 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14634 | ## ------------------------------------ ## |
| 14635 | ## Report this to http://llvm.org/bugs/ ## |
| 14636 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14637 | _ASBOX |
| 14638 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14639 | ;; |
| 14640 | esac |
| 14641 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14645 | else |
| 14646 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14647 | fi |
| 14648 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14650 | echo "${ECHO_T}$ac_res" >&6; } |
| 14651 | |
| 14652 | fi |
| 14653 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14654 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14655 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14656 | _ACEOF |
| 14657 | |
| 14658 | fi |
| 14659 | |
| 14660 | done |
| 14661 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14662 | |
| 14663 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14664 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14665 | do |
| 14666 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14668 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14672 | fi |
| 14673 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14674 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14675 | echo "${ECHO_T}$ac_res" >&6; } |
| 14676 | else |
| 14677 | # Is the header compilable? |
| 14678 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14679 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14680 | cat >conftest.$ac_ext <<_ACEOF |
| 14681 | /* confdefs.h. */ |
| 14682 | _ACEOF |
| 14683 | cat confdefs.h >>conftest.$ac_ext |
| 14684 | cat >>conftest.$ac_ext <<_ACEOF |
| 14685 | /* end confdefs.h. */ |
| 14686 | $ac_includes_default |
| 14687 | #include <$ac_header> |
| 14688 | _ACEOF |
| 14689 | rm -f conftest.$ac_objext |
| 14690 | if { (ac_try="$ac_compile" |
| 14691 | case "(($ac_try" in |
| 14692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14693 | *) ac_try_echo=$ac_try;; |
| 14694 | esac |
| 14695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14696 | (eval "$ac_compile") 2>conftest.er1 |
| 14697 | ac_status=$? |
| 14698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14699 | rm -f conftest.er1 |
| 14700 | cat conftest.err >&5 |
| 14701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14702 | (exit $ac_status); } && |
| 14703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14704 | { (case "(($ac_try" in |
| 14705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14706 | *) ac_try_echo=$ac_try;; |
| 14707 | esac |
| 14708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14709 | (eval "$ac_try") 2>&5 |
| 14710 | ac_status=$? |
| 14711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14712 | (exit $ac_status); }; } && |
| 14713 | { ac_try='test -s conftest.$ac_objext' |
| 14714 | { (case "(($ac_try" in |
| 14715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14716 | *) ac_try_echo=$ac_try;; |
| 14717 | esac |
| 14718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14719 | (eval "$ac_try") 2>&5 |
| 14720 | ac_status=$? |
| 14721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14722 | (exit $ac_status); }; }; then |
| 14723 | ac_header_compiler=yes |
| 14724 | else |
| 14725 | echo "$as_me: failed program was:" >&5 |
| 14726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14727 | |
| 14728 | ac_header_compiler=no |
| 14729 | fi |
| 14730 | |
| 14731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14732 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14733 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14734 | |
| 14735 | # Is the header present? |
| 14736 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14737 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14738 | cat >conftest.$ac_ext <<_ACEOF |
| 14739 | /* confdefs.h. */ |
| 14740 | _ACEOF |
| 14741 | cat confdefs.h >>conftest.$ac_ext |
| 14742 | cat >>conftest.$ac_ext <<_ACEOF |
| 14743 | /* end confdefs.h. */ |
| 14744 | #include <$ac_header> |
| 14745 | _ACEOF |
| 14746 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14747 | case "(($ac_try" in |
| 14748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14749 | *) ac_try_echo=$ac_try;; |
| 14750 | esac |
| 14751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14752 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14753 | ac_status=$? |
| 14754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14755 | rm -f conftest.er1 |
| 14756 | cat conftest.err >&5 |
| 14757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14758 | (exit $ac_status); } >/dev/null; then |
| 14759 | if test -s conftest.err; then |
| 14760 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14761 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14762 | else |
| 14763 | ac_cpp_err= |
| 14764 | fi |
| 14765 | else |
| 14766 | ac_cpp_err=yes |
| 14767 | fi |
| 14768 | if test -z "$ac_cpp_err"; then |
| 14769 | ac_header_preproc=yes |
| 14770 | else |
| 14771 | echo "$as_me: failed program was:" >&5 |
| 14772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14773 | |
| 14774 | ac_header_preproc=no |
| 14775 | fi |
| 14776 | |
| 14777 | rm -f conftest.err conftest.$ac_ext |
| 14778 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14779 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14780 | |
| 14781 | # So? What about this header? |
| 14782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14783 | yes:no: ) |
| 14784 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14785 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14787 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14788 | ac_header_preproc=yes |
| 14789 | ;; |
| 14790 | no:yes:* ) |
| 14791 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14792 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14793 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14794 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14795 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14796 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14797 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14798 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14800 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14801 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14802 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14803 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14804 | ## ------------------------------------ ## |
| 14805 | ## Report this to http://llvm.org/bugs/ ## |
| 14806 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14807 | _ASBOX |
| 14808 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14809 | ;; |
| 14810 | esac |
| 14811 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14813 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14815 | else |
| 14816 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14817 | fi |
| 14818 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14820 | echo "${ECHO_T}$ac_res" >&6; } |
| 14821 | |
| 14822 | fi |
| 14823 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14824 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14825 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 14826 | _ACEOF |
| 14827 | |
| 14828 | fi |
| 14829 | |
| 14830 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14831 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14832 | |
| 14833 | |
| 14834 | |
| 14835 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 14836 | |
| 14837 | 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] | 14838 | do |
| 14839 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14840 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14841 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14842 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14843 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14845 | fi |
| 14846 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14847 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14848 | echo "${ECHO_T}$ac_res" >&6; } |
| 14849 | else |
| 14850 | # Is the header compilable? |
| 14851 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14852 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14853 | cat >conftest.$ac_ext <<_ACEOF |
| 14854 | /* confdefs.h. */ |
| 14855 | _ACEOF |
| 14856 | cat confdefs.h >>conftest.$ac_ext |
| 14857 | cat >>conftest.$ac_ext <<_ACEOF |
| 14858 | /* end confdefs.h. */ |
| 14859 | $ac_includes_default |
| 14860 | #include <$ac_header> |
| 14861 | _ACEOF |
| 14862 | rm -f conftest.$ac_objext |
| 14863 | if { (ac_try="$ac_compile" |
| 14864 | case "(($ac_try" in |
| 14865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14866 | *) ac_try_echo=$ac_try;; |
| 14867 | esac |
| 14868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14869 | (eval "$ac_compile") 2>conftest.er1 |
| 14870 | ac_status=$? |
| 14871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14872 | rm -f conftest.er1 |
| 14873 | cat conftest.err >&5 |
| 14874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14875 | (exit $ac_status); } && |
| 14876 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14877 | { (case "(($ac_try" in |
| 14878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14879 | *) ac_try_echo=$ac_try;; |
| 14880 | esac |
| 14881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14882 | (eval "$ac_try") 2>&5 |
| 14883 | ac_status=$? |
| 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14885 | (exit $ac_status); }; } && |
| 14886 | { ac_try='test -s conftest.$ac_objext' |
| 14887 | { (case "(($ac_try" in |
| 14888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14889 | *) ac_try_echo=$ac_try;; |
| 14890 | esac |
| 14891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14892 | (eval "$ac_try") 2>&5 |
| 14893 | ac_status=$? |
| 14894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14895 | (exit $ac_status); }; }; then |
| 14896 | ac_header_compiler=yes |
| 14897 | else |
| 14898 | echo "$as_me: failed program was:" >&5 |
| 14899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14900 | |
| 14901 | ac_header_compiler=no |
| 14902 | fi |
| 14903 | |
| 14904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14905 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14906 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14907 | |
| 14908 | # Is the header present? |
| 14909 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14910 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14911 | cat >conftest.$ac_ext <<_ACEOF |
| 14912 | /* confdefs.h. */ |
| 14913 | _ACEOF |
| 14914 | cat confdefs.h >>conftest.$ac_ext |
| 14915 | cat >>conftest.$ac_ext <<_ACEOF |
| 14916 | /* end confdefs.h. */ |
| 14917 | #include <$ac_header> |
| 14918 | _ACEOF |
| 14919 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14920 | case "(($ac_try" in |
| 14921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14922 | *) ac_try_echo=$ac_try;; |
| 14923 | esac |
| 14924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14925 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14926 | ac_status=$? |
| 14927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14928 | rm -f conftest.er1 |
| 14929 | cat conftest.err >&5 |
| 14930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14931 | (exit $ac_status); } >/dev/null; then |
| 14932 | if test -s conftest.err; then |
| 14933 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14934 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14935 | else |
| 14936 | ac_cpp_err= |
| 14937 | fi |
| 14938 | else |
| 14939 | ac_cpp_err=yes |
| 14940 | fi |
| 14941 | if test -z "$ac_cpp_err"; then |
| 14942 | ac_header_preproc=yes |
| 14943 | else |
| 14944 | echo "$as_me: failed program was:" >&5 |
| 14945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14946 | |
| 14947 | ac_header_preproc=no |
| 14948 | fi |
| 14949 | |
| 14950 | rm -f conftest.err conftest.$ac_ext |
| 14951 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14952 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14953 | |
| 14954 | # So? What about this header? |
| 14955 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14956 | yes:no: ) |
| 14957 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14958 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14959 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14960 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14961 | ac_header_preproc=yes |
| 14962 | ;; |
| 14963 | no:yes:* ) |
| 14964 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14965 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14966 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14967 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14968 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14969 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14970 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14971 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14973 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14974 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14975 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14976 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14977 | ## ------------------------------------ ## |
| 14978 | ## Report this to http://llvm.org/bugs/ ## |
| 14979 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14980 | _ASBOX |
| 14981 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14982 | ;; |
| 14983 | esac |
| 14984 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14986 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14988 | else |
| 14989 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14990 | fi |
| 14991 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14992 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14993 | echo "${ECHO_T}$ac_res" >&6; } |
| 14994 | |
| 14995 | fi |
| 14996 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14997 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14998 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 14999 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15000 | |
| 15001 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15002 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15003 | done |
| 15004 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15005 | |
| 15006 | |
| 15007 | |
| 15008 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15009 | 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] | 15010 | do |
| 15011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15012 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15013 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15017 | fi |
| 15018 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15019 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15020 | echo "${ECHO_T}$ac_res" >&6; } |
| 15021 | else |
| 15022 | # Is the header compilable? |
| 15023 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15024 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15025 | cat >conftest.$ac_ext <<_ACEOF |
| 15026 | /* confdefs.h. */ |
| 15027 | _ACEOF |
| 15028 | cat confdefs.h >>conftest.$ac_ext |
| 15029 | cat >>conftest.$ac_ext <<_ACEOF |
| 15030 | /* end confdefs.h. */ |
| 15031 | $ac_includes_default |
| 15032 | #include <$ac_header> |
| 15033 | _ACEOF |
| 15034 | rm -f conftest.$ac_objext |
| 15035 | if { (ac_try="$ac_compile" |
| 15036 | case "(($ac_try" in |
| 15037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15038 | *) ac_try_echo=$ac_try;; |
| 15039 | esac |
| 15040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15041 | (eval "$ac_compile") 2>conftest.er1 |
| 15042 | ac_status=$? |
| 15043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15044 | rm -f conftest.er1 |
| 15045 | cat conftest.err >&5 |
| 15046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15047 | (exit $ac_status); } && |
| 15048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15049 | { (case "(($ac_try" in |
| 15050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15051 | *) ac_try_echo=$ac_try;; |
| 15052 | esac |
| 15053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15054 | (eval "$ac_try") 2>&5 |
| 15055 | ac_status=$? |
| 15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15057 | (exit $ac_status); }; } && |
| 15058 | { ac_try='test -s conftest.$ac_objext' |
| 15059 | { (case "(($ac_try" in |
| 15060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15061 | *) ac_try_echo=$ac_try;; |
| 15062 | esac |
| 15063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15064 | (eval "$ac_try") 2>&5 |
| 15065 | ac_status=$? |
| 15066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15067 | (exit $ac_status); }; }; then |
| 15068 | ac_header_compiler=yes |
| 15069 | else |
| 15070 | echo "$as_me: failed program was:" >&5 |
| 15071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15072 | |
| 15073 | ac_header_compiler=no |
| 15074 | fi |
| 15075 | |
| 15076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15077 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15078 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15079 | |
| 15080 | # Is the header present? |
| 15081 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15082 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15083 | cat >conftest.$ac_ext <<_ACEOF |
| 15084 | /* confdefs.h. */ |
| 15085 | _ACEOF |
| 15086 | cat confdefs.h >>conftest.$ac_ext |
| 15087 | cat >>conftest.$ac_ext <<_ACEOF |
| 15088 | /* end confdefs.h. */ |
| 15089 | #include <$ac_header> |
| 15090 | _ACEOF |
| 15091 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15092 | case "(($ac_try" in |
| 15093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15094 | *) ac_try_echo=$ac_try;; |
| 15095 | esac |
| 15096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15097 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15098 | ac_status=$? |
| 15099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15100 | rm -f conftest.er1 |
| 15101 | cat conftest.err >&5 |
| 15102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15103 | (exit $ac_status); } >/dev/null; then |
| 15104 | if test -s conftest.err; then |
| 15105 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15106 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15107 | else |
| 15108 | ac_cpp_err= |
| 15109 | fi |
| 15110 | else |
| 15111 | ac_cpp_err=yes |
| 15112 | fi |
| 15113 | if test -z "$ac_cpp_err"; then |
| 15114 | ac_header_preproc=yes |
| 15115 | else |
| 15116 | echo "$as_me: failed program was:" >&5 |
| 15117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15118 | |
| 15119 | ac_header_preproc=no |
| 15120 | fi |
| 15121 | |
| 15122 | rm -f conftest.err conftest.$ac_ext |
| 15123 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15124 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15125 | |
| 15126 | # So? What about this header? |
| 15127 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15128 | yes:no: ) |
| 15129 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15130 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15131 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15132 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15133 | ac_header_preproc=yes |
| 15134 | ;; |
| 15135 | no:yes:* ) |
| 15136 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15137 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15138 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15139 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15140 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15141 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15142 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15143 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15145 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15146 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15147 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15148 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15149 | ## ------------------------------------ ## |
| 15150 | ## Report this to http://llvm.org/bugs/ ## |
| 15151 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15152 | _ASBOX |
| 15153 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15154 | ;; |
| 15155 | esac |
| 15156 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15157 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15158 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15160 | else |
| 15161 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15162 | fi |
| 15163 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15164 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15165 | echo "${ECHO_T}$ac_res" >&6; } |
| 15166 | |
| 15167 | fi |
| 15168 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15169 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15170 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15171 | _ACEOF |
| 15172 | |
| 15173 | fi |
| 15174 | |
| 15175 | done |
| 15176 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15177 | |
| 15178 | for ac_header in valgrind/valgrind.h |
| 15179 | do |
| 15180 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15181 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15182 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15184 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15186 | fi |
| 15187 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15188 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15189 | echo "${ECHO_T}$ac_res" >&6; } |
| 15190 | else |
| 15191 | # Is the header compilable? |
| 15192 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15193 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15194 | cat >conftest.$ac_ext <<_ACEOF |
| 15195 | /* confdefs.h. */ |
| 15196 | _ACEOF |
| 15197 | cat confdefs.h >>conftest.$ac_ext |
| 15198 | cat >>conftest.$ac_ext <<_ACEOF |
| 15199 | /* end confdefs.h. */ |
| 15200 | $ac_includes_default |
| 15201 | #include <$ac_header> |
| 15202 | _ACEOF |
| 15203 | rm -f conftest.$ac_objext |
| 15204 | if { (ac_try="$ac_compile" |
| 15205 | case "(($ac_try" in |
| 15206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15207 | *) ac_try_echo=$ac_try;; |
| 15208 | esac |
| 15209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15210 | (eval "$ac_compile") 2>conftest.er1 |
| 15211 | ac_status=$? |
| 15212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15213 | rm -f conftest.er1 |
| 15214 | cat conftest.err >&5 |
| 15215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15216 | (exit $ac_status); } && |
| 15217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15218 | { (case "(($ac_try" in |
| 15219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15220 | *) ac_try_echo=$ac_try;; |
| 15221 | esac |
| 15222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15223 | (eval "$ac_try") 2>&5 |
| 15224 | ac_status=$? |
| 15225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15226 | (exit $ac_status); }; } && |
| 15227 | { ac_try='test -s conftest.$ac_objext' |
| 15228 | { (case "(($ac_try" in |
| 15229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15230 | *) ac_try_echo=$ac_try;; |
| 15231 | esac |
| 15232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15233 | (eval "$ac_try") 2>&5 |
| 15234 | ac_status=$? |
| 15235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15236 | (exit $ac_status); }; }; then |
| 15237 | ac_header_compiler=yes |
| 15238 | else |
| 15239 | echo "$as_me: failed program was:" >&5 |
| 15240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15241 | |
| 15242 | ac_header_compiler=no |
| 15243 | fi |
| 15244 | |
| 15245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15246 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15247 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15248 | |
| 15249 | # Is the header present? |
| 15250 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15251 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15252 | cat >conftest.$ac_ext <<_ACEOF |
| 15253 | /* confdefs.h. */ |
| 15254 | _ACEOF |
| 15255 | cat confdefs.h >>conftest.$ac_ext |
| 15256 | cat >>conftest.$ac_ext <<_ACEOF |
| 15257 | /* end confdefs.h. */ |
| 15258 | #include <$ac_header> |
| 15259 | _ACEOF |
| 15260 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15261 | case "(($ac_try" in |
| 15262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15263 | *) ac_try_echo=$ac_try;; |
| 15264 | esac |
| 15265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15266 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15267 | ac_status=$? |
| 15268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15269 | rm -f conftest.er1 |
| 15270 | cat conftest.err >&5 |
| 15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15272 | (exit $ac_status); } >/dev/null; then |
| 15273 | if test -s conftest.err; then |
| 15274 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15275 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15276 | else |
| 15277 | ac_cpp_err= |
| 15278 | fi |
| 15279 | else |
| 15280 | ac_cpp_err=yes |
| 15281 | fi |
| 15282 | if test -z "$ac_cpp_err"; then |
| 15283 | ac_header_preproc=yes |
| 15284 | else |
| 15285 | echo "$as_me: failed program was:" >&5 |
| 15286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15287 | |
| 15288 | ac_header_preproc=no |
| 15289 | fi |
| 15290 | |
| 15291 | rm -f conftest.err conftest.$ac_ext |
| 15292 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15293 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15294 | |
| 15295 | # So? What about this header? |
| 15296 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15297 | yes:no: ) |
| 15298 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15299 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15300 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15301 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15302 | ac_header_preproc=yes |
| 15303 | ;; |
| 15304 | no:yes:* ) |
| 15305 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15306 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15307 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15308 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15309 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15310 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15311 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15312 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15313 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15314 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15315 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15316 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15317 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15318 | ## ------------------------------------ ## |
| 15319 | ## Report this to http://llvm.org/bugs/ ## |
| 15320 | ## ------------------------------------ ## |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15321 | _ASBOX |
| 15322 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15323 | ;; |
| 15324 | esac |
| 15325 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15326 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15327 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15329 | else |
| 15330 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15331 | fi |
| 15332 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15333 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15334 | echo "${ECHO_T}$ac_res" >&6; } |
| 15335 | |
| 15336 | fi |
| 15337 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15338 | cat >>confdefs.h <<_ACEOF |
| 15339 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15340 | _ACEOF |
| 15341 | |
| 15342 | fi |
| 15343 | |
| 15344 | done |
| 15345 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15346 | |
| 15347 | for ac_header in fenv.h |
| 15348 | do |
| 15349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15355 | fi |
| 15356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15358 | echo "${ECHO_T}$ac_res" >&6; } |
| 15359 | else |
| 15360 | # Is the header compilable? |
| 15361 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15362 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15363 | cat >conftest.$ac_ext <<_ACEOF |
| 15364 | /* confdefs.h. */ |
| 15365 | _ACEOF |
| 15366 | cat confdefs.h >>conftest.$ac_ext |
| 15367 | cat >>conftest.$ac_ext <<_ACEOF |
| 15368 | /* end confdefs.h. */ |
| 15369 | $ac_includes_default |
| 15370 | #include <$ac_header> |
| 15371 | _ACEOF |
| 15372 | rm -f conftest.$ac_objext |
| 15373 | if { (ac_try="$ac_compile" |
| 15374 | case "(($ac_try" in |
| 15375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15376 | *) ac_try_echo=$ac_try;; |
| 15377 | esac |
| 15378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15379 | (eval "$ac_compile") 2>conftest.er1 |
| 15380 | ac_status=$? |
| 15381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15382 | rm -f conftest.er1 |
| 15383 | cat conftest.err >&5 |
| 15384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15385 | (exit $ac_status); } && |
| 15386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15387 | { (case "(($ac_try" in |
| 15388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15389 | *) ac_try_echo=$ac_try;; |
| 15390 | esac |
| 15391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15392 | (eval "$ac_try") 2>&5 |
| 15393 | ac_status=$? |
| 15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15395 | (exit $ac_status); }; } && |
| 15396 | { ac_try='test -s conftest.$ac_objext' |
| 15397 | { (case "(($ac_try" in |
| 15398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15399 | *) ac_try_echo=$ac_try;; |
| 15400 | esac |
| 15401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15402 | (eval "$ac_try") 2>&5 |
| 15403 | ac_status=$? |
| 15404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15405 | (exit $ac_status); }; }; then |
| 15406 | ac_header_compiler=yes |
| 15407 | else |
| 15408 | echo "$as_me: failed program was:" >&5 |
| 15409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15410 | |
| 15411 | ac_header_compiler=no |
| 15412 | fi |
| 15413 | |
| 15414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15415 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15416 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15417 | |
| 15418 | # Is the header present? |
| 15419 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15420 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15421 | cat >conftest.$ac_ext <<_ACEOF |
| 15422 | /* confdefs.h. */ |
| 15423 | _ACEOF |
| 15424 | cat confdefs.h >>conftest.$ac_ext |
| 15425 | cat >>conftest.$ac_ext <<_ACEOF |
| 15426 | /* end confdefs.h. */ |
| 15427 | #include <$ac_header> |
| 15428 | _ACEOF |
| 15429 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15430 | case "(($ac_try" in |
| 15431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15432 | *) ac_try_echo=$ac_try;; |
| 15433 | esac |
| 15434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15435 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15436 | ac_status=$? |
| 15437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15438 | rm -f conftest.er1 |
| 15439 | cat conftest.err >&5 |
| 15440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15441 | (exit $ac_status); } >/dev/null; then |
| 15442 | if test -s conftest.err; then |
| 15443 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15444 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15445 | else |
| 15446 | ac_cpp_err= |
| 15447 | fi |
| 15448 | else |
| 15449 | ac_cpp_err=yes |
| 15450 | fi |
| 15451 | if test -z "$ac_cpp_err"; then |
| 15452 | ac_header_preproc=yes |
| 15453 | else |
| 15454 | echo "$as_me: failed program was:" >&5 |
| 15455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15456 | |
| 15457 | ac_header_preproc=no |
| 15458 | fi |
| 15459 | |
| 15460 | rm -f conftest.err conftest.$ac_ext |
| 15461 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15462 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15463 | |
| 15464 | # So? What about this header? |
| 15465 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15466 | yes:no: ) |
| 15467 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15468 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15469 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15470 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15471 | ac_header_preproc=yes |
| 15472 | ;; |
| 15473 | no:yes:* ) |
| 15474 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15475 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15476 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15477 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15478 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15479 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15480 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15481 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15482 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15483 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15484 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15485 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15486 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15487 | ## ------------------------------------ ## |
| 15488 | ## Report this to http://llvm.org/bugs/ ## |
| 15489 | ## ------------------------------------ ## |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15490 | _ASBOX |
| 15491 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15492 | ;; |
| 15493 | esac |
| 15494 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15495 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15496 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15498 | else |
| 15499 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15500 | fi |
| 15501 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15502 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15503 | echo "${ECHO_T}$ac_res" >&6; } |
| 15504 | |
| 15505 | fi |
| 15506 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15507 | cat >>confdefs.h <<_ACEOF |
| 15508 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15509 | _ACEOF |
| 15510 | |
| 15511 | fi |
| 15512 | |
| 15513 | done |
| 15514 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 15515 | 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] | 15516 | |
| 15517 | for ac_header in pthread.h |
| 15518 | do |
| 15519 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15521 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15525 | fi |
| 15526 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15527 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15528 | echo "${ECHO_T}$ac_res" >&6; } |
| 15529 | else |
| 15530 | # Is the header compilable? |
| 15531 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15532 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15533 | cat >conftest.$ac_ext <<_ACEOF |
| 15534 | /* confdefs.h. */ |
| 15535 | _ACEOF |
| 15536 | cat confdefs.h >>conftest.$ac_ext |
| 15537 | cat >>conftest.$ac_ext <<_ACEOF |
| 15538 | /* end confdefs.h. */ |
| 15539 | $ac_includes_default |
| 15540 | #include <$ac_header> |
| 15541 | _ACEOF |
| 15542 | rm -f conftest.$ac_objext |
| 15543 | if { (ac_try="$ac_compile" |
| 15544 | case "(($ac_try" in |
| 15545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15546 | *) ac_try_echo=$ac_try;; |
| 15547 | esac |
| 15548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15549 | (eval "$ac_compile") 2>conftest.er1 |
| 15550 | ac_status=$? |
| 15551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15552 | rm -f conftest.er1 |
| 15553 | cat conftest.err >&5 |
| 15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15555 | (exit $ac_status); } && |
| 15556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15557 | { (case "(($ac_try" in |
| 15558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15559 | *) ac_try_echo=$ac_try;; |
| 15560 | esac |
| 15561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15562 | (eval "$ac_try") 2>&5 |
| 15563 | ac_status=$? |
| 15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15565 | (exit $ac_status); }; } && |
| 15566 | { ac_try='test -s conftest.$ac_objext' |
| 15567 | { (case "(($ac_try" in |
| 15568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15569 | *) ac_try_echo=$ac_try;; |
| 15570 | esac |
| 15571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15572 | (eval "$ac_try") 2>&5 |
| 15573 | ac_status=$? |
| 15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15575 | (exit $ac_status); }; }; then |
| 15576 | ac_header_compiler=yes |
| 15577 | else |
| 15578 | echo "$as_me: failed program was:" >&5 |
| 15579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15580 | |
| 15581 | ac_header_compiler=no |
| 15582 | fi |
| 15583 | |
| 15584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15585 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15586 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15587 | |
| 15588 | # Is the header present? |
| 15589 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15590 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15591 | cat >conftest.$ac_ext <<_ACEOF |
| 15592 | /* confdefs.h. */ |
| 15593 | _ACEOF |
| 15594 | cat confdefs.h >>conftest.$ac_ext |
| 15595 | cat >>conftest.$ac_ext <<_ACEOF |
| 15596 | /* end confdefs.h. */ |
| 15597 | #include <$ac_header> |
| 15598 | _ACEOF |
| 15599 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15600 | case "(($ac_try" in |
| 15601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15602 | *) ac_try_echo=$ac_try;; |
| 15603 | esac |
| 15604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15605 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15606 | ac_status=$? |
| 15607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15608 | rm -f conftest.er1 |
| 15609 | cat conftest.err >&5 |
| 15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15611 | (exit $ac_status); } >/dev/null; then |
| 15612 | if test -s conftest.err; then |
| 15613 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15614 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15615 | else |
| 15616 | ac_cpp_err= |
| 15617 | fi |
| 15618 | else |
| 15619 | ac_cpp_err=yes |
| 15620 | fi |
| 15621 | if test -z "$ac_cpp_err"; then |
| 15622 | ac_header_preproc=yes |
| 15623 | else |
| 15624 | echo "$as_me: failed program was:" >&5 |
| 15625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15626 | |
| 15627 | ac_header_preproc=no |
| 15628 | fi |
| 15629 | |
| 15630 | rm -f conftest.err conftest.$ac_ext |
| 15631 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15632 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15633 | |
| 15634 | # So? What about this header? |
| 15635 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15636 | yes:no: ) |
| 15637 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15638 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15640 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15641 | ac_header_preproc=yes |
| 15642 | ;; |
| 15643 | no:yes:* ) |
| 15644 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15645 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15646 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15647 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15648 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15649 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15650 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15651 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15653 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15654 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15655 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15656 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15657 | ## ------------------------------------ ## |
| 15658 | ## Report this to http://llvm.org/bugs/ ## |
| 15659 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15660 | _ASBOX |
| 15661 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15662 | ;; |
| 15663 | esac |
| 15664 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15665 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15666 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15668 | else |
| 15669 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15670 | fi |
| 15671 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15672 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15673 | echo "${ECHO_T}$ac_res" >&6; } |
| 15674 | |
| 15675 | fi |
| 15676 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15677 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15678 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15679 | _ACEOF |
| 15680 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15681 | |
| 15682 | else |
| 15683 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15684 | |
| 15685 | fi |
| 15686 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15687 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15688 | |
| 15689 | else |
| 15690 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15691 | |
| 15692 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15693 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15694 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15695 | |
| 15696 | |
| 15697 | for ac_header in ffi.h ffi/ffi.h |
| 15698 | do |
| 15699 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15700 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15701 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15702 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15703 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15705 | fi |
| 15706 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15707 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15708 | echo "${ECHO_T}$ac_res" >&6; } |
| 15709 | else |
| 15710 | # Is the header compilable? |
| 15711 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15712 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15713 | cat >conftest.$ac_ext <<_ACEOF |
| 15714 | /* confdefs.h. */ |
| 15715 | _ACEOF |
| 15716 | cat confdefs.h >>conftest.$ac_ext |
| 15717 | cat >>conftest.$ac_ext <<_ACEOF |
| 15718 | /* end confdefs.h. */ |
| 15719 | $ac_includes_default |
| 15720 | #include <$ac_header> |
| 15721 | _ACEOF |
| 15722 | rm -f conftest.$ac_objext |
| 15723 | if { (ac_try="$ac_compile" |
| 15724 | case "(($ac_try" in |
| 15725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15726 | *) ac_try_echo=$ac_try;; |
| 15727 | esac |
| 15728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15729 | (eval "$ac_compile") 2>conftest.er1 |
| 15730 | ac_status=$? |
| 15731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15732 | rm -f conftest.er1 |
| 15733 | cat conftest.err >&5 |
| 15734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15735 | (exit $ac_status); } && |
| 15736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15737 | { (case "(($ac_try" in |
| 15738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15739 | *) ac_try_echo=$ac_try;; |
| 15740 | esac |
| 15741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15742 | (eval "$ac_try") 2>&5 |
| 15743 | ac_status=$? |
| 15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15745 | (exit $ac_status); }; } && |
| 15746 | { ac_try='test -s conftest.$ac_objext' |
| 15747 | { (case "(($ac_try" in |
| 15748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15749 | *) ac_try_echo=$ac_try;; |
| 15750 | esac |
| 15751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15752 | (eval "$ac_try") 2>&5 |
| 15753 | ac_status=$? |
| 15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15755 | (exit $ac_status); }; }; then |
| 15756 | ac_header_compiler=yes |
| 15757 | else |
| 15758 | echo "$as_me: failed program was:" >&5 |
| 15759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15760 | |
| 15761 | ac_header_compiler=no |
| 15762 | fi |
| 15763 | |
| 15764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15765 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15766 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15767 | |
| 15768 | # Is the header present? |
| 15769 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15770 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15771 | cat >conftest.$ac_ext <<_ACEOF |
| 15772 | /* confdefs.h. */ |
| 15773 | _ACEOF |
| 15774 | cat confdefs.h >>conftest.$ac_ext |
| 15775 | cat >>conftest.$ac_ext <<_ACEOF |
| 15776 | /* end confdefs.h. */ |
| 15777 | #include <$ac_header> |
| 15778 | _ACEOF |
| 15779 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15780 | case "(($ac_try" in |
| 15781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15782 | *) ac_try_echo=$ac_try;; |
| 15783 | esac |
| 15784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15785 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15786 | ac_status=$? |
| 15787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15788 | rm -f conftest.er1 |
| 15789 | cat conftest.err >&5 |
| 15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15791 | (exit $ac_status); } >/dev/null; then |
| 15792 | if test -s conftest.err; then |
| 15793 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15795 | else |
| 15796 | ac_cpp_err= |
| 15797 | fi |
| 15798 | else |
| 15799 | ac_cpp_err=yes |
| 15800 | fi |
| 15801 | if test -z "$ac_cpp_err"; then |
| 15802 | ac_header_preproc=yes |
| 15803 | else |
| 15804 | echo "$as_me: failed program was:" >&5 |
| 15805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15806 | |
| 15807 | ac_header_preproc=no |
| 15808 | fi |
| 15809 | |
| 15810 | rm -f conftest.err conftest.$ac_ext |
| 15811 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15812 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15813 | |
| 15814 | # So? What about this header? |
| 15815 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15816 | yes:no: ) |
| 15817 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15818 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15819 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15820 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15821 | ac_header_preproc=yes |
| 15822 | ;; |
| 15823 | no:yes:* ) |
| 15824 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15825 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15826 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15827 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15828 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15829 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15830 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15831 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15833 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15834 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15835 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15836 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15837 | ## ------------------------------------ ## |
| 15838 | ## Report this to http://llvm.org/bugs/ ## |
| 15839 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15840 | _ASBOX |
| 15841 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15842 | ;; |
| 15843 | esac |
| 15844 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15846 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15848 | else |
| 15849 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15850 | fi |
| 15851 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15852 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15853 | echo "${ECHO_T}$ac_res" >&6; } |
| 15854 | |
| 15855 | fi |
| 15856 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15857 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15858 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15859 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15860 | |
| 15861 | fi |
| 15862 | |
| 15863 | done |
| 15864 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15865 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 15866 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 15867 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 15868 | for ac_header in CrashReporterClient.h |
| 15869 | do |
| 15870 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15871 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15872 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15876 | fi |
| 15877 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15878 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15879 | echo "${ECHO_T}$ac_res" >&6; } |
| 15880 | else |
| 15881 | # Is the header compilable? |
| 15882 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15883 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15884 | cat >conftest.$ac_ext <<_ACEOF |
| 15885 | /* confdefs.h. */ |
| 15886 | _ACEOF |
| 15887 | cat confdefs.h >>conftest.$ac_ext |
| 15888 | cat >>conftest.$ac_ext <<_ACEOF |
| 15889 | /* end confdefs.h. */ |
| 15890 | $ac_includes_default |
| 15891 | #include <$ac_header> |
| 15892 | _ACEOF |
| 15893 | rm -f conftest.$ac_objext |
| 15894 | if { (ac_try="$ac_compile" |
| 15895 | case "(($ac_try" in |
| 15896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15897 | *) ac_try_echo=$ac_try;; |
| 15898 | esac |
| 15899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15900 | (eval "$ac_compile") 2>conftest.er1 |
| 15901 | ac_status=$? |
| 15902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15903 | rm -f conftest.er1 |
| 15904 | cat conftest.err >&5 |
| 15905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15906 | (exit $ac_status); } && |
| 15907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15908 | { (case "(($ac_try" in |
| 15909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15910 | *) ac_try_echo=$ac_try;; |
| 15911 | esac |
| 15912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15913 | (eval "$ac_try") 2>&5 |
| 15914 | ac_status=$? |
| 15915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15916 | (exit $ac_status); }; } && |
| 15917 | { ac_try='test -s conftest.$ac_objext' |
| 15918 | { (case "(($ac_try" in |
| 15919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15920 | *) ac_try_echo=$ac_try;; |
| 15921 | esac |
| 15922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15923 | (eval "$ac_try") 2>&5 |
| 15924 | ac_status=$? |
| 15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15926 | (exit $ac_status); }; }; then |
| 15927 | ac_header_compiler=yes |
| 15928 | else |
| 15929 | echo "$as_me: failed program was:" >&5 |
| 15930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15931 | |
| 15932 | ac_header_compiler=no |
| 15933 | fi |
| 15934 | |
| 15935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15936 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15937 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15938 | |
| 15939 | # Is the header present? |
| 15940 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15941 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15942 | cat >conftest.$ac_ext <<_ACEOF |
| 15943 | /* confdefs.h. */ |
| 15944 | _ACEOF |
| 15945 | cat confdefs.h >>conftest.$ac_ext |
| 15946 | cat >>conftest.$ac_ext <<_ACEOF |
| 15947 | /* end confdefs.h. */ |
| 15948 | #include <$ac_header> |
| 15949 | _ACEOF |
| 15950 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15951 | case "(($ac_try" in |
| 15952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15953 | *) ac_try_echo=$ac_try;; |
| 15954 | esac |
| 15955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15956 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15957 | ac_status=$? |
| 15958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15959 | rm -f conftest.er1 |
| 15960 | cat conftest.err >&5 |
| 15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15962 | (exit $ac_status); } >/dev/null; then |
| 15963 | if test -s conftest.err; then |
| 15964 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15965 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15966 | else |
| 15967 | ac_cpp_err= |
| 15968 | fi |
| 15969 | else |
| 15970 | ac_cpp_err=yes |
| 15971 | fi |
| 15972 | if test -z "$ac_cpp_err"; then |
| 15973 | ac_header_preproc=yes |
| 15974 | else |
| 15975 | echo "$as_me: failed program was:" >&5 |
| 15976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15977 | |
| 15978 | ac_header_preproc=no |
| 15979 | fi |
| 15980 | |
| 15981 | rm -f conftest.err conftest.$ac_ext |
| 15982 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15983 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15984 | |
| 15985 | # So? What about this header? |
| 15986 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15987 | yes:no: ) |
| 15988 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15989 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15990 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15991 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15992 | ac_header_preproc=yes |
| 15993 | ;; |
| 15994 | no:yes:* ) |
| 15995 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15996 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15997 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15998 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15999 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16000 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16001 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16002 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16003 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16004 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16005 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16006 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16007 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16008 | ## ------------------------------------ ## |
| 16009 | ## Report this to http://llvm.org/bugs/ ## |
| 16010 | ## ------------------------------------ ## |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16011 | _ASBOX |
| 16012 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16013 | ;; |
| 16014 | esac |
| 16015 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16016 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16017 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16019 | else |
| 16020 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16021 | fi |
| 16022 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16023 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16024 | echo "${ECHO_T}$ac_res" >&6; } |
| 16025 | |
| 16026 | fi |
| 16027 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16028 | cat >>confdefs.h <<_ACEOF |
| 16029 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16030 | _ACEOF |
| 16031 | |
| 16032 | fi |
| 16033 | |
| 16034 | done |
| 16035 | |
| 16036 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16037 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 16038 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16039 | cat >conftest.$ac_ext <<_ACEOF |
| 16040 | /* confdefs.h. */ |
| 16041 | _ACEOF |
| 16042 | cat confdefs.h >>conftest.$ac_ext |
| 16043 | cat >>conftest.$ac_ext <<_ACEOF |
| 16044 | /* end confdefs.h. */ |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16045 | extern const char *__crashreporter_info__; |
| 16046 | int main() { |
| 16047 | __crashreporter_info__ = "test"; |
| 16048 | return 0; |
| 16049 | } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16050 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16051 | _ACEOF |
| 16052 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16053 | if { (ac_try="$ac_link" |
| 16054 | case "(($ac_try" in |
| 16055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16056 | *) ac_try_echo=$ac_try;; |
| 16057 | esac |
| 16058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16059 | (eval "$ac_link") 2>conftest.er1 |
| 16060 | ac_status=$? |
| 16061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16062 | rm -f conftest.er1 |
| 16063 | cat conftest.err >&5 |
| 16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16065 | (exit $ac_status); } && |
| 16066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16067 | { (case "(($ac_try" in |
| 16068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16069 | *) ac_try_echo=$ac_try;; |
| 16070 | esac |
| 16071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16072 | (eval "$ac_try") 2>&5 |
| 16073 | ac_status=$? |
| 16074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16075 | (exit $ac_status); }; } && |
| 16076 | { ac_try='test -s conftest$ac_exeext' |
| 16077 | { (case "(($ac_try" in |
| 16078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16079 | *) ac_try_echo=$ac_try;; |
| 16080 | esac |
| 16081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16082 | (eval "$ac_try") 2>&5 |
| 16083 | ac_status=$? |
| 16084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16085 | (exit $ac_status); }; }; then |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16086 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16087 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16088 | |
| 16089 | cat >>confdefs.h <<\_ACEOF |
| 16090 | #define HAVE_CRASHREPORTER_INFO 1 |
| 16091 | _ACEOF |
| 16092 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16093 | else |
| 16094 | echo "$as_me: failed program was:" >&5 |
| 16095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16096 | |
| 16097 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16098 | echo "${ECHO_T}no" >&6; } |
| 16099 | |
| 16100 | cat >>confdefs.h <<\_ACEOF |
| 16101 | #define HAVE_CRASHREPORTER_INFO 0 |
| 16102 | _ACEOF |
| 16103 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16104 | fi |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16105 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16106 | rm -f core conftest.err conftest.$ac_objext \ |
| 16107 | conftest$ac_exeext conftest.$ac_ext |
| 16108 | |
| 16109 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16110 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16111 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16112 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16113 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16114 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16116 | else |
| 16117 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16118 | ac_ext=cpp |
| 16119 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16123 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16124 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16125 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16126 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16127 | ac_cv_huge_val_sanity=yes |
| 16128 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16129 | cat >conftest.$ac_ext <<_ACEOF |
| 16130 | /* confdefs.h. */ |
| 16131 | _ACEOF |
| 16132 | cat confdefs.h >>conftest.$ac_ext |
| 16133 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16134 | /* end confdefs.h. */ |
| 16135 | #include <math.h> |
| 16136 | int |
| 16137 | main () |
| 16138 | { |
| 16139 | double x = HUGE_VAL; return x != x; |
| 16140 | ; |
| 16141 | return 0; |
| 16142 | } |
| 16143 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16144 | rm -f conftest$ac_exeext |
| 16145 | if { (ac_try="$ac_link" |
| 16146 | case "(($ac_try" in |
| 16147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16148 | *) ac_try_echo=$ac_try;; |
| 16149 | esac |
| 16150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16151 | (eval "$ac_link") 2>&5 |
| 16152 | ac_status=$? |
| 16153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16155 | { (case "(($ac_try" in |
| 16156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16157 | *) ac_try_echo=$ac_try;; |
| 16158 | esac |
| 16159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16160 | (eval "$ac_try") 2>&5 |
| 16161 | ac_status=$? |
| 16162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16163 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16164 | ac_cv_huge_val_sanity=yes |
| 16165 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16166 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16167 | echo "$as_me: failed program was:" >&5 |
| 16168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16169 | |
| 16170 | ( exit $ac_status ) |
| 16171 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16172 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16173 | 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] | 16174 | fi |
| 16175 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16176 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16177 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16178 | ac_ext=c |
| 16179 | ac_cpp='$CPP $CPPFLAGS' |
| 16180 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16181 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16182 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16183 | |
| 16184 | |
| 16185 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16186 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16187 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16188 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16189 | |
| 16190 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16191 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16192 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16193 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16195 | else |
| 16196 | cat >conftest.$ac_ext <<_ACEOF |
| 16197 | /* confdefs.h. */ |
| 16198 | _ACEOF |
| 16199 | cat confdefs.h >>conftest.$ac_ext |
| 16200 | cat >>conftest.$ac_ext <<_ACEOF |
| 16201 | /* end confdefs.h. */ |
| 16202 | $ac_includes_default |
| 16203 | typedef pid_t ac__type_new_; |
| 16204 | int |
| 16205 | main () |
| 16206 | { |
| 16207 | if ((ac__type_new_ *) 0) |
| 16208 | return 0; |
| 16209 | if (sizeof (ac__type_new_)) |
| 16210 | return 0; |
| 16211 | ; |
| 16212 | return 0; |
| 16213 | } |
| 16214 | _ACEOF |
| 16215 | rm -f conftest.$ac_objext |
| 16216 | if { (ac_try="$ac_compile" |
| 16217 | case "(($ac_try" in |
| 16218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16219 | *) ac_try_echo=$ac_try;; |
| 16220 | esac |
| 16221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16222 | (eval "$ac_compile") 2>conftest.er1 |
| 16223 | ac_status=$? |
| 16224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16225 | rm -f conftest.er1 |
| 16226 | cat conftest.err >&5 |
| 16227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16228 | (exit $ac_status); } && |
| 16229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16230 | { (case "(($ac_try" in |
| 16231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16232 | *) ac_try_echo=$ac_try;; |
| 16233 | esac |
| 16234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16235 | (eval "$ac_try") 2>&5 |
| 16236 | ac_status=$? |
| 16237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16238 | (exit $ac_status); }; } && |
| 16239 | { ac_try='test -s conftest.$ac_objext' |
| 16240 | { (case "(($ac_try" in |
| 16241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16242 | *) ac_try_echo=$ac_try;; |
| 16243 | esac |
| 16244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16245 | (eval "$ac_try") 2>&5 |
| 16246 | ac_status=$? |
| 16247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16248 | (exit $ac_status); }; }; then |
| 16249 | ac_cv_type_pid_t=yes |
| 16250 | else |
| 16251 | echo "$as_me: failed program was:" >&5 |
| 16252 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16253 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16254 | ac_cv_type_pid_t=no |
| 16255 | fi |
| 16256 | |
| 16257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16258 | fi |
| 16259 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16260 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16261 | if test $ac_cv_type_pid_t = yes; then |
| 16262 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16263 | else |
| 16264 | |
| 16265 | cat >>confdefs.h <<_ACEOF |
| 16266 | #define pid_t int |
| 16267 | _ACEOF |
| 16268 | |
| 16269 | fi |
| 16270 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16271 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16272 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16273 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16275 | else |
| 16276 | cat >conftest.$ac_ext <<_ACEOF |
| 16277 | /* confdefs.h. */ |
| 16278 | _ACEOF |
| 16279 | cat confdefs.h >>conftest.$ac_ext |
| 16280 | cat >>conftest.$ac_ext <<_ACEOF |
| 16281 | /* end confdefs.h. */ |
| 16282 | $ac_includes_default |
| 16283 | typedef size_t ac__type_new_; |
| 16284 | int |
| 16285 | main () |
| 16286 | { |
| 16287 | if ((ac__type_new_ *) 0) |
| 16288 | return 0; |
| 16289 | if (sizeof (ac__type_new_)) |
| 16290 | return 0; |
| 16291 | ; |
| 16292 | return 0; |
| 16293 | } |
| 16294 | _ACEOF |
| 16295 | rm -f conftest.$ac_objext |
| 16296 | if { (ac_try="$ac_compile" |
| 16297 | case "(($ac_try" in |
| 16298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16299 | *) ac_try_echo=$ac_try;; |
| 16300 | esac |
| 16301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16302 | (eval "$ac_compile") 2>conftest.er1 |
| 16303 | ac_status=$? |
| 16304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16305 | rm -f conftest.er1 |
| 16306 | cat conftest.err >&5 |
| 16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16308 | (exit $ac_status); } && |
| 16309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16310 | { (case "(($ac_try" in |
| 16311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16312 | *) ac_try_echo=$ac_try;; |
| 16313 | esac |
| 16314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16315 | (eval "$ac_try") 2>&5 |
| 16316 | ac_status=$? |
| 16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16318 | (exit $ac_status); }; } && |
| 16319 | { ac_try='test -s conftest.$ac_objext' |
| 16320 | { (case "(($ac_try" in |
| 16321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16322 | *) ac_try_echo=$ac_try;; |
| 16323 | esac |
| 16324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16325 | (eval "$ac_try") 2>&5 |
| 16326 | ac_status=$? |
| 16327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16328 | (exit $ac_status); }; }; then |
| 16329 | ac_cv_type_size_t=yes |
| 16330 | else |
| 16331 | echo "$as_me: failed program was:" >&5 |
| 16332 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16334 | ac_cv_type_size_t=no |
| 16335 | fi |
| 16336 | |
| 16337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16338 | fi |
| 16339 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16340 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16341 | if test $ac_cv_type_size_t = yes; then |
| 16342 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16343 | else |
| 16344 | |
| 16345 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16346 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16347 | _ACEOF |
| 16348 | |
| 16349 | fi |
| 16350 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16351 | |
| 16352 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16353 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16354 | _ACEOF |
| 16355 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16356 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16357 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16358 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16360 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16361 | cat >conftest.$ac_ext <<_ACEOF |
| 16362 | /* confdefs.h. */ |
| 16363 | _ACEOF |
| 16364 | cat confdefs.h >>conftest.$ac_ext |
| 16365 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16366 | /* end confdefs.h. */ |
| 16367 | #include <sys/types.h> |
| 16368 | #include <time.h> |
| 16369 | |
| 16370 | int |
| 16371 | main () |
| 16372 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16373 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16374 | ; |
| 16375 | return 0; |
| 16376 | } |
| 16377 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16378 | rm -f conftest.$ac_objext |
| 16379 | if { (ac_try="$ac_compile" |
| 16380 | case "(($ac_try" in |
| 16381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16382 | *) ac_try_echo=$ac_try;; |
| 16383 | esac |
| 16384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16385 | (eval "$ac_compile") 2>conftest.er1 |
| 16386 | ac_status=$? |
| 16387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16388 | rm -f conftest.er1 |
| 16389 | cat conftest.err >&5 |
| 16390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16391 | (exit $ac_status); } && |
| 16392 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16393 | { (case "(($ac_try" in |
| 16394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16395 | *) ac_try_echo=$ac_try;; |
| 16396 | esac |
| 16397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16398 | (eval "$ac_try") 2>&5 |
| 16399 | ac_status=$? |
| 16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16401 | (exit $ac_status); }; } && |
| 16402 | { ac_try='test -s conftest.$ac_objext' |
| 16403 | { (case "(($ac_try" in |
| 16404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16405 | *) ac_try_echo=$ac_try;; |
| 16406 | esac |
| 16407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16408 | (eval "$ac_try") 2>&5 |
| 16409 | ac_status=$? |
| 16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16411 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16412 | ac_cv_struct_tm=time.h |
| 16413 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16414 | echo "$as_me: failed program was:" >&5 |
| 16415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16416 | |
| 16417 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16418 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16423 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16424 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16425 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16426 | cat >>confdefs.h <<\_ACEOF |
| 16427 | #define TM_IN_SYS_TIME 1 |
| 16428 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16429 | |
| 16430 | fi |
| 16431 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16432 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16433 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16434 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16436 | else |
| 16437 | cat >conftest.$ac_ext <<_ACEOF |
| 16438 | /* confdefs.h. */ |
| 16439 | _ACEOF |
| 16440 | cat confdefs.h >>conftest.$ac_ext |
| 16441 | cat >>conftest.$ac_ext <<_ACEOF |
| 16442 | /* end confdefs.h. */ |
| 16443 | $ac_includes_default |
| 16444 | typedef int64_t ac__type_new_; |
| 16445 | int |
| 16446 | main () |
| 16447 | { |
| 16448 | if ((ac__type_new_ *) 0) |
| 16449 | return 0; |
| 16450 | if (sizeof (ac__type_new_)) |
| 16451 | return 0; |
| 16452 | ; |
| 16453 | return 0; |
| 16454 | } |
| 16455 | _ACEOF |
| 16456 | rm -f conftest.$ac_objext |
| 16457 | if { (ac_try="$ac_compile" |
| 16458 | case "(($ac_try" in |
| 16459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16460 | *) ac_try_echo=$ac_try;; |
| 16461 | esac |
| 16462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16463 | (eval "$ac_compile") 2>conftest.er1 |
| 16464 | ac_status=$? |
| 16465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16466 | rm -f conftest.er1 |
| 16467 | cat conftest.err >&5 |
| 16468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16469 | (exit $ac_status); } && |
| 16470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16471 | { (case "(($ac_try" in |
| 16472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16473 | *) ac_try_echo=$ac_try;; |
| 16474 | esac |
| 16475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16476 | (eval "$ac_try") 2>&5 |
| 16477 | ac_status=$? |
| 16478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16479 | (exit $ac_status); }; } && |
| 16480 | { ac_try='test -s conftest.$ac_objext' |
| 16481 | { (case "(($ac_try" in |
| 16482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16483 | *) ac_try_echo=$ac_try;; |
| 16484 | esac |
| 16485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16486 | (eval "$ac_try") 2>&5 |
| 16487 | ac_status=$? |
| 16488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16489 | (exit $ac_status); }; }; then |
| 16490 | ac_cv_type_int64_t=yes |
| 16491 | else |
| 16492 | echo "$as_me: failed program was:" >&5 |
| 16493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16494 | |
| 16495 | ac_cv_type_int64_t=no |
| 16496 | fi |
| 16497 | |
| 16498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16499 | fi |
| 16500 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16501 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16502 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16503 | |
| 16504 | cat >>confdefs.h <<_ACEOF |
| 16505 | #define HAVE_INT64_T 1 |
| 16506 | _ACEOF |
| 16507 | |
| 16508 | |
| 16509 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16510 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16511 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16512 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16513 | fi |
| 16514 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16515 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16516 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16517 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16519 | else |
| 16520 | cat >conftest.$ac_ext <<_ACEOF |
| 16521 | /* confdefs.h. */ |
| 16522 | _ACEOF |
| 16523 | cat confdefs.h >>conftest.$ac_ext |
| 16524 | cat >>conftest.$ac_ext <<_ACEOF |
| 16525 | /* end confdefs.h. */ |
| 16526 | $ac_includes_default |
| 16527 | typedef uint64_t ac__type_new_; |
| 16528 | int |
| 16529 | main () |
| 16530 | { |
| 16531 | if ((ac__type_new_ *) 0) |
| 16532 | return 0; |
| 16533 | if (sizeof (ac__type_new_)) |
| 16534 | return 0; |
| 16535 | ; |
| 16536 | return 0; |
| 16537 | } |
| 16538 | _ACEOF |
| 16539 | rm -f conftest.$ac_objext |
| 16540 | if { (ac_try="$ac_compile" |
| 16541 | case "(($ac_try" in |
| 16542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16543 | *) ac_try_echo=$ac_try;; |
| 16544 | esac |
| 16545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16546 | (eval "$ac_compile") 2>conftest.er1 |
| 16547 | ac_status=$? |
| 16548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16549 | rm -f conftest.er1 |
| 16550 | cat conftest.err >&5 |
| 16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16552 | (exit $ac_status); } && |
| 16553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16554 | { (case "(($ac_try" in |
| 16555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16556 | *) ac_try_echo=$ac_try;; |
| 16557 | esac |
| 16558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16559 | (eval "$ac_try") 2>&5 |
| 16560 | ac_status=$? |
| 16561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16562 | (exit $ac_status); }; } && |
| 16563 | { ac_try='test -s conftest.$ac_objext' |
| 16564 | { (case "(($ac_try" in |
| 16565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16566 | *) ac_try_echo=$ac_try;; |
| 16567 | esac |
| 16568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16569 | (eval "$ac_try") 2>&5 |
| 16570 | ac_status=$? |
| 16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16572 | (exit $ac_status); }; }; then |
| 16573 | ac_cv_type_uint64_t=yes |
| 16574 | else |
| 16575 | echo "$as_me: failed program was:" >&5 |
| 16576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16577 | |
| 16578 | ac_cv_type_uint64_t=no |
| 16579 | fi |
| 16580 | |
| 16581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16582 | fi |
| 16583 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16584 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16585 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16586 | |
| 16587 | cat >>confdefs.h <<_ACEOF |
| 16588 | #define HAVE_UINT64_T 1 |
| 16589 | _ACEOF |
| 16590 | |
| 16591 | |
| 16592 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16593 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16594 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16595 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16597 | else |
| 16598 | cat >conftest.$ac_ext <<_ACEOF |
| 16599 | /* confdefs.h. */ |
| 16600 | _ACEOF |
| 16601 | cat confdefs.h >>conftest.$ac_ext |
| 16602 | cat >>conftest.$ac_ext <<_ACEOF |
| 16603 | /* end confdefs.h. */ |
| 16604 | $ac_includes_default |
| 16605 | typedef u_int64_t ac__type_new_; |
| 16606 | int |
| 16607 | main () |
| 16608 | { |
| 16609 | if ((ac__type_new_ *) 0) |
| 16610 | return 0; |
| 16611 | if (sizeof (ac__type_new_)) |
| 16612 | return 0; |
| 16613 | ; |
| 16614 | return 0; |
| 16615 | } |
| 16616 | _ACEOF |
| 16617 | rm -f conftest.$ac_objext |
| 16618 | if { (ac_try="$ac_compile" |
| 16619 | case "(($ac_try" in |
| 16620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16621 | *) ac_try_echo=$ac_try;; |
| 16622 | esac |
| 16623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16624 | (eval "$ac_compile") 2>conftest.er1 |
| 16625 | ac_status=$? |
| 16626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16627 | rm -f conftest.er1 |
| 16628 | cat conftest.err >&5 |
| 16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16630 | (exit $ac_status); } && |
| 16631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16632 | { (case "(($ac_try" in |
| 16633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16634 | *) ac_try_echo=$ac_try;; |
| 16635 | esac |
| 16636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16637 | (eval "$ac_try") 2>&5 |
| 16638 | ac_status=$? |
| 16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16640 | (exit $ac_status); }; } && |
| 16641 | { ac_try='test -s conftest.$ac_objext' |
| 16642 | { (case "(($ac_try" in |
| 16643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16644 | *) ac_try_echo=$ac_try;; |
| 16645 | esac |
| 16646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16647 | (eval "$ac_try") 2>&5 |
| 16648 | ac_status=$? |
| 16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16650 | (exit $ac_status); }; }; then |
| 16651 | ac_cv_type_u_int64_t=yes |
| 16652 | else |
| 16653 | echo "$as_me: failed program was:" >&5 |
| 16654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16655 | |
| 16656 | ac_cv_type_u_int64_t=no |
| 16657 | fi |
| 16658 | |
| 16659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16660 | fi |
| 16661 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16662 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16663 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16664 | |
| 16665 | cat >>confdefs.h <<_ACEOF |
| 16666 | #define HAVE_U_INT64_T 1 |
| 16667 | _ACEOF |
| 16668 | |
| 16669 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16670 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16671 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16672 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16673 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16674 | fi |
| 16675 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16676 | fi |
| 16677 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16678 | |
| 16679 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16680 | |
| 16681 | |
| 16682 | |
| 16683 | |
| 16684 | |
| 16685 | |
| 16686 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16687 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16688 | do |
| 16689 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16690 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16691 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16692 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16694 | else |
| 16695 | cat >conftest.$ac_ext <<_ACEOF |
| 16696 | /* confdefs.h. */ |
| 16697 | _ACEOF |
| 16698 | cat confdefs.h >>conftest.$ac_ext |
| 16699 | cat >>conftest.$ac_ext <<_ACEOF |
| 16700 | /* end confdefs.h. */ |
| 16701 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16703 | #define $ac_func innocuous_$ac_func |
| 16704 | |
| 16705 | /* System header to define __stub macros and hopefully few prototypes, |
| 16706 | which can conflict with char $ac_func (); below. |
| 16707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16708 | <limits.h> exists even on freestanding compilers. */ |
| 16709 | |
| 16710 | #ifdef __STDC__ |
| 16711 | # include <limits.h> |
| 16712 | #else |
| 16713 | # include <assert.h> |
| 16714 | #endif |
| 16715 | |
| 16716 | #undef $ac_func |
| 16717 | |
| 16718 | /* Override any GCC internal prototype to avoid an error. |
| 16719 | Use char because int might match the return type of a GCC |
| 16720 | builtin and then its argument prototype would still apply. */ |
| 16721 | #ifdef __cplusplus |
| 16722 | extern "C" |
| 16723 | #endif |
| 16724 | char $ac_func (); |
| 16725 | /* The GNU C library defines this for functions which it implements |
| 16726 | to always fail with ENOSYS. Some functions are actually named |
| 16727 | something starting with __ and the normal name is an alias. */ |
| 16728 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16729 | choke me |
| 16730 | #endif |
| 16731 | |
| 16732 | int |
| 16733 | main () |
| 16734 | { |
| 16735 | return $ac_func (); |
| 16736 | ; |
| 16737 | return 0; |
| 16738 | } |
| 16739 | _ACEOF |
| 16740 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16741 | if { (ac_try="$ac_link" |
| 16742 | case "(($ac_try" in |
| 16743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16744 | *) ac_try_echo=$ac_try;; |
| 16745 | esac |
| 16746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16747 | (eval "$ac_link") 2>conftest.er1 |
| 16748 | ac_status=$? |
| 16749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16750 | rm -f conftest.er1 |
| 16751 | cat conftest.err >&5 |
| 16752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16753 | (exit $ac_status); } && |
| 16754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16755 | { (case "(($ac_try" in |
| 16756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16757 | *) ac_try_echo=$ac_try;; |
| 16758 | esac |
| 16759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16760 | (eval "$ac_try") 2>&5 |
| 16761 | ac_status=$? |
| 16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16763 | (exit $ac_status); }; } && |
| 16764 | { ac_try='test -s conftest$ac_exeext' |
| 16765 | { (case "(($ac_try" in |
| 16766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16767 | *) ac_try_echo=$ac_try;; |
| 16768 | esac |
| 16769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16770 | (eval "$ac_try") 2>&5 |
| 16771 | ac_status=$? |
| 16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16773 | (exit $ac_status); }; }; then |
| 16774 | eval "$as_ac_var=yes" |
| 16775 | else |
| 16776 | echo "$as_me: failed program was:" >&5 |
| 16777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16778 | |
| 16779 | eval "$as_ac_var=no" |
| 16780 | fi |
| 16781 | |
| 16782 | rm -f core conftest.err conftest.$ac_objext \ |
| 16783 | conftest$ac_exeext conftest.$ac_ext |
| 16784 | fi |
| 16785 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16787 | echo "${ECHO_T}$ac_res" >&6; } |
| 16788 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16789 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16790 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16791 | _ACEOF |
| 16792 | |
| 16793 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16794 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16795 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16796 | |
| 16797 | |
| 16798 | |
| 16799 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16800 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16801 | do |
| 16802 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16803 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16804 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16805 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16807 | else |
| 16808 | cat >conftest.$ac_ext <<_ACEOF |
| 16809 | /* confdefs.h. */ |
| 16810 | _ACEOF |
| 16811 | cat confdefs.h >>conftest.$ac_ext |
| 16812 | cat >>conftest.$ac_ext <<_ACEOF |
| 16813 | /* end confdefs.h. */ |
| 16814 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16816 | #define $ac_func innocuous_$ac_func |
| 16817 | |
| 16818 | /* System header to define __stub macros and hopefully few prototypes, |
| 16819 | which can conflict with char $ac_func (); below. |
| 16820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16821 | <limits.h> exists even on freestanding compilers. */ |
| 16822 | |
| 16823 | #ifdef __STDC__ |
| 16824 | # include <limits.h> |
| 16825 | #else |
| 16826 | # include <assert.h> |
| 16827 | #endif |
| 16828 | |
| 16829 | #undef $ac_func |
| 16830 | |
| 16831 | /* Override any GCC internal prototype to avoid an error. |
| 16832 | Use char because int might match the return type of a GCC |
| 16833 | builtin and then its argument prototype would still apply. */ |
| 16834 | #ifdef __cplusplus |
| 16835 | extern "C" |
| 16836 | #endif |
| 16837 | char $ac_func (); |
| 16838 | /* The GNU C library defines this for functions which it implements |
| 16839 | to always fail with ENOSYS. Some functions are actually named |
| 16840 | something starting with __ and the normal name is an alias. */ |
| 16841 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16842 | choke me |
| 16843 | #endif |
| 16844 | |
| 16845 | int |
| 16846 | main () |
| 16847 | { |
| 16848 | return $ac_func (); |
| 16849 | ; |
| 16850 | return 0; |
| 16851 | } |
| 16852 | _ACEOF |
| 16853 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16854 | if { (ac_try="$ac_link" |
| 16855 | case "(($ac_try" in |
| 16856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16857 | *) ac_try_echo=$ac_try;; |
| 16858 | esac |
| 16859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16860 | (eval "$ac_link") 2>conftest.er1 |
| 16861 | ac_status=$? |
| 16862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16863 | rm -f conftest.er1 |
| 16864 | cat conftest.err >&5 |
| 16865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16866 | (exit $ac_status); } && |
| 16867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16868 | { (case "(($ac_try" in |
| 16869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16870 | *) ac_try_echo=$ac_try;; |
| 16871 | esac |
| 16872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16873 | (eval "$ac_try") 2>&5 |
| 16874 | ac_status=$? |
| 16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16876 | (exit $ac_status); }; } && |
| 16877 | { ac_try='test -s conftest$ac_exeext' |
| 16878 | { (case "(($ac_try" in |
| 16879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16880 | *) ac_try_echo=$ac_try;; |
| 16881 | esac |
| 16882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16883 | (eval "$ac_try") 2>&5 |
| 16884 | ac_status=$? |
| 16885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16886 | (exit $ac_status); }; }; then |
| 16887 | eval "$as_ac_var=yes" |
| 16888 | else |
| 16889 | echo "$as_me: failed program was:" >&5 |
| 16890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16891 | |
| 16892 | eval "$as_ac_var=no" |
| 16893 | fi |
| 16894 | |
| 16895 | rm -f core conftest.err conftest.$ac_objext \ |
| 16896 | conftest$ac_exeext conftest.$ac_ext |
| 16897 | fi |
| 16898 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16899 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16900 | echo "${ECHO_T}$ac_res" >&6; } |
| 16901 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16902 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16903 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 16904 | _ACEOF |
| 16905 | |
| 16906 | fi |
| 16907 | done |
| 16908 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16909 | |
| 16910 | |
| 16911 | |
| 16912 | |
| 16913 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 16914 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16915 | do |
| 16916 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16917 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16918 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16919 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16921 | else |
| 16922 | cat >conftest.$ac_ext <<_ACEOF |
| 16923 | /* confdefs.h. */ |
| 16924 | _ACEOF |
| 16925 | cat confdefs.h >>conftest.$ac_ext |
| 16926 | cat >>conftest.$ac_ext <<_ACEOF |
| 16927 | /* end confdefs.h. */ |
| 16928 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16929 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16930 | #define $ac_func innocuous_$ac_func |
| 16931 | |
| 16932 | /* System header to define __stub macros and hopefully few prototypes, |
| 16933 | which can conflict with char $ac_func (); below. |
| 16934 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16935 | <limits.h> exists even on freestanding compilers. */ |
| 16936 | |
| 16937 | #ifdef __STDC__ |
| 16938 | # include <limits.h> |
| 16939 | #else |
| 16940 | # include <assert.h> |
| 16941 | #endif |
| 16942 | |
| 16943 | #undef $ac_func |
| 16944 | |
| 16945 | /* Override any GCC internal prototype to avoid an error. |
| 16946 | Use char because int might match the return type of a GCC |
| 16947 | builtin and then its argument prototype would still apply. */ |
| 16948 | #ifdef __cplusplus |
| 16949 | extern "C" |
| 16950 | #endif |
| 16951 | char $ac_func (); |
| 16952 | /* The GNU C library defines this for functions which it implements |
| 16953 | to always fail with ENOSYS. Some functions are actually named |
| 16954 | something starting with __ and the normal name is an alias. */ |
| 16955 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16956 | choke me |
| 16957 | #endif |
| 16958 | |
| 16959 | int |
| 16960 | main () |
| 16961 | { |
| 16962 | return $ac_func (); |
| 16963 | ; |
| 16964 | return 0; |
| 16965 | } |
| 16966 | _ACEOF |
| 16967 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16968 | if { (ac_try="$ac_link" |
| 16969 | case "(($ac_try" in |
| 16970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16971 | *) ac_try_echo=$ac_try;; |
| 16972 | esac |
| 16973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16974 | (eval "$ac_link") 2>conftest.er1 |
| 16975 | ac_status=$? |
| 16976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16977 | rm -f conftest.er1 |
| 16978 | cat conftest.err >&5 |
| 16979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16980 | (exit $ac_status); } && |
| 16981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16982 | { (case "(($ac_try" in |
| 16983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16984 | *) ac_try_echo=$ac_try;; |
| 16985 | esac |
| 16986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16987 | (eval "$ac_try") 2>&5 |
| 16988 | ac_status=$? |
| 16989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16990 | (exit $ac_status); }; } && |
| 16991 | { ac_try='test -s conftest$ac_exeext' |
| 16992 | { (case "(($ac_try" in |
| 16993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16994 | *) ac_try_echo=$ac_try;; |
| 16995 | esac |
| 16996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16997 | (eval "$ac_try") 2>&5 |
| 16998 | ac_status=$? |
| 16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17000 | (exit $ac_status); }; }; then |
| 17001 | eval "$as_ac_var=yes" |
| 17002 | else |
| 17003 | echo "$as_me: failed program was:" >&5 |
| 17004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17005 | |
| 17006 | eval "$as_ac_var=no" |
| 17007 | fi |
| 17008 | |
| 17009 | rm -f core conftest.err conftest.$ac_objext \ |
| 17010 | conftest$ac_exeext conftest.$ac_ext |
| 17011 | fi |
| 17012 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17013 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17014 | echo "${ECHO_T}$ac_res" >&6; } |
| 17015 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17016 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17017 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17018 | _ACEOF |
| 17019 | |
| 17020 | fi |
| 17021 | done |
| 17022 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17023 | |
| 17024 | |
| 17025 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17026 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17027 | do |
| 17028 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17029 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17030 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17031 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17033 | else |
| 17034 | cat >conftest.$ac_ext <<_ACEOF |
| 17035 | /* confdefs.h. */ |
| 17036 | _ACEOF |
| 17037 | cat confdefs.h >>conftest.$ac_ext |
| 17038 | cat >>conftest.$ac_ext <<_ACEOF |
| 17039 | /* end confdefs.h. */ |
| 17040 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17041 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17042 | #define $ac_func innocuous_$ac_func |
| 17043 | |
| 17044 | /* System header to define __stub macros and hopefully few prototypes, |
| 17045 | which can conflict with char $ac_func (); below. |
| 17046 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17047 | <limits.h> exists even on freestanding compilers. */ |
| 17048 | |
| 17049 | #ifdef __STDC__ |
| 17050 | # include <limits.h> |
| 17051 | #else |
| 17052 | # include <assert.h> |
| 17053 | #endif |
| 17054 | |
| 17055 | #undef $ac_func |
| 17056 | |
| 17057 | /* Override any GCC internal prototype to avoid an error. |
| 17058 | Use char because int might match the return type of a GCC |
| 17059 | builtin and then its argument prototype would still apply. */ |
| 17060 | #ifdef __cplusplus |
| 17061 | extern "C" |
| 17062 | #endif |
| 17063 | char $ac_func (); |
| 17064 | /* The GNU C library defines this for functions which it implements |
| 17065 | to always fail with ENOSYS. Some functions are actually named |
| 17066 | something starting with __ and the normal name is an alias. */ |
| 17067 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17068 | choke me |
| 17069 | #endif |
| 17070 | |
| 17071 | int |
| 17072 | main () |
| 17073 | { |
| 17074 | return $ac_func (); |
| 17075 | ; |
| 17076 | return 0; |
| 17077 | } |
| 17078 | _ACEOF |
| 17079 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17080 | if { (ac_try="$ac_link" |
| 17081 | case "(($ac_try" in |
| 17082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17083 | *) ac_try_echo=$ac_try;; |
| 17084 | esac |
| 17085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17086 | (eval "$ac_link") 2>conftest.er1 |
| 17087 | ac_status=$? |
| 17088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17089 | rm -f conftest.er1 |
| 17090 | cat conftest.err >&5 |
| 17091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17092 | (exit $ac_status); } && |
| 17093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17094 | { (case "(($ac_try" in |
| 17095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17096 | *) ac_try_echo=$ac_try;; |
| 17097 | esac |
| 17098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17099 | (eval "$ac_try") 2>&5 |
| 17100 | ac_status=$? |
| 17101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17102 | (exit $ac_status); }; } && |
| 17103 | { ac_try='test -s conftest$ac_exeext' |
| 17104 | { (case "(($ac_try" in |
| 17105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17106 | *) ac_try_echo=$ac_try;; |
| 17107 | esac |
| 17108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17109 | (eval "$ac_try") 2>&5 |
| 17110 | ac_status=$? |
| 17111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17112 | (exit $ac_status); }; }; then |
| 17113 | eval "$as_ac_var=yes" |
| 17114 | else |
| 17115 | echo "$as_me: failed program was:" >&5 |
| 17116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17117 | |
| 17118 | eval "$as_ac_var=no" |
| 17119 | fi |
| 17120 | |
| 17121 | rm -f core conftest.err conftest.$ac_objext \ |
| 17122 | conftest$ac_exeext conftest.$ac_ext |
| 17123 | fi |
| 17124 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17125 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17126 | echo "${ECHO_T}$ac_res" >&6; } |
| 17127 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17128 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17129 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17130 | _ACEOF |
| 17131 | |
| 17132 | fi |
| 17133 | done |
| 17134 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17135 | |
| 17136 | |
| 17137 | |
| 17138 | |
| 17139 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17140 | |
Benjamin Kramer | 5745fbc | 2011-11-22 12:31:53 +0000 | [diff] [blame] | 17141 | |
| 17142 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17143 | do |
| 17144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17145 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17147 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17149 | else |
| 17150 | cat >conftest.$ac_ext <<_ACEOF |
| 17151 | /* confdefs.h. */ |
| 17152 | _ACEOF |
| 17153 | cat confdefs.h >>conftest.$ac_ext |
| 17154 | cat >>conftest.$ac_ext <<_ACEOF |
| 17155 | /* end confdefs.h. */ |
| 17156 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17158 | #define $ac_func innocuous_$ac_func |
| 17159 | |
| 17160 | /* System header to define __stub macros and hopefully few prototypes, |
| 17161 | which can conflict with char $ac_func (); below. |
| 17162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17163 | <limits.h> exists even on freestanding compilers. */ |
| 17164 | |
| 17165 | #ifdef __STDC__ |
| 17166 | # include <limits.h> |
| 17167 | #else |
| 17168 | # include <assert.h> |
| 17169 | #endif |
| 17170 | |
| 17171 | #undef $ac_func |
| 17172 | |
| 17173 | /* Override any GCC internal prototype to avoid an error. |
| 17174 | Use char because int might match the return type of a GCC |
| 17175 | builtin and then its argument prototype would still apply. */ |
| 17176 | #ifdef __cplusplus |
| 17177 | extern "C" |
| 17178 | #endif |
| 17179 | char $ac_func (); |
| 17180 | /* The GNU C library defines this for functions which it implements |
| 17181 | to always fail with ENOSYS. Some functions are actually named |
| 17182 | something starting with __ and the normal name is an alias. */ |
| 17183 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17184 | choke me |
| 17185 | #endif |
| 17186 | |
| 17187 | int |
| 17188 | main () |
| 17189 | { |
| 17190 | return $ac_func (); |
| 17191 | ; |
| 17192 | return 0; |
| 17193 | } |
| 17194 | _ACEOF |
| 17195 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17196 | if { (ac_try="$ac_link" |
| 17197 | case "(($ac_try" in |
| 17198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17199 | *) ac_try_echo=$ac_try;; |
| 17200 | esac |
| 17201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17202 | (eval "$ac_link") 2>conftest.er1 |
| 17203 | ac_status=$? |
| 17204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17205 | rm -f conftest.er1 |
| 17206 | cat conftest.err >&5 |
| 17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17208 | (exit $ac_status); } && |
| 17209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17210 | { (case "(($ac_try" in |
| 17211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17212 | *) ac_try_echo=$ac_try;; |
| 17213 | esac |
| 17214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17215 | (eval "$ac_try") 2>&5 |
| 17216 | ac_status=$? |
| 17217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17218 | (exit $ac_status); }; } && |
| 17219 | { ac_try='test -s conftest$ac_exeext' |
| 17220 | { (case "(($ac_try" in |
| 17221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17222 | *) ac_try_echo=$ac_try;; |
| 17223 | esac |
| 17224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17225 | (eval "$ac_try") 2>&5 |
| 17226 | ac_status=$? |
| 17227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17228 | (exit $ac_status); }; }; then |
| 17229 | eval "$as_ac_var=yes" |
| 17230 | else |
| 17231 | echo "$as_me: failed program was:" >&5 |
| 17232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17233 | |
| 17234 | eval "$as_ac_var=no" |
| 17235 | fi |
| 17236 | |
| 17237 | rm -f core conftest.err conftest.$ac_objext \ |
| 17238 | conftest$ac_exeext conftest.$ac_ext |
| 17239 | fi |
| 17240 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17241 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17242 | echo "${ECHO_T}$ac_res" >&6; } |
| 17243 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17244 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17245 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17246 | _ACEOF |
| 17247 | |
| 17248 | fi |
| 17249 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17250 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17251 | |
| 17252 | |
| 17253 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17254 | for ac_func in strerror strerror_r setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17255 | do |
| 17256 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17257 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17258 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17259 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17261 | else |
| 17262 | cat >conftest.$ac_ext <<_ACEOF |
| 17263 | /* confdefs.h. */ |
| 17264 | _ACEOF |
| 17265 | cat confdefs.h >>conftest.$ac_ext |
| 17266 | cat >>conftest.$ac_ext <<_ACEOF |
| 17267 | /* end confdefs.h. */ |
| 17268 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17269 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17270 | #define $ac_func innocuous_$ac_func |
| 17271 | |
| 17272 | /* System header to define __stub macros and hopefully few prototypes, |
| 17273 | which can conflict with char $ac_func (); below. |
| 17274 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17275 | <limits.h> exists even on freestanding compilers. */ |
| 17276 | |
| 17277 | #ifdef __STDC__ |
| 17278 | # include <limits.h> |
| 17279 | #else |
| 17280 | # include <assert.h> |
| 17281 | #endif |
| 17282 | |
| 17283 | #undef $ac_func |
| 17284 | |
| 17285 | /* Override any GCC internal prototype to avoid an error. |
| 17286 | Use char because int might match the return type of a GCC |
| 17287 | builtin and then its argument prototype would still apply. */ |
| 17288 | #ifdef __cplusplus |
| 17289 | extern "C" |
| 17290 | #endif |
| 17291 | char $ac_func (); |
| 17292 | /* The GNU C library defines this for functions which it implements |
| 17293 | to always fail with ENOSYS. Some functions are actually named |
| 17294 | something starting with __ and the normal name is an alias. */ |
| 17295 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17296 | choke me |
| 17297 | #endif |
| 17298 | |
| 17299 | int |
| 17300 | main () |
| 17301 | { |
| 17302 | return $ac_func (); |
| 17303 | ; |
| 17304 | return 0; |
| 17305 | } |
| 17306 | _ACEOF |
| 17307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17308 | if { (ac_try="$ac_link" |
| 17309 | case "(($ac_try" in |
| 17310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17311 | *) ac_try_echo=$ac_try;; |
| 17312 | esac |
| 17313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17314 | (eval "$ac_link") 2>conftest.er1 |
| 17315 | ac_status=$? |
| 17316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17317 | rm -f conftest.er1 |
| 17318 | cat conftest.err >&5 |
| 17319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17320 | (exit $ac_status); } && |
| 17321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17322 | { (case "(($ac_try" in |
| 17323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17324 | *) ac_try_echo=$ac_try;; |
| 17325 | esac |
| 17326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17327 | (eval "$ac_try") 2>&5 |
| 17328 | ac_status=$? |
| 17329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17330 | (exit $ac_status); }; } && |
| 17331 | { ac_try='test -s conftest$ac_exeext' |
| 17332 | { (case "(($ac_try" in |
| 17333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17334 | *) ac_try_echo=$ac_try;; |
| 17335 | esac |
| 17336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17337 | (eval "$ac_try") 2>&5 |
| 17338 | ac_status=$? |
| 17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17340 | (exit $ac_status); }; }; then |
| 17341 | eval "$as_ac_var=yes" |
| 17342 | else |
| 17343 | echo "$as_me: failed program was:" >&5 |
| 17344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17345 | |
| 17346 | eval "$as_ac_var=no" |
| 17347 | fi |
| 17348 | |
| 17349 | rm -f core conftest.err conftest.$ac_objext \ |
| 17350 | conftest$ac_exeext conftest.$ac_ext |
| 17351 | fi |
| 17352 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17353 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17354 | echo "${ECHO_T}$ac_res" >&6; } |
| 17355 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17356 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17357 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17358 | _ACEOF |
| 17359 | |
| 17360 | fi |
| 17361 | done |
| 17362 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17363 | |
| 17364 | |
| 17365 | |
| 17366 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17367 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17368 | do |
| 17369 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17370 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17371 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17372 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17374 | else |
| 17375 | cat >conftest.$ac_ext <<_ACEOF |
| 17376 | /* confdefs.h. */ |
| 17377 | _ACEOF |
| 17378 | cat confdefs.h >>conftest.$ac_ext |
| 17379 | cat >>conftest.$ac_ext <<_ACEOF |
| 17380 | /* end confdefs.h. */ |
| 17381 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17382 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17383 | #define $ac_func innocuous_$ac_func |
| 17384 | |
| 17385 | /* System header to define __stub macros and hopefully few prototypes, |
| 17386 | which can conflict with char $ac_func (); below. |
| 17387 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17388 | <limits.h> exists even on freestanding compilers. */ |
| 17389 | |
| 17390 | #ifdef __STDC__ |
| 17391 | # include <limits.h> |
| 17392 | #else |
| 17393 | # include <assert.h> |
| 17394 | #endif |
| 17395 | |
| 17396 | #undef $ac_func |
| 17397 | |
| 17398 | /* Override any GCC internal prototype to avoid an error. |
| 17399 | Use char because int might match the return type of a GCC |
| 17400 | builtin and then its argument prototype would still apply. */ |
| 17401 | #ifdef __cplusplus |
| 17402 | extern "C" |
| 17403 | #endif |
| 17404 | char $ac_func (); |
| 17405 | /* The GNU C library defines this for functions which it implements |
| 17406 | to always fail with ENOSYS. Some functions are actually named |
| 17407 | something starting with __ and the normal name is an alias. */ |
| 17408 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17409 | choke me |
| 17410 | #endif |
| 17411 | |
| 17412 | int |
| 17413 | main () |
| 17414 | { |
| 17415 | return $ac_func (); |
| 17416 | ; |
| 17417 | return 0; |
| 17418 | } |
| 17419 | _ACEOF |
| 17420 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17421 | if { (ac_try="$ac_link" |
| 17422 | case "(($ac_try" in |
| 17423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17424 | *) ac_try_echo=$ac_try;; |
| 17425 | esac |
| 17426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17427 | (eval "$ac_link") 2>conftest.er1 |
| 17428 | ac_status=$? |
| 17429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17430 | rm -f conftest.er1 |
| 17431 | cat conftest.err >&5 |
| 17432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17433 | (exit $ac_status); } && |
| 17434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17435 | { (case "(($ac_try" in |
| 17436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17437 | *) ac_try_echo=$ac_try;; |
| 17438 | esac |
| 17439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17440 | (eval "$ac_try") 2>&5 |
| 17441 | ac_status=$? |
| 17442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17443 | (exit $ac_status); }; } && |
| 17444 | { ac_try='test -s conftest$ac_exeext' |
| 17445 | { (case "(($ac_try" in |
| 17446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17447 | *) ac_try_echo=$ac_try;; |
| 17448 | esac |
| 17449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17450 | (eval "$ac_try") 2>&5 |
| 17451 | ac_status=$? |
| 17452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17453 | (exit $ac_status); }; }; then |
| 17454 | eval "$as_ac_var=yes" |
| 17455 | else |
| 17456 | echo "$as_me: failed program was:" >&5 |
| 17457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17458 | |
| 17459 | eval "$as_ac_var=no" |
| 17460 | fi |
| 17461 | |
| 17462 | rm -f core conftest.err conftest.$ac_objext \ |
| 17463 | conftest$ac_exeext conftest.$ac_ext |
| 17464 | fi |
| 17465 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17466 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17467 | echo "${ECHO_T}$ac_res" >&6; } |
| 17468 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17469 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17470 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17471 | _ACEOF |
| 17472 | |
| 17473 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17474 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17475 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17476 | |
| 17477 | |
| 17478 | |
| 17479 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17480 | |
| 17481 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17482 | do |
| 17483 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17484 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17485 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17486 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17488 | else |
| 17489 | cat >conftest.$ac_ext <<_ACEOF |
| 17490 | /* confdefs.h. */ |
| 17491 | _ACEOF |
| 17492 | cat confdefs.h >>conftest.$ac_ext |
| 17493 | cat >>conftest.$ac_ext <<_ACEOF |
| 17494 | /* end confdefs.h. */ |
| 17495 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17497 | #define $ac_func innocuous_$ac_func |
| 17498 | |
| 17499 | /* System header to define __stub macros and hopefully few prototypes, |
| 17500 | which can conflict with char $ac_func (); below. |
| 17501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17502 | <limits.h> exists even on freestanding compilers. */ |
| 17503 | |
| 17504 | #ifdef __STDC__ |
| 17505 | # include <limits.h> |
| 17506 | #else |
| 17507 | # include <assert.h> |
| 17508 | #endif |
| 17509 | |
| 17510 | #undef $ac_func |
| 17511 | |
| 17512 | /* Override any GCC internal prototype to avoid an error. |
| 17513 | Use char because int might match the return type of a GCC |
| 17514 | builtin and then its argument prototype would still apply. */ |
| 17515 | #ifdef __cplusplus |
| 17516 | extern "C" |
| 17517 | #endif |
| 17518 | char $ac_func (); |
| 17519 | /* The GNU C library defines this for functions which it implements |
| 17520 | to always fail with ENOSYS. Some functions are actually named |
| 17521 | something starting with __ and the normal name is an alias. */ |
| 17522 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17523 | choke me |
| 17524 | #endif |
| 17525 | |
| 17526 | int |
| 17527 | main () |
| 17528 | { |
| 17529 | return $ac_func (); |
| 17530 | ; |
| 17531 | return 0; |
| 17532 | } |
| 17533 | _ACEOF |
| 17534 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17535 | if { (ac_try="$ac_link" |
| 17536 | case "(($ac_try" in |
| 17537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17538 | *) ac_try_echo=$ac_try;; |
| 17539 | esac |
| 17540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17541 | (eval "$ac_link") 2>conftest.er1 |
| 17542 | ac_status=$? |
| 17543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17544 | rm -f conftest.er1 |
| 17545 | cat conftest.err >&5 |
| 17546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17547 | (exit $ac_status); } && |
| 17548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17549 | { (case "(($ac_try" in |
| 17550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17551 | *) ac_try_echo=$ac_try;; |
| 17552 | esac |
| 17553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17554 | (eval "$ac_try") 2>&5 |
| 17555 | ac_status=$? |
| 17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17557 | (exit $ac_status); }; } && |
| 17558 | { ac_try='test -s conftest$ac_exeext' |
| 17559 | { (case "(($ac_try" in |
| 17560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17561 | *) ac_try_echo=$ac_try;; |
| 17562 | esac |
| 17563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17564 | (eval "$ac_try") 2>&5 |
| 17565 | ac_status=$? |
| 17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17567 | (exit $ac_status); }; }; then |
| 17568 | eval "$as_ac_var=yes" |
| 17569 | else |
| 17570 | echo "$as_me: failed program was:" >&5 |
| 17571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17572 | |
| 17573 | eval "$as_ac_var=no" |
| 17574 | fi |
| 17575 | |
| 17576 | rm -f core conftest.err conftest.$ac_objext \ |
| 17577 | conftest$ac_exeext conftest.$ac_ext |
| 17578 | fi |
| 17579 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17580 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17581 | echo "${ECHO_T}$ac_res" >&6; } |
| 17582 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17583 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17584 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17585 | _ACEOF |
| 17586 | |
| 17587 | fi |
| 17588 | done |
| 17589 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17590 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17591 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17592 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17594 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17595 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17596 | ac_cpp='$CPP $CPPFLAGS' |
| 17597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17600 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17601 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17602 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17603 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17604 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17605 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17606 | /* confdefs.h. */ |
| 17607 | _ACEOF |
| 17608 | cat confdefs.h >>conftest.$ac_ext |
| 17609 | cat >>conftest.$ac_ext <<_ACEOF |
| 17610 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17611 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17612 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17613 | #include <stdlib.h> |
| 17614 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17615 | int |
| 17616 | main () |
| 17617 | { |
| 17618 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17619 | volatile double A, B; |
| 17620 | char Buffer[100]; |
| 17621 | A = 1; |
| 17622 | A /= 10.0; |
| 17623 | sprintf(Buffer, "%a", A); |
| 17624 | B = atof(Buffer); |
| 17625 | if (A != B) |
| 17626 | return (1); |
| 17627 | if (A != 0x1.999999999999ap-4) |
| 17628 | return (1); |
| 17629 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17630 | ; |
| 17631 | return 0; |
| 17632 | } |
| 17633 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17634 | rm -f conftest$ac_exeext |
| 17635 | if { (ac_try="$ac_link" |
| 17636 | case "(($ac_try" in |
| 17637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17638 | *) ac_try_echo=$ac_try;; |
| 17639 | esac |
| 17640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17641 | (eval "$ac_link") 2>&5 |
| 17642 | ac_status=$? |
| 17643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17644 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17645 | { (case "(($ac_try" in |
| 17646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17647 | *) ac_try_echo=$ac_try;; |
| 17648 | esac |
| 17649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17650 | (eval "$ac_try") 2>&5 |
| 17651 | ac_status=$? |
| 17652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17653 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17654 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17655 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17656 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17657 | echo "$as_me: failed program was:" >&5 |
| 17658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17659 | |
| 17660 | ( exit $ac_status ) |
| 17661 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17662 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17663 | 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] | 17664 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17666 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17667 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17668 | ac_cpp='$CPP $CPPFLAGS' |
| 17669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17672 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17673 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17674 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17675 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17676 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17677 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17678 | cat >>confdefs.h <<\_ACEOF |
| 17679 | #define HAVE_PRINTF_A 1 |
| 17680 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17681 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17682 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17683 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17685 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17686 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17687 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17689 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17690 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17691 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17692 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17693 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17694 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17695 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17696 | cat >conftest.$ac_ext <<_ACEOF |
| 17697 | /* confdefs.h. */ |
| 17698 | _ACEOF |
| 17699 | cat confdefs.h >>conftest.$ac_ext |
| 17700 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17701 | /* end confdefs.h. */ |
| 17702 | #include <stdlib.h> |
| 17703 | int |
| 17704 | main () |
| 17705 | { |
| 17706 | srand48(0);lrand48();drand48(); |
| 17707 | ; |
| 17708 | return 0; |
| 17709 | } |
| 17710 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17711 | rm -f conftest.$ac_objext |
| 17712 | if { (ac_try="$ac_compile" |
| 17713 | case "(($ac_try" in |
| 17714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17715 | *) ac_try_echo=$ac_try;; |
| 17716 | esac |
| 17717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17718 | (eval "$ac_compile") 2>conftest.er1 |
| 17719 | ac_status=$? |
| 17720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17721 | rm -f conftest.er1 |
| 17722 | cat conftest.err >&5 |
| 17723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17724 | (exit $ac_status); } && |
| 17725 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 17726 | { (case "(($ac_try" in |
| 17727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17728 | *) ac_try_echo=$ac_try;; |
| 17729 | esac |
| 17730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17731 | (eval "$ac_try") 2>&5 |
| 17732 | ac_status=$? |
| 17733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17734 | (exit $ac_status); }; } && |
| 17735 | { ac_try='test -s conftest.$ac_objext' |
| 17736 | { (case "(($ac_try" in |
| 17737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17738 | *) ac_try_echo=$ac_try;; |
| 17739 | esac |
| 17740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17741 | (eval "$ac_try") 2>&5 |
| 17742 | ac_status=$? |
| 17743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17744 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17745 | ac_cv_func_rand48=yes |
| 17746 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17747 | echo "$as_me: failed program was:" >&5 |
| 17748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17749 | |
| 17750 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17751 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17754 | ac_ext=c |
| 17755 | ac_cpp='$CPP $CPPFLAGS' |
| 17756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17759 | |
| 17760 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17761 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 17762 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17763 | |
| 17764 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 17765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17766 | cat >>confdefs.h <<\_ACEOF |
| 17767 | #define HAVE_RAND48 1 |
| 17768 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17769 | |
| 17770 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 17771 | |
| 17772 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17773 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 17774 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 17775 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 17776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17777 | else |
| 17778 | cat >conftest.$ac_ext <<_ACEOF |
| 17779 | /* confdefs.h. */ |
| 17780 | _ACEOF |
| 17781 | cat confdefs.h >>conftest.$ac_ext |
| 17782 | cat >>conftest.$ac_ext <<_ACEOF |
| 17783 | /* end confdefs.h. */ |
| 17784 | $ac_includes_default |
| 17785 | int |
| 17786 | main () |
| 17787 | { |
| 17788 | #ifndef strerror_s |
| 17789 | char *p = (char *) strerror_s; |
| 17790 | return !p; |
| 17791 | #endif |
| 17792 | |
| 17793 | ; |
| 17794 | return 0; |
| 17795 | } |
| 17796 | _ACEOF |
| 17797 | rm -f conftest.$ac_objext |
| 17798 | if { (ac_try="$ac_compile" |
| 17799 | case "(($ac_try" in |
| 17800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17801 | *) ac_try_echo=$ac_try;; |
| 17802 | esac |
| 17803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17804 | (eval "$ac_compile") 2>conftest.er1 |
| 17805 | ac_status=$? |
| 17806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17807 | rm -f conftest.er1 |
| 17808 | cat conftest.err >&5 |
| 17809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17810 | (exit $ac_status); } && |
| 17811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17812 | { (case "(($ac_try" in |
| 17813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17814 | *) ac_try_echo=$ac_try;; |
| 17815 | esac |
| 17816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17817 | (eval "$ac_try") 2>&5 |
| 17818 | ac_status=$? |
| 17819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17820 | (exit $ac_status); }; } && |
| 17821 | { ac_try='test -s conftest.$ac_objext' |
| 17822 | { (case "(($ac_try" in |
| 17823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17824 | *) ac_try_echo=$ac_try;; |
| 17825 | esac |
| 17826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17827 | (eval "$ac_try") 2>&5 |
| 17828 | ac_status=$? |
| 17829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17830 | (exit $ac_status); }; }; then |
| 17831 | ac_cv_have_decl_strerror_s=yes |
| 17832 | else |
| 17833 | echo "$as_me: failed program was:" >&5 |
| 17834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17835 | |
| 17836 | ac_cv_have_decl_strerror_s=no |
| 17837 | fi |
| 17838 | |
| 17839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17840 | fi |
| 17841 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 17842 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 17843 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 17844 | |
| 17845 | cat >>confdefs.h <<_ACEOF |
| 17846 | #define HAVE_DECL_STRERROR_S 1 |
| 17847 | _ACEOF |
| 17848 | |
| 17849 | |
| 17850 | else |
| 17851 | cat >>confdefs.h <<_ACEOF |
| 17852 | #define HAVE_DECL_STRERROR_S 0 |
| 17853 | _ACEOF |
| 17854 | |
| 17855 | |
| 17856 | fi |
| 17857 | |
| 17858 | |
| 17859 | |
NAKAMURA Takumi | 1f6832a | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 17860 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 17861 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 17862 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 17863 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 17864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17865 | else |
| 17866 | ac_check_lib_save_LIBS=$LIBS |
| 17867 | LIBS="-lgcc $LIBS" |
| 17868 | cat >conftest.$ac_ext <<_ACEOF |
| 17869 | /* confdefs.h. */ |
| 17870 | _ACEOF |
| 17871 | cat confdefs.h >>conftest.$ac_ext |
| 17872 | cat >>conftest.$ac_ext <<_ACEOF |
| 17873 | /* end confdefs.h. */ |
| 17874 | |
| 17875 | /* Override any GCC internal prototype to avoid an error. |
| 17876 | Use char because int might match the return type of a GCC |
| 17877 | builtin and then its argument prototype would still apply. */ |
| 17878 | #ifdef __cplusplus |
| 17879 | extern "C" |
| 17880 | #endif |
| 17881 | char _alloca (); |
| 17882 | int |
| 17883 | main () |
| 17884 | { |
| 17885 | return _alloca (); |
| 17886 | ; |
| 17887 | return 0; |
| 17888 | } |
| 17889 | _ACEOF |
| 17890 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17891 | if { (ac_try="$ac_link" |
| 17892 | case "(($ac_try" in |
| 17893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17894 | *) ac_try_echo=$ac_try;; |
| 17895 | esac |
| 17896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17897 | (eval "$ac_link") 2>conftest.er1 |
| 17898 | ac_status=$? |
| 17899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17900 | rm -f conftest.er1 |
| 17901 | cat conftest.err >&5 |
| 17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17903 | (exit $ac_status); } && |
| 17904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17905 | { (case "(($ac_try" in |
| 17906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17907 | *) ac_try_echo=$ac_try;; |
| 17908 | esac |
| 17909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17910 | (eval "$ac_try") 2>&5 |
| 17911 | ac_status=$? |
| 17912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17913 | (exit $ac_status); }; } && |
| 17914 | { ac_try='test -s conftest$ac_exeext' |
| 17915 | { (case "(($ac_try" in |
| 17916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17917 | *) ac_try_echo=$ac_try;; |
| 17918 | esac |
| 17919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17920 | (eval "$ac_try") 2>&5 |
| 17921 | ac_status=$? |
| 17922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17923 | (exit $ac_status); }; }; then |
| 17924 | ac_cv_lib_gcc__alloca=yes |
| 17925 | else |
| 17926 | echo "$as_me: failed program was:" >&5 |
| 17927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17928 | |
| 17929 | ac_cv_lib_gcc__alloca=no |
| 17930 | fi |
| 17931 | |
| 17932 | rm -f core conftest.err conftest.$ac_objext \ |
| 17933 | conftest$ac_exeext conftest.$ac_ext |
| 17934 | LIBS=$ac_check_lib_save_LIBS |
| 17935 | fi |
| 17936 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 17937 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 17938 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 17939 | |
| 17940 | cat >>confdefs.h <<\_ACEOF |
| 17941 | #define HAVE__ALLOCA 1 |
| 17942 | _ACEOF |
| 17943 | |
| 17944 | fi |
| 17945 | |
| 17946 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 17947 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 17948 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 17949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17950 | else |
| 17951 | ac_check_lib_save_LIBS=$LIBS |
| 17952 | LIBS="-lgcc $LIBS" |
| 17953 | cat >conftest.$ac_ext <<_ACEOF |
| 17954 | /* confdefs.h. */ |
| 17955 | _ACEOF |
| 17956 | cat confdefs.h >>conftest.$ac_ext |
| 17957 | cat >>conftest.$ac_ext <<_ACEOF |
| 17958 | /* end confdefs.h. */ |
| 17959 | |
| 17960 | /* Override any GCC internal prototype to avoid an error. |
| 17961 | Use char because int might match the return type of a GCC |
| 17962 | builtin and then its argument prototype would still apply. */ |
| 17963 | #ifdef __cplusplus |
| 17964 | extern "C" |
| 17965 | #endif |
| 17966 | char __alloca (); |
| 17967 | int |
| 17968 | main () |
| 17969 | { |
| 17970 | return __alloca (); |
| 17971 | ; |
| 17972 | return 0; |
| 17973 | } |
| 17974 | _ACEOF |
| 17975 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17976 | if { (ac_try="$ac_link" |
| 17977 | case "(($ac_try" in |
| 17978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17979 | *) ac_try_echo=$ac_try;; |
| 17980 | esac |
| 17981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17982 | (eval "$ac_link") 2>conftest.er1 |
| 17983 | ac_status=$? |
| 17984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17985 | rm -f conftest.er1 |
| 17986 | cat conftest.err >&5 |
| 17987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17988 | (exit $ac_status); } && |
| 17989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17990 | { (case "(($ac_try" in |
| 17991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17992 | *) ac_try_echo=$ac_try;; |
| 17993 | esac |
| 17994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17995 | (eval "$ac_try") 2>&5 |
| 17996 | ac_status=$? |
| 17997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17998 | (exit $ac_status); }; } && |
| 17999 | { ac_try='test -s conftest$ac_exeext' |
| 18000 | { (case "(($ac_try" in |
| 18001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18002 | *) ac_try_echo=$ac_try;; |
| 18003 | esac |
| 18004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18005 | (eval "$ac_try") 2>&5 |
| 18006 | ac_status=$? |
| 18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18008 | (exit $ac_status); }; }; then |
| 18009 | ac_cv_lib_gcc___alloca=yes |
| 18010 | else |
| 18011 | echo "$as_me: failed program was:" >&5 |
| 18012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18013 | |
| 18014 | ac_cv_lib_gcc___alloca=no |
| 18015 | fi |
| 18016 | |
| 18017 | rm -f core conftest.err conftest.$ac_objext \ |
| 18018 | conftest$ac_exeext conftest.$ac_ext |
| 18019 | LIBS=$ac_check_lib_save_LIBS |
| 18020 | fi |
| 18021 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 18022 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 18023 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 18024 | |
| 18025 | cat >>confdefs.h <<\_ACEOF |
| 18026 | #define HAVE___ALLOCA 1 |
| 18027 | _ACEOF |
| 18028 | |
| 18029 | fi |
| 18030 | |
| 18031 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 18032 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 18033 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 18034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18035 | else |
| 18036 | ac_check_lib_save_LIBS=$LIBS |
| 18037 | LIBS="-lgcc $LIBS" |
| 18038 | cat >conftest.$ac_ext <<_ACEOF |
| 18039 | /* confdefs.h. */ |
| 18040 | _ACEOF |
| 18041 | cat confdefs.h >>conftest.$ac_ext |
| 18042 | cat >>conftest.$ac_ext <<_ACEOF |
| 18043 | /* end confdefs.h. */ |
| 18044 | |
| 18045 | /* Override any GCC internal prototype to avoid an error. |
| 18046 | Use char because int might match the return type of a GCC |
| 18047 | builtin and then its argument prototype would still apply. */ |
| 18048 | #ifdef __cplusplus |
| 18049 | extern "C" |
| 18050 | #endif |
| 18051 | char __chkstk (); |
| 18052 | int |
| 18053 | main () |
| 18054 | { |
| 18055 | return __chkstk (); |
| 18056 | ; |
| 18057 | return 0; |
| 18058 | } |
| 18059 | _ACEOF |
| 18060 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18061 | if { (ac_try="$ac_link" |
| 18062 | case "(($ac_try" in |
| 18063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18064 | *) ac_try_echo=$ac_try;; |
| 18065 | esac |
| 18066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18067 | (eval "$ac_link") 2>conftest.er1 |
| 18068 | ac_status=$? |
| 18069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18070 | rm -f conftest.er1 |
| 18071 | cat conftest.err >&5 |
| 18072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18073 | (exit $ac_status); } && |
| 18074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18075 | { (case "(($ac_try" in |
| 18076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18077 | *) ac_try_echo=$ac_try;; |
| 18078 | esac |
| 18079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18080 | (eval "$ac_try") 2>&5 |
| 18081 | ac_status=$? |
| 18082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18083 | (exit $ac_status); }; } && |
| 18084 | { ac_try='test -s conftest$ac_exeext' |
| 18085 | { (case "(($ac_try" in |
| 18086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18087 | *) ac_try_echo=$ac_try;; |
| 18088 | esac |
| 18089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18090 | (eval "$ac_try") 2>&5 |
| 18091 | ac_status=$? |
| 18092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18093 | (exit $ac_status); }; }; then |
| 18094 | ac_cv_lib_gcc___chkstk=yes |
| 18095 | else |
| 18096 | echo "$as_me: failed program was:" >&5 |
| 18097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18098 | |
| 18099 | ac_cv_lib_gcc___chkstk=no |
| 18100 | fi |
| 18101 | |
| 18102 | rm -f core conftest.err conftest.$ac_objext \ |
| 18103 | conftest$ac_exeext conftest.$ac_ext |
| 18104 | LIBS=$ac_check_lib_save_LIBS |
| 18105 | fi |
| 18106 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 18107 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 18108 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 18109 | |
| 18110 | cat >>confdefs.h <<\_ACEOF |
| 18111 | #define HAVE___CHKSTK 1 |
| 18112 | _ACEOF |
| 18113 | |
| 18114 | fi |
| 18115 | |
| 18116 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 18117 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 18118 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 18119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18120 | else |
| 18121 | ac_check_lib_save_LIBS=$LIBS |
| 18122 | LIBS="-lgcc $LIBS" |
| 18123 | cat >conftest.$ac_ext <<_ACEOF |
| 18124 | /* confdefs.h. */ |
| 18125 | _ACEOF |
| 18126 | cat confdefs.h >>conftest.$ac_ext |
| 18127 | cat >>conftest.$ac_ext <<_ACEOF |
| 18128 | /* end confdefs.h. */ |
| 18129 | |
| 18130 | /* Override any GCC internal prototype to avoid an error. |
| 18131 | Use char because int might match the return type of a GCC |
| 18132 | builtin and then its argument prototype would still apply. */ |
| 18133 | #ifdef __cplusplus |
| 18134 | extern "C" |
| 18135 | #endif |
| 18136 | char ___chkstk (); |
| 18137 | int |
| 18138 | main () |
| 18139 | { |
| 18140 | return ___chkstk (); |
| 18141 | ; |
| 18142 | return 0; |
| 18143 | } |
| 18144 | _ACEOF |
| 18145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18146 | if { (ac_try="$ac_link" |
| 18147 | case "(($ac_try" in |
| 18148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18149 | *) ac_try_echo=$ac_try;; |
| 18150 | esac |
| 18151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18152 | (eval "$ac_link") 2>conftest.er1 |
| 18153 | ac_status=$? |
| 18154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18155 | rm -f conftest.er1 |
| 18156 | cat conftest.err >&5 |
| 18157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18158 | (exit $ac_status); } && |
| 18159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18160 | { (case "(($ac_try" in |
| 18161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18162 | *) ac_try_echo=$ac_try;; |
| 18163 | esac |
| 18164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18165 | (eval "$ac_try") 2>&5 |
| 18166 | ac_status=$? |
| 18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18168 | (exit $ac_status); }; } && |
| 18169 | { ac_try='test -s conftest$ac_exeext' |
| 18170 | { (case "(($ac_try" in |
| 18171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18172 | *) ac_try_echo=$ac_try;; |
| 18173 | esac |
| 18174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18175 | (eval "$ac_try") 2>&5 |
| 18176 | ac_status=$? |
| 18177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18178 | (exit $ac_status); }; }; then |
| 18179 | ac_cv_lib_gcc____chkstk=yes |
| 18180 | else |
| 18181 | echo "$as_me: failed program was:" >&5 |
| 18182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18183 | |
| 18184 | ac_cv_lib_gcc____chkstk=no |
| 18185 | fi |
| 18186 | |
| 18187 | rm -f core conftest.err conftest.$ac_objext \ |
| 18188 | conftest$ac_exeext conftest.$ac_ext |
| 18189 | LIBS=$ac_check_lib_save_LIBS |
| 18190 | fi |
| 18191 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 18192 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 18193 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 18194 | |
| 18195 | cat >>confdefs.h <<\_ACEOF |
| 18196 | #define HAVE____CHKSTK 1 |
| 18197 | _ACEOF |
| 18198 | |
| 18199 | fi |
| 18200 | |
| 18201 | |
| 18202 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 18203 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 18204 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 18205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18206 | else |
| 18207 | ac_check_lib_save_LIBS=$LIBS |
| 18208 | LIBS="-lgcc $LIBS" |
| 18209 | cat >conftest.$ac_ext <<_ACEOF |
| 18210 | /* confdefs.h. */ |
| 18211 | _ACEOF |
| 18212 | cat confdefs.h >>conftest.$ac_ext |
| 18213 | cat >>conftest.$ac_ext <<_ACEOF |
| 18214 | /* end confdefs.h. */ |
| 18215 | |
| 18216 | /* Override any GCC internal prototype to avoid an error. |
| 18217 | Use char because int might match the return type of a GCC |
| 18218 | builtin and then its argument prototype would still apply. */ |
| 18219 | #ifdef __cplusplus |
| 18220 | extern "C" |
| 18221 | #endif |
| 18222 | char __ashldi3 (); |
| 18223 | int |
| 18224 | main () |
| 18225 | { |
| 18226 | return __ashldi3 (); |
| 18227 | ; |
| 18228 | return 0; |
| 18229 | } |
| 18230 | _ACEOF |
| 18231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18232 | if { (ac_try="$ac_link" |
| 18233 | case "(($ac_try" in |
| 18234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18235 | *) ac_try_echo=$ac_try;; |
| 18236 | esac |
| 18237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18238 | (eval "$ac_link") 2>conftest.er1 |
| 18239 | ac_status=$? |
| 18240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18241 | rm -f conftest.er1 |
| 18242 | cat conftest.err >&5 |
| 18243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18244 | (exit $ac_status); } && |
| 18245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18246 | { (case "(($ac_try" in |
| 18247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18248 | *) ac_try_echo=$ac_try;; |
| 18249 | esac |
| 18250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18251 | (eval "$ac_try") 2>&5 |
| 18252 | ac_status=$? |
| 18253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18254 | (exit $ac_status); }; } && |
| 18255 | { ac_try='test -s conftest$ac_exeext' |
| 18256 | { (case "(($ac_try" in |
| 18257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18258 | *) ac_try_echo=$ac_try;; |
| 18259 | esac |
| 18260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18261 | (eval "$ac_try") 2>&5 |
| 18262 | ac_status=$? |
| 18263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18264 | (exit $ac_status); }; }; then |
| 18265 | ac_cv_lib_gcc___ashldi3=yes |
| 18266 | else |
| 18267 | echo "$as_me: failed program was:" >&5 |
| 18268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18269 | |
| 18270 | ac_cv_lib_gcc___ashldi3=no |
| 18271 | fi |
| 18272 | |
| 18273 | rm -f core conftest.err conftest.$ac_objext \ |
| 18274 | conftest$ac_exeext conftest.$ac_ext |
| 18275 | LIBS=$ac_check_lib_save_LIBS |
| 18276 | fi |
| 18277 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 18278 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 18279 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 18280 | |
| 18281 | cat >>confdefs.h <<\_ACEOF |
| 18282 | #define HAVE___ASHLDI3 1 |
| 18283 | _ACEOF |
| 18284 | |
| 18285 | fi |
| 18286 | |
| 18287 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 18288 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18289 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 18290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18291 | else |
| 18292 | ac_check_lib_save_LIBS=$LIBS |
| 18293 | LIBS="-lgcc $LIBS" |
| 18294 | cat >conftest.$ac_ext <<_ACEOF |
| 18295 | /* confdefs.h. */ |
| 18296 | _ACEOF |
| 18297 | cat confdefs.h >>conftest.$ac_ext |
| 18298 | cat >>conftest.$ac_ext <<_ACEOF |
| 18299 | /* end confdefs.h. */ |
| 18300 | |
| 18301 | /* Override any GCC internal prototype to avoid an error. |
| 18302 | Use char because int might match the return type of a GCC |
| 18303 | builtin and then its argument prototype would still apply. */ |
| 18304 | #ifdef __cplusplus |
| 18305 | extern "C" |
| 18306 | #endif |
| 18307 | char __ashrdi3 (); |
| 18308 | int |
| 18309 | main () |
| 18310 | { |
| 18311 | return __ashrdi3 (); |
| 18312 | ; |
| 18313 | return 0; |
| 18314 | } |
| 18315 | _ACEOF |
| 18316 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18317 | if { (ac_try="$ac_link" |
| 18318 | case "(($ac_try" in |
| 18319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18320 | *) ac_try_echo=$ac_try;; |
| 18321 | esac |
| 18322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18323 | (eval "$ac_link") 2>conftest.er1 |
| 18324 | ac_status=$? |
| 18325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18326 | rm -f conftest.er1 |
| 18327 | cat conftest.err >&5 |
| 18328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18329 | (exit $ac_status); } && |
| 18330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18331 | { (case "(($ac_try" in |
| 18332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18333 | *) ac_try_echo=$ac_try;; |
| 18334 | esac |
| 18335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18336 | (eval "$ac_try") 2>&5 |
| 18337 | ac_status=$? |
| 18338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18339 | (exit $ac_status); }; } && |
| 18340 | { ac_try='test -s conftest$ac_exeext' |
| 18341 | { (case "(($ac_try" in |
| 18342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18343 | *) ac_try_echo=$ac_try;; |
| 18344 | esac |
| 18345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18346 | (eval "$ac_try") 2>&5 |
| 18347 | ac_status=$? |
| 18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18349 | (exit $ac_status); }; }; then |
| 18350 | ac_cv_lib_gcc___ashrdi3=yes |
| 18351 | else |
| 18352 | echo "$as_me: failed program was:" >&5 |
| 18353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18354 | |
| 18355 | ac_cv_lib_gcc___ashrdi3=no |
| 18356 | fi |
| 18357 | |
| 18358 | rm -f core conftest.err conftest.$ac_objext \ |
| 18359 | conftest$ac_exeext conftest.$ac_ext |
| 18360 | LIBS=$ac_check_lib_save_LIBS |
| 18361 | fi |
| 18362 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 18363 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 18364 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 18365 | |
| 18366 | cat >>confdefs.h <<\_ACEOF |
| 18367 | #define HAVE___ASHRDI3 1 |
| 18368 | _ACEOF |
| 18369 | |
| 18370 | fi |
| 18371 | |
| 18372 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 18373 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 18374 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 18375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18376 | else |
| 18377 | ac_check_lib_save_LIBS=$LIBS |
| 18378 | LIBS="-lgcc $LIBS" |
| 18379 | cat >conftest.$ac_ext <<_ACEOF |
| 18380 | /* confdefs.h. */ |
| 18381 | _ACEOF |
| 18382 | cat confdefs.h >>conftest.$ac_ext |
| 18383 | cat >>conftest.$ac_ext <<_ACEOF |
| 18384 | /* end confdefs.h. */ |
| 18385 | |
| 18386 | /* Override any GCC internal prototype to avoid an error. |
| 18387 | Use char because int might match the return type of a GCC |
| 18388 | builtin and then its argument prototype would still apply. */ |
| 18389 | #ifdef __cplusplus |
| 18390 | extern "C" |
| 18391 | #endif |
| 18392 | char __divdi3 (); |
| 18393 | int |
| 18394 | main () |
| 18395 | { |
| 18396 | return __divdi3 (); |
| 18397 | ; |
| 18398 | return 0; |
| 18399 | } |
| 18400 | _ACEOF |
| 18401 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18402 | if { (ac_try="$ac_link" |
| 18403 | case "(($ac_try" in |
| 18404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18405 | *) ac_try_echo=$ac_try;; |
| 18406 | esac |
| 18407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18408 | (eval "$ac_link") 2>conftest.er1 |
| 18409 | ac_status=$? |
| 18410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18411 | rm -f conftest.er1 |
| 18412 | cat conftest.err >&5 |
| 18413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18414 | (exit $ac_status); } && |
| 18415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18416 | { (case "(($ac_try" in |
| 18417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18418 | *) ac_try_echo=$ac_try;; |
| 18419 | esac |
| 18420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18421 | (eval "$ac_try") 2>&5 |
| 18422 | ac_status=$? |
| 18423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18424 | (exit $ac_status); }; } && |
| 18425 | { ac_try='test -s conftest$ac_exeext' |
| 18426 | { (case "(($ac_try" in |
| 18427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18428 | *) ac_try_echo=$ac_try;; |
| 18429 | esac |
| 18430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18431 | (eval "$ac_try") 2>&5 |
| 18432 | ac_status=$? |
| 18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18434 | (exit $ac_status); }; }; then |
| 18435 | ac_cv_lib_gcc___divdi3=yes |
| 18436 | else |
| 18437 | echo "$as_me: failed program was:" >&5 |
| 18438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18439 | |
| 18440 | ac_cv_lib_gcc___divdi3=no |
| 18441 | fi |
| 18442 | |
| 18443 | rm -f core conftest.err conftest.$ac_objext \ |
| 18444 | conftest$ac_exeext conftest.$ac_ext |
| 18445 | LIBS=$ac_check_lib_save_LIBS |
| 18446 | fi |
| 18447 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 18448 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 18449 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 18450 | |
| 18451 | cat >>confdefs.h <<\_ACEOF |
| 18452 | #define HAVE___DIVDI3 1 |
| 18453 | _ACEOF |
| 18454 | |
| 18455 | fi |
| 18456 | |
| 18457 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 18458 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 18459 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 18460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18461 | else |
| 18462 | ac_check_lib_save_LIBS=$LIBS |
| 18463 | LIBS="-lgcc $LIBS" |
| 18464 | cat >conftest.$ac_ext <<_ACEOF |
| 18465 | /* confdefs.h. */ |
| 18466 | _ACEOF |
| 18467 | cat confdefs.h >>conftest.$ac_ext |
| 18468 | cat >>conftest.$ac_ext <<_ACEOF |
| 18469 | /* end confdefs.h. */ |
| 18470 | |
| 18471 | /* Override any GCC internal prototype to avoid an error. |
| 18472 | Use char because int might match the return type of a GCC |
| 18473 | builtin and then its argument prototype would still apply. */ |
| 18474 | #ifdef __cplusplus |
| 18475 | extern "C" |
| 18476 | #endif |
| 18477 | char __fixdfdi (); |
| 18478 | int |
| 18479 | main () |
| 18480 | { |
| 18481 | return __fixdfdi (); |
| 18482 | ; |
| 18483 | return 0; |
| 18484 | } |
| 18485 | _ACEOF |
| 18486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18487 | if { (ac_try="$ac_link" |
| 18488 | case "(($ac_try" in |
| 18489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18490 | *) ac_try_echo=$ac_try;; |
| 18491 | esac |
| 18492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18493 | (eval "$ac_link") 2>conftest.er1 |
| 18494 | ac_status=$? |
| 18495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18496 | rm -f conftest.er1 |
| 18497 | cat conftest.err >&5 |
| 18498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18499 | (exit $ac_status); } && |
| 18500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18501 | { (case "(($ac_try" in |
| 18502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18503 | *) ac_try_echo=$ac_try;; |
| 18504 | esac |
| 18505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18506 | (eval "$ac_try") 2>&5 |
| 18507 | ac_status=$? |
| 18508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18509 | (exit $ac_status); }; } && |
| 18510 | { ac_try='test -s conftest$ac_exeext' |
| 18511 | { (case "(($ac_try" in |
| 18512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18513 | *) ac_try_echo=$ac_try;; |
| 18514 | esac |
| 18515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18516 | (eval "$ac_try") 2>&5 |
| 18517 | ac_status=$? |
| 18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18519 | (exit $ac_status); }; }; then |
| 18520 | ac_cv_lib_gcc___fixdfdi=yes |
| 18521 | else |
| 18522 | echo "$as_me: failed program was:" >&5 |
| 18523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18524 | |
| 18525 | ac_cv_lib_gcc___fixdfdi=no |
| 18526 | fi |
| 18527 | |
| 18528 | rm -f core conftest.err conftest.$ac_objext \ |
| 18529 | conftest$ac_exeext conftest.$ac_ext |
| 18530 | LIBS=$ac_check_lib_save_LIBS |
| 18531 | fi |
| 18532 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 18533 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 18534 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 18535 | |
| 18536 | cat >>confdefs.h <<\_ACEOF |
| 18537 | #define HAVE___FIXDFDI 1 |
| 18538 | _ACEOF |
| 18539 | |
| 18540 | fi |
| 18541 | |
| 18542 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 18543 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 18544 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 18545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18546 | else |
| 18547 | ac_check_lib_save_LIBS=$LIBS |
| 18548 | LIBS="-lgcc $LIBS" |
| 18549 | cat >conftest.$ac_ext <<_ACEOF |
| 18550 | /* confdefs.h. */ |
| 18551 | _ACEOF |
| 18552 | cat confdefs.h >>conftest.$ac_ext |
| 18553 | cat >>conftest.$ac_ext <<_ACEOF |
| 18554 | /* end confdefs.h. */ |
| 18555 | |
| 18556 | /* Override any GCC internal prototype to avoid an error. |
| 18557 | Use char because int might match the return type of a GCC |
| 18558 | builtin and then its argument prototype would still apply. */ |
| 18559 | #ifdef __cplusplus |
| 18560 | extern "C" |
| 18561 | #endif |
| 18562 | char __fixsfdi (); |
| 18563 | int |
| 18564 | main () |
| 18565 | { |
| 18566 | return __fixsfdi (); |
| 18567 | ; |
| 18568 | return 0; |
| 18569 | } |
| 18570 | _ACEOF |
| 18571 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18572 | if { (ac_try="$ac_link" |
| 18573 | case "(($ac_try" in |
| 18574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18575 | *) ac_try_echo=$ac_try;; |
| 18576 | esac |
| 18577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18578 | (eval "$ac_link") 2>conftest.er1 |
| 18579 | ac_status=$? |
| 18580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18581 | rm -f conftest.er1 |
| 18582 | cat conftest.err >&5 |
| 18583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18584 | (exit $ac_status); } && |
| 18585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18586 | { (case "(($ac_try" in |
| 18587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18588 | *) ac_try_echo=$ac_try;; |
| 18589 | esac |
| 18590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18591 | (eval "$ac_try") 2>&5 |
| 18592 | ac_status=$? |
| 18593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18594 | (exit $ac_status); }; } && |
| 18595 | { ac_try='test -s conftest$ac_exeext' |
| 18596 | { (case "(($ac_try" in |
| 18597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18598 | *) ac_try_echo=$ac_try;; |
| 18599 | esac |
| 18600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18601 | (eval "$ac_try") 2>&5 |
| 18602 | ac_status=$? |
| 18603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18604 | (exit $ac_status); }; }; then |
| 18605 | ac_cv_lib_gcc___fixsfdi=yes |
| 18606 | else |
| 18607 | echo "$as_me: failed program was:" >&5 |
| 18608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18609 | |
| 18610 | ac_cv_lib_gcc___fixsfdi=no |
| 18611 | fi |
| 18612 | |
| 18613 | rm -f core conftest.err conftest.$ac_objext \ |
| 18614 | conftest$ac_exeext conftest.$ac_ext |
| 18615 | LIBS=$ac_check_lib_save_LIBS |
| 18616 | fi |
| 18617 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 18618 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 18619 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 18620 | |
| 18621 | cat >>confdefs.h <<\_ACEOF |
| 18622 | #define HAVE___FIXSFDI 1 |
| 18623 | _ACEOF |
| 18624 | |
| 18625 | fi |
| 18626 | |
| 18627 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 18628 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 18629 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 18630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18631 | else |
| 18632 | ac_check_lib_save_LIBS=$LIBS |
| 18633 | LIBS="-lgcc $LIBS" |
| 18634 | cat >conftest.$ac_ext <<_ACEOF |
| 18635 | /* confdefs.h. */ |
| 18636 | _ACEOF |
| 18637 | cat confdefs.h >>conftest.$ac_ext |
| 18638 | cat >>conftest.$ac_ext <<_ACEOF |
| 18639 | /* end confdefs.h. */ |
| 18640 | |
| 18641 | /* Override any GCC internal prototype to avoid an error. |
| 18642 | Use char because int might match the return type of a GCC |
| 18643 | builtin and then its argument prototype would still apply. */ |
| 18644 | #ifdef __cplusplus |
| 18645 | extern "C" |
| 18646 | #endif |
| 18647 | char __floatdidf (); |
| 18648 | int |
| 18649 | main () |
| 18650 | { |
| 18651 | return __floatdidf (); |
| 18652 | ; |
| 18653 | return 0; |
| 18654 | } |
| 18655 | _ACEOF |
| 18656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18657 | if { (ac_try="$ac_link" |
| 18658 | case "(($ac_try" in |
| 18659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18660 | *) ac_try_echo=$ac_try;; |
| 18661 | esac |
| 18662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18663 | (eval "$ac_link") 2>conftest.er1 |
| 18664 | ac_status=$? |
| 18665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18666 | rm -f conftest.er1 |
| 18667 | cat conftest.err >&5 |
| 18668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18669 | (exit $ac_status); } && |
| 18670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18671 | { (case "(($ac_try" in |
| 18672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18673 | *) ac_try_echo=$ac_try;; |
| 18674 | esac |
| 18675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18676 | (eval "$ac_try") 2>&5 |
| 18677 | ac_status=$? |
| 18678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18679 | (exit $ac_status); }; } && |
| 18680 | { ac_try='test -s conftest$ac_exeext' |
| 18681 | { (case "(($ac_try" in |
| 18682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18683 | *) ac_try_echo=$ac_try;; |
| 18684 | esac |
| 18685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18686 | (eval "$ac_try") 2>&5 |
| 18687 | ac_status=$? |
| 18688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18689 | (exit $ac_status); }; }; then |
| 18690 | ac_cv_lib_gcc___floatdidf=yes |
| 18691 | else |
| 18692 | echo "$as_me: failed program was:" >&5 |
| 18693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18694 | |
| 18695 | ac_cv_lib_gcc___floatdidf=no |
| 18696 | fi |
| 18697 | |
| 18698 | rm -f core conftest.err conftest.$ac_objext \ |
| 18699 | conftest$ac_exeext conftest.$ac_ext |
| 18700 | LIBS=$ac_check_lib_save_LIBS |
| 18701 | fi |
| 18702 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 18703 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 18704 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 18705 | |
| 18706 | cat >>confdefs.h <<\_ACEOF |
| 18707 | #define HAVE___FLOATDIDF 1 |
| 18708 | _ACEOF |
| 18709 | |
| 18710 | fi |
| 18711 | |
| 18712 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 18713 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18714 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 18715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18716 | else |
| 18717 | ac_check_lib_save_LIBS=$LIBS |
| 18718 | LIBS="-lgcc $LIBS" |
| 18719 | cat >conftest.$ac_ext <<_ACEOF |
| 18720 | /* confdefs.h. */ |
| 18721 | _ACEOF |
| 18722 | cat confdefs.h >>conftest.$ac_ext |
| 18723 | cat >>conftest.$ac_ext <<_ACEOF |
| 18724 | /* end confdefs.h. */ |
| 18725 | |
| 18726 | /* Override any GCC internal prototype to avoid an error. |
| 18727 | Use char because int might match the return type of a GCC |
| 18728 | builtin and then its argument prototype would still apply. */ |
| 18729 | #ifdef __cplusplus |
| 18730 | extern "C" |
| 18731 | #endif |
| 18732 | char __lshrdi3 (); |
| 18733 | int |
| 18734 | main () |
| 18735 | { |
| 18736 | return __lshrdi3 (); |
| 18737 | ; |
| 18738 | return 0; |
| 18739 | } |
| 18740 | _ACEOF |
| 18741 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18742 | if { (ac_try="$ac_link" |
| 18743 | case "(($ac_try" in |
| 18744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18745 | *) ac_try_echo=$ac_try;; |
| 18746 | esac |
| 18747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18748 | (eval "$ac_link") 2>conftest.er1 |
| 18749 | ac_status=$? |
| 18750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18751 | rm -f conftest.er1 |
| 18752 | cat conftest.err >&5 |
| 18753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18754 | (exit $ac_status); } && |
| 18755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18756 | { (case "(($ac_try" in |
| 18757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18758 | *) ac_try_echo=$ac_try;; |
| 18759 | esac |
| 18760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18761 | (eval "$ac_try") 2>&5 |
| 18762 | ac_status=$? |
| 18763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18764 | (exit $ac_status); }; } && |
| 18765 | { ac_try='test -s conftest$ac_exeext' |
| 18766 | { (case "(($ac_try" in |
| 18767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18768 | *) ac_try_echo=$ac_try;; |
| 18769 | esac |
| 18770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18771 | (eval "$ac_try") 2>&5 |
| 18772 | ac_status=$? |
| 18773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18774 | (exit $ac_status); }; }; then |
| 18775 | ac_cv_lib_gcc___lshrdi3=yes |
| 18776 | else |
| 18777 | echo "$as_me: failed program was:" >&5 |
| 18778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18779 | |
| 18780 | ac_cv_lib_gcc___lshrdi3=no |
| 18781 | fi |
| 18782 | |
| 18783 | rm -f core conftest.err conftest.$ac_objext \ |
| 18784 | conftest$ac_exeext conftest.$ac_ext |
| 18785 | LIBS=$ac_check_lib_save_LIBS |
| 18786 | fi |
| 18787 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 18788 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 18789 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 18790 | |
| 18791 | cat >>confdefs.h <<\_ACEOF |
| 18792 | #define HAVE___LSHRDI3 1 |
| 18793 | _ACEOF |
| 18794 | |
| 18795 | fi |
| 18796 | |
| 18797 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 18798 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 18799 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 18800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18801 | else |
| 18802 | ac_check_lib_save_LIBS=$LIBS |
| 18803 | LIBS="-lgcc $LIBS" |
| 18804 | cat >conftest.$ac_ext <<_ACEOF |
| 18805 | /* confdefs.h. */ |
| 18806 | _ACEOF |
| 18807 | cat confdefs.h >>conftest.$ac_ext |
| 18808 | cat >>conftest.$ac_ext <<_ACEOF |
| 18809 | /* end confdefs.h. */ |
| 18810 | |
| 18811 | /* Override any GCC internal prototype to avoid an error. |
| 18812 | Use char because int might match the return type of a GCC |
| 18813 | builtin and then its argument prototype would still apply. */ |
| 18814 | #ifdef __cplusplus |
| 18815 | extern "C" |
| 18816 | #endif |
| 18817 | char __moddi3 (); |
| 18818 | int |
| 18819 | main () |
| 18820 | { |
| 18821 | return __moddi3 (); |
| 18822 | ; |
| 18823 | return 0; |
| 18824 | } |
| 18825 | _ACEOF |
| 18826 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18827 | if { (ac_try="$ac_link" |
| 18828 | case "(($ac_try" in |
| 18829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18830 | *) ac_try_echo=$ac_try;; |
| 18831 | esac |
| 18832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18833 | (eval "$ac_link") 2>conftest.er1 |
| 18834 | ac_status=$? |
| 18835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18836 | rm -f conftest.er1 |
| 18837 | cat conftest.err >&5 |
| 18838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18839 | (exit $ac_status); } && |
| 18840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18841 | { (case "(($ac_try" in |
| 18842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18843 | *) ac_try_echo=$ac_try;; |
| 18844 | esac |
| 18845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18846 | (eval "$ac_try") 2>&5 |
| 18847 | ac_status=$? |
| 18848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18849 | (exit $ac_status); }; } && |
| 18850 | { ac_try='test -s conftest$ac_exeext' |
| 18851 | { (case "(($ac_try" in |
| 18852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18853 | *) ac_try_echo=$ac_try;; |
| 18854 | esac |
| 18855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18856 | (eval "$ac_try") 2>&5 |
| 18857 | ac_status=$? |
| 18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18859 | (exit $ac_status); }; }; then |
| 18860 | ac_cv_lib_gcc___moddi3=yes |
| 18861 | else |
| 18862 | echo "$as_me: failed program was:" >&5 |
| 18863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18864 | |
| 18865 | ac_cv_lib_gcc___moddi3=no |
| 18866 | fi |
| 18867 | |
| 18868 | rm -f core conftest.err conftest.$ac_objext \ |
| 18869 | conftest$ac_exeext conftest.$ac_ext |
| 18870 | LIBS=$ac_check_lib_save_LIBS |
| 18871 | fi |
| 18872 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 18873 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 18874 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 18875 | |
| 18876 | cat >>confdefs.h <<\_ACEOF |
| 18877 | #define HAVE___MODDI3 1 |
| 18878 | _ACEOF |
| 18879 | |
| 18880 | fi |
| 18881 | |
| 18882 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 18883 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 18884 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 18885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18886 | else |
| 18887 | ac_check_lib_save_LIBS=$LIBS |
| 18888 | LIBS="-lgcc $LIBS" |
| 18889 | cat >conftest.$ac_ext <<_ACEOF |
| 18890 | /* confdefs.h. */ |
| 18891 | _ACEOF |
| 18892 | cat confdefs.h >>conftest.$ac_ext |
| 18893 | cat >>conftest.$ac_ext <<_ACEOF |
| 18894 | /* end confdefs.h. */ |
| 18895 | |
| 18896 | /* Override any GCC internal prototype to avoid an error. |
| 18897 | Use char because int might match the return type of a GCC |
| 18898 | builtin and then its argument prototype would still apply. */ |
| 18899 | #ifdef __cplusplus |
| 18900 | extern "C" |
| 18901 | #endif |
| 18902 | char __udivdi3 (); |
| 18903 | int |
| 18904 | main () |
| 18905 | { |
| 18906 | return __udivdi3 (); |
| 18907 | ; |
| 18908 | return 0; |
| 18909 | } |
| 18910 | _ACEOF |
| 18911 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18912 | if { (ac_try="$ac_link" |
| 18913 | case "(($ac_try" in |
| 18914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18915 | *) ac_try_echo=$ac_try;; |
| 18916 | esac |
| 18917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18918 | (eval "$ac_link") 2>conftest.er1 |
| 18919 | ac_status=$? |
| 18920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18921 | rm -f conftest.er1 |
| 18922 | cat conftest.err >&5 |
| 18923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18924 | (exit $ac_status); } && |
| 18925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18926 | { (case "(($ac_try" in |
| 18927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18928 | *) ac_try_echo=$ac_try;; |
| 18929 | esac |
| 18930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18931 | (eval "$ac_try") 2>&5 |
| 18932 | ac_status=$? |
| 18933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18934 | (exit $ac_status); }; } && |
| 18935 | { ac_try='test -s conftest$ac_exeext' |
| 18936 | { (case "(($ac_try" in |
| 18937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18938 | *) ac_try_echo=$ac_try;; |
| 18939 | esac |
| 18940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18941 | (eval "$ac_try") 2>&5 |
| 18942 | ac_status=$? |
| 18943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18944 | (exit $ac_status); }; }; then |
| 18945 | ac_cv_lib_gcc___udivdi3=yes |
| 18946 | else |
| 18947 | echo "$as_me: failed program was:" >&5 |
| 18948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18949 | |
| 18950 | ac_cv_lib_gcc___udivdi3=no |
| 18951 | fi |
| 18952 | |
| 18953 | rm -f core conftest.err conftest.$ac_objext \ |
| 18954 | conftest$ac_exeext conftest.$ac_ext |
| 18955 | LIBS=$ac_check_lib_save_LIBS |
| 18956 | fi |
| 18957 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 18958 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 18959 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 18960 | |
| 18961 | cat >>confdefs.h <<\_ACEOF |
| 18962 | #define HAVE___UDIVDI3 1 |
| 18963 | _ACEOF |
| 18964 | |
| 18965 | fi |
| 18966 | |
| 18967 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 18968 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 18969 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 18970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18971 | else |
| 18972 | ac_check_lib_save_LIBS=$LIBS |
| 18973 | LIBS="-lgcc $LIBS" |
| 18974 | cat >conftest.$ac_ext <<_ACEOF |
| 18975 | /* confdefs.h. */ |
| 18976 | _ACEOF |
| 18977 | cat confdefs.h >>conftest.$ac_ext |
| 18978 | cat >>conftest.$ac_ext <<_ACEOF |
| 18979 | /* end confdefs.h. */ |
| 18980 | |
| 18981 | /* Override any GCC internal prototype to avoid an error. |
| 18982 | Use char because int might match the return type of a GCC |
| 18983 | builtin and then its argument prototype would still apply. */ |
| 18984 | #ifdef __cplusplus |
| 18985 | extern "C" |
| 18986 | #endif |
| 18987 | char __umoddi3 (); |
| 18988 | int |
| 18989 | main () |
| 18990 | { |
| 18991 | return __umoddi3 (); |
| 18992 | ; |
| 18993 | return 0; |
| 18994 | } |
| 18995 | _ACEOF |
| 18996 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18997 | if { (ac_try="$ac_link" |
| 18998 | case "(($ac_try" in |
| 18999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19000 | *) ac_try_echo=$ac_try;; |
| 19001 | esac |
| 19002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19003 | (eval "$ac_link") 2>conftest.er1 |
| 19004 | ac_status=$? |
| 19005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19006 | rm -f conftest.er1 |
| 19007 | cat conftest.err >&5 |
| 19008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19009 | (exit $ac_status); } && |
| 19010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19011 | { (case "(($ac_try" in |
| 19012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19013 | *) ac_try_echo=$ac_try;; |
| 19014 | esac |
| 19015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19016 | (eval "$ac_try") 2>&5 |
| 19017 | ac_status=$? |
| 19018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19019 | (exit $ac_status); }; } && |
| 19020 | { ac_try='test -s conftest$ac_exeext' |
| 19021 | { (case "(($ac_try" in |
| 19022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19023 | *) ac_try_echo=$ac_try;; |
| 19024 | esac |
| 19025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19026 | (eval "$ac_try") 2>&5 |
| 19027 | ac_status=$? |
| 19028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19029 | (exit $ac_status); }; }; then |
| 19030 | ac_cv_lib_gcc___umoddi3=yes |
| 19031 | else |
| 19032 | echo "$as_me: failed program was:" >&5 |
| 19033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19034 | |
| 19035 | ac_cv_lib_gcc___umoddi3=no |
| 19036 | fi |
| 19037 | |
| 19038 | rm -f core conftest.err conftest.$ac_objext \ |
| 19039 | conftest$ac_exeext conftest.$ac_ext |
| 19040 | LIBS=$ac_check_lib_save_LIBS |
| 19041 | fi |
| 19042 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 19043 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 19044 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 19045 | |
| 19046 | cat >>confdefs.h <<\_ACEOF |
| 19047 | #define HAVE___UMODDI3 1 |
| 19048 | _ACEOF |
| 19049 | |
| 19050 | fi |
| 19051 | |
| 19052 | |
| 19053 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 19054 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 19055 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 19056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19057 | else |
| 19058 | ac_check_lib_save_LIBS=$LIBS |
| 19059 | LIBS="-lgcc $LIBS" |
| 19060 | cat >conftest.$ac_ext <<_ACEOF |
| 19061 | /* confdefs.h. */ |
| 19062 | _ACEOF |
| 19063 | cat confdefs.h >>conftest.$ac_ext |
| 19064 | cat >>conftest.$ac_ext <<_ACEOF |
| 19065 | /* end confdefs.h. */ |
| 19066 | |
| 19067 | /* Override any GCC internal prototype to avoid an error. |
| 19068 | Use char because int might match the return type of a GCC |
| 19069 | builtin and then its argument prototype would still apply. */ |
| 19070 | #ifdef __cplusplus |
| 19071 | extern "C" |
| 19072 | #endif |
| 19073 | char __main (); |
| 19074 | int |
| 19075 | main () |
| 19076 | { |
| 19077 | return __main (); |
| 19078 | ; |
| 19079 | return 0; |
| 19080 | } |
| 19081 | _ACEOF |
| 19082 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19083 | if { (ac_try="$ac_link" |
| 19084 | case "(($ac_try" in |
| 19085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19086 | *) ac_try_echo=$ac_try;; |
| 19087 | esac |
| 19088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19089 | (eval "$ac_link") 2>conftest.er1 |
| 19090 | ac_status=$? |
| 19091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19092 | rm -f conftest.er1 |
| 19093 | cat conftest.err >&5 |
| 19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19095 | (exit $ac_status); } && |
| 19096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19097 | { (case "(($ac_try" in |
| 19098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19099 | *) ac_try_echo=$ac_try;; |
| 19100 | esac |
| 19101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19102 | (eval "$ac_try") 2>&5 |
| 19103 | ac_status=$? |
| 19104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19105 | (exit $ac_status); }; } && |
| 19106 | { ac_try='test -s conftest$ac_exeext' |
| 19107 | { (case "(($ac_try" in |
| 19108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19109 | *) ac_try_echo=$ac_try;; |
| 19110 | esac |
| 19111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19112 | (eval "$ac_try") 2>&5 |
| 19113 | ac_status=$? |
| 19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19115 | (exit $ac_status); }; }; then |
| 19116 | ac_cv_lib_gcc___main=yes |
| 19117 | else |
| 19118 | echo "$as_me: failed program was:" >&5 |
| 19119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19120 | |
| 19121 | ac_cv_lib_gcc___main=no |
| 19122 | fi |
| 19123 | |
| 19124 | rm -f core conftest.err conftest.$ac_objext \ |
| 19125 | conftest$ac_exeext conftest.$ac_ext |
| 19126 | LIBS=$ac_check_lib_save_LIBS |
| 19127 | fi |
| 19128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 19129 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 19130 | if test $ac_cv_lib_gcc___main = yes; then |
| 19131 | |
| 19132 | cat >>confdefs.h <<\_ACEOF |
| 19133 | #define HAVE___MAIN 1 |
| 19134 | _ACEOF |
| 19135 | |
| 19136 | fi |
| 19137 | |
| 19138 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 19139 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 19140 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 19141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19142 | else |
| 19143 | ac_check_lib_save_LIBS=$LIBS |
| 19144 | LIBS="-lgcc $LIBS" |
| 19145 | cat >conftest.$ac_ext <<_ACEOF |
| 19146 | /* confdefs.h. */ |
| 19147 | _ACEOF |
| 19148 | cat confdefs.h >>conftest.$ac_ext |
| 19149 | cat >>conftest.$ac_ext <<_ACEOF |
| 19150 | /* end confdefs.h. */ |
| 19151 | |
| 19152 | /* Override any GCC internal prototype to avoid an error. |
| 19153 | Use char because int might match the return type of a GCC |
| 19154 | builtin and then its argument prototype would still apply. */ |
| 19155 | #ifdef __cplusplus |
| 19156 | extern "C" |
| 19157 | #endif |
| 19158 | char __cmpdi2 (); |
| 19159 | int |
| 19160 | main () |
| 19161 | { |
| 19162 | return __cmpdi2 (); |
| 19163 | ; |
| 19164 | return 0; |
| 19165 | } |
| 19166 | _ACEOF |
| 19167 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19168 | if { (ac_try="$ac_link" |
| 19169 | case "(($ac_try" in |
| 19170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19171 | *) ac_try_echo=$ac_try;; |
| 19172 | esac |
| 19173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19174 | (eval "$ac_link") 2>conftest.er1 |
| 19175 | ac_status=$? |
| 19176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19177 | rm -f conftest.er1 |
| 19178 | cat conftest.err >&5 |
| 19179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19180 | (exit $ac_status); } && |
| 19181 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19182 | { (case "(($ac_try" in |
| 19183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19184 | *) ac_try_echo=$ac_try;; |
| 19185 | esac |
| 19186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19187 | (eval "$ac_try") 2>&5 |
| 19188 | ac_status=$? |
| 19189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19190 | (exit $ac_status); }; } && |
| 19191 | { ac_try='test -s conftest$ac_exeext' |
| 19192 | { (case "(($ac_try" in |
| 19193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19194 | *) ac_try_echo=$ac_try;; |
| 19195 | esac |
| 19196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19197 | (eval "$ac_try") 2>&5 |
| 19198 | ac_status=$? |
| 19199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19200 | (exit $ac_status); }; }; then |
| 19201 | ac_cv_lib_gcc___cmpdi2=yes |
| 19202 | else |
| 19203 | echo "$as_me: failed program was:" >&5 |
| 19204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19205 | |
| 19206 | ac_cv_lib_gcc___cmpdi2=no |
| 19207 | fi |
| 19208 | |
| 19209 | rm -f core conftest.err conftest.$ac_objext \ |
| 19210 | conftest$ac_exeext conftest.$ac_ext |
| 19211 | LIBS=$ac_check_lib_save_LIBS |
| 19212 | fi |
| 19213 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 19214 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 19215 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 19216 | |
| 19217 | cat >>confdefs.h <<\_ACEOF |
| 19218 | #define HAVE___CMPDI2 1 |
| 19219 | _ACEOF |
| 19220 | |
| 19221 | fi |
| 19222 | |
| 19223 | fi |
| 19224 | |
NAKAMURA Takumi | 6073a05 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19225 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19226 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 19227 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 19228 | cat >conftest.$ac_ext <<_ACEOF |
| 19229 | #include <windows.h> |
| 19230 | #include <imagehlp.h> |
| 19231 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 19232 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 19233 | _ACEOF |
| 19234 | rm -f conftest.$ac_objext |
| 19235 | if { (ac_try="$ac_compile" |
| 19236 | case "(($ac_try" in |
| 19237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19238 | *) ac_try_echo=$ac_try;; |
| 19239 | esac |
| 19240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19241 | (eval "$ac_compile") 2>conftest.er1 |
| 19242 | ac_status=$? |
| 19243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19244 | rm -f conftest.er1 |
| 19245 | cat conftest.err >&5 |
| 19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19247 | (exit $ac_status); } && |
| 19248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19249 | { (case "(($ac_try" in |
| 19250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19251 | *) ac_try_echo=$ac_try;; |
| 19252 | esac |
| 19253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19254 | (eval "$ac_try") 2>&5 |
| 19255 | ac_status=$? |
| 19256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19257 | (exit $ac_status); }; } && |
| 19258 | { ac_try='test -s conftest.$ac_objext' |
| 19259 | { (case "(($ac_try" in |
| 19260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19261 | *) ac_try_echo=$ac_try;; |
| 19262 | esac |
| 19263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19264 | (eval "$ac_try") 2>&5 |
| 19265 | ac_status=$? |
| 19266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19267 | (exit $ac_status); }; }; then |
| 19268 | |
| 19269 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19270 | echo "${ECHO_T}yes" >&6; } |
| 19271 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 19272 | |
| 19273 | else |
| 19274 | echo "$as_me: failed program was:" >&5 |
| 19275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19276 | |
| 19277 | |
| 19278 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19279 | echo "${ECHO_T}no" >&6; } |
| 19280 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 19281 | |
| 19282 | fi |
| 19283 | |
| 19284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19285 | |
| 19286 | cat >>confdefs.h <<_ACEOF |
| 19287 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 19288 | _ACEOF |
| 19289 | |
| 19290 | fi |
| 19291 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19292 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19293 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 19294 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 19295 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 19296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19297 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19298 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19299 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19300 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19301 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19302 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19303 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19304 | cat >conftest.$ac_ext <<_ACEOF |
| 19305 | /* confdefs.h. */ |
| 19306 | _ACEOF |
| 19307 | cat confdefs.h >>conftest.$ac_ext |
| 19308 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19309 | /* end confdefs.h. */ |
| 19310 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19311 | int |
| 19312 | main () |
| 19313 | { |
| 19314 | float f; isnan(f); |
| 19315 | ; |
| 19316 | return 0; |
| 19317 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19318 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19319 | rm -f conftest.$ac_objext |
| 19320 | if { (ac_try="$ac_compile" |
| 19321 | case "(($ac_try" in |
| 19322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19323 | *) ac_try_echo=$ac_try;; |
| 19324 | esac |
| 19325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19326 | (eval "$ac_compile") 2>conftest.er1 |
| 19327 | ac_status=$? |
| 19328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19329 | rm -f conftest.er1 |
| 19330 | cat conftest.err >&5 |
| 19331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19332 | (exit $ac_status); } && |
| 19333 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19334 | { (case "(($ac_try" in |
| 19335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19336 | *) ac_try_echo=$ac_try;; |
| 19337 | esac |
| 19338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19339 | (eval "$ac_try") 2>&5 |
| 19340 | ac_status=$? |
| 19341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19342 | (exit $ac_status); }; } && |
| 19343 | { ac_try='test -s conftest.$ac_objext' |
| 19344 | { (case "(($ac_try" in |
| 19345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19346 | *) ac_try_echo=$ac_try;; |
| 19347 | esac |
| 19348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19349 | (eval "$ac_try") 2>&5 |
| 19350 | ac_status=$? |
| 19351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19352 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19353 | ac_cv_func_isnan_in_math_h=yes |
| 19354 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19355 | echo "$as_me: failed program was:" >&5 |
| 19356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19357 | |
| 19358 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19360 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19362 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19363 | ac_cpp='$CPP $CPPFLAGS' |
| 19364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19367 | |
| 19368 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19369 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19370 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19371 | |
| 19372 | |
| 19373 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19374 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19375 | cat >>confdefs.h <<\_ACEOF |
| 19376 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19377 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19378 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19379 | fi |
| 19380 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19381 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19382 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19383 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19385 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19386 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19387 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19388 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19389 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19390 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19391 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19392 | cat >conftest.$ac_ext <<_ACEOF |
| 19393 | /* confdefs.h. */ |
| 19394 | _ACEOF |
| 19395 | cat confdefs.h >>conftest.$ac_ext |
| 19396 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19397 | /* end confdefs.h. */ |
| 19398 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19399 | int |
| 19400 | main () |
| 19401 | { |
| 19402 | float f; isnan(f); |
| 19403 | ; |
| 19404 | return 0; |
| 19405 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19406 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19407 | rm -f conftest.$ac_objext |
| 19408 | if { (ac_try="$ac_compile" |
| 19409 | case "(($ac_try" in |
| 19410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19411 | *) ac_try_echo=$ac_try;; |
| 19412 | esac |
| 19413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19414 | (eval "$ac_compile") 2>conftest.er1 |
| 19415 | ac_status=$? |
| 19416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19417 | rm -f conftest.er1 |
| 19418 | cat conftest.err >&5 |
| 19419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19420 | (exit $ac_status); } && |
| 19421 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19422 | { (case "(($ac_try" in |
| 19423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19424 | *) ac_try_echo=$ac_try;; |
| 19425 | esac |
| 19426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19427 | (eval "$ac_try") 2>&5 |
| 19428 | ac_status=$? |
| 19429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19430 | (exit $ac_status); }; } && |
| 19431 | { ac_try='test -s conftest.$ac_objext' |
| 19432 | { (case "(($ac_try" in |
| 19433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19434 | *) ac_try_echo=$ac_try;; |
| 19435 | esac |
| 19436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19437 | (eval "$ac_try") 2>&5 |
| 19438 | ac_status=$? |
| 19439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19440 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19441 | ac_cv_func_isnan_in_cmath=yes |
| 19442 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19443 | echo "$as_me: failed program was:" >&5 |
| 19444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19445 | |
| 19446 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19447 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19450 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19451 | ac_cpp='$CPP $CPPFLAGS' |
| 19452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19455 | |
| 19456 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19457 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19458 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19459 | |
| 19460 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19461 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19462 | cat >>confdefs.h <<\_ACEOF |
| 19463 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19464 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19465 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19466 | fi |
| 19467 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19468 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19469 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19470 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19472 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19473 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19474 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19475 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19476 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19477 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19478 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19479 | cat >conftest.$ac_ext <<_ACEOF |
| 19480 | /* confdefs.h. */ |
| 19481 | _ACEOF |
| 19482 | cat confdefs.h >>conftest.$ac_ext |
| 19483 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19484 | /* end confdefs.h. */ |
| 19485 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19486 | int |
| 19487 | main () |
| 19488 | { |
| 19489 | float f; std::isnan(f); |
| 19490 | ; |
| 19491 | return 0; |
| 19492 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19493 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19494 | rm -f conftest.$ac_objext |
| 19495 | if { (ac_try="$ac_compile" |
| 19496 | case "(($ac_try" in |
| 19497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19498 | *) ac_try_echo=$ac_try;; |
| 19499 | esac |
| 19500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19501 | (eval "$ac_compile") 2>conftest.er1 |
| 19502 | ac_status=$? |
| 19503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19504 | rm -f conftest.er1 |
| 19505 | cat conftest.err >&5 |
| 19506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19507 | (exit $ac_status); } && |
| 19508 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19509 | { (case "(($ac_try" in |
| 19510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19511 | *) ac_try_echo=$ac_try;; |
| 19512 | esac |
| 19513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19514 | (eval "$ac_try") 2>&5 |
| 19515 | ac_status=$? |
| 19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19517 | (exit $ac_status); }; } && |
| 19518 | { ac_try='test -s conftest.$ac_objext' |
| 19519 | { (case "(($ac_try" in |
| 19520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19521 | *) ac_try_echo=$ac_try;; |
| 19522 | esac |
| 19523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19524 | (eval "$ac_try") 2>&5 |
| 19525 | ac_status=$? |
| 19526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19527 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19528 | ac_cv_func_std_isnan_in_cmath=yes |
| 19529 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19530 | echo "$as_me: failed program was:" >&5 |
| 19531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19532 | |
| 19533 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19534 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19537 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19538 | ac_cpp='$CPP $CPPFLAGS' |
| 19539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19542 | |
| 19543 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19544 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19545 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19546 | |
| 19547 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19548 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19549 | cat >>confdefs.h <<\_ACEOF |
| 19550 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19551 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19552 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19553 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19554 | |
| 19555 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19556 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19557 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19558 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19560 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19561 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19562 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19563 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19564 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19565 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19566 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19567 | cat >conftest.$ac_ext <<_ACEOF |
| 19568 | /* confdefs.h. */ |
| 19569 | _ACEOF |
| 19570 | cat confdefs.h >>conftest.$ac_ext |
| 19571 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19572 | /* end confdefs.h. */ |
| 19573 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19574 | int |
| 19575 | main () |
| 19576 | { |
| 19577 | float f; isinf(f); |
| 19578 | ; |
| 19579 | return 0; |
| 19580 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19581 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19582 | rm -f conftest.$ac_objext |
| 19583 | if { (ac_try="$ac_compile" |
| 19584 | case "(($ac_try" in |
| 19585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19586 | *) ac_try_echo=$ac_try;; |
| 19587 | esac |
| 19588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19589 | (eval "$ac_compile") 2>conftest.er1 |
| 19590 | ac_status=$? |
| 19591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19592 | rm -f conftest.er1 |
| 19593 | cat conftest.err >&5 |
| 19594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19595 | (exit $ac_status); } && |
| 19596 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19597 | { (case "(($ac_try" in |
| 19598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19599 | *) ac_try_echo=$ac_try;; |
| 19600 | esac |
| 19601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19602 | (eval "$ac_try") 2>&5 |
| 19603 | ac_status=$? |
| 19604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19605 | (exit $ac_status); }; } && |
| 19606 | { ac_try='test -s conftest.$ac_objext' |
| 19607 | { (case "(($ac_try" in |
| 19608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19609 | *) ac_try_echo=$ac_try;; |
| 19610 | esac |
| 19611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19612 | (eval "$ac_try") 2>&5 |
| 19613 | ac_status=$? |
| 19614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19615 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19616 | ac_cv_func_isinf_in_math_h=yes |
| 19617 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19618 | echo "$as_me: failed program was:" >&5 |
| 19619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19620 | |
| 19621 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19622 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19625 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19626 | ac_cpp='$CPP $CPPFLAGS' |
| 19627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19630 | |
| 19631 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19632 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19633 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19634 | |
| 19635 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19636 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19637 | cat >>confdefs.h <<\_ACEOF |
| 19638 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19639 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19640 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19641 | fi |
| 19642 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19643 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19644 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19645 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19647 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19648 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19649 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19650 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19651 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19652 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19653 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19654 | cat >conftest.$ac_ext <<_ACEOF |
| 19655 | /* confdefs.h. */ |
| 19656 | _ACEOF |
| 19657 | cat confdefs.h >>conftest.$ac_ext |
| 19658 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19659 | /* end confdefs.h. */ |
| 19660 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19661 | int |
| 19662 | main () |
| 19663 | { |
| 19664 | float f; isinf(f); |
| 19665 | ; |
| 19666 | return 0; |
| 19667 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19668 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19669 | rm -f conftest.$ac_objext |
| 19670 | if { (ac_try="$ac_compile" |
| 19671 | case "(($ac_try" in |
| 19672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19673 | *) ac_try_echo=$ac_try;; |
| 19674 | esac |
| 19675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19676 | (eval "$ac_compile") 2>conftest.er1 |
| 19677 | ac_status=$? |
| 19678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19679 | rm -f conftest.er1 |
| 19680 | cat conftest.err >&5 |
| 19681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19682 | (exit $ac_status); } && |
| 19683 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19684 | { (case "(($ac_try" in |
| 19685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19686 | *) ac_try_echo=$ac_try;; |
| 19687 | esac |
| 19688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19689 | (eval "$ac_try") 2>&5 |
| 19690 | ac_status=$? |
| 19691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19692 | (exit $ac_status); }; } && |
| 19693 | { ac_try='test -s conftest.$ac_objext' |
| 19694 | { (case "(($ac_try" in |
| 19695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19696 | *) ac_try_echo=$ac_try;; |
| 19697 | esac |
| 19698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19699 | (eval "$ac_try") 2>&5 |
| 19700 | ac_status=$? |
| 19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19702 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19703 | ac_cv_func_isinf_in_cmath=yes |
| 19704 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19705 | echo "$as_me: failed program was:" >&5 |
| 19706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19707 | |
| 19708 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19709 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19710 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19712 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19713 | ac_cpp='$CPP $CPPFLAGS' |
| 19714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19717 | |
| 19718 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19719 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19720 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19721 | |
| 19722 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19724 | cat >>confdefs.h <<\_ACEOF |
| 19725 | #define HAVE_ISINF_IN_CMATH 1 |
| 19726 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19727 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19728 | fi |
| 19729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19730 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19731 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19732 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19734 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19735 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19736 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19737 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19738 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19739 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19740 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19741 | cat >conftest.$ac_ext <<_ACEOF |
| 19742 | /* confdefs.h. */ |
| 19743 | _ACEOF |
| 19744 | cat confdefs.h >>conftest.$ac_ext |
| 19745 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19746 | /* end confdefs.h. */ |
| 19747 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19748 | int |
| 19749 | main () |
| 19750 | { |
| 19751 | float f; std::isinf(f)} |
| 19752 | ; |
| 19753 | return 0; |
| 19754 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19755 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19756 | rm -f conftest.$ac_objext |
| 19757 | if { (ac_try="$ac_compile" |
| 19758 | case "(($ac_try" in |
| 19759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19760 | *) ac_try_echo=$ac_try;; |
| 19761 | esac |
| 19762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19763 | (eval "$ac_compile") 2>conftest.er1 |
| 19764 | ac_status=$? |
| 19765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19766 | rm -f conftest.er1 |
| 19767 | cat conftest.err >&5 |
| 19768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19769 | (exit $ac_status); } && |
| 19770 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19771 | { (case "(($ac_try" in |
| 19772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19773 | *) ac_try_echo=$ac_try;; |
| 19774 | esac |
| 19775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19776 | (eval "$ac_try") 2>&5 |
| 19777 | ac_status=$? |
| 19778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19779 | (exit $ac_status); }; } && |
| 19780 | { ac_try='test -s conftest.$ac_objext' |
| 19781 | { (case "(($ac_try" in |
| 19782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19783 | *) ac_try_echo=$ac_try;; |
| 19784 | esac |
| 19785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19786 | (eval "$ac_try") 2>&5 |
| 19787 | ac_status=$? |
| 19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19789 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19790 | ac_cv_func_std_isinf_in_cmath=yes |
| 19791 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19792 | echo "$as_me: failed program was:" >&5 |
| 19793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19794 | |
| 19795 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19796 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19799 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19800 | ac_cpp='$CPP $CPPFLAGS' |
| 19801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19804 | |
| 19805 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19806 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19807 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19808 | |
| 19809 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19810 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19811 | cat >>confdefs.h <<\_ACEOF |
| 19812 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19813 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19814 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19815 | fi |
| 19816 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19817 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19818 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19819 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19821 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19822 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19823 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19824 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19825 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19826 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19827 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19828 | cat >conftest.$ac_ext <<_ACEOF |
| 19829 | /* confdefs.h. */ |
| 19830 | _ACEOF |
| 19831 | cat confdefs.h >>conftest.$ac_ext |
| 19832 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19833 | /* end confdefs.h. */ |
| 19834 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19835 | int |
| 19836 | main () |
| 19837 | { |
| 19838 | float f; finite(f); |
| 19839 | ; |
| 19840 | return 0; |
| 19841 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19842 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19843 | rm -f conftest.$ac_objext |
| 19844 | if { (ac_try="$ac_compile" |
| 19845 | case "(($ac_try" in |
| 19846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19847 | *) ac_try_echo=$ac_try;; |
| 19848 | esac |
| 19849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19850 | (eval "$ac_compile") 2>conftest.er1 |
| 19851 | ac_status=$? |
| 19852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19853 | rm -f conftest.er1 |
| 19854 | cat conftest.err >&5 |
| 19855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19856 | (exit $ac_status); } && |
| 19857 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19858 | { (case "(($ac_try" in |
| 19859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19860 | *) ac_try_echo=$ac_try;; |
| 19861 | esac |
| 19862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19863 | (eval "$ac_try") 2>&5 |
| 19864 | ac_status=$? |
| 19865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19866 | (exit $ac_status); }; } && |
| 19867 | { ac_try='test -s conftest.$ac_objext' |
| 19868 | { (case "(($ac_try" in |
| 19869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19870 | *) ac_try_echo=$ac_try;; |
| 19871 | esac |
| 19872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19873 | (eval "$ac_try") 2>&5 |
| 19874 | ac_status=$? |
| 19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19876 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19877 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19878 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19879 | echo "$as_me: failed program was:" >&5 |
| 19880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19881 | |
| 19882 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19883 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19886 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19887 | ac_cpp='$CPP $CPPFLAGS' |
| 19888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19891 | |
| 19892 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19893 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19894 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19895 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19896 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19897 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19898 | cat >>confdefs.h <<\_ACEOF |
| 19899 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19900 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19901 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19902 | fi |
| 19903 | |
| 19904 | |
| 19905 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19906 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19907 | |
| 19908 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19909 | for ac_header in stdlib.h unistd.h |
| 19910 | do |
| 19911 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19913 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19914 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19917 | fi |
| 19918 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19919 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19920 | echo "${ECHO_T}$ac_res" >&6; } |
| 19921 | else |
| 19922 | # Is the header compilable? |
| 19923 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19924 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19925 | cat >conftest.$ac_ext <<_ACEOF |
| 19926 | /* confdefs.h. */ |
| 19927 | _ACEOF |
| 19928 | cat confdefs.h >>conftest.$ac_ext |
| 19929 | cat >>conftest.$ac_ext <<_ACEOF |
| 19930 | /* end confdefs.h. */ |
| 19931 | $ac_includes_default |
| 19932 | #include <$ac_header> |
| 19933 | _ACEOF |
| 19934 | rm -f conftest.$ac_objext |
| 19935 | if { (ac_try="$ac_compile" |
| 19936 | case "(($ac_try" in |
| 19937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19938 | *) ac_try_echo=$ac_try;; |
| 19939 | esac |
| 19940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19941 | (eval "$ac_compile") 2>conftest.er1 |
| 19942 | ac_status=$? |
| 19943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19944 | rm -f conftest.er1 |
| 19945 | cat conftest.err >&5 |
| 19946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19947 | (exit $ac_status); } && |
| 19948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19949 | { (case "(($ac_try" in |
| 19950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19951 | *) ac_try_echo=$ac_try;; |
| 19952 | esac |
| 19953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19954 | (eval "$ac_try") 2>&5 |
| 19955 | ac_status=$? |
| 19956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19957 | (exit $ac_status); }; } && |
| 19958 | { ac_try='test -s conftest.$ac_objext' |
| 19959 | { (case "(($ac_try" in |
| 19960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19961 | *) ac_try_echo=$ac_try;; |
| 19962 | esac |
| 19963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19964 | (eval "$ac_try") 2>&5 |
| 19965 | ac_status=$? |
| 19966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19967 | (exit $ac_status); }; }; then |
| 19968 | ac_header_compiler=yes |
| 19969 | else |
| 19970 | echo "$as_me: failed program was:" >&5 |
| 19971 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19972 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19973 | ac_header_compiler=no |
| 19974 | fi |
| 19975 | |
| 19976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19977 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19978 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19979 | |
| 19980 | # Is the header present? |
| 19981 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19982 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19983 | cat >conftest.$ac_ext <<_ACEOF |
| 19984 | /* confdefs.h. */ |
| 19985 | _ACEOF |
| 19986 | cat confdefs.h >>conftest.$ac_ext |
| 19987 | cat >>conftest.$ac_ext <<_ACEOF |
| 19988 | /* end confdefs.h. */ |
| 19989 | #include <$ac_header> |
| 19990 | _ACEOF |
| 19991 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19992 | case "(($ac_try" in |
| 19993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19994 | *) ac_try_echo=$ac_try;; |
| 19995 | esac |
| 19996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19997 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19998 | ac_status=$? |
| 19999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20000 | rm -f conftest.er1 |
| 20001 | cat conftest.err >&5 |
| 20002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20003 | (exit $ac_status); } >/dev/null; then |
| 20004 | if test -s conftest.err; then |
| 20005 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20006 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20007 | else |
| 20008 | ac_cpp_err= |
| 20009 | fi |
| 20010 | else |
| 20011 | ac_cpp_err=yes |
| 20012 | fi |
| 20013 | if test -z "$ac_cpp_err"; then |
| 20014 | ac_header_preproc=yes |
| 20015 | else |
| 20016 | echo "$as_me: failed program was:" >&5 |
| 20017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20018 | |
| 20019 | ac_header_preproc=no |
| 20020 | fi |
| 20021 | |
| 20022 | rm -f conftest.err conftest.$ac_ext |
| 20023 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20024 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20025 | |
| 20026 | # So? What about this header? |
| 20027 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20028 | yes:no: ) |
| 20029 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20030 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20031 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20032 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20033 | ac_header_preproc=yes |
| 20034 | ;; |
| 20035 | no:yes:* ) |
| 20036 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20037 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20038 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20039 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20040 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20041 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20042 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20043 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20044 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20045 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20046 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20047 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20048 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 20049 | ## ------------------------------------ ## |
| 20050 | ## Report this to http://llvm.org/bugs/ ## |
| 20051 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20052 | _ASBOX |
| 20053 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 20054 | ;; |
| 20055 | esac |
| 20056 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20058 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20060 | else |
| 20061 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20062 | fi |
| 20063 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20064 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20065 | echo "${ECHO_T}$ac_res" >&6; } |
| 20066 | |
| 20067 | fi |
| 20068 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20069 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20070 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20071 | _ACEOF |
| 20072 | |
| 20073 | fi |
| 20074 | |
| 20075 | done |
| 20076 | |
| 20077 | |
| 20078 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20079 | do |
| 20080 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20081 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20082 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20083 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20085 | else |
| 20086 | cat >conftest.$ac_ext <<_ACEOF |
| 20087 | /* confdefs.h. */ |
| 20088 | _ACEOF |
| 20089 | cat confdefs.h >>conftest.$ac_ext |
| 20090 | cat >>conftest.$ac_ext <<_ACEOF |
| 20091 | /* end confdefs.h. */ |
| 20092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20094 | #define $ac_func innocuous_$ac_func |
| 20095 | |
| 20096 | /* System header to define __stub macros and hopefully few prototypes, |
| 20097 | which can conflict with char $ac_func (); below. |
| 20098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20099 | <limits.h> exists even on freestanding compilers. */ |
| 20100 | |
| 20101 | #ifdef __STDC__ |
| 20102 | # include <limits.h> |
| 20103 | #else |
| 20104 | # include <assert.h> |
| 20105 | #endif |
| 20106 | |
| 20107 | #undef $ac_func |
| 20108 | |
| 20109 | /* Override any GCC internal prototype to avoid an error. |
| 20110 | Use char because int might match the return type of a GCC |
| 20111 | builtin and then its argument prototype would still apply. */ |
| 20112 | #ifdef __cplusplus |
| 20113 | extern "C" |
| 20114 | #endif |
| 20115 | char $ac_func (); |
| 20116 | /* The GNU C library defines this for functions which it implements |
| 20117 | to always fail with ENOSYS. Some functions are actually named |
| 20118 | something starting with __ and the normal name is an alias. */ |
| 20119 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20120 | choke me |
| 20121 | #endif |
| 20122 | |
| 20123 | int |
| 20124 | main () |
| 20125 | { |
| 20126 | return $ac_func (); |
| 20127 | ; |
| 20128 | return 0; |
| 20129 | } |
| 20130 | _ACEOF |
| 20131 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20132 | if { (ac_try="$ac_link" |
| 20133 | case "(($ac_try" in |
| 20134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20135 | *) ac_try_echo=$ac_try;; |
| 20136 | esac |
| 20137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20138 | (eval "$ac_link") 2>conftest.er1 |
| 20139 | ac_status=$? |
| 20140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20141 | rm -f conftest.er1 |
| 20142 | cat conftest.err >&5 |
| 20143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20144 | (exit $ac_status); } && |
| 20145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20146 | { (case "(($ac_try" in |
| 20147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20148 | *) ac_try_echo=$ac_try;; |
| 20149 | esac |
| 20150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20151 | (eval "$ac_try") 2>&5 |
| 20152 | ac_status=$? |
| 20153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20154 | (exit $ac_status); }; } && |
| 20155 | { ac_try='test -s conftest$ac_exeext' |
| 20156 | { (case "(($ac_try" in |
| 20157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20158 | *) ac_try_echo=$ac_try;; |
| 20159 | esac |
| 20160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20161 | (eval "$ac_try") 2>&5 |
| 20162 | ac_status=$? |
| 20163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20164 | (exit $ac_status); }; }; then |
| 20165 | eval "$as_ac_var=yes" |
| 20166 | else |
| 20167 | echo "$as_me: failed program was:" >&5 |
| 20168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20169 | |
| 20170 | eval "$as_ac_var=no" |
| 20171 | fi |
| 20172 | |
| 20173 | rm -f core conftest.err conftest.$ac_objext \ |
| 20174 | conftest$ac_exeext conftest.$ac_ext |
| 20175 | fi |
| 20176 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20177 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20178 | echo "${ECHO_T}$ac_res" >&6; } |
| 20179 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20180 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20181 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20182 | _ACEOF |
| 20183 | |
| 20184 | fi |
| 20185 | done |
| 20186 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20187 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 20188 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 20189 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 20190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20191 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20192 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20193 | ac_cv_func_mmap_fixed_mapped=no |
| 20194 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20195 | cat >conftest.$ac_ext <<_ACEOF |
| 20196 | /* confdefs.h. */ |
| 20197 | _ACEOF |
| 20198 | cat confdefs.h >>conftest.$ac_ext |
| 20199 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20200 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20201 | $ac_includes_default |
| 20202 | /* malloc might have been renamed as rpl_malloc. */ |
| 20203 | #undef malloc |
| 20204 | |
| 20205 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 20206 | Here is a matrix of mmap possibilities: |
| 20207 | mmap private not fixed |
| 20208 | mmap private fixed at somewhere currently unmapped |
| 20209 | mmap private fixed at somewhere already mapped |
| 20210 | mmap shared not fixed |
| 20211 | mmap shared fixed at somewhere currently unmapped |
| 20212 | mmap shared fixed at somewhere already mapped |
| 20213 | For private mappings, we should verify that changes cannot be read() |
| 20214 | back from the file, nor mmap's back from the file at a different |
| 20215 | address. (There have been systems where private was not correctly |
| 20216 | implemented like the infamous i386 svr4.0, and systems where the |
| 20217 | VM page cache was not coherent with the file system buffer cache |
| 20218 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 20219 | For shared mappings, we should conversely verify that changes get |
| 20220 | propagated back to all the places they're supposed to be. |
| 20221 | |
| 20222 | Grep wants private fixed already mapped. |
| 20223 | The main things grep needs to know about mmap are: |
| 20224 | * does it exist and is it safe to write into the mmap'd area |
| 20225 | * how to use it (BSD variants) */ |
| 20226 | |
| 20227 | #include <fcntl.h> |
| 20228 | #include <sys/mman.h> |
| 20229 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20230 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20231 | char *malloc (); |
| 20232 | #endif |
| 20233 | |
| 20234 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20235 | #if !HAVE_GETPAGESIZE |
| 20236 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20237 | # if !HAVE_SYS_PARAM_H |
| 20238 | # define HAVE_SYS_PARAM_H 1 |
| 20239 | # endif |
| 20240 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20241 | # ifdef _SC_PAGESIZE |
| 20242 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20243 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20244 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20245 | # include <sys/param.h> |
| 20246 | # ifdef EXEC_PAGESIZE |
| 20247 | # define getpagesize() EXEC_PAGESIZE |
| 20248 | # else /* no EXEC_PAGESIZE */ |
| 20249 | # ifdef NBPG |
| 20250 | # define getpagesize() NBPG * CLSIZE |
| 20251 | # ifndef CLSIZE |
| 20252 | # define CLSIZE 1 |
| 20253 | # endif /* no CLSIZE */ |
| 20254 | # else /* no NBPG */ |
| 20255 | # ifdef NBPC |
| 20256 | # define getpagesize() NBPC |
| 20257 | # else /* no NBPC */ |
| 20258 | # ifdef PAGESIZE |
| 20259 | # define getpagesize() PAGESIZE |
| 20260 | # endif /* PAGESIZE */ |
| 20261 | # endif /* no NBPC */ |
| 20262 | # endif /* no NBPG */ |
| 20263 | # endif /* no EXEC_PAGESIZE */ |
| 20264 | # else /* no HAVE_SYS_PARAM_H */ |
| 20265 | # define getpagesize() 8192 /* punt totally */ |
| 20266 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20267 | # endif /* no _SC_PAGESIZE */ |
| 20268 | |
| 20269 | #endif /* no HAVE_GETPAGESIZE */ |
| 20270 | |
| 20271 | int |
| 20272 | main () |
| 20273 | { |
| 20274 | char *data, *data2, *data3; |
| 20275 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20276 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20277 | |
| 20278 | pagesize = getpagesize (); |
| 20279 | |
| 20280 | /* First, make a file with some known garbage in it. */ |
| 20281 | data = (char *) malloc (pagesize); |
| 20282 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20283 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20284 | for (i = 0; i < pagesize; ++i) |
| 20285 | *(data + i) = rand (); |
| 20286 | umask (0); |
| 20287 | fd = creat ("conftest.mmap", 0600); |
| 20288 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20289 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20290 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20291 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20292 | close (fd); |
| 20293 | |
| 20294 | /* Next, try to mmap the file at a fixed address which already has |
| 20295 | something else allocated at it. If we can, also make sure that |
| 20296 | we see the same garbage. */ |
| 20297 | fd = open ("conftest.mmap", O_RDWR); |
| 20298 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20299 | return 1; |
| 20300 | data2 = (char *) malloc (2 * pagesize); |
| 20301 | if (!data2) |
| 20302 | return 1; |
| 20303 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20304 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20305 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20306 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20307 | for (i = 0; i < pagesize; ++i) |
| 20308 | if (*(data + i) != *(data2 + i)) |
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 | |
| 20311 | /* Finally, make sure that changes to the mapped area do not |
| 20312 | percolate back to the file as seen by read(). (This is a bug on |
| 20313 | some variants of i386 svr4.0.) */ |
| 20314 | for (i = 0; i < pagesize; ++i) |
| 20315 | *(data2 + i) = *(data2 + i) + 1; |
| 20316 | data3 = (char *) malloc (pagesize); |
| 20317 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20318 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20319 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20320 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20321 | for (i = 0; i < pagesize; ++i) |
| 20322 | if (*(data + i) != *(data3 + i)) |
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 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20325 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20326 | } |
| 20327 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20328 | rm -f conftest$ac_exeext |
| 20329 | if { (ac_try="$ac_link" |
| 20330 | case "(($ac_try" in |
| 20331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20332 | *) ac_try_echo=$ac_try;; |
| 20333 | esac |
| 20334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20335 | (eval "$ac_link") 2>&5 |
| 20336 | ac_status=$? |
| 20337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20338 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20339 | { (case "(($ac_try" in |
| 20340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20341 | *) ac_try_echo=$ac_try;; |
| 20342 | esac |
| 20343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20344 | (eval "$ac_try") 2>&5 |
| 20345 | ac_status=$? |
| 20346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20347 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20348 | ac_cv_func_mmap_fixed_mapped=yes |
| 20349 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20350 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20351 | echo "$as_me: failed program was:" >&5 |
| 20352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20353 | |
| 20354 | ( exit $ac_status ) |
| 20355 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20356 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20357 | 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] | 20358 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20359 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20360 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20361 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20362 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20363 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20364 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20365 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20366 | cat >>confdefs.h <<\_ACEOF |
| 20367 | #define HAVE_MMAP 1 |
| 20368 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20369 | |
| 20370 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20371 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20373 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20374 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20375 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20377 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20378 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20379 | ac_cpp='$CPP $CPPFLAGS' |
| 20380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20383 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20384 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20385 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20386 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20387 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20388 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20389 | /* confdefs.h. */ |
| 20390 | _ACEOF |
| 20391 | cat confdefs.h >>conftest.$ac_ext |
| 20392 | cat >>conftest.$ac_ext <<_ACEOF |
| 20393 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20394 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20395 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20396 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20397 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20398 | |
| 20399 | int |
| 20400 | main () |
| 20401 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20402 | |
| 20403 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20404 | fd = creat ("foo",0777); |
| 20405 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20406 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20407 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20408 | ; |
| 20409 | return 0; |
| 20410 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20411 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20412 | rm -f conftest$ac_exeext |
| 20413 | if { (ac_try="$ac_link" |
| 20414 | case "(($ac_try" in |
| 20415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20416 | *) ac_try_echo=$ac_try;; |
| 20417 | esac |
| 20418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20419 | (eval "$ac_link") 2>&5 |
| 20420 | ac_status=$? |
| 20421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20422 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20423 | { (case "(($ac_try" in |
| 20424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20425 | *) ac_try_echo=$ac_try;; |
| 20426 | esac |
| 20427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20428 | (eval "$ac_try") 2>&5 |
| 20429 | ac_status=$? |
| 20430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20431 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20432 | ac_cv_func_mmap_file=yes |
| 20433 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20434 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20435 | echo "$as_me: failed program was:" >&5 |
| 20436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20437 | |
| 20438 | ( exit $ac_status ) |
| 20439 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20440 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20441 | 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] | 20442 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20443 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20444 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20445 | ac_ext=c |
| 20446 | ac_cpp='$CPP $CPPFLAGS' |
| 20447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20450 | |
| 20451 | |
| 20452 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20453 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20454 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20455 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20456 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20457 | cat >>confdefs.h <<\_ACEOF |
| 20458 | #define HAVE_MMAP_FILE |
| 20459 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20460 | |
| 20461 | MMAP_FILE=yes |
| 20462 | |
| 20463 | fi |
| 20464 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20465 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20466 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20467 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20469 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20470 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20471 | ac_cv_need_dev_zero_for_mmap=yes |
| 20472 | else |
| 20473 | ac_cv_need_dev_zero_for_mmap=no |
| 20474 | fi |
| 20475 | |
| 20476 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20477 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20478 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20479 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20481 | cat >>confdefs.h <<\_ACEOF |
| 20482 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20483 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20484 | |
| 20485 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20486 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20487 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20488 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20489 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20490 | 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] | 20491 | fi |
| 20492 | if test "$ac_cv_func_mmap_file" = "no" |
| 20493 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20494 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20495 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20496 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20497 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20498 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20499 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20500 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20501 | ac_ext=cpp |
| 20502 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20503 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20504 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20505 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20506 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20507 | cat >conftest.$ac_ext <<_ACEOF |
| 20508 | /* confdefs.h. */ |
| 20509 | _ACEOF |
| 20510 | cat confdefs.h >>conftest.$ac_ext |
| 20511 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20512 | /* end confdefs.h. */ |
| 20513 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20514 | volatile unsigned long val = 1; |
| 20515 | __sync_synchronize(); |
| 20516 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20517 | __sync_add_and_fetch(&val, 1); |
| 20518 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20519 | return 0; |
| 20520 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20521 | |
| 20522 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20523 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20524 | if { (ac_try="$ac_link" |
| 20525 | case "(($ac_try" in |
| 20526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20527 | *) ac_try_echo=$ac_try;; |
| 20528 | esac |
| 20529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20530 | (eval "$ac_link") 2>conftest.er1 |
| 20531 | ac_status=$? |
| 20532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20533 | rm -f conftest.er1 |
| 20534 | cat conftest.err >&5 |
| 20535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20536 | (exit $ac_status); } && |
| 20537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20538 | { (case "(($ac_try" in |
| 20539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20540 | *) ac_try_echo=$ac_try;; |
| 20541 | esac |
| 20542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20543 | (eval "$ac_try") 2>&5 |
| 20544 | ac_status=$? |
| 20545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20546 | (exit $ac_status); }; } && |
| 20547 | { ac_try='test -s conftest$ac_exeext' |
| 20548 | { (case "(($ac_try" in |
| 20549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20550 | *) ac_try_echo=$ac_try;; |
| 20551 | esac |
| 20552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20553 | (eval "$ac_try") 2>&5 |
| 20554 | ac_status=$? |
| 20555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20556 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20557 | ac_ext=c |
| 20558 | ac_cpp='$CPP $CPPFLAGS' |
| 20559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20562 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20563 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20564 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20566 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20567 | #define LLVM_HAS_ATOMICS 1 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20568 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20569 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20570 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20571 | echo "$as_me: failed program was:" >&5 |
| 20572 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20573 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20574 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20575 | echo "${ECHO_T}no" >&6; } |
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 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20578 | #define LLVM_HAS_ATOMICS 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20579 | _ACEOF |
| 20580 | |
| 20581 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20582 | 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] | 20583 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20584 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20585 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20586 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20587 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20588 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20589 | 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] | 20590 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20591 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20592 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20594 | else |
| 20595 | ac_ext=c |
| 20596 | ac_cpp='$CPP $CPPFLAGS' |
| 20597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20600 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20601 | cat >conftest.$ac_ext <<_ACEOF |
| 20602 | /* confdefs.h. */ |
| 20603 | _ACEOF |
| 20604 | cat confdefs.h >>conftest.$ac_ext |
| 20605 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20606 | /* end confdefs.h. */ |
| 20607 | #ifndef __x86_64__ |
| 20608 | error: Not x86-64 even if uname says so! |
| 20609 | #endif |
| 20610 | |
| 20611 | int |
| 20612 | main () |
| 20613 | { |
| 20614 | |
| 20615 | ; |
| 20616 | return 0; |
| 20617 | } |
| 20618 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20619 | rm -f conftest.$ac_objext |
| 20620 | if { (ac_try="$ac_compile" |
| 20621 | case "(($ac_try" in |
| 20622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20623 | *) ac_try_echo=$ac_try;; |
| 20624 | esac |
| 20625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20626 | (eval "$ac_compile") 2>conftest.er1 |
| 20627 | ac_status=$? |
| 20628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20629 | rm -f conftest.er1 |
| 20630 | cat conftest.err >&5 |
| 20631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20632 | (exit $ac_status); } && |
| 20633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20634 | { (case "(($ac_try" in |
| 20635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20636 | *) ac_try_echo=$ac_try;; |
| 20637 | esac |
| 20638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20639 | (eval "$ac_try") 2>&5 |
| 20640 | ac_status=$? |
| 20641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20642 | (exit $ac_status); }; } && |
| 20643 | { ac_try='test -s conftest.$ac_objext' |
| 20644 | { (case "(($ac_try" in |
| 20645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20646 | *) ac_try_echo=$ac_try;; |
| 20647 | esac |
| 20648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20649 | (eval "$ac_try") 2>&5 |
| 20650 | ac_status=$? |
| 20651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20652 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20653 | llvm_cv_linux_mixed=no |
| 20654 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20655 | echo "$as_me: failed program was:" >&5 |
| 20656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20657 | |
| 20658 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20659 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20660 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20662 | ac_ext=c |
| 20663 | ac_cpp='$CPP $CPPFLAGS' |
| 20664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20667 | |
| 20668 | |
| 20669 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20670 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20671 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20672 | |
| 20673 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20674 | llvm_cv_target_arch="x86" |
| 20675 | ARCH="x86" |
| 20676 | fi |
| 20677 | fi |
| 20678 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20679 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20680 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20681 | do |
| 20682 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20683 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20684 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20685 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20687 | else |
| 20688 | cat >conftest.$ac_ext <<_ACEOF |
| 20689 | /* confdefs.h. */ |
| 20690 | _ACEOF |
| 20691 | cat confdefs.h >>conftest.$ac_ext |
| 20692 | cat >>conftest.$ac_ext <<_ACEOF |
| 20693 | /* end confdefs.h. */ |
| 20694 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20695 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20696 | #define $ac_func innocuous_$ac_func |
| 20697 | |
| 20698 | /* System header to define __stub macros and hopefully few prototypes, |
| 20699 | which can conflict with char $ac_func (); below. |
| 20700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20701 | <limits.h> exists even on freestanding compilers. */ |
| 20702 | |
| 20703 | #ifdef __STDC__ |
| 20704 | # include <limits.h> |
| 20705 | #else |
| 20706 | # include <assert.h> |
| 20707 | #endif |
| 20708 | |
| 20709 | #undef $ac_func |
| 20710 | |
| 20711 | /* Override any GCC internal prototype to avoid an error. |
| 20712 | Use char because int might match the return type of a GCC |
| 20713 | builtin and then its argument prototype would still apply. */ |
| 20714 | #ifdef __cplusplus |
| 20715 | extern "C" |
| 20716 | #endif |
| 20717 | char $ac_func (); |
| 20718 | /* The GNU C library defines this for functions which it implements |
| 20719 | to always fail with ENOSYS. Some functions are actually named |
| 20720 | something starting with __ and the normal name is an alias. */ |
| 20721 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20722 | choke me |
| 20723 | #endif |
| 20724 | |
| 20725 | int |
| 20726 | main () |
| 20727 | { |
| 20728 | return $ac_func (); |
| 20729 | ; |
| 20730 | return 0; |
| 20731 | } |
| 20732 | _ACEOF |
| 20733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20734 | if { (ac_try="$ac_link" |
| 20735 | case "(($ac_try" in |
| 20736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20737 | *) ac_try_echo=$ac_try;; |
| 20738 | esac |
| 20739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20740 | (eval "$ac_link") 2>conftest.er1 |
| 20741 | ac_status=$? |
| 20742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20743 | rm -f conftest.er1 |
| 20744 | cat conftest.err >&5 |
| 20745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20746 | (exit $ac_status); } && |
| 20747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20748 | { (case "(($ac_try" in |
| 20749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20750 | *) ac_try_echo=$ac_try;; |
| 20751 | esac |
| 20752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20753 | (eval "$ac_try") 2>&5 |
| 20754 | ac_status=$? |
| 20755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20756 | (exit $ac_status); }; } && |
| 20757 | { ac_try='test -s conftest$ac_exeext' |
| 20758 | { (case "(($ac_try" in |
| 20759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20760 | *) ac_try_echo=$ac_try;; |
| 20761 | esac |
| 20762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20763 | (eval "$ac_try") 2>&5 |
| 20764 | ac_status=$? |
| 20765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20766 | (exit $ac_status); }; }; then |
| 20767 | eval "$as_ac_var=yes" |
| 20768 | else |
| 20769 | echo "$as_me: failed program was:" >&5 |
| 20770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20771 | |
| 20772 | eval "$as_ac_var=no" |
| 20773 | fi |
| 20774 | |
| 20775 | rm -f core conftest.err conftest.$ac_objext \ |
| 20776 | conftest$ac_exeext conftest.$ac_ext |
| 20777 | fi |
| 20778 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20779 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20780 | echo "${ECHO_T}$ac_res" >&6; } |
| 20781 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20782 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20783 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20784 | _ACEOF |
| 20785 | |
| 20786 | fi |
| 20787 | done |
| 20788 | |
| 20789 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20790 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20791 | |
| 20792 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20793 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20794 | |
| 20795 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20796 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20797 | prefix="/usr/local" |
| 20798 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20799 | eval LLVM_PREFIX="${prefix}"; |
| 20800 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20801 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20802 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20803 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20804 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20805 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20806 | eval LLVM_INFODIR="${prefix}/info"; |
| 20807 | eval LLVM_MANDIR="${prefix}/man"; |
| 20808 | LLVM_CONFIGTIME=`date` |
| 20809 | |
| 20810 | |
| 20811 | |
| 20812 | |
| 20813 | |
| 20814 | |
| 20815 | |
| 20816 | |
| 20817 | |
| 20818 | |
| 20819 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20820 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20821 | cat >>confdefs.h <<_ACEOF |
| 20822 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20823 | _ACEOF |
| 20824 | |
| 20825 | |
| 20826 | cat >>confdefs.h <<_ACEOF |
| 20827 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20828 | _ACEOF |
| 20829 | |
| 20830 | |
| 20831 | cat >>confdefs.h <<_ACEOF |
| 20832 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20833 | _ACEOF |
| 20834 | |
| 20835 | |
| 20836 | cat >>confdefs.h <<_ACEOF |
| 20837 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20838 | _ACEOF |
| 20839 | |
| 20840 | |
| 20841 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20842 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20843 | _ACEOF |
| 20844 | |
| 20845 | |
| 20846 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20847 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20848 | _ACEOF |
| 20849 | |
| 20850 | |
| 20851 | cat >>confdefs.h <<_ACEOF |
| 20852 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20853 | _ACEOF |
| 20854 | |
| 20855 | |
| 20856 | cat >>confdefs.h <<_ACEOF |
| 20857 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20858 | _ACEOF |
| 20859 | |
| 20860 | |
| 20861 | cat >>confdefs.h <<_ACEOF |
| 20862 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20863 | _ACEOF |
| 20864 | |
| 20865 | |
| 20866 | cat >>confdefs.h <<_ACEOF |
| 20867 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20868 | _ACEOF |
| 20869 | |
| 20870 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20871 | cat >>confdefs.h <<_ACEOF |
Sebastian Pop | de2e0b5 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 20872 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20873 | _ACEOF |
| 20874 | |
| 20875 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20876 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20877 | BINDINGS_TO_BUILD="" |
| 20878 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20879 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20880 | fi |
| 20881 | fi |
| 20882 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20883 | |
| 20884 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20885 | ALL_BINDINGS=ocaml |
| 20886 | |
| 20887 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20888 | binding_prereqs_failed=0 |
| 20889 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20890 | case "$a_binding" in |
| 20891 | ocaml) |
| 20892 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20893 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20894 | 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] | 20895 | binding_prereqs_failed=1 |
| 20896 | fi |
| 20897 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20898 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20899 | 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] | 20900 | binding_prereqs_failed=1 |
| 20901 | fi |
| 20902 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20903 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20904 | 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] | 20905 | fi |
| 20906 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20907 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20908 | |
| 20909 | else |
| 20910 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20911 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20912 | then |
| 20913 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20914 | OCAML_LIBDIR=$ocaml_stdlib |
| 20915 | |
| 20916 | else |
| 20917 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20918 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20919 | |
| 20920 | fi |
| 20921 | fi |
| 20922 | ;; |
| 20923 | esac |
| 20924 | done |
| 20925 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20926 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20927 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20928 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20929 | fi |
| 20930 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20931 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20932 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20933 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20935 | else |
| 20936 | ac_ext=cpp |
| 20937 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20938 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20939 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20940 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20941 | |
| 20942 | oldcxxflags="$CXXFLAGS" |
NAKAMURA Takumi | 273df0b | 2012-02-19 12:05:12 +0000 | [diff] [blame] | 20943 | CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20944 | cat >conftest.$ac_ext <<_ACEOF |
| 20945 | /* confdefs.h. */ |
| 20946 | _ACEOF |
| 20947 | cat confdefs.h >>conftest.$ac_ext |
| 20948 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20949 | /* end confdefs.h. */ |
Benjamin Kramer | b8c20b8 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 20950 | template <typename T> struct X { void __attribute__((noinline)) f() {} }; |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20951 | int |
| 20952 | main () |
| 20953 | { |
Benjamin Kramer | cfe96c8 | 2011-12-22 22:25:26 +0000 | [diff] [blame] | 20954 | X<int>().f(); |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20955 | ; |
| 20956 | return 0; |
| 20957 | } |
| 20958 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20959 | rm -f conftest.$ac_objext |
| 20960 | if { (ac_try="$ac_compile" |
| 20961 | case "(($ac_try" in |
| 20962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20963 | *) ac_try_echo=$ac_try;; |
| 20964 | esac |
| 20965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20966 | (eval "$ac_compile") 2>conftest.er1 |
| 20967 | ac_status=$? |
| 20968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20969 | rm -f conftest.er1 |
| 20970 | cat conftest.err >&5 |
| 20971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20972 | (exit $ac_status); } && |
| 20973 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20974 | { (case "(($ac_try" in |
| 20975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20976 | *) ac_try_echo=$ac_try;; |
| 20977 | esac |
| 20978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20979 | (eval "$ac_try") 2>&5 |
| 20980 | ac_status=$? |
| 20981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20982 | (exit $ac_status); }; } && |
| 20983 | { ac_try='test -s conftest.$ac_objext' |
| 20984 | { (case "(($ac_try" in |
| 20985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20986 | *) ac_try_echo=$ac_try;; |
| 20987 | esac |
| 20988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20989 | (eval "$ac_try") 2>&5 |
| 20990 | ac_status=$? |
| 20991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20992 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20993 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20994 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20995 | echo "$as_me: failed program was:" >&5 |
| 20996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20997 | |
| 20998 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20999 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21000 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21002 | CXXFLAGS="$oldcxxflags" |
| 21003 | ac_ext=c |
| 21004 | ac_cpp='$CPP $CPPFLAGS' |
| 21005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21008 | |
| 21009 | |
| 21010 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21011 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 21012 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21013 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 21014 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 21015 | |
| 21016 | else |
| 21017 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 21018 | |
| 21019 | fi |
| 21020 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21021 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21022 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 21023 | RPATH="-Wl,-R" |
| 21024 | else |
| 21025 | RPATH="-Wl,-rpath" |
| 21026 | fi |
| 21027 | |
| 21028 | |
| 21029 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 21030 | RDYNAMIC="-Wl,-export-dynamic" |
| 21031 | else |
| 21032 | RDYNAMIC="" |
| 21033 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21034 | |
| 21035 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21036 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21037 | 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] | 21038 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21039 | |
| 21040 | |
| 21041 | |
| 21042 | |
| 21043 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21044 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 21045 | |
| 21046 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 21047 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21048 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 21049 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21050 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 21051 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21052 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21053 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21054 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21055 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21056 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21057 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21058 | ac_config_files="$ac_config_files llvm.spec" |
| 21059 | |
| 21060 | |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21061 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 21062 | |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21063 | |
Dylan Noblesmith | 3e82b4a | 2012-02-04 02:41:36 +0000 | [diff] [blame] | 21064 | if test "${clang_src_root}" = ""; then |
Eric Christopher | 9b3cd48 | 2012-02-02 01:11:30 +0000 | [diff] [blame] | 21065 | clang_src_root="$srcdir/tools/clang" |
Eric Christopher | ac89865 | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 21066 | fi |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21067 | if test -f ${clang_src_root}/README.txt; then |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21068 | configh="include/clang/Config/config.h" |
| 21069 | doxy="docs/doxygen.cfg" |
| 21070 | 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] | 21071 | |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21072 | 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] | 21073 | |
| 21074 | fi |
| 21075 | |
Torok Edwin | 4c4b71c | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 21076 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21077 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21079 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21081 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21082 | |
| 21083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21084 | ac_config_commands="$ac_config_commands Makefile.common" |
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 examples/Makefile" |
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 lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21091 | |
| 21092 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21093 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 21094 | |
| 21095 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21096 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21097 | |
| 21098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21099 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21100 | |
| 21101 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21102 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 21103 | |
| 21104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21105 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21106 | |
| 21107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21108 | ac_config_commands="$ac_config_commands utils/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 projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21112 | |
| 21113 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21114 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 21115 | |
| 21116 | |
| 21117 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 21118 | |
| 21119 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21120 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21121 | cat >confcache <<\_ACEOF |
| 21122 | # This file is a shell script that caches the results of configure |
| 21123 | # tests run on this system so they can be shared between configure |
| 21124 | # scripts and configure runs, see configure's option --config-cache. |
| 21125 | # It is not useful on other systems. If it contains results you don't |
| 21126 | # want to keep, you may remove or edit it. |
| 21127 | # |
| 21128 | # config.status only pays attention to the cache file if you give it |
| 21129 | # the --recheck option to rerun configure. |
| 21130 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21131 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21132 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21133 | # following values. |
| 21134 | |
| 21135 | _ACEOF |
| 21136 | |
| 21137 | # The following way of writing the cache mishandles newlines in values, |
| 21138 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21139 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21140 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21141 | # 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] | 21142 | ( |
| 21143 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21144 | eval ac_val=\$$ac_var |
| 21145 | case $ac_val in #( |
| 21146 | *${as_nl}*) |
| 21147 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21148 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21149 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21150 | esac |
| 21151 | case $ac_var in #( |
| 21152 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21153 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21154 | esac ;; |
| 21155 | esac |
| 21156 | done |
| 21157 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21158 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21159 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21160 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21161 | # `set' does not quote correctly, so add quotes (double-quote |
| 21162 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21163 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21164 | "s/'/'\\\\''/g; |
| 21165 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21166 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21167 | *) |
| 21168 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21169 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21170 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21171 | esac | |
| 21172 | sort |
| 21173 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21174 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21175 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21176 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21177 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21178 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21179 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21180 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21181 | :end' >>confcache |
| 21182 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21183 | if test -w "$cache_file"; then |
| 21184 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21185 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21186 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21187 | cat confcache >$cache_file |
| 21188 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21189 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21190 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21191 | fi |
| 21192 | fi |
| 21193 | rm -f confcache |
| 21194 | |
| 21195 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21196 | # Let make expand exec_prefix. |
| 21197 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21198 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21199 | DEFS=-DHAVE_CONFIG_H |
| 21200 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21201 | ac_libobjs= |
| 21202 | ac_ltlibobjs= |
| 21203 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21204 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21205 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21206 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21207 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21208 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21209 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21210 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21211 | done |
| 21212 | LIBOBJS=$ac_libobjs |
| 21213 | |
| 21214 | LTLIBOBJS=$ac_ltlibobjs |
| 21215 | |
| 21216 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21217 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21218 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21219 | Usually this means the macro was only invoked conditionally." >&5 |
| 21220 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21221 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21222 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21223 | fi |
| 21224 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21225 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21226 | Usually this means the macro was only invoked conditionally." >&5 |
| 21227 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21228 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21229 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21230 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21231 | |
| 21232 | : ${CONFIG_STATUS=./config.status} |
| 21233 | ac_clean_files_save=$ac_clean_files |
| 21234 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21235 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21236 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21237 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21238 | #! $SHELL |
| 21239 | # Generated by $as_me. |
| 21240 | # Run this file to recreate the current configuration. |
| 21241 | # Compiler output produced by configure, useful for debugging |
| 21242 | # configure, is in config.log if it exists. |
| 21243 | |
| 21244 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21245 | ac_cs_recheck=false |
| 21246 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21247 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21248 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21249 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21250 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21251 | ## --------------------- ## |
| 21252 | ## M4sh Initialization. ## |
| 21253 | ## --------------------- ## |
| 21254 | |
| 21255 | # Be Bourne compatible |
| 21256 | 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] | 21257 | emulate sh |
| 21258 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21259 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21260 | # is contrary to our usage. Disable this feature. |
| 21261 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21262 | setopt NO_GLOB_SUBST |
| 21263 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21264 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21265 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21266 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 21267 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21268 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21269 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21270 | # PATH needs CR |
| 21271 | # Avoid depending upon Character Ranges. |
| 21272 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21273 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21274 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21275 | as_cr_digits='0123456789' |
| 21276 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21277 | |
| 21278 | # The user is always right. |
| 21279 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21280 | echo "#! /bin/sh" >conf$$.sh |
| 21281 | echo "exit 0" >>conf$$.sh |
| 21282 | chmod +x conf$$.sh |
| 21283 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21284 | PATH_SEPARATOR=';' |
| 21285 | else |
| 21286 | PATH_SEPARATOR=: |
| 21287 | fi |
| 21288 | rm -f conf$$.sh |
| 21289 | fi |
| 21290 | |
| 21291 | # Support unset when possible. |
| 21292 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21293 | as_unset=unset |
| 21294 | else |
| 21295 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21296 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21298 | |
| 21299 | # IFS |
| 21300 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21301 | # there to prevent editors from complaining about space-tab. |
| 21302 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21303 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21304 | as_nl=' |
| 21305 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21306 | IFS=" "" $as_nl" |
| 21307 | |
| 21308 | # 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] | 21309 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21310 | *[\\/]* ) as_myself=$0 ;; |
| 21311 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21312 | for as_dir in $PATH |
| 21313 | do |
| 21314 | IFS=$as_save_IFS |
| 21315 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21316 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21317 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21318 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21320 | ;; |
| 21321 | esac |
| 21322 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21323 | # in which case we are not to be found in the path. |
| 21324 | if test "x$as_myself" = x; then |
| 21325 | as_myself=$0 |
| 21326 | fi |
| 21327 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21328 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21329 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21330 | fi |
| 21331 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21332 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21333 | for as_var in ENV MAIL MAILPATH |
| 21334 | 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] | 21335 | done |
| 21336 | PS1='$ ' |
| 21337 | PS2='> ' |
| 21338 | PS4='+ ' |
| 21339 | |
| 21340 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21341 | for as_var in \ |
| 21342 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21343 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21344 | LC_TELEPHONE LC_TIME |
| 21345 | do |
| 21346 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21347 | eval $as_var=C; export $as_var |
| 21348 | else |
| 21349 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21350 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21351 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21352 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21353 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21354 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21355 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21356 | as_expr=expr |
| 21357 | else |
| 21358 | as_expr=false |
| 21359 | fi |
| 21360 | |
| 21361 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21362 | as_basename=basename |
| 21363 | else |
| 21364 | as_basename=false |
| 21365 | fi |
| 21366 | |
| 21367 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21368 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21369 | as_me=`$as_basename -- "$0" || |
| 21370 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21371 | X"$0" : 'X\(//\)$' \| \ |
| 21372 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21373 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21374 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21375 | s//\1/ |
| 21376 | q |
| 21377 | } |
| 21378 | /^X\/\(\/\/\)$/{ |
| 21379 | s//\1/ |
| 21380 | q |
| 21381 | } |
| 21382 | /^X\/\(\/\).*/{ |
| 21383 | s//\1/ |
| 21384 | q |
| 21385 | } |
| 21386 | s/.*/./; q'` |
| 21387 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21388 | # CDPATH. |
| 21389 | $as_unset CDPATH |
| 21390 | |
| 21391 | |
| 21392 | |
| 21393 | as_lineno_1=$LINENO |
| 21394 | as_lineno_2=$LINENO |
| 21395 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21396 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 21397 | |
| 21398 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21399 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21400 | # line-number line after each line using $LINENO; the second 'sed' |
| 21401 | # does the real work. The second script uses 'N' to pair each |
| 21402 | # line-number line with the line containing $LINENO, and appends |
| 21403 | # trailing '-' during substitution so that $LINENO is not a special |
| 21404 | # case at line end. |
| 21405 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21406 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21407 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21408 | sed -n ' |
| 21409 | p |
| 21410 | /[$]LINENO/= |
| 21411 | ' <$as_myself | |
| 21412 | sed ' |
| 21413 | s/[$]LINENO.*/&-/ |
| 21414 | t lineno |
| 21415 | b |
| 21416 | :lineno |
| 21417 | N |
| 21418 | :loop |
| 21419 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 21420 | t loop |
| 21421 | s/-\n.*// |
| 21422 | ' >$as_me.lineno && |
| 21423 | chmod +x "$as_me.lineno" || |
| 21424 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 21425 | { (exit 1); exit 1; }; } |
| 21426 | |
| 21427 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21428 | # (the dirname of $[0] is not the place where we might find the |
| 21429 | # original and so on. Autoconf is especially sensitive to this). |
| 21430 | . "./$as_me.lineno" |
| 21431 | # Exit status is that of the last command. |
| 21432 | exit |
| 21433 | } |
| 21434 | |
| 21435 | |
| 21436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21437 | as_dirname=dirname |
| 21438 | else |
| 21439 | as_dirname=false |
| 21440 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21441 | |
| 21442 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21443 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21444 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21445 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21446 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21447 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21448 | esac;; |
| 21449 | *) |
| 21450 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21451 | esac |
| 21452 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21453 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21454 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21455 | as_expr=expr |
| 21456 | else |
| 21457 | as_expr=false |
| 21458 | fi |
| 21459 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21460 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21461 | if test -d conf$$.dir; then |
| 21462 | rm -f conf$$.dir/conf$$.file |
| 21463 | else |
| 21464 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21465 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21466 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21467 | echo >conf$$.file |
| 21468 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21469 | as_ln_s='ln -s' |
| 21470 | # ... but there are two gotchas: |
| 21471 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21472 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21473 | # In both cases, we have to default to `cp -p'. |
| 21474 | 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] | 21475 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21476 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21477 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21478 | else |
| 21479 | as_ln_s='cp -p' |
| 21480 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21481 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21482 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21483 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21484 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21485 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21486 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21487 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21488 | as_mkdir_p=false |
| 21489 | fi |
| 21490 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21491 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21492 | # systems may use methods other than mode bits to determine executability. |
| 21493 | cat >conf$$.file <<_ASEOF |
| 21494 | #! /bin/sh |
| 21495 | exit 0 |
| 21496 | _ASEOF |
| 21497 | chmod +x conf$$.file |
| 21498 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21499 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21500 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21501 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21502 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21503 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21504 | |
| 21505 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21506 | 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] | 21507 | |
| 21508 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21509 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21510 | |
| 21511 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21512 | exec 6>&1 |
| 21513 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21514 | # 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] | 21515 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21516 | # values after options handling. |
| 21517 | ac_log=" |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 21518 | This file was extended by LLVM $as_me 3.1svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21519 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21520 | |
| 21521 | CONFIG_FILES = $CONFIG_FILES |
| 21522 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21523 | CONFIG_LINKS = $CONFIG_LINKS |
| 21524 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21525 | $ $0 $@ |
| 21526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21527 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21528 | " |
| 21529 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21530 | _ACEOF |
| 21531 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21532 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21533 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21534 | config_files="$ac_config_files" |
| 21535 | config_headers="$ac_config_headers" |
| 21536 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21538 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21539 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21540 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21541 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21542 | \`$as_me' instantiates files from templates according to the |
| 21543 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21544 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21545 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21546 | |
| 21547 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21548 | -V, --version print version number, then exit |
| 21549 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21550 | -d, --debug don't remove temporary files |
| 21551 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21552 | --file=FILE[:TEMPLATE] |
| 21553 | instantiate the configuration file FILE |
| 21554 | --header=FILE[:TEMPLATE] |
| 21555 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21556 | |
| 21557 | Configuration files: |
| 21558 | $config_files |
| 21559 | |
| 21560 | Configuration headers: |
| 21561 | $config_headers |
| 21562 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21563 | Configuration commands: |
| 21564 | $config_commands |
| 21565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21566 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21568 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21569 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21570 | ac_cs_version="\\ |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 21571 | LLVM config.status 3.1svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21572 | configured by $0, generated by GNU Autoconf 2.60, |
| 21573 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21574 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21575 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21576 | This config.status script is free software; the Free Software Foundation |
| 21577 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21578 | |
| 21579 | ac_pwd='$ac_pwd' |
| 21580 | srcdir='$srcdir' |
| 21581 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21582 | _ACEOF |
| 21583 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21584 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21585 | # If no file are specified by the user, then we need to provide default |
| 21586 | # 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] | 21587 | ac_need_defaults=: |
| 21588 | while test $# != 0 |
| 21589 | do |
| 21590 | case $1 in |
| 21591 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21592 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21593 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21594 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21595 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21596 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21597 | ac_option=$1 |
| 21598 | ac_optarg=$2 |
| 21599 | ac_shift=shift |
| 21600 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21601 | esac |
| 21602 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21603 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21604 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21605 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21606 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21607 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21608 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21609 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21610 | debug=: ;; |
| 21611 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21612 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21613 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21614 | ac_need_defaults=false;; |
| 21615 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21616 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21617 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21618 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21619 | --he | --h) |
| 21620 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21621 | { echo "$as_me: error: ambiguous option: $1 |
| 21622 | Try \`$0 --help' for more information." >&2 |
| 21623 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21624 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21625 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21626 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21627 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21628 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21629 | |
| 21630 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21631 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21632 | Try \`$0 --help' for more information." >&2 |
| 21633 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21634 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21635 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21636 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21637 | |
| 21638 | esac |
| 21639 | shift |
| 21640 | done |
| 21641 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21642 | ac_configure_extra_args= |
| 21643 | |
| 21644 | if $ac_cs_silent; then |
| 21645 | exec 6>/dev/null |
| 21646 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21647 | fi |
| 21648 | |
| 21649 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21650 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21651 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21652 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21653 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21654 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21655 | 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] | 21656 | fi |
| 21657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21658 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21659 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21660 | exec 5>>config.log |
| 21661 | { |
| 21662 | echo |
| 21663 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21664 | ## Running $as_me. ## |
| 21665 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21666 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21667 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21669 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21670 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21671 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21672 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21673 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21674 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21675 | |
| 21676 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21677 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21678 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21679 | |
| 21680 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21681 | for ac_config_target in $ac_config_targets |
| 21682 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21683 | case $ac_config_target in |
| 21684 | "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] | 21685 | "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] | 21686 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21687 | "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] | 21688 | "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] | 21689 | "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] | 21690 | "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] | 21691 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21692 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21693 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21694 | "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; |
| 21695 | "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] | 21696 | "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] | 21697 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21698 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21699 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21700 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21701 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21702 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21703 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21704 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21705 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21706 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21707 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21708 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21709 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21710 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21711 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21712 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21713 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21714 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21715 | esac |
| 21716 | done |
| 21717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21718 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21719 | # If the user did not use the arguments to specify the items to instantiate, |
| 21720 | # then the envvar interface is used. Set only those that are not. |
| 21721 | # We use the long form for the default assignment because of an extremely |
| 21722 | # bizarre bug on SunOS 4.1.3. |
| 21723 | if $ac_need_defaults; then |
| 21724 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21725 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21726 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21727 | fi |
| 21728 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21729 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21730 | # 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] | 21731 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21732 | # Hook for its removal unless debugging. |
| 21733 | # Note that there is a small window in which the directory will not be cleaned: |
| 21734 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21735 | $debug || |
| 21736 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21737 | tmp= |
| 21738 | trap 'exit_status=$? |
| 21739 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21740 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21741 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21742 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21743 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21744 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21745 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21746 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21747 | test -n "$tmp" && test -d "$tmp" |
| 21748 | } || |
| 21749 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21750 | tmp=./conf$$-$RANDOM |
| 21751 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21752 | } || |
| 21753 | { |
| 21754 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21755 | { (exit 1); exit 1; } |
| 21756 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21757 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21758 | # |
| 21759 | # Set up the sed scripts for CONFIG_FILES section. |
| 21760 | # |
| 21761 | |
| 21762 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21763 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21764 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21765 | |
| 21766 | _ACEOF |
| 21767 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21768 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21769 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | ac_delim='%!_!# ' |
| 21771 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21772 | cat >conf$$subs.sed <<_ACEOF |
| 21773 | SHELL!$SHELL$ac_delim |
| 21774 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21775 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21776 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21777 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21778 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21779 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21780 | exec_prefix!$exec_prefix$ac_delim |
| 21781 | prefix!$prefix$ac_delim |
| 21782 | program_transform_name!$program_transform_name$ac_delim |
| 21783 | bindir!$bindir$ac_delim |
| 21784 | sbindir!$sbindir$ac_delim |
| 21785 | libexecdir!$libexecdir$ac_delim |
| 21786 | datarootdir!$datarootdir$ac_delim |
| 21787 | datadir!$datadir$ac_delim |
| 21788 | sysconfdir!$sysconfdir$ac_delim |
| 21789 | sharedstatedir!$sharedstatedir$ac_delim |
| 21790 | localstatedir!$localstatedir$ac_delim |
| 21791 | includedir!$includedir$ac_delim |
| 21792 | oldincludedir!$oldincludedir$ac_delim |
| 21793 | docdir!$docdir$ac_delim |
| 21794 | infodir!$infodir$ac_delim |
| 21795 | htmldir!$htmldir$ac_delim |
| 21796 | dvidir!$dvidir$ac_delim |
| 21797 | pdfdir!$pdfdir$ac_delim |
| 21798 | psdir!$psdir$ac_delim |
| 21799 | libdir!$libdir$ac_delim |
| 21800 | localedir!$localedir$ac_delim |
| 21801 | mandir!$mandir$ac_delim |
| 21802 | DEFS!$DEFS$ac_delim |
| 21803 | ECHO_C!$ECHO_C$ac_delim |
| 21804 | ECHO_N!$ECHO_N$ac_delim |
| 21805 | ECHO_T!$ECHO_T$ac_delim |
| 21806 | LIBS!$LIBS$ac_delim |
| 21807 | build_alias!$build_alias$ac_delim |
| 21808 | host_alias!$host_alias$ac_delim |
| 21809 | target_alias!$target_alias$ac_delim |
| 21810 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21811 | CC!$CC$ac_delim |
| 21812 | CFLAGS!$CFLAGS$ac_delim |
| 21813 | LDFLAGS!$LDFLAGS$ac_delim |
| 21814 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21815 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21816 | EXEEXT!$EXEEXT$ac_delim |
| 21817 | OBJEXT!$OBJEXT$ac_delim |
| 21818 | CXX!$CXX$ac_delim |
| 21819 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21820 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21821 | CPP!$CPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21822 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 21823 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 21824 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21825 | build!$build$ac_delim |
| 21826 | build_cpu!$build_cpu$ac_delim |
| 21827 | build_vendor!$build_vendor$ac_delim |
| 21828 | build_os!$build_os$ac_delim |
| 21829 | host!$host$ac_delim |
| 21830 | host_cpu!$host_cpu$ac_delim |
| 21831 | host_vendor!$host_vendor$ac_delim |
| 21832 | host_os!$host_os$ac_delim |
| 21833 | target!$target$ac_delim |
| 21834 | target_cpu!$target_cpu$ac_delim |
| 21835 | target_vendor!$target_vendor$ac_delim |
| 21836 | target_os!$target_os$ac_delim |
| 21837 | OS!$OS$ac_delim |
| 21838 | HOST_OS!$HOST_OS$ac_delim |
| 21839 | TARGET_OS!$TARGET_OS$ac_delim |
| 21840 | LINKALL!$LINKALL$ac_delim |
| 21841 | NOLINKALL!$NOLINKALL$ac_delim |
| 21842 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21843 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21844 | ARCH!$ARCH$ac_delim |
| 21845 | ENDIAN!$ENDIAN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21846 | GREP!$GREP$ac_delim |
| 21847 | EGREP!$EGREP$ac_delim |
| 21848 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21849 | BUILD_CC!$BUILD_CC$ac_delim |
| 21850 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21851 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21852 | CVSBUILD!$CVSBUILD$ac_delim |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 21853 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21854 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21855 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21856 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21857 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21858 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21859 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21860 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21861 | JIT!$JIT$ac_delim |
| 21862 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21863 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21864 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 21865 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21866 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21867 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21868 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21869 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21870 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21871 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21872 | 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] | 21873 | break |
| 21874 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21875 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21876 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21877 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21878 | else |
| 21879 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21880 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21881 | done |
| 21882 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21883 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21884 | if test -n "$ac_eof"; then |
| 21885 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21886 | ac_eof=`expr $ac_eof + 1` |
| 21887 | fi |
| 21888 | |
| 21889 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21890 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21891 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21892 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21893 | sed ' |
| 21894 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21895 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21896 | :n |
| 21897 | t n |
| 21898 | s/'"$ac_delim"'$/,g/; t |
| 21899 | s/$/\\/; p |
| 21900 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21901 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21902 | rm -f conf$$subs.sed |
| 21903 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21904 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21905 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21906 | |
| 21907 | |
| 21908 | ac_delim='%!_!# ' |
| 21909 | for ac_last_try in false false false false false :; do |
| 21910 | cat >conf$$subs.sed <<_ACEOF |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 21911 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 21912 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21913 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21914 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 21915 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 21916 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 21917 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21918 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21919 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 21920 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 21921 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21922 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 21923 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21924 | NM!$NM$ac_delim |
| 21925 | ifGNUmake!$ifGNUmake$ac_delim |
| 21926 | LN_S!$LN_S$ac_delim |
| 21927 | CMP!$CMP$ac_delim |
| 21928 | CP!$CP$ac_delim |
| 21929 | DATE!$DATE$ac_delim |
| 21930 | FIND!$FIND$ac_delim |
| 21931 | MKDIR!$MKDIR$ac_delim |
| 21932 | MV!$MV$ac_delim |
| 21933 | RANLIB!$RANLIB$ac_delim |
| 21934 | AR!$AR$ac_delim |
| 21935 | RM!$RM$ac_delim |
| 21936 | SED!$SED$ac_delim |
| 21937 | TAR!$TAR$ac_delim |
| 21938 | BINPWD!$BINPWD$ac_delim |
| 21939 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21940 | DOT!$DOT$ac_delim |
| 21941 | FDP!$FDP$ac_delim |
| 21942 | NEATO!$NEATO$ac_delim |
| 21943 | TWOPI!$TWOPI$ac_delim |
| 21944 | CIRCO!$CIRCO$ac_delim |
| 21945 | GV!$GV$ac_delim |
| 21946 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 21947 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21948 | PERL!$PERL$ac_delim |
| 21949 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21950 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21951 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21952 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21953 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21954 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21955 | DOXYGEN!$DOXYGEN$ac_delim |
| 21956 | GROFF!$GROFF$ac_delim |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 21957 | GZIPBIN!$GZIPBIN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21958 | POD2HTML!$POD2HTML$ac_delim |
| 21959 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21960 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21961 | RUNTEST!$RUNTEST$ac_delim |
| 21962 | TCLSH!$TCLSH$ac_delim |
| 21963 | ZIP!$ZIP$ac_delim |
| 21964 | OCAMLC!$OCAMLC$ac_delim |
| 21965 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21966 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21967 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21968 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21969 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21970 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21971 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21972 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21973 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21974 | LIBADD_DL!$LIBADD_DL$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21975 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21976 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21977 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21978 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21979 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21980 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21981 | MMAP_FILE!$MMAP_FILE$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21982 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21983 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21984 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21985 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21986 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21987 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21988 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21989 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21990 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21991 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21992 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21993 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21994 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21995 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 21996 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21997 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21998 | RPATH!$RPATH$ac_delim |
| 21999 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 22000 | LIBOBJS!$LIBOBJS$ac_delim |
| 22001 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22002 | _ACEOF |
| 22003 | |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 22004 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22005 | break |
| 22006 | elif $ac_last_try; then |
| 22007 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22008 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22009 | { (exit 1); exit 1; }; } |
| 22010 | else |
| 22011 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 22012 | fi |
| 22013 | done |
| 22014 | |
| 22015 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22016 | if test -n "$ac_eof"; then |
| 22017 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22018 | ac_eof=`expr $ac_eof + 1` |
| 22019 | fi |
| 22020 | |
| 22021 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22022 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22023 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 22024 | _ACEOF |
| 22025 | sed ' |
| 22026 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22027 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22028 | :n |
| 22029 | t n |
| 22030 | s/'"$ac_delim"'$/,g/; t |
| 22031 | s/$/\\/; p |
| 22032 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22033 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22034 | rm -f conf$$subs.sed |
| 22035 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22036 | :end |
| 22037 | s/|#_!!_#|//g |
| 22038 | CEOF$ac_eof |
| 22039 | _ACEOF |
| 22040 | |
| 22041 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22042 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22043 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22044 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22045 | # (actually we leave an empty line to preserve line numbers). |
| 22046 | if test "x$srcdir" = x.; then |
| 22047 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22048 | s/:*\$(srcdir):*/:/ |
| 22049 | s/:*\${srcdir}:*/:/ |
| 22050 | s/:*@srcdir@:*/:/ |
| 22051 | s/^\([^=]*=[ ]*\):*/\1/ |
| 22052 | s/:*$// |
| 22053 | s/^[^=]*=[ ]*$// |
| 22054 | }' |
| 22055 | fi |
| 22056 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22057 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22058 | fi # test -n "$CONFIG_FILES" |
| 22059 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22061 | 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] | 22062 | do |
| 22063 | case $ac_tag in |
| 22064 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 22065 | esac |
| 22066 | case $ac_mode$ac_tag in |
| 22067 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22068 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 22069 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 22070 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22071 | :[FH]-) ac_tag=-:-;; |
| 22072 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 22073 | esac |
| 22074 | ac_save_IFS=$IFS |
| 22075 | IFS=: |
| 22076 | set x $ac_tag |
| 22077 | IFS=$ac_save_IFS |
| 22078 | shift |
| 22079 | ac_file=$1 |
| 22080 | shift |
| 22081 | |
| 22082 | case $ac_mode in |
| 22083 | :L) ac_source=$1;; |
| 22084 | :[FH]) |
| 22085 | ac_file_inputs= |
| 22086 | for ac_f |
| 22087 | do |
| 22088 | case $ac_f in |
| 22089 | -) ac_f="$tmp/stdin";; |
| 22090 | *) # Look for the file first in the build tree, then in the source tree |
| 22091 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 22092 | # because $ac_f cannot contain `:'. |
| 22093 | test -f "$ac_f" || |
| 22094 | case $ac_f in |
| 22095 | [\\/$]*) false;; |
| 22096 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 22097 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22098 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 22099 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 22100 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22101 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22102 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22103 | done |
| 22104 | |
| 22105 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22106 | # use $as_me), people would be surprised to read: |
| 22107 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22108 | configure_input="Generated from "`IFS=: |
| 22109 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22110 | if test x"$ac_file" != x-; then |
| 22111 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22112 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22113 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22114 | fi |
| 22115 | |
| 22116 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22117 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22118 | esac |
| 22119 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22120 | esac |
| 22121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22122 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22123 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22124 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22125 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22126 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22127 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22128 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22129 | s//\1/ |
| 22130 | q |
| 22131 | } |
| 22132 | /^X\(\/\/\)[^/].*/{ |
| 22133 | s//\1/ |
| 22134 | q |
| 22135 | } |
| 22136 | /^X\(\/\/\)$/{ |
| 22137 | s//\1/ |
| 22138 | q |
| 22139 | } |
| 22140 | /^X\(\/\).*/{ |
| 22141 | s//\1/ |
| 22142 | q |
| 22143 | } |
| 22144 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22145 | { as_dir="$ac_dir" |
| 22146 | case $as_dir in #( |
| 22147 | -*) as_dir=./$as_dir;; |
| 22148 | esac |
| 22149 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22150 | as_dirs= |
| 22151 | while :; do |
| 22152 | case $as_dir in #( |
| 22153 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22154 | *) as_qdir=$as_dir;; |
| 22155 | esac |
| 22156 | as_dirs="'$as_qdir' $as_dirs" |
| 22157 | as_dir=`$as_dirname -- "$as_dir" || |
| 22158 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22159 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22160 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22161 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22162 | echo X"$as_dir" | |
| 22163 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22164 | s//\1/ |
| 22165 | q |
| 22166 | } |
| 22167 | /^X\(\/\/\)[^/].*/{ |
| 22168 | s//\1/ |
| 22169 | q |
| 22170 | } |
| 22171 | /^X\(\/\/\)$/{ |
| 22172 | s//\1/ |
| 22173 | q |
| 22174 | } |
| 22175 | /^X\(\/\).*/{ |
| 22176 | s//\1/ |
| 22177 | q |
| 22178 | } |
| 22179 | s/.*/./; q'` |
| 22180 | test -d "$as_dir" && break |
| 22181 | done |
| 22182 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22183 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22184 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22185 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22186 | ac_builddir=. |
| 22187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22188 | case "$ac_dir" in |
| 22189 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22190 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22191 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22192 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22193 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22194 | case $ac_top_builddir_sub in |
| 22195 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22196 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22197 | esac ;; |
| 22198 | esac |
| 22199 | ac_abs_top_builddir=$ac_pwd |
| 22200 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22201 | # for backward compatibility: |
| 22202 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22203 | |
| 22204 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22205 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22206 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22207 | ac_top_srcdir=$ac_top_builddir_sub |
| 22208 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22209 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22210 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22211 | ac_top_srcdir=$srcdir |
| 22212 | ac_abs_top_srcdir=$srcdir ;; |
| 22213 | *) # Relative name. |
| 22214 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22215 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22216 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22217 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22218 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22219 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22221 | case $ac_mode in |
| 22222 | :F) |
| 22223 | # |
| 22224 | # CONFIG_FILE |
| 22225 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22226 | |
| 22227 | case $INSTALL in |
| 22228 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22229 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22230 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22231 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22232 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22233 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22234 | # If the template does not know about datarootdir, expand it. |
| 22235 | # FIXME: This hack should be removed a few years after 2.60. |
| 22236 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22237 | |
| 22238 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22239 | p |
| 22240 | q |
| 22241 | } |
| 22242 | /@datadir@/p |
| 22243 | /@docdir@/p |
| 22244 | /@infodir@/p |
| 22245 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22246 | /@mandir@/p |
| 22247 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22248 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22249 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22250 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22251 | 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] | 22252 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22253 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22254 | ac_datarootdir_hack=' |
| 22255 | s&@datadir@&$datadir&g |
| 22256 | s&@docdir@&$docdir&g |
| 22257 | s&@infodir@&$infodir&g |
| 22258 | s&@localedir@&$localedir&g |
| 22259 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22260 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22261 | esac |
| 22262 | _ACEOF |
| 22263 | |
| 22264 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22265 | # Shell code in configure.ac might set extrasub. |
| 22266 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22267 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22268 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22269 | $extrasub |
| 22270 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22271 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22272 | :t |
| 22273 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22274 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22275 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22276 | s&@srcdir@&$ac_srcdir&;t t |
| 22277 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22278 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22279 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22280 | s&@builddir@&$ac_builddir&;t t |
| 22281 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22282 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22283 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22284 | $ac_datarootdir_hack |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22285 | " $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] | 22286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22287 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22288 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22289 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22290 | { 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] | 22291 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22292 | 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] | 22293 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22295 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22296 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22297 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22298 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 22299 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22300 | ;; |
| 22301 | :H) |
| 22302 | # |
| 22303 | # CONFIG_HEADER |
| 22304 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22305 | _ACEOF |
| 22306 | |
| 22307 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22308 | # substitutes the proper values into config.h.in to produce config.h. |
| 22309 | rm -f conftest.defines conftest.tail |
| 22310 | # First, append a space to every undef/define line, to ease matching. |
| 22311 | echo 's/$/ /' >conftest.defines |
| 22312 | # Then, protect against being on the right side of a sed subst, or in |
| 22313 | # an unquoted here document, in config.status. If some macros were |
| 22314 | # called several times there might be several #defines for the same |
| 22315 | # symbol, which is useless. But do not sort them, since the last |
| 22316 | # AC_DEFINE must be honored. |
| 22317 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22318 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22319 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22320 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22321 | # just an empty string. |
| 22322 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 22323 | ac_dB='\\)[ (].*,\\1define\\2' |
| 22324 | ac_dC=' ' |
| 22325 | ac_dD=' ,' |
| 22326 | |
| 22327 | uniq confdefs.h | |
| 22328 | sed -n ' |
| 22329 | t rset |
| 22330 | :rset |
| 22331 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22332 | t ok |
| 22333 | d |
| 22334 | :ok |
| 22335 | s/[\\&,]/\\&/g |
| 22336 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 22337 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 22338 | ' >>conftest.defines |
| 22339 | |
| 22340 | # Remove the space that was appended to ease matching. |
| 22341 | # Then replace #undef with comments. This is necessary, for |
| 22342 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22343 | # on some systems where configure will not decide to define it. |
| 22344 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22345 | echo 's/ $// |
| 22346 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 22347 | |
| 22348 | # Break up conftest.defines: |
| 22349 | ac_max_sed_lines=50 |
| 22350 | |
| 22351 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22352 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22353 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22354 | # et cetera. |
| 22355 | ac_in='$ac_file_inputs' |
| 22356 | ac_out='"$tmp/out1"' |
| 22357 | ac_nxt='"$tmp/out2"' |
| 22358 | |
| 22359 | while : |
| 22360 | do |
| 22361 | # Write a here document: |
| 22362 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22363 | # First, check the format of the line: |
| 22364 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 22365 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 22366 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 22367 | b |
| 22368 | :def |
| 22369 | _ACEOF |
| 22370 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 22371 | echo 'CEOF |
| 22372 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22373 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22374 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22375 | grep . conftest.tail >/dev/null || break |
| 22376 | rm -f conftest.defines |
| 22377 | mv conftest.tail conftest.defines |
| 22378 | done |
| 22379 | rm -f conftest.defines conftest.tail |
| 22380 | |
| 22381 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 22382 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22383 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22384 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22385 | cat "$ac_result" >>"$tmp/config.h" |
| 22386 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 22387 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22388 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22389 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22390 | rm -f $ac_file |
| 22391 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22392 | fi |
| 22393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22394 | echo "/* $configure_input */" |
| 22395 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22396 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22397 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22398 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22399 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22400 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22401 | echo "$as_me: executing $ac_file commands" >&6;} |
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 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22405 | |
| 22406 | case $ac_file$ac_mode in |
| 22407 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22408 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22409 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22410 | ${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] | 22411 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22412 | ${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] | 22413 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22414 | ${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] | 22415 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22416 | ${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] | 22417 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22418 | ${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] | 22419 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22420 | ${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] | 22421 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22422 | ${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] | 22423 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22424 | ${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] | 22425 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22426 | ${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] | 22427 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22428 | ${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] | 22429 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22430 | ${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] | 22431 | "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] | 22432 | ${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] | 22433 | |
| 22434 | esac |
| 22435 | done # for ac_tag |
| 22436 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22437 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22438 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22439 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22440 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22441 | ac_clean_files=$ac_clean_files_save |
| 22442 | |
| 22443 | |
| 22444 | # configure is writing to config.log, and then calls config.status. |
| 22445 | # config.status does its own redirection, appending to config.log. |
| 22446 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22447 | # by configure, so config.status won't be able to write to it; its |
| 22448 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22449 | # effectively closing config.log, so it can be properly (re)opened and |
| 22450 | # appended to by config.status. When coming back to configure, we |
| 22451 | # need to make the FD available again. |
| 22452 | if test "$no_create" != yes; then |
| 22453 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22454 | ac_config_status_args= |
| 22455 | test "$silent" = yes && |
| 22456 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22457 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22458 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22459 | exec 5>>config.log |
| 22460 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22461 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22462 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22463 | fi |
| 22464 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22465 | # |
| 22466 | # CONFIG_SUBDIRS section. |
| 22467 | # |
| 22468 | if test "$no_recursion" != yes; then |
| 22469 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22470 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22471 | ac_sub_configure_args= |
| 22472 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22473 | eval "set x $ac_configure_args" |
| 22474 | shift |
| 22475 | for ac_arg |
| 22476 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22477 | if test -n "$ac_prev"; then |
| 22478 | ac_prev= |
| 22479 | continue |
| 22480 | fi |
| 22481 | case $ac_arg in |
| 22482 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22483 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22484 | ac_prev=cache_file ;; |
| 22485 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22486 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22487 | | --c=*) |
| 22488 | ;; |
| 22489 | --config-cache | -C) |
| 22490 | ;; |
| 22491 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22492 | ac_prev=srcdir ;; |
| 22493 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22494 | ;; |
| 22495 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22496 | ac_prev=prefix ;; |
| 22497 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22498 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22499 | *) |
| 22500 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22501 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22502 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22503 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22504 | esac |
| 22505 | done |
| 22506 | |
| 22507 | # Always prepend --prefix to ensure using the same prefix |
| 22508 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22509 | ac_arg="--prefix=$prefix" |
| 22510 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22511 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22512 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22513 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22514 | |
| 22515 | ac_popdir=`pwd` |
| 22516 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22517 | |
| 22518 | # Do not complain, so a configure script can configure whichever |
| 22519 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22520 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22522 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22523 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22524 | echo "$ac_msg" >&6 |
| 22525 | { as_dir="$ac_dir" |
| 22526 | case $as_dir in #( |
| 22527 | -*) as_dir=./$as_dir;; |
| 22528 | esac |
| 22529 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22530 | as_dirs= |
| 22531 | while :; do |
| 22532 | case $as_dir in #( |
| 22533 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22534 | *) as_qdir=$as_dir;; |
| 22535 | esac |
| 22536 | as_dirs="'$as_qdir' $as_dirs" |
| 22537 | as_dir=`$as_dirname -- "$as_dir" || |
| 22538 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22539 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22540 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22541 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22542 | echo X"$as_dir" | |
| 22543 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22544 | s//\1/ |
| 22545 | q |
| 22546 | } |
| 22547 | /^X\(\/\/\)[^/].*/{ |
| 22548 | s//\1/ |
| 22549 | q |
| 22550 | } |
| 22551 | /^X\(\/\/\)$/{ |
| 22552 | s//\1/ |
| 22553 | q |
| 22554 | } |
| 22555 | /^X\(\/\).*/{ |
| 22556 | s//\1/ |
| 22557 | q |
| 22558 | } |
| 22559 | s/.*/./; q'` |
| 22560 | test -d "$as_dir" && break |
| 22561 | done |
| 22562 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22563 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22564 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22565 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22566 | ac_builddir=. |
| 22567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22568 | case "$ac_dir" in |
| 22569 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22570 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22571 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22572 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22573 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22574 | case $ac_top_builddir_sub in |
| 22575 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22576 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22577 | esac ;; |
| 22578 | esac |
| 22579 | ac_abs_top_builddir=$ac_pwd |
| 22580 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22581 | # for backward compatibility: |
| 22582 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22583 | |
| 22584 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22585 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22586 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22587 | ac_top_srcdir=$ac_top_builddir_sub |
| 22588 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22589 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22590 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22591 | ac_top_srcdir=$srcdir |
| 22592 | ac_abs_top_srcdir=$srcdir ;; |
| 22593 | *) # Relative name. |
| 22594 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22595 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22596 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22597 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22598 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22599 | |
| 22600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22601 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22602 | |
| 22603 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22604 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22605 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22606 | elif test -f "$ac_srcdir/configure"; then |
| 22607 | ac_sub_configure=$ac_srcdir/configure |
| 22608 | elif test -f "$ac_srcdir/configure.in"; then |
| 22609 | # This should be Cygnus configure. |
| 22610 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22611 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22612 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22613 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22614 | ac_sub_configure= |
| 22615 | fi |
| 22616 | |
| 22617 | # The recursion is here. |
| 22618 | if test -n "$ac_sub_configure"; then |
| 22619 | # Make the cache file name correct relative to the subdirectory. |
| 22620 | case $cache_file in |
| 22621 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22622 | *) # Relative name. |
| 22623 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22624 | esac |
| 22625 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22626 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22627 | 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] | 22628 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22629 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22630 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22631 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22632 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22633 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22634 | fi |
| 22635 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22636 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22637 | done |
| 22638 | fi |
| 22639 | |